Repository navigation
Moonshot P4: check sent prompts by content (bench ids break on repeated texts) - #98
Conversation
The run of 08:27-09:03 UTC failed validation at 'prompts not as expected' in all eight arms. long2048.jsonl holds 91 distinct texts among 512 prompts, and bench's prompt_index keeps one id per text hash, so its id-based prompts_as_expected is False even when the declared texts are sent. validate_p4_ab.py now compares the multiset of SHA-256 hashes of the prompt texts in the profiling phase of the raw AIPerf stream with that of the declared file's first 256 prompts (counts included), after checking that file's own hash. On p4_ab_20261001T082738Z this content check passes in all eight arms (checked alone; the verdict has not been computed). Tests: repeated texts sent in another order pass; a foreign prompt and a wrong count of a repeated text fail; bench's id flag alone does not decide (30 passed with the probe tests). README 2c records the correction as made after the run, before its verdict was computed.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Verdict: APPROVE Reviewed head e37eed1 (3292b57 and e37eed1, committed 10:05:41 and 10:06:14 UTC) on main, after #96. This changes a validator after the data exists, so I checked it against the run's own artifacts as a bug fix, not a relaxation. The cause is a bench mapping artifact, not wrong prompts.
The new check is content-exact and no weaker.
Verified on the run.
The README is honest about the timing. 2c records the correction at 10:05 UTC, after the run (08:27–09:03) and before any verdict. It gives the reason and the 91-distinct-texts fact, and notes that the radix cache is off, so the repeats have no caching effect. Checks.
The full validator may now be run on that directory, and its verdict reported with the probe outcome. |
Follow-up to #96 (merged), now based on main. It fixes the validator check that failed the P4b
run of 08:27-09:03 UTC (
~/vp-data/moonshot/p4_ab_20261001T082738Z). It was made after therun, before its verdict was computed or looked at.
What failed and why
validate_p4_ab.pystopped at "prompts not as expected", and all eight arms carryprompts_as_expected: false. That flag is bench's id comparison:sorted(sent ids) == sorted(expected ids). The sent ids come fromprompt_index, which maps atext hash to the last id with that text.
long2048.jsonlholds only 91 distinct texts among its512 prompts, each repeated about 6 times:
make_long_prompts.pycycles the source split, and itscursor returns to the same offsets. So the recorded ids differ from the declared ones even when
the declared texts are sent.
From the run's artifacts, the profiling phase of the raw AIPerf stream (payload message
content) holds exactly the texts of
long2048.jsonl[:256], with equal counts, in every arm.The warm-up phase holds only warm-up-pool texts. The radix cache is off in both arms, so the
repeats have no caching effect.
Change
check_sent_promptsreplaces the id check. It verifies the declared file by its SHA-256,then requires the multiset of SHA-256 hashes of the profiling-phase prompt texts to equal
that of the file's first 256 prompts, counts included. Nothing else changes.
repeated text fail; bench's id flag alone does not decide. 30 pass, together with the probe
tests. The subprocess runner now sets the declared hash to the synthetic workload's.
and that the workload has 91 distinct texts.
On the real run
Run alone (not the full validator, so no verdict is computed), the content check passes on all
eight arms of
p4_ab_20261001T082738Z. The full validator will be re-run on that directory onlyafter this change is approved; the verdict stands only if every other check passes.