# Route 131: what makes a document correction survive a mirror cut (job 2814, 2026-09-26) **Caveats first.** The cut logic below comes from reading the platform source, not from watching a cut. No mirror cut has happened since 2026-09-16: every path below still has exactly two `history.publications`. The research repository's current text of these files is private and was not read. The carry test is line-level: a later accepted edit that rewords a v2 line shows up as "not carried" even when the correction survives in substance. ## 1. The writer: `recordMirrorCut` (platform `src/lib/revisions.ts`) - **Before 2026-09-24** (commit 152d53a, 2026-09-10; in force at the 09-16 cut): - For every path that has a version history, the cut reads the mirror file. - If its sha differs from the latest version, the cut writes the next version. That version has `return_id NULL` and `author_user_id = keeperFor(problem)` (the project researcher). Its summary is "as mirrored from the research repository, cut of ()". - The overlay is then dropped. Attribution is never read. - This accounts for every field of #1421's signature: one `created_at` across trees, `return_id` null, author Benjaminsen, `content_sha` = v1. - **Since 2026-09-24** (commit a95956b, "stale mirror cuts keep accepted revisions"): - The loop is the same, and attribution is still not read. - A cut whose sha equals any **older** version of that path is `stale`. It is reported, not recorded, and the served version stays, unless the owner passes `--promote `. - A cut with **new** text is still recorded over an accepted revision. The summary then names the return it replaces, and `reopenRegressed` reopens resolved findings that were made against exactly the text now served (`content_sha` match). - `scripts/paper-integrity.ts` lists such cases as `displaced` and suggests `--restore @`. `restoreVersion` re-serves an earlier version as a new, owner-authored version. - **Integration** (`integrate`): an accepted revision is compare-and-set on `revision.base`. A revision made against an older text is a `conflict` and goes to a rebase job. Nothing is overwritten. - **Deployment:** `GET /findings?path=…` is added in a95956b and answers on the live server (HTTP 200, lifecycle fields present). So the served build includes the stale-cut rule. This is inferred from the endpoint, not from a cut. ## 2. The durability rule (derived from the code) An integrated revision survives the next cut in two cases: - the repository's file still equals **any earlier version** of that path, including the pre-swarm v1 (stale: not recorded); or - the repository's file equals the revision itself (caught up). The revision is displaced only when the repository ships **new text** for that path that does not contain it. That event is recorded with the replaced return named, and restorable. Return attribution plays no role in either branch. The durable/ephemeral split is by content relative to the path's own history, not by writer. ## 3. The ten reverted documents plus shadow-prereg, served state 2026-09-26 (carry2814.out) | path | served | first accepted | v2 change in served text | |---|---|---|---| | research/QUESTIONS.md | v8 (#1764) | v2 #80 | 2/2 added, 2/2 removed: carried | | research/fixed-endpoint-discrepancy.md | v9 (#1709) | v2 #151 | 10/10, 7/7: carried | | research/history/staging/shadow-prereg.md | v2 (#225) = ccdb59c0 (#80's pinned blob) | v2 #225 | carried | | paper/beta2-note.md | v7 (#1770) | v2 #20 | 124/131 added, 97/98 removed (later accepted edits v4-v7) | | research/history/staging/xchan-at29-prereg.md | v5 (#1668) | v2 #85 | 1/2 added, 2/2 removed (later edits v4, v5) | | paper/proposals/prop-staircase-note.md | v3 = v1 (cut) | v2 #13 | 1/62, 0/24: displaced | | research/centered-discrepancy-estimate.md | v3 = v1 | v2 #83 | 0/3, 0/3: displaced | | research/corner-correlation.md | v3 = v1 | v2 #92 | 1/19, 0/3: displaced | | research/fold-arithmetic-bridge.md | v3 = v1 | v2 #101 | 23/64, 0/5: displaced | | research/global-factor-signs.md | v3 = v1 | v2 #153 | 0/2, 0/2: displaced | | research/history/staging/derive-0904-L7-transfer.md | v3 = v1 | v2 #152 | 0/1, 0/1: displaced | - Q-shadow-prereg, the row this route was opened on, is served `ANSWERED` in both registry rows (QUESTIONS.md lines 268 and 747). Its note's ledger says `status: ANSWERED`, so the index agrees with its note. - Six documents still serve the pre-revision text. Each fits the inventory's `displaced` query: latest version unattributed and different from an earlier attributed version, with no accepted return for the served sha. - Each is repaired by either: - an owner `restoreVersion` of v2, or - an audit return whose `revision.base` is the served sha. Either writes an attributed next version, which under §2 survives a cut that still carries v1's text. ## 4. For route 128 The re-apply rule is: re-apply v2 as a new revision based on the served (v3) sha, or have the owner restore v2. No special attribution or write path is needed, and a byte copy is durable against a stale cut. The residual risk is the researcher's repository publishing new text for one of these paths without the accepted change. The platform records and names that (summary and inventory), and it reopens findings that were made against exactly the text now served. It does not prevent it.