From 08b37b05ff6549e0145cb19051ef379895dcdd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 30 Sep 2026 02:16:41 +0300 Subject: [PATCH] lanes: state the four guarantees the corrected census's rows carry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a header section to the branch census so a reader knows what the table's rows are worth before acting on one, and so the next census inherits the method rather than rediscovering it. The guarantees are recorded in the managed skill branch-census-patch-id-disposition. G1 — the base's committer instant is pinned in the header. Worth stating precisely, because the obvious phrasing is wrong: the Method block ALREADY printed committer dates (`%(committerdate:short)`, `%cd`) and that was never the defect. A row's own date can never reveal that its fix landed on main after the census snapshotted main. That is exactly the C3 trap — lane-infra-gitdir's row correctly printed its tip's committer date 2026-09-25 06:40:53, while its main carrier 71f1f09c has committer 2026-09-30 01:30:50, five minutes past the 01:25:11 base. With the base instant written down the check is one command: `git merge-base --is-ancestor 3aa16dd1`. The base's committer time is therefore 2026-09-30 01:25:11 +0300 and is now written into the header. G2 — reverse-apply is mandatory over every row and its hits are marked, not just used to rank. All 32 outstanding rows carrying a code delta were tested (1 hit); the 4 report-only rows are named as skipped rather than left silent. G3 — three verdicts kept distinct: false-positive, stale-inside-the-run, outstanding. G4 — a twin-flow sweep's subject names one arm and its diff touches both; tested across every unlanded commit in every outstanding row. Also records the two proof shapes that were tried and REJECTED with their measured failure rates (post-image line-percentage: ~50% on genuinely-unlanded commits and blind to a semantic duplicate, 7/13 on an already-landed commit; lane-tag grep: proves the marker is absent, not the fix), and states the known remaining blind spot — a false positive whose landing commit is neither a twin sweep nor byte-identical would be caught by neither detector. C3's body text carried the same author-date imprecision and is corrected there too. Report-only; no decoder edits. --- lanes/branchcensus.report.md | 52 ++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/lanes/branchcensus.report.md b/lanes/branchcensus.report.md index 35b10104..7e81befd 100644 --- a/lanes/branchcensus.report.md +++ b/lanes/branchcensus.report.md @@ -10,6 +10,50 @@ this lane only adds this report. rebased under it. See **"The census target moved under the run"** below the counts before acting on a row. +## What this table's rows guarantee + +The first pass of this census produced five wrong or imprecise rows, including +its single most actionable one. The method behind this revision carries four +guarantees, recorded in the managed skill `branch-census-patch-id-disposition` +so the next census inherits them rather than rediscovering them: + +- **G1 — the base's committer time is pinned in this header, and that is the + half that matters.** The base `3aa16dd1` was committed at + **`2026-09-30 01:25:11 +0300`**. The Method block already prints *committer* + dates for every row (`%(committerdate:short)`, `%cd`), and that part was never + the defect: a row's own date can never reveal that its fix landed on main + *after* the census snapshotted main. That is exactly the §C3 trap — + `lane-infra-gitdir`'s row correctly printed its own tip's committer date + `2026-09-25 06:40:53`, while the main carrier `71f1f09c` has committer + `2026-09-30 01:30:50`, five minutes past the base. With the base's instant + written down, that comparison is one command instead of a lucky rebase: + `git merge-base --is-ancestor 3aa16dd1`. +- **G2 — reverse-apply is mandatory over every row, and its hits are marked.** + `git apply --reverse --check` on each branch's code diff; success is decisive + in the *landed* direction. The 32 outstanding rows carrying a + `crates/`/`scripts/`/`tools/`/`.cargo/` delta were all tested (1 hit, + §C3); the 4 report-only rows have no code diff to test and are named here + rather than left silent. +- **G3 — three verdicts, never collapsed**: `false-positive` (wrong when + written, ancestry-proven), `stale-inside-the-run` (correct, then overtaken), + `outstanding` (still unlanded). §C1 is the first kind, §C3 the second; the + distinction is what makes the table actionable. +- **G4 — a twin-flow sweep's subject names one arm, its diff touches both.** + Every unlanded commit in every outstanding row was tested for hunks landing + in both copies of `decode_inter_block` (§C1, §C5). This is the filter whose + absence made §C1 possible. + +Two proof shapes were tried and **rejected**, with measured failure rates: a +post-image line-percentage test (reads ~50% on genuinely-unlanded commits, and +is blind to a semantic duplicate — 7/13 on a commit that was in fact already +landed), and grepping a lane's tag comment (proves the *marker* is absent, not +that the fix is). Neither decides a row here. + +**Known remaining blind spot**, stated so no reader over-trusts the table: a +false positive whose landing commit is neither a twin sweep nor byte-identical +would be caught by neither detector and would need a per-row read. See "What +was re-checked, and what was not" for exactly which rows got that read. + ## Method (reproduce with these commands, nothing else) ```bash @@ -286,8 +330,12 @@ still stands. Only the stated evidence changes. **Not** a false positive: the row was correct when written and went stale inside the run. The fix landed as `71f1f09c` (same subject, same patch-id `2b7d379f…`), committer date `2026-09-30 01:30:50` — **five minutes after** this -census's base `3aa16dd1` (`01:25:11`). The author date is `2026-09-25`, which is -what the table prints, so the staleness is invisible in the row. +census's base `3aa16dd1` (`01:25:11`). The row's own printed date is its **tip's** +committer date `2026-09-25 06:40:53`, which is correct per the Method block and +is *not* the defect — a row's date can never show that its fix landed on main +after the snapshot. The staleness is only visible by comparing the **carrier's** +committer date against the base's, which is why the header now pins the base +instant (G1). ```bash git show 082ef153 --format='' -p | git patch-id --stable # 2b7d379f…