From b4821050a80bbcf7b93b0cf7f9fc5713a93a5d2f Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 13 Nov 2026 01:08:03 +0800 Subject: [PATCH] lessons: a commit's stat names only the files its change touched (76ceff87c) 76ceff87c, built on an older base, took out 7c37424fc and d6b5f24db with their tests (restored in 8097860ab); 85e6ec540 did the same on 11-11. Seen 2x, kept as its own lesson. Docs only; nothing run. --- LESSONS.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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