Repository navigation
Address Codex review items on contract witnesses, head constants, source manifest and README - #41
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 74ff454c4a
ℹ️ 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".
| "seconds": 0.033, | ||
| "repo_commit": "29c85d7fafbc8eae0a10b39851731e293ba6cbf0", | ||
| "seconds": 0.036, | ||
| "repo_commit": "25278b6cb149799596118f6b818c0dc81b693a24", |
There was a problem hiding this comment.
Record the commit containing the generator changes
Checking out the recorded 25278b6 SHA and running the documented command cannot reproduce this artifact: that commit still has six contract tests, uses the old np.sum normalization, and lacks the new quality witness. The same incorrect SHA is recorded in head_constants.json, even though 25278b6 still contains the old subsampling implementation. Record commits that contain the respective generator changes (or explicitly capture a dirty-tree source hash) so the evidence remains tied to the source that produced it.
AGENTS.md reference: AGENTS.md:L24-L27
Useful? React with 👍 / 👎.
…tract The regrouped-recurrence witness normalized its keys with np.sum, whose reduction order depends on the NumPy build; it now sums the squares in an explicit float64 loop, as every other reduction in the file does. The counts it reports are unchanged (1,481 of 1,600 FP32 outputs, 2 after BF16). The suite claimed to separate five contracts but witnessed four. A new test gives two greedy decoders with equal accuracy on four problems whose answers differ on every problem, so empirical quality equivalence implies none of the stronger contracts. Evidence regenerated with the documented command.
summary() sliced a random permutation to 1,000,000 elements, which for the 248,320-row head is every row once; the scope string and README called it a one-million-row sample. Quantiles are now taken over all rows directly and the scope says so. Regenerated: every value is identical; only repo_commit, seconds and scope change. The docstring no longer points at a private notes file.
…e manifest paper/references.bib has 223 entries and the manifest had 194, so the workload, repair and P6 sources added with paper milestone 2 (PR #30) could not be audited through it. Each new record follows the manifest's schema, takes its text from the BibTeX entry and says it mirrors that entry; source_count is 223.
74ff454 to
64fc8ce
Compare
|
Verdict: REQUEST CHANGES Reviewed head 64fc8ce, rebased on main after #39 (0 behind). The substance is right and both evidence files reproduce. One item blocks: Codex's P2 on this PR, which I agree with. BlockingB1. Both regenerated evidence files record a commit that does not contain the code that produced them (
Checked and correct
The paper-text items (the |
|
Verdict: APPROVE This re-review covers head 7baa597. B1 and Codex's P2 are fixed.
Everything verified in my first review still holds: the manifest matches the 223 bib keys, all five contracts are witnessed, the GDN counts are unchanged, 7 tests pass and the hooks are clean. |
…nel contract The paper now argues in dependency order: setting and what the stock engine computes, the five contracts and the R-stock gap and interval theorems, the certified low-precision head with its measured candidate sets and fallback shares, sampled decisions, transport and its measured failure, exactness under speculation, the stack, drafting and repair hypotheses, the serving protocol, related work, and a discussion that merges the hypothesis and failure tables. Secondary derivations, untested mechanisms, engine notes, CPU evidence, reproduction and attribution move to appendices. Evidence paths, pull request numbers and pending work move to an evidence register and a development record (Appendix A); the text cites [En] for committed evidence and [pending Dn] for designed work, with the scientific status in the prose. Integrates merged evidence: H2 on DFlash-4B (#35) and MTP-4B (#47), the overlapped roofline (#44), the frontend diagnosis (#46), the fifth contract witness (#41) and the precision counts after #43. Folds in the Codex items on #21 (quantiles over all rows), #32 (pooled tau, GSM8K series) and #36. Typography: Charter text, a plain title block with the repository URL, greyscale-safe figures, a new mechanism figure (Figure 1) replacing three overlapping flowcharts, a drift figure and transport table, two-panel candidate and acceptance figures, and tables reorganized instead of shrunk.
Four Codex review comments on merged PRs concern files outside
paper/. This PR fixes them. The paper-text items from the same reviews (#21's quantile caption, #32's τ definition and the missing GSM8K series) will go into the editorial revision, which rewrites the text around them.Contract witnesses (#26).
test_regrouped_gdn_recurrence_changes_outputsnormalized its keys withnp.sum, whose reduction order depends on the NumPy build. The squares are now summed in an explicit float64 loop (sequential_norm), like every other reduction in the file.test_equal_quality_different_outputs, gives two greedy decoders with equal accuracy (1/2 each) on four problems whose answers differ on all four. Equal task scores therefore imply none of the stronger contracts.evidence/contracts/was regenerated with the documented command: 7 methods, all passing. Its README lists the new witness.Head-constant quantiles (#21).
summary()sliced a random permutation to 1,000,000 elements. For the 248,320-row head that selects every row once, but the scope string and the README called it a one-million-row sample.head_constants.jsonis identical. Onlyrepo_commit,secondsandscopechange.paper/sections/transport.tex.Source manifest (#30).
paper/references.bibhas 223 entries andsources/source_manifest.jsonhad 194. The 29 entries added with paper milestone 2 now have records in the manifest's schema: the workload datasets, the repair prior art and the P6 prior art. Each record takes its text from the BibTeX entry and says that it mirrors that entry. None claims a fresh verification.source_countis 223.README (#21). PR #39 already fixed this on main (the setup block installs
requirements-dev.txt), so the duplicate commit was dropped in the rebase.Rebase. The branch is rebased on main after #39. The
evidence/precision/README.mdconflict was resolved to "quantiles over all 248,320 rows", because the script no longer has a sampling cap. The 29 manifest records apply cleanly on top of #39's URL pins, giving 223 records for 223 bibliography entries.Validation.
python -m pytest tests/test_contracts.py: 7 passed.head_constants.pywas rerun on CPU in the SGLang venv, and its JSON diff was checked field by field.