Skip to content

Appendix F: add P9, the cached-window reuse oracle (#97) - #108

Merged
SamMausberg merged 8 commits into
mainfrom
paper/appendix-p9
Oct 1, 2026
Merged

SamMausberg merged 8 commits into
mainfrom
paper/appendix-p9

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Adds Sam's P9 to Appendix F, the status table and the register, from the support oracle merged in #97. It is separate from #107. The main text is unchanged.

What the appendix now says

  • New F.7, "Reusing a cached window after a rejection (P9)". It states the proposal and its pre-registered two-cycle rule, Δ = E[G2^R − G2^F] − r_F E[A + T2^R − T2^F]. Reuse is rejected at the tested configuration if the upper end of Δ's 95% interval is ≤ 0.
  • Support oracle at c = 1 (p9_support_oracle.json; new entry repair-p9). It covers 18,274 post-rejection boundaries of the drafter's block-16 trace (21,067 cycles, 80 requests). Every number below is from the JSON:
    • Top-16: corrected prefix supported at 88.8%; oracle 5.08 against fresh 5.55 second-cycle tokens; Δ = +0.99 (0.89 to 1.07).
    • Top-8: Δ = +0.22 (0.12 to 0.32).
    • Top-1, top-2 and top-4: rejected.
    • The unchanged cached control: Δ = −1.93, rejected.
  • Stated as an oracle upper bound, not a served speed-up. The candidate sets are an offline recomputation (97.4% top-1 match with the engine). The costs are one run's c = 1 phases. A real program must select the token, and its compile, conditioning and retention costs (A) are taken as zero here.
  • Pending (repair-p9-program). The cost-charged two-cycle test with a real conditioned program and a matched autoregressive refiner over the same cached information, and the c = 8 and 16 draft shares.
  • Status table. A P9 row says the oracle bound does not reject reuse with top-8 and top-16 sets at c = 1, gives the Δ values as an upper bound, notes that top-1, top-2 and top-4 are rejected (only K = 1, 2, 4, 8 and 16 were tested), and lists the real program as pending.
  • Appendix F introduction. It now lists P9 and the recurrent-state proposals of F.8.

The CI is the JSON's (0.89 to 1.07; lower bound 0.8946), not the wider interval in an earlier note.

Validation

  • latexmk -pdf builds 76 pages with no warnings. The main text ends on page 10. The rebuilt paper.pdf is committed, and I looked at the changed pages.
  • python scripts/check_paper_references.py passes; p9_support_oracle.py exists on origin/main.

New subsection F.7 with P9's pre-registered two-cycle rule. It reports
the support oracle at c = 1 from p9_support_oracle.json:
- top-16: Delta +0.99 (0.90 to 1.07), 88.8% supported, 5.08 against
  5.55 second-cycle tokens;
- top-8: Delta +0.22 (0.12 to 0.32);
- top-1, top-2 and top-4 rejected;
- the unchanged cached control: -1.93, rejected.

The result is stated as an oracle upper bound, not a served speed-up:
the candidate sets are offline, the costs are from one c = 1 run, and
selection, compile, conditioning and retention are unpriced. The real
program, the matched refiner and the c = 8/16 draft shares stay pending
(new item repair-p9-program). Also adds a P9 status row, a repair-p9
register entry, and the Appendix F introduction now lists P9 and F.8.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T11:41:50.878786Z b43bcdc Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

- 5.55 is fresh drafting's second-cycle commit on the boundaries where
  reuse is possible, so the comparison now says "on those boundaries".
- The claim that old choices fail to select the token is now tied to
  its evidence, the cached control.
- Draft-cache catch-up is added to both lists of unpriced costs.
- The bound is now stated as over the same candidate sets.
- Reuse also needs some of the old window to remain.
- Block 16 is justified as the fastest DFlash block at c = 1 on the
  serving workload (Table 22).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8d25993d6b

ℹ️ 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".

Comment thread paper/sections/app_drafting.tex Outdated
\end{equation}
with $G$ the tokens a cycle commits, $T$ its time, R and F reuse and fresh drafting in the second cycle and $A$ the extra cost reuse adds to the first, and rejects the reuse at the tested configuration if the upper end of $\Delta$'s 95\% interval is at most 0.

Its first test is a support oracle at concurrency 1~\ev{repair-p9}. On the drafter's block-16 trace (21,067 cycles of 80 requests) there are 18,274 boundaries after a rejection. Reuse is possible when the drafter's top-$K$ candidate sets contain the corrected prefix, which is known at decision time; the oracle then proposes the true token wherever the old candidate set contains it, charges a reused cycle the measured fresh cycle less its 2.33~ms draft phase, and takes $A$ and the cost of conditioning as zero, so it bounds every real program from above. With the top-16 sets the corrected prefix is supported at 88.8\% of the boundaries, the oracle commits 5.08 tokens in the second cycle against 5.55 for fresh drafting, and $\Delta=+0.99$ tokens per boundary (95\% interval 0.90 to 1.07). With the top-8 sets $\Delta=+0.22$ (0.12 to 0.32), and with the top-1, top-2 and top-4 sets the rule rejects reuse. Keeping the old draft's tail without conditioning, the unchanged cached control, gives $\Delta=-1.93$ and is rejected. At concurrency 1 the oracle bound therefore does not reject reuse with top-8 and top-16 sets. It is an upper bound, not a served speed-up: the candidate sets are an offline recomputation whose top-1 token matches the engine's draft at 97.4\% of positions, the costs are one run's phases at concurrency 1, and a real program must select the token, which the old top-1 choices fail to do, while its compile, conditioning and retention costs come out of the same margin. A conditioned program and a matched autoregressive refiner over the same cached information, each against Equation~\eqref{eq:p9} with real progress and all costs charged, and the draft shares at concurrency 8 and 16 are \pend{repair-p9-program}.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Scope the oracle to the candidate sets it measures

The claim that this oracle “bounds every real program from above” does not follow when the evaluated candidate sets are an offline recomputation whose top-1 token disagrees with the engine at 2.6% of positions. An omniscient selector over those surrogate sets need not dominate a real program over the engine's cached sets: the engine set can contain a continuation omitted by the recomputed set, so the stated top-1 through top-4 rejection may not apply to the actual P9 implementation. Capture the engine's exact candidate sets or restrict the bound and rejection claims explicitly to the offline recomputation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 665be69 and d320472. The bound now reads "bounds from above every real program over the same candidate sets". A new sentence says the verdicts, the rejections included, hold for the recomputed candidate sets: the engine's own sets, whose top-1 differs at 2.6% of positions, were not captured, and a program over them is not covered. The status row is scoped to the offline-recomputed sets.

Address the Codex P2 on #108. The oracle's bound and its rejections hold
for the offline-recomputed candidate sets. The engine's own sets, whose
top-1 differs at 2.6% of positions, were not captured, and a program over
them is not covered. The status row says the same.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d320472130

ℹ️ 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".

Comment thread paper/sections/app_drafting.tex Outdated
\end{equation}
with $G$ the tokens a cycle commits, $T$ its time, R and F reuse and fresh drafting in the second cycle and $A$ the extra cost reuse adds to the first, and rejects the reuse at the tested configuration if the upper end of $\Delta$'s 95\% interval is at most 0.

Its first test is a support oracle at concurrency 1~\ev{repair-p9}. On the drafter's block-16 trace (21,067 cycles of 80 requests), block 16 being the fastest DFlash block at concurrency 1 on the serving workload (Table~\ref{tab:tuning}), there are 18,274 boundaries after a rejection. Reuse is possible when the drafter's top-$K$ candidate sets contain the corrected prefix and some of the old window remains, which is known at decision time; the oracle then proposes the true token wherever the old candidate set contains it, charges a reused cycle the measured fresh cycle less its 2.33~ms draft phase, and takes $A$, the cost of conditioning and the draft-cache catch-up as zero, so it bounds from above every real program over the same candidate sets. With the top-16 sets the corrected prefix is supported at 88.8\% of the boundaries, the oracle commits 5.08 tokens in the second cycle against 5.55 for fresh drafting on those boundaries, and $\Delta=+0.99$ tokens per boundary (95\% interval 0.90 to 1.07). With the top-8 sets $\Delta=+0.22$ (0.12 to 0.32), and with the top-1, top-2 and top-4 sets the rule rejects reuse. Keeping the old draft's tail without conditioning, the unchanged cached control, gives $\Delta=-1.93$ and is rejected. These verdicts, the rejections included, hold for the recomputed candidate sets: the engine's own sets, whose top-1 token differs from the recomputation's at 2.6\% of positions, were not captured, and a program over them is not covered. At concurrency 1 the oracle bound therefore does not reject reuse with top-8 and top-16 sets. It is an upper bound, not a served speed-up: the candidate sets are an offline recomputation whose top-1 token matches the engine's draft at 97.4\% of positions, the costs are one run's phases at concurrency 1, and a real program must select the token, which the old draft's own choices fail to do (the cached control), while its compile, conditioning, retention and draft-cache catch-up costs come out of the same margin. A conditioned program and a matched autoregressive refiner over the same cached information, each against Equation~\eqref{eq:p9} with real progress and all costs charged, and the draft shares at concurrency 8 and 16 are \pend{repair-p9-program}.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Price verification for the remaining reuse window

When reuse is possible, the second proposal contains only the m = 15 - J positions remaining after the correction, but experiments/repair/p9_support_oracle.py::components charges every reused attempt a full block-16 cycle minus only the draft phase. Because a real program can verify this shorter remainder rather than a padded 15-token block, its T_2^R can be lower than the oracle assumes; therefore this calculation is not an upper bound on every program, and the negative intervals do not justify rejecting top-1 through top-4. Use a lower bound for the variable-width verification cost, or explicitly scope those rejections to a fixed-width padded implementation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 75b5480 by scoping, since the oracle prices only a fixed-width verify. The paragraph now says the oracle charges "a full block-16 verify padded beyond the remaining positions" and so "bounds from above every real program over the same candidate sets that verifies a padded block-16". It adds that the verdicts, the rejections included, hold for the recomputed candidate sets and a padded block-16 verify, and that a program verifying only the remaining positions at a smaller width, whose second cycle could cost less, is not covered. The status row is scoped to "offline-recomputed candidate sets and a padded block-16 verify".

Address the Codex P1 on #108 (d320472). The oracle charges a reused
attempt a full block-16 verify cycle less the draft phase. The upper
bound and the top-1 to top-4 rejections therefore hold only for a
padded block-16 verify. A program that verifies only the remaining
m = 15 - J positions at a smaller width is not covered, since its second
cycle could cost less. The status row says the same.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES (one rounding fix)

Reviewed 75b5480 (8d25993, 665be69, d320472, 75b5480) against evidence/repair/p9_support_oracle.json on main.

What checks out:

  • The numbers match the JSON: 21,067 cycles, 18,274 boundaries, 2.33 ms draft phase. Top-16: 88.8% supported, 5.08 against 5.55 on those boundaries, Δ +0.99. Top-8: Δ +0.22 (0.12 to 0.32). Top-1, 2 and 4 are rejected, and the cached control gives −1.93.
  • The rule and the scope are stated correctly. Eq. 15 is P9's rule. The bound is framed as an upper bound, not a speed-up, and is scoped to the offline-recomputed sets (2.6% top-1 difference) and a padded block-16 verify. That answers Codex's P2 on 8d25993 and P1 on d320472.
  • "Block 16 is the fastest DFlash block at c = 1" matches Table 22 (Block 16, Triton: 851).
  • Build. I rebuilt from source: 76 pages, no warnings, and the text matches the committed PDF. The main text ends on page 10, and the checker passes.

Blocking: one interval bound is misrounded. The top-16 interval is given as "0.90 to 1.07". The JSON has delta_oracle_ci95 = [0.8946, 1.0732], which rounds to 0.89 to 1.07. The same error is in evidence/repair/README.md:211 on main ("+0.99 (+0.90, +1.07)"), and I missed it when I approved #97. Please fix the paper here; I'm asking the repair workstream to fix the README in a one-line PR.

Codex is still running on 75b5480.

The JSON's lower bound is 0.8946, which rounds to 0.89 (the 0.90 came
from a relayed message).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75b5480bc2

ℹ️ 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".

Comment thread paper/sections/app_drafting.tex Outdated
\end{equation}
with $G$ the tokens a cycle commits, $T$ its time, R and F reuse and fresh drafting in the second cycle and $A$ the extra cost reuse adds to the first, and rejects the reuse at the tested configuration if the upper end of $\Delta$'s 95\% interval is at most 0.

Its first test is a support oracle at concurrency 1~\ev{repair-p9}. On the drafter's block-16 trace (21,067 cycles of 80 requests), block 16 being the fastest DFlash block at concurrency 1 on the serving workload (Table~\ref{tab:tuning}), there are 18,274 boundaries after a rejection. Reuse is possible when the drafter's top-$K$ candidate sets contain the corrected prefix and some of the old window remains, which is known at decision time; the oracle then proposes the true token wherever the old candidate set contains it, charges a reused cycle the measured fresh cycle less its 2.33~ms draft phase, that is a full block-16 verify padded beyond the remaining positions, and takes $A$, the cost of conditioning and the draft-cache catch-up as zero, so it bounds from above every real program over the same candidate sets that verifies a padded block-16. With the top-16 sets the corrected prefix is supported at 88.8\% of the boundaries, the oracle commits 5.08 tokens in the second cycle against 5.55 for fresh drafting on those boundaries, and $\Delta=+0.99$ tokens per boundary (95\% interval 0.90 to 1.07). With the top-8 sets $\Delta=+0.22$ (0.12 to 0.32), and with the top-1, top-2 and top-4 sets the rule rejects reuse. Keeping the old draft's tail without conditioning, the unchanged cached control, gives $\Delta=-1.93$ and is rejected. These verdicts, the rejections included, hold for the recomputed candidate sets and for a padded block-16 verify: the engine's own sets, whose top-1 token differs from the recomputation's at 2.6\% of positions, were not captured, and a program over them is not covered; nor is a program that verifies only the remaining positions at a smaller width, whose second cycle could cost less than the oracle charges. At concurrency 1 the oracle bound therefore does not reject reuse with top-8 and top-16 sets. It is an upper bound, not a served speed-up: the candidate sets are an offline recomputation whose top-1 token matches the engine's draft at 97.4\% of positions, the costs are one run's phases at concurrency 1, and a real program must select the token, which the old draft's own choices fail to do (the cached control), while its compile, conditioning, retention and draft-cache catch-up costs come out of the same margin. A conditioned program and a matched autoregressive refiner over the same cached information, each against Equation~\eqref{eq:p9} with real progress and all costs charged, and the draft shares at concurrency 8 and 16 are \pend{repair-p9-program}.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Include fallback gating in the oracle bound

The top-1 through top-4 rejections do not follow for the stated class of “every real program”: p9_support_oracle.py forces reuse at every boundary satisfying U_K >= J && m >= 1, so unfavorable reuse attempts drag the reported Δ below zero. A real program can inspect the known correction and cached candidate-set features and choose fresh drafting on some supported boundaries, but that gating option is absent from the oracle. To make this an upper bound, let the omniscient oracle choose between reuse and fresh per boundary (or explicitly restrict the verdict to an always-reuse policy); otherwise the negative intervals cannot reject gated implementations.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 612fab8 by scoping. The bound now covers "every real program over the same candidate sets that verifies a padded block-16 and reuses at every boundary where reuse is possible". The verdicts, the rejections included, are stated to hold for the recomputed candidate sets, a padded block-16 verify and an always-reuse policy. A program that chooses between reuse and fresh drafting at each boundary is stated as not covered. The status row says the same. A gated (per-boundary-max) bound will be added only once it is on main.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

Address the Codex P1 on #108 (75b5480). The oracle reuses at every
boundary where reuse is possible, so its bound and its top-1 to top-4
rejections hold for that always-reuse policy, on the recomputed sets
with a padded block-16 verify. A program that chooses between reuse and
fresh drafting at each boundary is not covered. The status row says the
same.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 612fab8557

ℹ️ 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".

Comment thread paper/sections/app_drafting.tex Outdated
\end{equation}
with $G$ the tokens a cycle commits, $T$ its time, R and F reuse and fresh drafting in the second cycle and $A$ the extra cost reuse adds to the first, and rejects the reuse at the tested configuration if the upper end of $\Delta$'s 95\% interval is at most 0.

Its first test is a support oracle at concurrency 1~\ev{repair-p9}. On the drafter's block-16 trace (21,067 cycles of 80 requests), block 16 being the fastest DFlash block at concurrency 1 on the serving workload (Table~\ref{tab:tuning}), there are 18,274 boundaries after a rejection. Reuse is possible when the drafter's top-$K$ candidate sets contain the corrected prefix and some of the old window remains, which is known at decision time; the oracle then proposes the true token wherever the old candidate set contains it, charges a reused cycle the measured fresh cycle less its 2.33~ms draft phase, that is a full block-16 verify padded beyond the remaining positions, and takes $A$, the cost of conditioning and the draft-cache catch-up as zero, so it bounds from above every real program over the same candidate sets that verifies a padded block-16 and reuses at every boundary where reuse is possible. With the top-16 sets the corrected prefix is supported at 88.8\% of the boundaries, the oracle commits 5.08 tokens in the second cycle against 5.55 for fresh drafting on those boundaries, and $\Delta=+0.99$ tokens per boundary (95\% interval 0.89 to 1.07). With the top-8 sets $\Delta=+0.22$ (0.12 to 0.32), and with the top-1, top-2 and top-4 sets the rule rejects reuse. Keeping the old draft's tail without conditioning, the unchanged cached control, gives $\Delta=-1.93$ and is rejected. These verdicts, the rejections included, hold for the recomputed candidate sets, a padded block-16 verify and a policy that reuses at every boundary where reuse is possible. The engine's own sets, whose top-1 token differs from the recomputation's at 2.6\% of positions, were not captured, and a program over them is not covered; nor is a program that verifies only the remaining positions at a smaller width, whose second cycle could cost less than the oracle charges, or one that chooses between reuse and fresh drafting at each boundary, which could avoid the boundaries where reuse loses. At concurrency 1 the oracle bound therefore does not reject reuse with top-8 and top-16 sets. It is an upper bound, not a served speed-up: the candidate sets are an offline recomputation whose top-1 token matches the engine's draft at 97.4\% of positions, the costs are one run's phases at concurrency 1, and a real program must select the token, which the old draft's own choices fail to do (the cached control), while its compile, conditioning, retention and draft-cache catch-up costs come out of the same margin. A conditioned program and a matched autoregressive refiner over the same cached information, each against Equation~\eqref{eq:p9} with real progress and all costs charged, and the draft shares at concurrency 8 and 16 are \pend{repair-p9-program}.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Start suffix support at the correction

When the offline candidate sets omit any token in the already accepted part of the first block but contain the actual correction and a usable suffix, this test incorrectly treats the boundary as unsupported: p9_support_oracle.py checks U_K >= J, while U_K is leading support measured from the start of the old block. The second cycle starts from the already committed correction, so a program can use the remaining candidate sets without reconstructing those earlier accepted tokens. Consequently, recomputation mismatches before the rejection are scored as fresh drafting, and the reported result is not an upper bound for the stated class of programs; compute support from the correction and subsequent suffix directly before retaining the rejection verdicts.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declining the change to the measure, and fixing it in 52065fb by scoping instead. Leading support (U_K >= J) is the condition P9 specifies. The proposed program computes its forward message from the actual corrected prefix through the frozen candidate sets of the old block; its transfer matrices exist only for tokens in those sets; and its rule falls back to a fresh draft when the correction leaves the support. A boundary where the sets omit an already accepted token is therefore not a reuse opportunity for P9's program. What I accept is that the text should name that class. It now says P9's program conditions on the whole corrected prefix through the frozen sets, so reuse needs every token of the corrected prefix in them. It adds that a program whose support starts at the correction (suffix-only conditioning) is a different class and is not covered, and that with recomputed sets such a program could also reuse where the recomputation drops an accepted token. The status row names P9's program.

Address the Codex P1 on #108 (612fab8) by scoping, not by changing the
measure. P9's specified program computes its forward message from the
actual corrected prefix through the frozen candidate sets, and falls
back to a fresh draft if the correction leaves the support. Leading
support U_K >= J is therefore the right condition for it. A program
whose support starts at the correction is a different class and is not
covered; with recomputed sets it could also reuse where the
recomputation drops an accepted token. The status row now names P9's
program.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

SamMausberg added a commit that referenced this pull request Oct 1, 2026
…ffline sets

The oracle reuses at every supported boundary. A gated program that falls back to fresh
DFlash where reuse is unfavourable is not bounded by it, so the top-1 to top-4 rejections
cover always-reuse policies only (Codex on #108). The table note, assumption (5) and the
verdict now name the policy class, the padded block-16 verify and the offline-recomputed
candidate sets.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional: Codex's review of 52065fb was still running when I posted this. I will re-check its threads on this head before merge.)

Re-review on the exact head 52065fb ("Name P9's program class: conditioning on the whole corrected prefix").

Codex P1 on 612fab8 ("Start suffix support at the correction", #108 (comment)). The reply on that thread declines to change the measure and scopes the claim instead. The fix is acceptable. The oracle still measures leading support (U_K >= J), and the text now says the verdicts hold only for P9's program, which conditions on the whole corrected prefix through the old block's frozen sets. Appendix F says that a program whose support starts at the correction (suffix-only conditioning) is a different class and is not covered. It also says that, with recomputed sets, such a program could reuse at boundaries where the recomputation drops an accepted token. The register row names the same class. The measure, the JSON and every number are unchanged by this commit.

Checks on 52065fb

  • Diff against 612fab8: one sentence in app_drafting.tex, the P9 row in app_register.tex, and the rebuilt PDF.
  • Clean rebuild: 76 pages and no LaTeX warnings. The text of the rebuilt PDF matches the committed paper.pdf exactly. References start on page 11.
  • scripts/check_paper_references.py: no register paths are missing at origin/main.
  • The branch contains origin/main (bfaaf48).
  • All P9 numbers still match evidence/repair/p9_support_oracle.json on main, which I checked on earlier heads: top-16 +0.99 (0.89 to 1.07), top-8 +0.22 (0.12 to 0.32), control -1.93, 21,067 cycles, 18,274 boundaries and 2.33 ms.
  • Every commit is authored and committed by Samuel Mausberg. No commit message or the PR body has an AI attribution line.
  • No committed file cites ~/vp-coord or an unmerged PR as evidence.

Blocking items: none.

Suggestions (non-blocking)

  1. The opening of Appendix F.7 (line 137) still says P9 conditions the program "on the actual correction". The scoped sentence six lines later says "on the whole corrected prefix". Writing "on the corrected prefix" at line 137 too would remove the one place where a reader could take Codex's suffix-only reading.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52065fb558

ℹ️ 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".

Comment thread paper/sections/app_register.tex Outdated
P6: a draft selector trained for rate beats the same selector with the strongest matched objective by $1.25\times$ & Candidate-support screen, then a matched-objective comparison (Appendix~\ref{app:selector}) & Survives the screen (oracle bound 10.14 against 6.20 tokens per cycle)~\ev{drafter-support}; comparison \pend{drafter-p6}\\
P7a: every exactness claim names its reference and one of five contracts & Witnesses that separate the contracts (Appendix~\ref{app:contracts}) & Adopted throughout; witnesses committed~\ev{contracts}\\
P7b: certified block-parallel GDN verification beats strict replay & Captured-trace arms: reference, strict replay, certified fast, unchecked fast (Appendix~\ref{app:verify-state}) & SGLang's chunked kernel is not a usable fast path (synthetic inputs, one request)~\ev{fast-verify}; the certified path \pend{p7b}\\
P9: reusing a cached DFlash window once after a rejection beats fresh drafting & Support oracle on the post-rejection boundaries, then the cost-charged two-cycle test with a real program and a matched refiner (Appendix~\ref{app:p9}) & For P9's program, conditioned on the whole corrected prefix, over offline-recomputed candidate sets, with a padded block-16 verify and reuse at every possible boundary at $c=1$, the oracle bound does not reject reuse with top-8 and top-16 sets ($\Delta=+0.22$ and $+0.99$ tokens per boundary; an upper bound, not a speed-up) and rejects it with top-1 to top-4~\ev{repair-p9}; real program \pend{repair-p9-program}\\

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge List only the candidate widths that were tested

The committed oracle evaluates only K = 1, 2, 4, 8, and 16, so “top-1 to top-4” also claims a rejection for the untested top-3 sets. That result cannot be inferred from the top-2 and top-4 endpoints because enlarging K changes which boundaries are forced into reuse, making Δ non-monotonic. Match the appendix by saying “top-1, top-2, and top-4,” or run and report K = 3.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b43bcdc. The status row now reads "top-1, top-2 and top-4". F.7 already listed the tested sizes, and nothing else in the paper gives a range of K. The PR description matches.

SamMausberg added a commit that referenced this pull request Oct 1, 2026
Only K = 1, 2, 4, 8 and 16 were tested and Delta is not monotone in K, so 'top-1 to top-4'
and 'every K from 2 to 16' claimed untested sizes (Codex on #108). The README now names
top-1, top-2 and top-4 and the tested K.
…top-4)

The oracle tests K = 1, 2, 4, 8 and 16 only, and Delta is not monotonic
in K, so a range would also claim the untested top-3.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

1 similar comment
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional: Codex's review of b43bcdc was still running when I posted this. I will re-check its threads on this head before merge.)

Re-review on the exact head b43bcdc ("P9 status row: name the tested candidate-set sizes (top-1, top-2 and top-4)").

  • Codex P2 on 52065fb ("List only the candidate widths that were tested", Appendix F: add P9, the cached-window reuse oracle (#97) #108 (comment)) is fixed and has a reply.
    • The register row now reads "top-1, top-2 and top-4" instead of "top-1 to top-4". The commit changes only that phrase and the PDF.
    • p9_support_oracle.json covers only K = 1, 2, 4, 8 and 16, and Delta is not monotone in K, so the range claimed an untested K = 3.
    • I searched paper/sections and found no other range of K.
  • Rebuild: 76 pages, no LaTeX warnings, rebuilt text identical to the committed paper.pdf, References start on page 11.
  • Checks: check_paper_references.py finds no missing register paths, and the branch contains origin/main.
  • Attribution: the commit is by Samuel Mausberg, with no AI attribution.
  • Everything else from my 52065fb review still applies, including the numbers against the JSON on main.

Blocking: none.

Suggestion (non-blocking, still open): line 137, "on the actual correction" to "on the corrected prefix". The editor says this goes in the follow-up with the #109 bounds, which is fine.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: b43bcdc6aa

ℹ️ 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".

SamMausberg added a commit that referenced this pull request Oct 1, 2026
…over free verify

Review of #109 and Codex on #108/#109:
- The oracle bounds P9's program, which conditions on the whole corrected prefix through
  the frozen sets; a program whose support starts at the correction is a different class
  and is not covered (README paragraph, table note, assumption (4), verdict, docstring).
- The supported suffix length U_K - J needs the greedy tokens after the correction, so it is
  an oracle target, not a gate feature; the features named are J, m and the old sets'
  probabilities at the remaining positions.
- The verdict's gated bound says 'with a padded verify'; the free-verify bound states that
  the other phases stay at their block-16 values; a perfect gate adds 1.06 to 1.33 tokens.
- New omniscient_gate_free_verify: the gate over free-verify scoring bounds gated programs at
  any verify width (top-16 +4.35 (+4.09, +4.64)). Test: it dominates both the gate and the
  free verify alone, end by end. Other JSON fields unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant