Repository navigation
State safety: list every history pair, tap-session signature, scope the history claim - #86
Conversation
summarize_targeted.py now keeps every pair the history test served (id, predecessor, shared prefix, token identity, first logprob difference) and the prefill cache-hit count from the server log. tap_check.json adds the first changed token and the top-2 gap there in both runs. The new tap_signature.py, run by analyze_all.sh, records where the v1 and v3 tapped sessions (same prompts, same order, no prefill cache hits) first differ. The evidence README now states that four of the five tap-changed prompts do not change in the history test, scopes the history claim to the two prompts that do, separates code reading from measurement, and drops the unsupported claim that the dependence also follows timing.
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: ad8c49c2b0
ℹ️ 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".
| if [ -d "$tap/plain_c1" ] && [ -d "$tap/v3_plain_c1" ]; then | ||
| nice -n 19 python tap_signature.py \ | ||
| --pair "$tap/plain_c1" "$tap/v3_plain_c1" \ | ||
| --pair "$tap/mtp_s3_c1" "$tap/v3_mtp_s3_c1" \ |
There was a problem hiding this comment.
Guard both tap pairs before running the signature
When the optional tap data contains the plain v1/v3 pair but either MTP directory is absent, this condition still invokes tap_signature.py with both MTP paths; the script then fails while reading the missing client.jsonl, and set -e aborts all evidence regeneration. This partial-data scenario is otherwise supported by the surrounding per-session existence checks, so check each pair independently or require all four directories before invoking the command.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 985aedb. Each v1/v3 pair (plain_c1, mtp_s3_c1) is added only when both of its client.jsonl files exist, and tap_signature.py runs only if at least one pair is present. The evidence regenerates unchanged.
Each v1/v3 pair is now checked on its own, so missing MTP tap data no longer aborts the whole evidence regeneration.
|
Verdict: APPROVE Reviewed head 985aedb (ad8c49c plus the Codex fix). It closes the gap I raised on #83: the history test's four null results are now committed evidence. All three evidence files reproduce byte-identical from
Each README claim matches the files:
Codex. Its one P2 (on ad8c49c) said a missing MTP tap directory would abort regeneration under Checks.
Once this merges, Appendix D (#83's follow-up) can state the four null results by citing |
Appendix D: state the full prefix-cache history evidence (#86)
Follow-up to #76, requested in the review of #83.
What changes
summarize_targeted.pykeeps every pair the history test served, underhistory__*.pairs: the id, its predecessor, the shared prefix length, token identity and the first logprob difference. It also records how many prefills reused a cached prefix, read from the server log (none did, in all three history runs).targeted.jsonis regenerated.tap_check.json: for each of the three tap-changed prompts whose tokens changed, it adds the first changed token and the top-2 logprob gap there in both runs. Each gap is 0 (an exact tie) or 0.125.tap_signature.py, run byanalyze_all.shand output toevidence/state_safety/tap_signature.json, compares the v1 and v3 tapped sessions of plain c1 and of MTP steps 3. Each pair has the same flags, the same 167 prompts in the same order, and 0 of 169 prefills with cached tokens in either session. For four prompts (alpaca_eval-0450,alpaca_eval-0500,mt_bench-0053,mt_bench-0059), the first differing module output is layer 3's attention. In plain decoding this is at output index 2; with MTP it is at a verify step, output index 3 or 5. Itsqkv_projoutput and every earlier comparable module output are identical. Until now this signature came from an analysis that was not committed.evidence/state_safety/README.mdcorrections:mt_bench-0056changed. The claim that output depends on which request computed the shared prefix is now limited to the two prompts that reproduce it.Checks
analyze_all.shregenerates the evidence in about 15 s. Apart from the files above, nothing else changes.tap_signature.pyandsummarize_targeted.py. The 10 state-safety tests pass.