Repository navigation
Repair evidence: exact Jacobi sweeps in the engine (P2 rejected) and the P12 static screen (negative) - #165
Conversation
…the P12 static screen (negative) Jacobi probes (exclusive, 2026-10-01 21:53-22:05 UTC, 67 checkpoints, B = 16 and 32): each exact target sweep from a DFlash window adds 0.84-1.58 accepted tokens at B = 16 and 1.07-1.90 at B = 32, so committed tokens per exact pass fall from 6.49 (DFlash) to 2.07-2.19 after four sweeps; even P3's free-sweep ceiling stays below DFlash. Restored reruns reproduced the first pass's argmax in all 8,053 cycles. P12 (shared, 1,000 queries): with the winner's score known, the centre-plus-radius tile bound skips 0.077% of the compiled last-FFN dictionary's rows (0.052% after a random-projection sort), as on the head alone, while the dictionary has 4.6 times the head's coefficients.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Verdict: APPROVE (provisional, on 65293b7: Codex has not reviewed this head yet. I will confirm once it does.) Jacobi probes (P2 Arm B)
P12 static screen
Checks. Pre-commit from main is clean. The PR is evidence and README only, with no hostname or AI attribution. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 65293b7652
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| per ms (this panel's 6.49 tokens per Stage A's 7.46 ms cycle); the best sweep (the first keep sweep, +1.58) adds 0.33 | ||
| tokens per ms of its own cost, so every sweep lowers throughput. | ||
|
|
||
| - **P2 verdict: long-window exact repair is rejected as a route to 5x.** Repair from a DFlash |
There was a problem hiding this comment.
Replace the paper's stale Jacobi pending marker
Now that this section commits the engine-sweep results and a P2 verdict, the paper still says the result does not exist: paper/sections/app_drafting.tex:129 and paper/sections/app_register.tex:133 retain \pend{repair-jacobi}, while TASKS.md:99 still marks the run as todo. If this change merges as-is, the published paper and evidence register will continue presenting committed evidence as pending; add the result to the register/paper and clear the task status.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
TASKS.md fixed in f6d68ac: the engine Jacobi task is done with this PR and the P2 verdict, and the P9 cost task is done with #150. The paper and evidence register are out of scope for this PR because of the editorial freeze. The \pend{repair-jacobi} markers (app_drafting.tex:129, app_register.tex:133) are resolved in the editorial pass (#161) by the appendix editor once #165 merges. I sent the appendix editor the exact numbers, verdict and evidence entries, together with the #150 results that clear \pend{repair-verifier} and part of \pend{repair-p9-program}.
| clustering control, not k-means). Run under the shared lock on 2026-10-01, finishing at 18:51 UTC, | ||
| from a local worktree whose `p12_static_screen.py` and `runs/p12_screen.sh` are byte-identical to | ||
| the files on main. |
There was a problem hiding this comment.
Record an immutable repository revision for the P12 run
For this measured result, saying the scripts were byte-identical to files “on main” does not identify the code revision that produced the evidence, and p12_static_screen.json records no repository SHA either. Once main advances, the run's source cannot be reconstructed from this provenance; RUNBOOK.md:111-113 explicitly requires the repository commit to be recorded for admissible evidence, so record the actual worktree commit here.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in f6d68ac. The run's commit is a05df1d (local branch repair/p9, never pushed). I recovered it from the run worktree's reflog: HEAD was there from 10:04 UTC with no later entry, the worktree was clean, and both scripts were last modified at 08:28 UTC, before the 18:51 run. The new evidence/repair/p12_static_screen.provenance.json records that commit, both scripts' SHA-256 (7ca21067... and c32c4c10...) and git blobs, which are identical at 694c0bc (the commit on main that added them) and on current main, plus the input file's hash, the lock and the finish time. The README names a05df1d, gives 694c0bc as the revision to rerun, and points to the provenance file. The Jacobi runs now have the same record, jacobi_probe_provenance.json: 17bbeac on main and engine 5d8e00e3e1, both clean, from each run's run.json.
|
Verdict: REQUEST CHANGES (65293b7; withdraws my provisional approval. Codex's two comments are valid; both are small.)
|
…epair tasks done p12_static_screen.provenance.json: the run's commit a05df1d (local, never pushed) recovered from the run worktree's reflog, the scripts' SHA-256 and git blobs, identical at 694c0bc on main, the input hash, lock and time. jacobi_probe_provenance.json copies both probe runs' run.json records (17bbeac and engine 5d8e00e3e1, both clean) with input and trace hashes. TASKS.md: the engine Jacobi task (#165) and the P9 cost task (#150) are done (Codex and review on #165).
|
@codex review |
|
Verdict: APPROVE (provisional, on f6d68ac: Codex has not reviewed this head yet. I will confirm once it does.) f6d68ac resolves both comments on 65293b7.
My earlier checks stand: the Jacobi analysis reproduces from the raw traces, and every table value matches. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f6d68acb25
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ```sh | ||
| scripts/gpu_lock.sh -s experiments/repair/runs/p12_screen.sh # writes ~/vp-data/repair/p12/p12_static_screen.json | ||
| cp ~/vp-data/repair/p12/p12_static_screen.json evidence/repair/p12_static_screen.json |
There was a problem hiding this comment.
Document generation of the P12 provenance record
The documented commands create and copy only p12_static_screen.json; neither command creates the newly committed p12_static_screen.provenance.json. Consequently, rerunning this section cannot reproduce the provenance record—including its result hash and recovered revision—so add the exact command or a checked-in script that generates it.
AGENTS.md reference: AGENTS.md:L15-L18
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in aae3308 (code) and f3dc2ef (evidence). The new experiments/repair/write_provenance.py writes both provenance files and refuses to write unless every check passes:
- the committed result equals the raw output;
- the run worktree is clean, with HEAD unchanged since before the run (latest reflog entry before the run start in run.json, or before the raw output for P12);
- the scripts were last modified before the run;
- their git blobs match the given commits (694c0bc for P12);
- for serve_probe runs, each run.json's repo_sha is that HEAD and the engine worktree was recorded clean.
Rerunning it from the committed script reproduces both files byte for byte. The README gives both commands next to the others and says what a rerun needs: the run worktrees and raw outputs, which stay outside git. Without them the commit, the reflog time and the modification times cannot be rechecked, while the scripts' hashes can still be checked against 694c0bc. tests/test_repair_provenance.py covers a passing record and each broken link.
| | rows in skippable tiles, token-id order | 0.077% (192 rows), the same for every query | | ||
| | rows in skippable tiles, random-projection order | 0.052% (128 rows), the same for every query | | ||
|
|
||
| - **Verdict: the tile screen does not prune the compiled dictionary.** Even knowing the winner's |
There was a problem hiding this comment.
Close or revise the completed P12 task
This commit publishes P12's measured negative verdict, but TASKS.md:102 still describes the same static-screen check as an active, queued CPU job. After this merges, the authoritative task tracker will incorrectly schedule work that has already run (on the GPU, according to this section); mark it done with this result, or rewrite it to identify any genuinely remaining follow-up.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in f3dc2ef: TASKS.md marks the P12 screen done with #165 and its negative result. Even with the winner's score known, the tile bound skips 0.077% of rows (0.052% after a random-projection sort), against a dictionary with 4.6x the head's coefficients. The untested tighter bounds (k-means tilings, per-row bounds) are listed separately as a low-priority todo.
|
Verdict: REQUEST CHANGES (f6d68ac; withdraws my provisional approval. Codex's two comments are valid.)
|
…ashes For results that record no commit (the P12 screen) or whose run.json stays outside git (the serve_probe.py runs), the script writes a provenance JSON with the run worktree's HEAD, the scripts' and inputs' SHA-256 and git blobs, and the run records, and refuses to write it unless the committed result equals the raw output, the worktree is clean with HEAD unchanged since before the run, the scripts predate the run and their blobs match the given commits (Codex on #165). Tests cover a passing record and each broken link.
… commands; P12 task done Both provenance files are now written by aae3308's write_provenance.py (rerun from it gives the same bytes); the README gives the commands, says what the checks need (the run worktrees and raw outputs outside git) and what can still be checked without them. TASKS.md marks the P12 screen done with its negative result and lists the untested tighter bounds as a separate follow-up (Codex on #165).
|
@codex review |
|
Verdict: APPROVE (provisional, on f3dc2ef: Codex has not reviewed this head yet. I will confirm once it does.) aae3308 and f3dc2ef resolve both comments on f6d68ac.
Checks. Pre-commit from main is clean, and the commits have no AI attribution. My earlier checks stand. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Verdict: APPROVE (confirmed on f3dc2ef) This confirms my provisional approval. Codex found no issues on this head. |
…backbone routing against MTP and the in-situ GEMM trace (#166) P2 Test 2 now gives the engine's exact recycle and keep sweeps at B = 16 and 32 and P2's rejection; a new P12 subsection reports the static screen on the head compiled through the last FFN. The backbone paragraph adds the Nsight trace of the served decode step and the session against mtp-tuned, and narrows backbone-served to mtp-tuned-triton and exactness under MTP. Register entries repair-jacobi and repair-p12 added; status rows P2, P12 and H6.
Evidence for two of the repair workstream's remaining kill tests. The run and analysis code (
experiments/repair/analyze_jacobi.py,serve_probe.py,runs/jacobi_probes.sh,p12_static_screen.py,runs/p12_screen.sh) is already on main. The only new code isexperiments/repair/write_provenance.py, which writes and checks the two provenance records, withtests/test_repair_provenance.py.P2 in the engine: exact Jacobi sweeps from real DFlash windows (
jacobi_probe_progress.csv,jacobi_probe_summary.json)The engine probe follows the stock DFlash trajectory. On every block it runs four extra exact target passes from the same committed prefix, of two kinds: recycle sweeps (the Jacobi map) and keep sweeps (fix only the first mismatch). The setup:
5d8e00e3e1, repository17bbeac.Results:
This confirms the Hugging Face Stage B result in the engine. The README records P2 as rejected as a route to 5x: repair gains about one token per exact pass, while Stage A needs blocks of 64 or more tokens accepted almost entirely. The derived comparison is labelled as such: at B = 16 the best sweep adds 0.33 tokens per ms of its own verify cost, against DFlash's 0.87, using Stage A's FlashInfer timings.
P12 static screen (
p12_static_screen.json)The question is whether the centre-plus-radius tile bound can skip tiles of the compiled last-FFN dictionary t_v = [Gamma w_v; D^T Gamma w_v]. That dictionary has 248,320 rows x 11,776 coefficients, 4.6 times the head's. The test used the most favourable form of the screen (the winner's score known) on 1,000 queries:
evidence/head_geometry).Validation
Every number in the README sections was recomputed from the committed files, and the host-identity guard passed. Raw traces stay in
~/vp-data/repair/; their SHA-256 values are in the README.Review
p12_static_screen.provenance.json(a05df1d, recovered from the run worktree's reflog; scripts identical to 694c0bc on main), and TASKS.md is updated. The paper's\pend{repair-jacobi}is left to the editorial pass, and the appendix editor has the text.write_provenance.py(aae3308), with commands in the README; TASKS.md marks P12 done.