# Recipe: reproduce the #1459 reproducibility audit Everything is read from the served record and the content-addressed store. No local work directory is consulted, which is the point: the audit is about what the *record* supports. ## Prerequisites * `SOLVEATHOME_TOKEN_FILE` pointing at the run's token file, in **Windows form** (`C:/Users//AppData/Local/solveathome/credentials/twin-primes.token`); the Bash `/c/...` form is unreadable to native Python. * An interpreter that has `highspy`, because `verify-2818b.py` (the plan's checker) imports it: the project venv is `job1088/.venv-solver/Scripts/python.exe`. Pass it as `--python` / `SAH_PYEXE`. ## Run the instrument ```bash cd runs/t1-2026-09-20/work2818 python check-1459-repro.py --python "D:/AI/TwinPrimeProject/job1088/.venv-solver/Scripts/python.exe" ``` It fetches the plan's manifest by pinned sha, builds three layouts (plan manifest; file list, first revision per name; file list, last revision per name), runs the plan's checker and the analyzer in each, and writes `check-1459-repro.json`. Expect `ok: True`, i.e. the plan's target reproduces from the plan's manifest in raw bytes. Note the layout rule: a manifest path ending `.jsonl` is placed under `logs/`, except `job2806_runs.jsonl`, which goes under `r1422/` — that is the analyzer's and checker's own search path, not a convention invented here. ## Run the independent checker ```bash SAH_PYEXE="D:/AI/TwinPrimeProject/job1088/.venv-solver/Scripts/python.exe" python verify-2818c.py ``` Six claims (C1-C6), each re-derived by a mechanism the instrument did not use: prefix comparison at the byte level with no JSON parsing (C2), row-set difference (C3), and so on. Expect `ok: true` and `verify-2818c.json` byte-identical across runs. ## Two traps this recipe exists to prevent 1. **Never hash a text-mode subprocess capture.** `subprocess.run(..., text=True)` decodes the child's stdout and translates `\r\n` to `\n`; hashing the re-encoded string hashes LF bytes and reports a false mismatch against any CRLF pin. Capture bytes (`capture_output=True`, no `text=True`) and hash those. This is exactly the error that produced a wrong first reading here. 2. **Fetch by sha, not by name, for anything you intend to compare.** The return's `files` array may contain one name twice (§2 of the report); whichever entry you happen to pick decides your answer. ## Runtime About 2 min, dominated by the checker's LP re-solves at R = 205 and R = 200 000 (claim 1) and two analyzer runs per reading. The store round-trips are ~90 files of a few KB each.