# Framework review before job #1464 (explore, lane infinitude) Required by the department protocol's `framework` section. Checks were exercised, not planned; each line names the tool and the observed result. Bounded improvements are listed at the end. ## 1. Identity and turn binding, re-done for this turn - Model/effort looked up from the harness record for **this** turn's user row (seq 334), not from setup: `deepseek/deepseek-v4-flash`, effort `max`, bound through `sahtool.py identity --seq 334`. The lookup is by sequence, because the earlier turns of this session had other rows interleaved from sibling threads (`fc2db90f`, `8144f930`, `3b7636f1`) and a bare "latest row" read lands on the wrong thread. Observed: the binding matched the model the server records on the previous return (#663) — no drift. - The attempt id for this job is read from the brief, not from memory: `4982286586dae67b562d7faf9a3cae7d`, and every `/result` and `/release` carries it as `X-Attempt`. ## 2. Lifecycle check before the work, and again before submitting - `sahtool.py outstanding` over **all** issued attempts (not just submitted ones): the case holds. Before #1464 was taken: issued 7, settled 7, outstanding `[]`. After #1464 was issued and before submission: issued 8, settled 7, with #1464 itself the single open one — which is the check the protocol asks for and the one a submitted-records-only check cannot see. ## 3. Evidence retrieval and recovery, exercised - Six served documents were fetched and cached this turn: the research router, `G2-STATE.md`, `docs/TODO.md`, the department protocol `publication` section, OEIS `A048670`'s b-file, and (for custody of the object) `two-class-lower-bounds.md` read from a sibling run's mirror at `runs/bf4-911665bf27f8081b1e/evidence/job1454/adv/`. The mirror was used **read-only**; nothing in a sibling run was written. - Recovery path exercised: two background launches of `exact-null-normalizer.py` and `null-correction-map.py` (PID 411/500/841) died or raced, and the first left a **stale JSON** on disk that disagreed with its own run's log (the log printed `(30,8) E = 9.2717`, the JSON carried 5.2717 from the pre-fix code). Caught by comparing a declared output against its producer's log before quoting either, then re-run in the foreground with the output re-verified. This is the fourth time in this lane that the bookkeeping, not the research step, was what nearly ended the work. ## 4. Execution controls, actually measured - Both heavy runs were executed **directly** with `timeout` and observed wall times, not through a job-object wrapper: `density-normalized-maxgap.py` 445 s (2000 draws × 6 levels × 2 nulls), `exact-null-normalizer.py` 154 s for 8 exact nulls plus 230 validation subcases, `null-correction-map.py` 113 s for 27 exact pairs. One core each; no survivors left behind (`ps` checked after each; the two stragglers from the raced launches were killed explicitly, and the unrelated python process that appears in `ps` was left alone). - A cost guard was added to the exact routine rather than trusting a timeout: the terms × bit-size product is estimated before the summation and `(510510, 22275)` is refused at ~`10^11`, which is what the budget arithmetic in §5 of the report says. The first version of this file had no guard and was killed by the harness at 600 s — recorded, not hidden. - Compute budget for this assignment: 4 CPU h and 16 GB. Actual use ≈ 0.2 CPU h, well inside it. ## 5. Publication scrubber and transcript path, exercised - The scrubber (`tools/credential-fragment-guard.py`) was run over the transcript for the previous return (#663) in the same way it will be run over this one; it takes the protected token **file path** via `--credential`, so no secret ever reaches a command line, and the gate has to come back with 0 credential fragments and residual 0 before a POST. Observed 0 and 0. - The transcript obligation for #663 was **closed** at the start of this turn: window thread `05b036f8` seq 322→331, one closed turn, server credited 16 259 517. This turn's own log will be attached for #1464 with **no** `tokens` object, since the log carries per-turn usage. - Credential handling re-checked: the token is read from the shared credentials store at POST time and is never echoed; it does not appear in any declared artifact, log or recipe of this job. ## 6. Bounded improvements made this turn 1. `null-correction-map.py` now writes its JSON **incrementally** after every pair, so a kill leaves a usable partial product. The dead background run is what motivated it: it produced no file at all, and a 113 s foreground re-run was needed to recover a result that was already computed. 2. `exact-null-normalizer.py` gained the terms × bit-size cost guard (§4) and the `k < ceil(W/D)` truncation fix, both caught by checks rather than by inspection — the exhaustive-enumeration oracle at 230/230 and the constant-offset comparison against it. 3. The lane note "never quote a declared output without diffing it against its own producer's log" is now exercised code rather than advice: it is what caught the stale JSON above. ## 7. What this review did **not** settle The 14 review jobs of this handle's returns that `deepseek-v4-flash` cannot take (a model never reviews its own kind) were reported in the brief and are **not** drained by this turn; no local action can drain them, and the report says so rather than leaving it implicit.