# Recipe — route 31 rev 5: L\*, the D/X split, and the within-class drift (job #1446) Environment: CPython 3.14.6, numpy 2.4.4, one core, peak working set ≤ 605 MB against a 2 GB hint. Everything runs from the run directory `.solveathome/twin-primes/runs/lc-63a9a60e07335b40`, in `work/job1446/`. Wall time for the whole set: **about 110 s**. Inputs, pinned by content and not by path: the instrument `src/job1438-cls-resid-offset.py` (sha256 `3907b1518b8bc0133b09f1cd2f28a39f3fff62fc5ded2d522c4016b67cbffce4`, = #654's file) and the accepted producer `src/fibre-sign-lag.py` (sha256 `a74825d84e5421eb330d6b54f93029a0aebdc2fd5120fce02ab5d6d857545b56`). **The producer sha is read from the instrument's own `PRODUCER_SHA` constant at run time and compared to the file's hash — do not retype it; a hand-transcribed pin with one stray character already cost a detour on this run.** A wrong producer or instrument makes every driver refuse before measuring. ## 0. Gates first (about 1 s each) — none of these is optional python lstar.py --producer src/fibre-sign-lag.py --xs 16384 --draws 100 --out out/lstar-smoke.json python exch.py --producer src/fibre-sign-lag.py --selftest python detrend.py --producer src/fibre-sign-lag.py --selftest `lstar.py --xs 16384 --draws 100` must reproduce the 32 published `L`-cells of `ref/full-key-ext.json` **to 1e-12** (the `z` values will differ from the published ones: 100 draws against 2000, so the null sd is estimated coarsely — that is expected and is not a failure). `exch.py --selftest` must print `ok: true` (split identity exact, R matching the instrument, the class-sign null preserving every class sum, `W ≈ 0.99` for iid and `> 3` for a planted trend). `detrend.py --selftest` must print `ok: true` (iid must not gain a rise, a planted drift must go `R = 217 → 0.99`). ## 1. The three measurement passes (about 90 s total) python lstar.py --producer src/fibre-sign-lag.py --xs 16384,65536,262144 --draws 2000 --out out/lstar.json python exch.py --producer src/fibre-sign-lag.py --xs 16384,65536,262144 --draws 2000 --out out/exch.json python detrend.py --producer src/fibre-sign-lag.py --xs 16384,65536,262144 --draws 2000 --out out/detrend.json python verdict.py --in-dir out --out out/verdict.json Expected headlines: `lstar` — `L*=[128,160]`, `[128,160]`, `[48,56]`; `detrend` — trend shares `0.6776 / 0.8019 / 0.8331` and `R512:1 = 1.820/2.086/6.821 → 1.410/0.971/0.908`. `verdict.py` computes the route's answer table **from the three artifacts** rather than retyping any number, so the report cannot drift from the measurements. ## 2. The shared guard, on its own fixtures and then on the real field python "$LOCALAPPDATA/solveathome/tools/guard/v1/driftguard.py" selftest python guardreal.py --producer src/fibre-sign-lag.py --xs 16384,65536,262144 \ --guard "$LOCALAPPDATA/solveathome/tools/guard/v1/driftguard.py" --out-dir out Expected: `selftest` **5/5, exit 0**; then `NOT_REJECTED` at 2^14 and `REJECT` at 2^16 and 2^18, with the guard's `R_L` agreeing with the instrument on 57/57 shared cells. `guardreal.py` deletes its own `.npz` payload after each check (2 MB of derived floats, reproducible in one command); the reports are the artifacts. ## 3. Framework checks (about 30 s) python framework_checks.py # scrubber, limits, allocation, outstanding, tool versions python "$LOCALAPPDATA/solveathome/tools/v1/sahtool.py" limits-run --timeout 3 -- python -c "import time; time.sleep(60)" Expected: the scrubber refuses a malformed record and redacts a nested secret after decoding; the limits run reports `timed_out: true`, `killed_tree: true`, `residual: []`. ## Byte-stability note Every JSON artifact is written with `newline="\n"` and `sort_keys=True`, so a POSIX rerun reproduces its bytes; the sha of each is in `hashes.json` and in the return. The two `--selftest` outputs are deterministic (seeded RNGs). `lstar.json`/`exch.json`/`detrend.json` carry a `runtime_s` field, which is the one value a rerun does not reproduce — compare content, not that field, and note that the shas therefore hold for the *served* bytes only.