Skip to content

Appendix E.5: describe P4's declared served analysis (#94) - #95

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

SamMausberg merged 8 commits into
mainfrom
paper/appendix-p4declared

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Brings Appendix E.5's description of P4's served test in line with the analysis declared before the run (moonshot README, #94). No results are added. The main text is unchanged.

Changes

  • Declared analysis. The pre-registered test is now described as declared:
    • Dense decoding and replay at m = 4 run as four server pairs in the order A B B A A B B A with identical memory pools.
    • The primary metric is the server's decode rate at full batch, since the lever changes decode only; client throughput is reported beside it.
    • The four log ratios give a 95% t interval. The claim is rejected if the upper end is below 1.10, supported if the lower end reaches 1.10, and inconclusive otherwise.
    • A supported result is a served full-batch decode throughput, not an end-to-end speedup.
    • The server output probe (greedy tokens and top-20 log-probabilities at concurrency 1 against dense decoding) can refute end-to-end exactness, and a pass does not establish it.
  • Derived gain scoped to the decode step. The derived "about 1.08x" comes from the recurrent kernel's share of a batch-128 decode step, so it is now stated "for the decode step" / "per decode step" rather than "end to end". This applies to the text, the levers table and the P4 status row, which keeps it consistent with the declaration's wording rule.
  • Register. New p4-declared entry (a declaration, not a result) citing the README and run_p4b.sh, validate_p4_ab.py and output_probe.py. moonshot-p4 now names the output probe and the served paired timing.

Validation

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

The P4 paragraph now describes the analysis declared before the served
run (moonshot README, #94):
- four A B B A pairs with identical pools;
- the server's full-batch decode rate as the primary metric, with
  client throughput beside it;
- a 95% t interval on the log ratios with a reject, support or
  inconclusive rule at 1.10x;
- the output probe, which can refute end-to-end exactness but not
  establish it.

A supported result is a served full-batch decode throughput, not an
end-to-end speedup. The derived about-1.08x estimate comes from the
recurrent kernel's share of a decode step, so it is now stated per
decode step rather than end to end, in the text, the levers table and
the status row.

New register entry p4-declared (a declaration, not a result);
moonshot-p4 names the output probe and the served paired timing.
@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-01T10:32:08.834351Z 7292d3a 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.

Per the moonshot workstream's check of #95, from the declaration in the
moonshot README:
- a second dense server is the probe's noise control, and the probe is
  undecided if it differs too;
- the verdict states both results, and a refuted probe means P4's exact
  claim is not supported whatever the throughput interval;
- a run that fails its validity checks is void and repeated.

@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: cc0067d0ee

ℹ️ 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_stack.tex Outdated
The second question has a better answer. A decoder that keeps a dense anchor and the recent actual FP32 operands of each step, and replays them in the reference kernel's order, reproduces every state word bit for bit by induction, while reading the dense state once per step and writing it once every $m$ steps. That reduces information movement, not information, and it is what replay-based rollback already does~\cite{replayssm,gdncode}. The paragraphs below treat it as a lever with a pre-registered test (P4), and the opposite idea, sharing exact computation across requests (P5).

\paragraph{Writing the recurrent state less often (P4, hypothesis)} Rounding-preserving live replay is exact and cuts dense-state traffic per step from $2D$ (read and write) to $D+D/m$ when the state is flushed every $m$ steps, 0.625 of the original at $m=4$, for a few percent more storage (derived). If the recurrent kernel is a fraction $f$ of a decode step, a kernel twice as fast gives at most $1/(1-f/2)$, removing it entirely $1/(1-f)$, and the $m=4$ traffic cut alone $1/(1-0.375f)$. The measured share at $B=128$ and a 418-token mean context is $f=0.416$ (Table~\ref{tab:profile-plain}), which gives $1.26\times$, $1.71\times$ and $1.18\times$ (derived from a measured share). The pre-registered test decodes 512 tokens greedily at batch 128 from 2,048-token prompts with FP32 state and no speculation, first compares every state word and GDN output of the replayed and dense paths (one differing word rejects bit-exactness), and then times both: the claim is at least $1.10\times$ end-to-end decode throughput, rejected if the upper end of the paired 95\% confidence interval falls below $1.10\times$. SGLang's own replay path qualifies only if it passes the bit-exactness check. The replay kernel is committed as an engine patch with a one-layer test that compares every output and state word against the stock decode kernel (\code{tests/test\_gdn\_exact\_replay.py}~\ev{moonshot-patches}).
\paragraph{Writing the recurrent state less often (P4, hypothesis)} Rounding-preserving live replay is exact and cuts dense-state traffic per step from $2D$ (read and write) to $D+D/m$ when the state is flushed every $m$ steps, 0.625 of the original at $m=4$, for a few percent more storage (derived). If the recurrent kernel is a fraction $f$ of a decode step, a kernel twice as fast gives at most $1/(1-f/2)$, removing it entirely $1/(1-f)$, and the $m=4$ traffic cut alone $1/(1-0.375f)$. The measured share at $B=128$ and a 418-token mean context is $f=0.416$ (Table~\ref{tab:profile-plain}), which gives $1.26\times$, $1.71\times$ and $1.18\times$ (derived from a measured share). The pre-registered test decodes 512 tokens greedily at batch 128 from 2,048-token prompts with FP32 state and no speculation, first compares every state word and GDN output of the replayed and dense paths (one differing word rejects bit-exactness), and then times both, with the threshold at $1.10\times$. The served timing's analysis was declared before the run~\ev{p4-declared}. Dense decoding and replay at $m=4$ run as four server pairs in the order A B B A A B B A with identical memory pools, and the primary metric is the server's decode rate at full batch, because the lever changes decode only; client throughput is reported beside it. The four log ratios give a 95\% $t$ interval, and the claim is rejected if its upper end is below $1.10$, supported if its lower end reaches $1.10$, and inconclusive otherwise; a supported result is a served decode throughput at full batch, not an end-to-end speedup. A server output probe compares greedy tokens and top-20 log-probabilities at concurrency 1 with dense decoding: a difference refutes end-to-end exactness, and a pass does not establish it. SGLang's own replay path qualifies only if it passes the bit-exactness check. The replay kernel is committed as an engine patch with a one-layer test that compares every output and state word against the stock decode kernel (\code{tests/test\_gdn\_exact\_replay.py}~\ev{moonshot-patches}).

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 Measure the declared batch-128 rate using only batch 128

The newly documented primary metric is not actually the server rate “at full batch.” bench/sweep.py::log_segment_stats includes every log window whose running count is at least 90% of the observed maximum, while validate_p4_ab.py::point_of merely verifies that one log line reached 128; consequently logged_gen_tps_full_batch can mix batch sizes 116–128. Because P4’s threshold is specifically for batch 128 and the lever’s gain varies with batch size, this mixture can change the 1.10 decision. Restrict the primary statistic to windows with exactly 128 running requests, or declare and justify the near-full-batch metric instead.

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.

Agreed. Bench's full-batch rate averages log windows with at least 0.9 times the largest logged batch running (at least 116 of 128), not windows at exactly 128. The moonshot workstream is fixing the protocol in a follow-up to #94 before the run. I'll match its declared metric wording once that merges, and hold this PR until then.

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 18e56cf with the wording declared in the moonshot README after #96. The primary metric, amended before the run started, is the server's decode rate at exactly 128 running requests in the measured phase. A window counts at 128 with the previous decode line also at 128, no prefill batch between them, and both inside the AIPerf profiling phase. The rate is the harmonic mean of the window rates, and fewer than 8 windows void the run. A supported result is worded as a served decode throughput at 128 running requests.

Comment thread paper/sections/app_stack.tex Outdated
The second question has a better answer. A decoder that keeps a dense anchor and the recent actual FP32 operands of each step, and replays them in the reference kernel's order, reproduces every state word bit for bit by induction, while reading the dense state once per step and writing it once every $m$ steps. That reduces information movement, not information, and it is what replay-based rollback already does~\cite{replayssm,gdncode}. The paragraphs below treat it as a lever with a pre-registered test (P4), and the opposite idea, sharing exact computation across requests (P5).

\paragraph{Writing the recurrent state less often (P4, hypothesis)} Rounding-preserving live replay is exact and cuts dense-state traffic per step from $2D$ (read and write) to $D+D/m$ when the state is flushed every $m$ steps, 0.625 of the original at $m=4$, for a few percent more storage (derived). If the recurrent kernel is a fraction $f$ of a decode step, a kernel twice as fast gives at most $1/(1-f/2)$, removing it entirely $1/(1-f)$, and the $m=4$ traffic cut alone $1/(1-0.375f)$. The measured share at $B=128$ and a 418-token mean context is $f=0.416$ (Table~\ref{tab:profile-plain}), which gives $1.26\times$, $1.71\times$ and $1.18\times$ (derived from a measured share). The pre-registered test decodes 512 tokens greedily at batch 128 from 2,048-token prompts with FP32 state and no speculation, first compares every state word and GDN output of the replayed and dense paths (one differing word rejects bit-exactness), and then times both: the claim is at least $1.10\times$ end-to-end decode throughput, rejected if the upper end of the paired 95\% confidence interval falls below $1.10\times$. SGLang's own replay path qualifies only if it passes the bit-exactness check. The replay kernel is committed as an engine patch with a one-layer test that compares every output and state word against the stock decode kernel (\code{tests/test\_gdn\_exact\_replay.py}~\ev{moonshot-patches}).
\paragraph{Writing the recurrent state less often (P4, hypothesis)} Rounding-preserving live replay is exact and cuts dense-state traffic per step from $2D$ (read and write) to $D+D/m$ when the state is flushed every $m$ steps, 0.625 of the original at $m=4$, for a few percent more storage (derived). If the recurrent kernel is a fraction $f$ of a decode step, a kernel twice as fast gives at most $1/(1-f/2)$, removing it entirely $1/(1-f)$, and the $m=4$ traffic cut alone $1/(1-0.375f)$. The measured share at $B=128$ and a 418-token mean context is $f=0.416$ (Table~\ref{tab:profile-plain}), which gives $1.26\times$, $1.71\times$ and $1.18\times$ (derived from a measured share). The pre-registered test decodes 512 tokens greedily at batch 128 from 2,048-token prompts with FP32 state and no speculation, first compares every state word and GDN output of the replayed and dense paths (one differing word rejects bit-exactness), and then times both, with the threshold at $1.10\times$. The served timing's analysis was declared before the run~\ev{p4-declared}. Dense decoding and replay at $m=4$ run as four server pairs in the order A B B A A B B A with identical memory pools, and the primary metric is the server's decode rate at full batch, because the lever changes decode only; client throughput is reported beside it. The four log ratios give a 95\% $t$ interval, and the claim is rejected if its upper end is below $1.10$, supported if its lower end reaches $1.10$, and inconclusive otherwise; a supported result is a served decode throughput at full batch, not an end-to-end speedup. A server output probe compares greedy tokens and top-20 log-probabilities at concurrency 1 with dense decoding: a difference refutes end-to-end exactness, and a pass does not establish it. SGLang's own replay path qualifies only if it passes the bit-exactness check. The replay kernel is committed as an engine patch with a one-layer test that compares every output and state word against the stock decode kernel (\code{tests/test\_gdn\_exact\_replay.py}~\ev{moonshot-patches}).

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 Remove the unimplemented server-wide state comparison

This paragraph still says the pre-registered test first compares every state word and GDN output, but the newly described served protocol does not perform that comparison: run_p4b.sh runs a one-layer synthetic kernel check and then quality_arms.py/output_probe.py, which observe only emitted tokens and top-20 log-probabilities. The same line later correctly says that a passing probe cannot establish end-to-end exactness, so the protocol is now internally contradictory and overstates what the pending server test will verify. Scope the every-word comparison to the kernel-level test and describe only the output probe here.

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 c8db002. The test is now described in two parts: a kernel check that compares every state word and GDN output one layer at a time, and the served timing, where only the output probe checks exactness. The paragraph no longer describes a server-wide state comparison.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Reviewed ce797d8 (cc0067d, ce797d8) on main 65a0a23.

What checks out

  • The description matches Moonshot: declare P4's served A/B analysis before the run #94's merged declaration (README 2c):
    • A B B A A B B A order with identical pools;
    • the server rate as primary metric, with client y beside it;
    • a t interval over four log ratios, with reject, support or inconclusive at 1.10;
    • "served decode throughput at full batch, not an end-to-end speedup";
    • an output probe that can refute but not establish exactness, with the dense repeat as noise control;
    • a combined verdict, and void runs that are repeated.
  • The rescoping is correct. "About 1.08× per decode step" is right: 1/(1 − 0.416 + 0.416/1.22) = 1.081, and f is the GDN share of a batch-128 decode step. It is applied consistently in the text, the levers table and the P4 status row.
  • Register. p4-declared is labelled "a declaration, not a result", and its producers exist on main.
  • Build. I rebuilt from source: 74 pages, no warnings, and the text matches the committed PDF. The main text ends on page 10, the checker passes, and the commits are Sam's with no AI attribution.

Blocking

B1 (Codex P1, app_stack.tex:191): "decode rate at full batch" is not what the metric measures. bench/sweep.py:log_segment_stats builds logged_gen_tps_full_batch from every decode-log window with at least 0.9 × the maximum running count, so 116–128 of 128 requests. validate_p4_ab.py only checks that max_running_logged reached 128. #94's README says the same thing ("the full-batch rate was measured with 128 requests running"), so the declaration overstates too.

P4b has not started: p4b.log is still empty, and the job is second in the queue. The fix belongs in a #94 follow-up before the run. Either:

  • restrict the primary statistic to windows with exactly 128 running, and validate that; or
  • declare the ≥ 116-of-128 window as the metric, and justify it.

This PR must then use the same wording. I'm routing this to moonshot and the coordinator now.

B2 (Codex P2, app_stack.tex:191): the served test does not compare state words. The paragraph still says the pre-registered test "first compares every state word and GDN output of the replayed and dense paths". run_p4b.sh performs that comparison only at kernel level: one layer, synthetic activations (gdn_exact_replay_check.py check). Through the server it runs only the output probe, which the same paragraph correctly says cannot establish exactness. Scope the every-word comparison to the kernel-level check.

Suggestion

evidence/moonshot/README.md still says "1.08x end to end" (lines 196 and 340). Ask moonshot to make it "per decode step" so the cited evidence and the paper agree.

Review B2 / Codex P2 on #95. The every-word state and output comparison
is the one-layer kernel check; through the server only the output probe
checks exactness. The pre-registered test is now described in those
two parts.
Review B1 / Codex P1 on #95. The primary metric is now worded as
declared in the moonshot README after #96: the server's decode rate at
exactly 128 running requests in the measured phase. A window counts
only at 128 with the previous decode line also at 128, no prefill in
between, and inside the AIPerf profiling phase. The rate is the harmonic
mean of the window rates, fewer than 8 windows void the run, and the
amendment preceded the run. A supported result is a served decode
throughput at 128 running requests. No result is stated.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (content; a main merge plus PDF rebuild is still needed)

Re-reviewed 18e56cf (c8db002 and 18e56cf).

  • B2 is fixed. The test is now described in two parts. The kernel check compares every state word and GDN output, one layer at a time. Through the server, only the output probe checks exactness.
  • B1 is fixed, using Moonshot P4: primary metric at exactly 128 running requests (follow-up to #94) #96's merged wording.
    • The primary metric is "amended before the run started": the server's decode rate at exactly 128 running requests in the measured phase.
    • A window counts only after a 128-running line with no prefill between the two, and both lines must fall inside the AIPerf profiling phase.
    • The rate is the harmonic mean of the window rates, and fewer than 8 windows voids the run.
    • A supported result is worded "a served decode throughput at 128 running requests".
    • This matches README 2c on main sentence for sentence.
  • No result is stated. The P4 verdict is pending, so none should be.
  • Checks.
    • I rebuilt from source: 74 pages, no warnings, and the text matches the committed PDF.
    • The main text ends on page 10, and the checker passes.
    • The commits are Sam's, with no AI attribution, and both Codex threads have replies.

The branch is behind main, which now has #96 and the other merges, so it needs a main merge and PDF rebuild before merging. I'll confirm that merge is pure.

Once #98 merges and the verdict lands, the appendix should mention that the prompt check was corrected after the run and before the verdict, as README 2c records.

…ared

# Conflicts:
#	paper/paper.pdf
#	paper/sections/app_register.tex
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Confirmed 0c7af85, a merge of main 2d45ca5 (#100) into 18e56cf.

  • Conflict resolution. I re-did the merge and got the same two conflicts. The app_register.tex resolution is correct: it keeps Appendix E.5: describe P4's declared served analysis (#94) #95's new moonshot-p4 description, keeps main's new p7b and p10-split items, and drops main's superseded moonshot-p4 line, so there is no duplicate label.
  • Diff against main. It is exactly Appendix E.5: describe P4's declared served analysis (#94) #95's changes: the p4-declared entry, the P4 status row and the moonshot-p4 description in app_register.tex, the app_stack.tex text, and the PDF.
  • Build. I rebuilt from source: 75 pages, no warnings, and the text matches the committed PDF. The main text ends on page 10, the checker passes, and the branch is up to date with main.

My approval at 18e56cf carries to this head.

@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: 0c7af854c1

ℹ️ 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_stack.tex Outdated
The second question has a better answer. A decoder that keeps a dense anchor and the recent actual FP32 operands of each step, and replays them in the reference kernel's order, reproduces every state word bit for bit by induction, while reading the dense state once per step and writing it once every $m$ steps. That reduces information movement, not information, and it is what replay-based rollback already does~\cite{replayssm,gdncode}. The paragraphs below treat it as a lever with a pre-registered test (P4), and the opposite idea, sharing exact computation across requests (P5).

\paragraph{Writing the recurrent state less often (P4, hypothesis)} Rounding-preserving live replay is exact and cuts dense-state traffic per step from $2D$ (read and write) to $D+D/m$ when the state is flushed every $m$ steps, 0.625 of the original at $m=4$, for a few percent more storage (derived). If the recurrent kernel is a fraction $f$ of a decode step, a kernel twice as fast gives at most $1/(1-f/2)$, removing it entirely $1/(1-f)$, and the $m=4$ traffic cut alone $1/(1-0.375f)$. The measured share at $B=128$ and a 418-token mean context is $f=0.416$ (Table~\ref{tab:profile-plain}), which gives $1.26\times$, $1.71\times$ and $1.18\times$ (derived from a measured share). The pre-registered test decodes 512 tokens greedily at batch 128 from 2,048-token prompts with FP32 state and no speculation, first compares every state word and GDN output of the replayed and dense paths (one differing word rejects bit-exactness), and then times both: the claim is at least $1.10\times$ end-to-end decode throughput, rejected if the upper end of the paired 95\% confidence interval falls below $1.10\times$. SGLang's own replay path qualifies only if it passes the bit-exactness check. The replay kernel is committed as an engine patch with a one-layer test that compares every output and state word against the stock decode kernel (\code{tests/test\_gdn\_exact\_replay.py}~\ev{moonshot-patches}).
\paragraph{Writing the recurrent state less often (P4, hypothesis)} Rounding-preserving live replay is exact and cuts dense-state traffic per step from $2D$ (read and write) to $D+D/m$ when the state is flushed every $m$ steps, 0.625 of the original at $m=4$, for a few percent more storage (derived). If the recurrent kernel is a fraction $f$ of a decode step, a kernel twice as fast gives at most $1/(1-f/2)$, removing it entirely $1/(1-f)$, and the $m=4$ traffic cut alone $1/(1-0.375f)$. The measured share at $B=128$ and a 418-token mean context is $f=0.416$ (Table~\ref{tab:profile-plain}), which gives $1.26\times$, $1.71\times$ and $1.18\times$ (derived from a measured share). The pre-registered test has two parts. A kernel check compares every state word and GDN output of the replayed and dense paths, one layer at a time, and one differing word rejects bit-exactness (below). The served timing decodes 512 tokens greedily at batch 128 from 2,048-token prompts with FP32 state and no speculation, with the threshold at $1.10\times$; through the server only the output probe below checks exactness. The served timing's analysis was declared before the run~\ev{p4-declared}. Dense decoding and replay at $m=4$ run as four server pairs in the order A B B A A B B A with identical memory pools, and the primary metric, amended before the run started, is the server's decode rate at exactly 128 running requests in the measured phase. The scheduler logs one generation throughput per 40 decode passes; a window counts when it shows 128 running requests, the previous decode line also shows 128, no prefill batch lies between the two (a window containing a prefill pass mixes prefill time into its rate), and both lines fall inside the AIPerf profiling phase (first request start to last request end), which excludes the AIPerf warm-up wave and the ramp and drain. Windows carry equal token counts (128 per pass, no speculation), so the rate is the harmonic mean of the window rates; fewer than 8 such windows in any arm voids the run. The metric measures decode only, which is what the lever changes; client throughput, which includes the 2,048-token prefills, is reported beside it. The four log ratios give a 95\% $t$ interval, and the claim is rejected if its upper end is below $1.10$, supported if its lower end reaches $1.10$, and inconclusive otherwise; a supported result is a served decode throughput at 128 running requests, not an end-to-end speedup. A server output probe compares greedy tokens and top-20 log-probabilities at concurrency 1 with dense decoding: a difference refutes end-to-end exactness, and a pass does not establish it; a second dense server is the noise control, and if it differs too the probe is undecided. The verdict states both results, and if the probe refutes exactness, P4's exact claim is not supported whatever the throughput interval. A run that fails its completeness, workload, pool, environment or provenance checks is void and repeated, and its numbers are not reported. SGLang's own replay path qualifies only if it passes the bit-exactness check. The replay kernel is committed as an engine patch with a one-layer test that compares every output and state word against the stock decode kernel (\code{tests/test\_gdn\_exact\_replay.py}~\ev{moonshot-patches}).

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 Qualify the post-run validation amendment

The statement that the served timing's analysis was declared before the run is too broad: evidence/moonshot/README.md:228-239 records that the prompt-validity check was corrected at 10:05 UTC after the 08:27–09:03 run, changing all eight arms from failing validation to passing. Because this paragraph also presents workload checks as conditions that void a run, readers can reasonably understand those checks as part of the preregistered analysis. Narrow the claim to the metric and decision rules that were fixed before the run, or disclose the post-run validation amendment here.

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 c0f3267. The paragraph now says the design, metric and decision rule were declared before the first run. It also discloses that one validity check, the sent-prompt check, was corrected after that run and before its verdict was computed or looked at. The check moved from bench's request ids to an exact comparison of the prompt texts' hashes, which is no weaker, and the first run fails the old check in all eight arms and passes the corrected one (moonshot README 2c).

Address the Codex P2 on #95 (0c7af85). The design, metric and decision
rule were declared before the first run. One validity check, prompt
identity, was corrected after that run and before its verdict was
computed: bench's id comparison was replaced by an exact comparison of
the prompt texts' hashes, which is no weaker. The first run fails the old
check and passes the new one (moonshot README, 2c).
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Re-reviewed c0f3267, which fixes Codex's P2 on 0c7af85. The diff is one sentence group in app_stack.tex, plus the PDF.

  • The new wording is accurate. The paragraph now says the served timing's design, metric and decision rule were declared before its first run. It says the sent-prompt check was corrected after that run, before any verdict, from bench's request ids to an exact comparison of the prompt texts' hashes, "a check no weaker than the declared one". It adds that the first run fails the old check in all eight arms and passes the corrected one. That matches the merged README 2c and what I verified on Moonshot P4: check sent prompts by content (bench ids break on repeated texts) #98: the content multisets are equal in all eight arms, and the id check fails because of the 91-distinct-text workload.
  • Build. I rebuilt from source: 75 pages, no warnings, and the text matches the committed PDF. The checker passes, and the branch is up to date with main.

Required follow-up once #103 merges. The first run was also void for another reason: at most 127 requests were admitted, so no verdict was ever computed. The rerun was then declared with a larger KV pool and an admission preflight. As written, "before its verdict was computed or looked at" could suggest the first run went on to a verdict. When #103 is on main, this paragraph should say that the first run was void at its batch check, and describe the rerun's amendments. Until then it states nothing false.

@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: c0f32672ae

ℹ️ 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
\evitem{decode-steps}{First engine-only decode-step times by state precision}{\nolinkurl{evidence/moonshot/decode_ceiling_try1.csv}}{\nolinkurl{experiments/moonshot/decode_ceiling_sweep.py}}
\evitem{moonshot-patches}{Engine patches for the reduced draft head, the relaxed greedy rule and rounding-preserving replay, with their tests; code, not results}{\nolinkurl{engine/sglang/patches/moonshot/}, \nolinkurl{tests/test_moonshot_levers.py}, \nolinkurl{tests/test_gdn_exact_replay.py}}{}
\evitem{p4-replay}{Rounding-preserving replay (P4) against the packed decode, per word, and its kernel time by ring length (Appendix~\ref{app:minimal-state})}{\nolinkurl{evidence/moonshot/gdn_exact_replay_check_L4.json}, \nolinkurl{gdn_exact_replay_check_L16.json}, \nolinkurl{gdn_exact_replay_check_L4_layer20.json}, \nolinkurl{gdn_exact_replay_bench.json}}{\nolinkurl{experiments/moonshot/gdn_exact_replay_check.py}}
\evitem{p4-declared}{The analysis of P4's served test, declared before the run (a declaration, not a result)}{\nolinkurl{evidence/moonshot/README.md}}{\nolinkurl{experiments/moonshot/run_p4b.sh}, \nolinkurl{validate_p4_ab.py}, \nolinkurl{output_probe.py}}

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 Narrow the declaration claim in the evidence register

Fresh evidence in this revision is that the newly added register entry still characterizes the entire P4 analysis as declared before the run, while evidence/moonshot/README.md:228-239 records that the sent-prompt validity check was corrected after the first run and changed all eight arms from failing that check to passing. This overstates the provenance of the cited analysis despite the narrower wording now used in app_stack.tex; describe only the design, metric, and decision rule as pre-run, or disclose the post-run amendment in this entry.

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 7c5d058. The p4-declared register entry now reads: "P4's served test: the design, metric and decision rule declared before its first run, and the prompt check corrected after it (a declaration, not a result)". It matches the Appendix E.5 text.

… run

Address the Codex P2 on #95 (c0f3267). The entry now says the design,
metric and decision rule were declared before the first run and the
prompt check was corrected after it, matching the E.5 text.
@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: 7c5d058e48

ℹ️ 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
\devitem{moonshot-state}{MTP with and without replayed verification at concurrency 128 to 1,024; logit-probe KL, divergence rate and GSM8K for FP32, FP16, BF16 and FP8 state, with and without replay}{\nolinkurl{evidence/moonshot/lever_sweeps_hc.csv}, \nolinkurl{lever_quality.csv}}
\devitem{moonshot-rank}{Rank and observability audit of captured $q$, $k$, $\alpha$ and $\beta$ traces, by exact or modular rank}{\nolinkurl{evidence/moonshot/}}
\devitem{moonshot-p4}{P4: the end-to-end bitwise check of rounding-preserving replay through the server, then the pre-registered paired timing at batch 128 with 2,048-token prompts}{\nolinkurl{evidence/moonshot/}}
\devitem{moonshot-p4}{P4: the server output probe (greedy tokens and top-20 log-probabilities against dense decoding) and the served paired timing at batch 128 with 2,048-token prompts, analysed as declared}{\nolinkurl{evidence/moonshot/}}

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 Qualify the pending-item declaration claim

The later fixes qualify the main paragraph and the p4-declared entry, but this separately added pending-result entry still says the served test will be “analysed as declared.” evidence/moonshot/README.md:228-239 records that the sent-prompt validity check was corrected after the first run and changed all eight arms from failing validation to passing, so this continues to overstate the analysis provenance. Limit the claim to the pre-run design, metric, and decision rule, or mention the post-run prompt-check amendment here.

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 7292d3a. The moonshot-p4 pending item now ends "with the design, metric and decision rule declared before the first run and the corrected prompt check" instead of "analysed as declared". No other "as declared" wording is left in the paper.

Address the Codex P2 on #95 (7c5d058). The pending item no longer says
the served test will be "analysed as declared". It names the pre-run
design, metric and decision rule and the corrected prompt check.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional: Codex is running on 7292d3a, and I'll re-check it before merge)

Re-reviewed 7c5d058 and 7292d3a, which change only the register.

  • p4-declared now reads: design, metric and decision rule declared before the first run, and the prompt check corrected after it, "a declaration, not a result".
  • The moonshot-p4 pending item now ends with the same qualification.
  • Both match the E.5 text and README 2c.

I rebuilt from source: 75 pages, no warnings, and the text matches the committed PDF. The checker passes, and the branch is up to date with main. The follow-up for #103 still stands: once #103 merges, state the first run's void status and the rerun's amendments.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 7292d3a6e6

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

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