Repository navigation
Script indexes for experiments/profiling, moonshot and repair; fix two stale README statements - #126
Conversation
The three directories had no README, so a reader had to open each script to learn what it does. Each index gives one line per file: its role, the evidence file it writes (or "pending" where the run has not produced committed evidence), and points to the evidence README that records the exact commands.
experiments/head_geometry/README.md called transport "the manuscript's Section 4", a section of the imported manuscript; in paper/ it is the transport section (Section 5). evidence/precision/README.md was titled after the certified head and a workstream name, though it holds the exact floating-point reference tests, the Lean log and the head constants, and it called the paper "the manuscript".
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: 8747867eaf
ℹ️ 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".
| | File | Role | Evidence it writes | | ||
| |---|---|---| | ||
| | `run_all.sh` | GPU steps: `microbench`, `plain`, `mtp`, `baseline`, `startprofile`, `graphtrace`, `eager`, `host`, `dflash`, `gdn`, `ncu` | raw reports in `$VP_DATA` | | ||
| | `analyze_all.sh` | Every analysis below, in order, over whatever raw runs exist | everything in `evidence/profiles/` except the microbenchmark files (`hbm_bandwidth.json`, `head_microbench*.json`, `microbench_clocks.json`) | |
There was a problem hiding this comment.
Do not promise analysis of arbitrary partial runs
When only a subset of profiling steps has completed, this claim is false: analyze_all.sh always passes both plain_nsys/windows.jsonl and mtp_nsys/windows.jsonl to bytes_model.py, whose path.read_text() raises if either is absent, and set -e stops the script. A contributor using run_all.sh selectively therefore cannot analyze “whatever raw runs exist”; either document that both window files are prerequisites or make the script filter missing paths.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed: analyze_all.sh passes both plain_nsys/ and mtp_nsys/ window files to bytes_model.py unconditionally, and under set -euo pipefail a missing one stops the script. Fixed in 69ea66c: the row now says most steps skip missing runs but the bytes model needs both window files, so the script stops without the plain and mtp runs. I left the script itself (and its header comment, which makes the same claim) unchanged, since it is the profile workstream's generator for committed evidence.
bytes_model.py reads the window files of both plain_nsys/ and mtp_nsys/, which analyze_all.sh passes unconditionally, so the script stops under set -e unless the plain and mtp runs exist; it does not analyse an arbitrary subset of runs. (Codex on #126.)
|
@codex review |
|
Verdict: APPROVE (provisional: Codex is still running on 69ea66c. I will confirm or withdraw once it finishes on this head.) Review of the exact head 69ea66c: three commits, Markdown only.
Merge-order note (non-blocking). #123 adds |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 69ea66c69a
ℹ️ 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".
| | `run_all.sh` | GPU steps: `microbench`, `plain`, `mtp`, `baseline`, `startprofile`, `graphtrace`, `eager`, `host`, `dflash`, `gdn`, `ncu` | raw reports in `$VP_DATA` | | ||
| | `analyze_all.sh` | Every analysis below, in order. Most steps skip when their raw runs are missing, but the bytes model needs the window files of both `plain_nsys/` and `mtp_nsys/`, so the script stops without the `plain` and `mtp` runs | everything in `evidence/profiles/` except the microbenchmark files (`hbm_bandwidth.json`, `head_microbench*.json`, `microbench_clocks.json`) | |
There was a problem hiding this comment.
Document the tracked outputs from run_all.sh
run_all.sh does not write only raw reports under $VP_DATA: its microbench step writes hbm_bandwidth.json, head_microbench.json, and microbench_clocks.json under evidence/profiles/, gdn writes gdn_kernel_bench.json there, and ncu writes ncu_key_kernels.json. Following this index can therefore unexpectedly overwrite or create committed evidence, and the next row is also inaccurate because analyze_all.sh cannot regenerate gdn_kernel_bench.json; list these direct evidence outputs and exclude that file from analyze_all.sh's coverage.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed on both points. run_all.sh's microbench step writes hbm_bandwidth.json, head_microbench.json and microbench_clocks.json, gdn writes gdn_kernel_bench.json and ncu (via run_ncu.sh and ncu_summary.py) writes ncu_key_kernels.json, all directly into evidence/profiles/; analyze_all.sh regenerates only ncu_key_kernels.json of those. Fixed in 7dc9b57: the run_all.sh row lists the five files, the Commands paragraph warns that those steps replace committed copies, and the analyze_all.sh row names its eleven steps and excludes the directly written files and head_microbench_kernels.json.
The microbench, gdn and ncu steps write hbm_bandwidth.json, head_microbench.json, microbench_clocks.json, gdn_kernel_bench.json and ncu_key_kernels.json into evidence/profiles/ themselves, so running them replaces committed files, and analyze_all.sh does not regenerate them (except ncu_key_kernels.json). Name analyze_all.sh's steps exactly. (Codex on #126.)
|
@codex review |
|
Verdict: APPROVE (provisional, on 7dc9b57: Codex is still running on this head. I will confirm or withdraw once it finishes.) The head moved from 69ea66c, which voids my earlier approval. The new commit 7dc9b57 changes only
Everything else is as in my review of 69ea66c. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7dc9b57673
ℹ️ 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".
| | `gsm8k_arms.py` | GSM8K accuracy per lever stack through `bench.quality`, for the declared quality budget | pending | | ||
| | `make_long_prompts.py` | The 2,048-token prompts of P4's served test, built from a bench split | input of the P4 test | | ||
| | `run_p4_admission.sh`, `check_admission.py` | P4's admission preflight: every arm's server must run 128 requests at once during the measured phase | pending | | ||
| | `run_p4b.sh` | P4's served test in one exclusive hold: kernel checks, admission, output probe, then the paired A/B | pending | |
There was a problem hiding this comment.
Do not say run_p4b reruns kernel checks
When a contributor runs run_p4b.sh, it does not execute the kernel checks described here: the script only requires the engine to equal the previously tested SHA and records that it is reusing the kernel results from run 20261001T082738Z (run_p4b.sh lines 82-89). This index therefore overstates what a fresh P4 served-test run validates; describe those checks as reused prerequisites rather than steps performed by the script.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed: run_p4b.sh checks that the engine is still at c29a91692b and reuses the kernel results of run 20261001T082738Z rather than running them. Fixed in b1676f7: the row now lists the steps the script runs (admission preflight, server output probe, the paired A/B validated by validate_p4_ab.py) and says the kernel checks are reused from an earlier run. The same commit corrects gdn_exact_replay_check.py's row (its bench mode times exact replay against the packed decode, not ReplaySSM) and adds run_profiles.py's /start_profile mode.
run_p4b.sh reuses the kernel checks of an earlier run instead of running them (Codex on #126), and gdn_exact_replay_check.py's bench mode times the exact replay against the packed decode, not ReplaySSM. run_profiles.py also has a /start_profile mode.
|
@codex review |
|
Verdict: REQUEST CHANGES (withdraws my provisional approval of 7dc9b57) Codex finished on 7dc9b57 with one P2, r4156717855, and it is right. The Blocking: reword the row. For example: "P4's served test in one exclusive hold: checks the engine is the one the reused kernel checks (run 20261001T082738Z) ran on, then admission, output probe and the paired A/B". Then reply on the thread. Everything else stands from my reviews of 69ea66c and 7dc9b57. |
|
Verdict: APPROVE (provisional, on b1676f7: Codex is still running on this head. I will confirm or withdraw once it finishes.) b1676f7 fixes Codex P2 r4156717855 and has a reply. The The two other corrections in the commit are also accurate:
Everything else stands from my earlier reviews. |
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
Three experiment directories had no README:
experiments/profiling(24 files),experiments/moonshot(19) andexperiments/repair(11 plusruns/). Someone opening them had to read each script's docstring to find out what it does and which evidence it produces. This adds a short index to each, and fixes two README statements that no longer match the repository. Markdown only.Script indexes. Each new README has one row per file: what it does, and the evidence file it writes. Where a script has no committed output, the row says so ("pending" for runs that have not landed; for
repair/gdn_state_bench.pyandrepair/nsys_kernels.py, why there is none: the Stage A microbenchmark was stopped without output, and the decomposition session's Nsight runs failed at launch, both as recorded inevidence/repair/README.md). The exact commands stay where they are, in the matching evidence README (and, for profiling, inrun_all.shandanalyze_all.sh); the indexes point there rather than repeating them. No unmerged branch adds or edits a README in these directories. When the moonshot and repair branches add scripts, their rows go in these tables.Stale statements.
experiments/head_geometry/README.mdcalled transport "the manuscript's Section 4". That was a section of the imported manuscript; inpaper/it is the transport section (Section 5,paper/sections/transport.tex), which the line now names.evidence/precision/README.mdwas titled "certified low-precision head (theory workstream)". It holds the exact floating-point reference tests, the Lean log and the head constants, so the title now says that (the certified-head kernel evidence will have its own directory). Its "manuscript's l_inf/l_1 family" now reads "paper's".experiments/drafter/README.mdalso omits about half its files from its table. It is left to the drafter workstream, whose unmerged branch adds about twenty scripts there.Verification:
evidence/; "pending" rows match the pending lists inevidence/profiles/README.md, the register's pending results and the absence of the file onmain.python scripts/check_paper_references.py: no register path missing atorigin/main(no paths changed).pre-commit run --fileson the five files, including the host-identity guard: clean.pytest -qnot run for this branch: the change is Markdown only, and while timed holds ran the full suite had to wait for a shared GPU-lock slot. The queued run was cancelled after the merge, so no result is reported.Codex comments.
experiments/profiling/README.mdclaimedanalyze_all.shanalyses "whatever raw runs exist". Codex pointed out that it passes both theplain_nsys/andmtp_nsys/window files tobytes_model.pyunconditionally, so underset -euo pipefaila missing one stops the script. Correct; fixed in 69ea66c, where the row now states the prerequisite. The script and its header comment, which makes the same claim, are left unchanged because they are the profile workstream's generator for committed evidence.run_all.shwrites only raw reports, although itsmicrobench,gdnandncusteps write five files straight intoevidence/profiles/, and thatanalyze_all.shdoes not regenerategdn_kernel_bench.json. Correct; fixed in 7dc9b57: therun_all.shrow lists the five files, the Commands paragraph warns that those steps replace the committed copies, and theanalyze_all.shrow names its eleven steps and the files it does not write.run_p4b.shruns the P4 kernel checks; it reuses them from an earlier run after checking the engine commit. Correct; fixed in b1676f7. Rechecking the other rows against the scripts at the same time, I also correctedgdn_exact_replay_check.py(itsbenchmode times exact replay against the packed decode, not ReplaySSM) and addedrun_profiles.py's/start_profilemode.