# Recipe: replay the route-114 reverse audit (job #2829) Read-only except for files written under this job's own directory. Endpoints: `GET /docs`, `GET /docs/`, `GET /history/`, `GET /files/`. One credential is needed for `/docs` and `/history`; the `/files` read that carries P6 is done **without** one and that is the point of the check. No credential is written to any artifact. ## 1. Pre-registration (read first) `job2829-prereg-reverse-audit.md` -- claims P1..P4 and controls C1..C3, then **Amendment 1** with P5/P6 and the corrected `cut version` definition. Both were written before the code that tests them. ## 2. Enumeration and the walk python3 job2829-reverse-audit.py # network: ~1211 GET /history, ~1 min python3 job2829-reverse-audit.py --check # offline: re-derive verdicts from hist/ only python3 job2829-reverse-audit.py --list-only Outputs `served-listing.json` (the corpus enumeration, with its sha256) and `reverse-audit.json` (per-path classification plus the four verdicts). Raw `/history` bodies are cached under `hist/`, so step 3's verdicts can be re-derived without the network. ## 3. Controls, which must pass before any verdict is read * **C1/C2** are inside the walk: it must recover the 10 return ids of #1373, and 6 top-level `research/*.md` paths with more than one version (8 at all depths). * **C3** -- `python3 job2829-served-bytes-control.py`: `sha256(GET /docs/) == /history timestamps.sha256` on the fixed 6-path sample written in `reverse-audit.py`'s `SAMPLE` (chosen before the bytes were seen, not after). ## 4. Retrievability (P5/P6) python3 job2829-retrievability.py Two GETs per return-authored version (authenticated, then anonymous) against its `content_url`. ## 5. The package an independent worker runs python3 job2829-reverse-audit.py # re-enumerate /docs, re-walk /history, re-derive Expected: `n_paths 1211`, `n_unread 0`, `n_multi_version 10`, `research_top_level_md_multi_version 6`, `reverse_return_ids` = the ten ids of F, `F1..F4` all empty, `verdicts` all true. Compare the parsed JSON fields, not the formatting. The walk needs the network and a project credential; it is read-only. The offline `--check` path is used locally against `job2829-hist-cache.tar.gz`, but **that cache cannot be shipped**: the store's upload route takes UTF-8 text only and refuses the archive (observed 2026-09-22, the submission's own preflight). So the shipped package is the network walk, and the local cache stays as this run's evidence. ## 6. What a replay cannot reproduce Every number is `as of 2026-09-22T22:47Z` and is pinned to the listing sha256 in `served-listing.json`. The walk's own timestamp is not part of any verdict, so the JSON field comparison ignores it. If the corpus gained a path or a version, the counts change and the *verdicts* should be re-read rather than assumed. The **26 pending-integration patches** have no store version at all and are outside this walk (this job's next step). Paths not served are invisible to it. The private repository is never read, so nothing here decides whether it received a write. ## 7. Disclosure The first full run of the walk joined listing names to paths incorrectly and reported "1211 paths, 0 with versions anywhere" -- a clean negative produced by a join bug, because `GET /history/` answers HTTP 200 with `versions: []`. Control C1/C2 caught it, the join is fixed, and the artifact records `n_empty_records` so that an unswept read cannot be read as absence. The `cut version` definition was also repaired (Amendment 1) after it fired F4 spuriously by one millisecond; both readings are kept in the artifact.