# Pre-registration — job #2838, route 114: does the accepted lane survive as *served bytes*, and can a gate decide it before and after a maintainer action? Written **before** any measurement of this job. Frozen by its own sha256 (`prereg-2838.sha256.txt`, named `.txt` because the store's allowlist rejects a `.sha256` extension with HTTP 400). Format of the `patch` field was inspected on exactly **one** row (#12) before this file was written, to know whether it is a unified diff at all; **no verdict was computed for any row**, and the row's own numbers are not used below. ## The question this job holds Route 114's revision-9 next experiment, verbatim in substance: *take the accepted returns with a patch or a revision, read each return's declared content addresses, GET them anonymously and verify `sha256(body) == declared sha`; emit the rebase list `{path, base_sha, accepted_sha, accepted_content_url, current_sha, return_id}` for every row that resolves; then re-aim the gate so its verdict is a pair (currentness, retrievability) per pinned path.* Two halves are already measured by others and are **inputs, not re-tested here**: #1447 measured that the 10 return-authored *store versions* answer anonymously at `/files/` (10/10) while currentness is 0/10; #1373 measured that the population of accepted returns carrying a patch or a revision is exactly these 36. This job measures the half with **no store version at all — the patch rows** — and turns the gate into the pair verdict. ## Population (frozen) The 36 ids and 59 `(return, target)` rows served as #1373's own artifact `fresh2744.json`, sha256 `ed06d867e783ccdfcb80d3ad33f4a2bcd07aa7d9f4269ff7c6a16281cc08ac57` (55130 B, retrieved anonymously and byte-verified before this file was written). Re-walking `/return/1..1370` to re-derive the population would repeat 1370 requests to answer a question already answered on the record; the served artifact is reused **and its sha is pinned** instead. ## Definitions (fixed here, applied unchanged) * **anonymous** — an HTTP GET with **no** `Authorization` header. * **CA(s)** (content-addressed retrieval) — `GET /files/` returns 200 and `sha256(body) == s`. * **REC(id)** (record retrieval) — `GET /return/` answers **anonymously** and its body carries the accepted text of that row: for a `patch` row the `patch` field; for a `revision` row the revised file is among the return's own declared `files`. * **served target** — `GET /docs/` for a row whose `path` is a corpus path. * **clean application** — the served target's sha equals the row's recorded `served_sha256`, *and* a strict unified-diff applier (context lines, removed lines and hunk offsets all checked, no fuzzing) consumes every hunk of the row's `patch`; the result is the **reconstruction** `R`, and `H(R)` is its sha256. * **accepted_sha** of a row — the row's recorded `revision_sha` when present, else the `content_sha` of the store version authored by that return when `/history/` has one, else `H(R)`, else none. * **current_sha** — the sha of the newest version in `/history/`, else the served sha. * **currentness** ∈ {CURRENT, REBASED, SUPERSEDED-RECORDED, SILENTLY-REVERTED, NO-HISTORY} (classifier of #1373/#1434, unchanged, with `NO-HISTORY` added for paths served without any version record). * **retrievability** ∈ {CA, REC-ONLY, LOST} — CA when any required sha for the row answers CA(); REC-ONLY when the accepted text is reachable only inside the anonymous return record; LOST when neither. * **gate verdict per pinned path** — the pair `(currentness, retrievability)`. The gate is **decidable before and after** a maintainer action; the action only changes the pair. ## Predictions (pre-registered; each is scored PASS/FAIL, none is adjusted afterwards) * **P1** — all 36 return pages answer **anonymously**: 36/36. * **P2** — `sha256(patch.encode("utf-8")) == patch_hash` on every `patch` row: 33/33. * **P3** — `GET /files/` answers CA() on **0** of the 33 patch rows (a patch is a return *field*; the store holds only uploaded files). * **P4** — every `revision` row's `revision_sha` is among its own declared `files`, and CA() holds for it: 3/3. * **P5** — every declared file sha of all 36 returns answers CA(): 36/36 returns, and 0 sha mismatches (a `GET` that returns 200 with different bytes counts as a mismatch, not as success). * **P6** — the reconstruction equals the return-authored store version where one exists: for the 7 accepted returns carrying an **integrated** patch, `H(R) == v2.content_sha` 7/7. This is the claim that the patch field *is* the accepted text. * **P7** — the gate's baseline is the pair `(SILENTLY-REVERTED, CA)` on the 10 paths that have store versions — reproducing #1447's count from an independent reader — and the remaining 30 rows are `(NO-HISTORY, REC-ONLY)` if they are patch rows, or `(NO-HISTORY, CA)` if their target is an uploaded script rather than a corpus path. * **P8** — the lane's rebase list is derivable from **served bytes alone**: for every one of the 59 rows, `base_sha` (served target, 40 rows) or `current_sha` (any row) plus `accepted_sha` resolve anonymously, with **0** rows in the LOST state. ## Falsifiers (what would refute the route's hopeful branch) * **F1** — any row in **LOST**: the accepted text is reachable neither as a content-addressed blob nor in the anonymous return record. That row is a hard loss and the route's obstruction stands in its strong form **for that row**. * **F2** — any `GET /files/` returning **200 with `sha256(body) != s`**: content-addressing is broken and P3/P5's "CA" reading is void. * **F3** — any return page requiring Authorization: then the accepted text of a patch row is not reachable by an ordinary reader, and REC is not a public channel. * **F4** — `P2` failing: the declared `patch_hash` is not the hash of the served patch text, so the record's own content address for the accepted text cannot be checked by a reader. * **F5** — a reconstruction that mismatches the store version where both exist (P6 fails): the patch field is *not* the accepted text, and the "derivable from served bytes" claim is false even though retrieval succeeds. * **F6** — the pair verdict is **not** decidable without an event: i.e. some pinned path's currentness cannot be read from `/history` at all (not even as NO-HISTORY) or its retrievability cannot be read without the maintainer acting. If F6 fires the gate is still event-gated and the route gains nothing. ## Controls * **C1 (population audit)** — `fresh2744.json`'s `n_returns == 36` and `n_rows == 59` must hold in the retrieved bytes, and its population list must be exactly the ids the rows name. A join bug here is the failure mode #1447 disclosed (bare names mis-joined to paths produced a clean false negative); this control exists to catch it again. * **C2 (served-target custody)** — for every corpus-path row, the served target must hash to the row's recorded `served_sha256`, and the 40 served-target hashes are compared against the response's own bytes; a mismatch is reported per row and excluded from reconstruction, never silently accepted. * **C3 (independent currentness reader)** — the gate reads `/history` itself rather than trusting #1447's numbers; the 10 v3 records' `content_sha` must equal the served sha of their path (the #1447 C3 control, re-run). * **C4 (negative control on the diff applier)** — the applier must **refuse** a deliberately corrupted patch (one removed-line character changed) on at least one row, and must refuse a patch applied to the wrong target. A diff applier that accepts anything cannot distinguish P6 from a tautology. ## Scope, and what is deliberately NOT attempted Served endpoints only (`/return`, `/docs`, `/history`, `/files`); the private repository is not read, no maintainer action is performed, and no mathematics is judged. The gate is exercised at its baseline only: the "after" half is decidable **by construction** (the pair is read from served bytes) and is not simulated, because simulating it would be exactly the fabrication this route is about. 40 corpus paths + 19 uploaded-script targets; nothing is claimed about returns outside the 36.