diff --git a/LESSONS.md b/LESSONS.md index 394b748b2..f8e892017 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -929,6 +929,22 @@ is read back before the push.** pushing. - Seen 2× (2026-10-15, 2026-11-12). +**A commit's `--stat` names only the files its change touched; any other +file is a stale tree taking out someone's work.** +- 85e6ec540 (11-11, the Paseo agent) was committed on a stale index and + took out the six commits before it; b52c71114 restored them. +- 76ceff87c (11-12, Usage's hours back) was built on an older base. Its + tree dropped 7c37424fc (Linux without backdrop blur) and d6b5f24db + (Codex seats of one name) with their two GUI tests, the + history_tallies test and the gui-shell doc line: 156 lines out under a + usage subject. 8097860ab put them back from d6b5f24db. Its body ran + usage-hours "at the rebased head", which the dropped tests weren't in. +- Before pushing, `git show --stat HEAD` against the subject: a file the + change never meant to touch, or a test file going out, is a stop. + Rebase or cherry-pick onto origin/main; never commit a tree copied + from an older checkout. +- Seen 2× (2026-11-11, 2026-11-12). + **A community PR that changes how a page looks is not merged on review alone.** - #1354 (Nxir) rearranged the Routing page with no issue asking for it. It