Repository navigation
State safety: declare the first-cycle test on a fresh prompt set - #114
Conversation
prompts.py --set fresh builds 384 prompts disjoint from the original 320. Their token IDs are frozen in prompt_manifest_fresh.json; the original set is unchanged and its digest is the same. The experiments README fixes the test of the exploratory first-cycle observation before any data exists: - runs: pinned plain, MTP steps 5 and the tree, each at c1 and c32; - primary test (a): pooled one-sided Fisher exact test of first-cycle against later-cycle divergences at fragile positions, alpha 0.05; - selection control (b): the same odds ratio from the c1-vs-c32 pairs, compared by prompt-level bootstrap; - decision: an excess specific to speculation is supported only if (a) and (b) both hold.
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: 4cbd1bfb55
ℹ️ 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".
| - **Primary test (a).** Pool the counts of the two pairs MTP steps 5 c1 vs plain c1 | ||
| and MTP tree c1 vs plain c1 into one table: first or later cycle against diverged | ||
| or not, at fragile positions. Test it with a one-sided Fisher exact test (first | ||
| cycle rate higher), alpha 0.05. |
There was a problem hiding this comment.
Replace the position-level Fisher test with a clustered test
The same prompt contributes many sequential positions, and pooling these two comparisons also reuses the same prompts and plain-c1 reference positions, so the table entries are neither independent nor distinct observations. A Fisher exact p-value on these pooled position counts therefore understates uncertainty; the prompt-level bootstrap specified for control (b) does not repair primary test (a). If this declared rule is used as written, pseudoreplication can produce nominal support at alpha 0.05, so (a) should also use a prompt-clustered bootstrap/permutation or a prompt-level endpoint.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed, fixed in a0417dc. (a) is now prompt-level. It is the one-sided 95% percentile lower bound of the pooled primary log odds ratio, from a prompt bootstrap: 10,000 replicates with numpy default_rng(0), one shared resample per replicate across all four pairs, +0.5 per cell. (b) uses the same resamples for L_p - L_c. The pooled Fisher test stays as a reported secondary only. The declaration also fixes four things. First, each pair's reference run (whose top-2 gap defines fragility), compared run and cycle-labelling run. Second, a common prompt population: a prompt is excluded from all four pairs if any MTP run is not one chunk per cycle. Third, the expected counts and an approximate joint power. Fourth, that a result short of support is reported as inconclusive.
|
Verdict: REQUEST CHANGES Review on the exact head 4cbd1bf ("Declare the first-cycle test on a fresh prompt set before running it"). Verified
Blocking
On your question about (b). I think it controls the selection (frailty) effect reasonably well. The control pairs have a similar overall divergence hazard (MTP between c1 and c32 at 3.1 to 3.5 per 1,000, against 3.5 to 4.0 for MTP against plain), so the early depletion of high-hazard prompts should be comparable. It has two limits:
The decision text already says "an excess specific to speculation", which is the right scope, and the handoff check is the follow-up. Please keep both limits in mind when the result is written up. Suggestions (non-blocking)
|
Reviewer and Codex: the pooled position-level Fisher test treated positions as independent although they cluster by prompt. The declaration now specifies: - (a): a prompt-level bootstrap lower bound of the pooled log odds ratio, with Fisher kept as a secondary test; - each pair's reference, compared and labelling runs, and whose top-2 gap defines a fragile position; - one shared prompt resample per replicate across all four pairs, with percentile bounds; - the exact statistics (+0.5 per cell); - a common prompt population; - that a result short of support is reported as inconclusive. The fresh set grows to 960 prompts, still disjoint from the original set, for an approximate joint power of 0.87 at the exploratory effect (odds ratio 2.36). The power method and its optimism are stated, as is the different source mix. The original manifest is unchanged.
|
@codex review |
|
Verdict: APPROVE (provisional: Codex's review of a0417dc was still running when I posted this. I will re-check its threads on this head before merge.) Re-review on the exact head a0417dc ("Make the declared first-cycle test prompt-level and size it for power").
Blocking: none. Suggestion (non-blocking, from the last round). Running |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a0417dca6c
ℹ️ 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".
| 'prompt_set': args.prompt_set, | ||
| 'selection': { | ||
| 'gsm8k': 'test rows 0-79', | ||
| 'humaneval': 'test rows 0-59', | ||
| 'mt_bench': 'first turn of questions 0-79', | ||
| 'alpaca_eval': 'rows 0, 10, ..., 590', | ||
| 'cnn_dailymail': 'test rows 0-39', | ||
| **{name: _describe(r) for name, r in SELECTION[args.prompt_set].items()}, |
There was a problem hiding this comment.
Preserve the legacy manifest when generating main prompts
Running the existing documented command without --set now regenerates the original main prompt set but unconditionally adds "prompt_set": "main" and replaces its source-specific selection descriptions with generic ones. Because the checked-in evidence/state_safety/prompt_manifest.json retains the old schema—and the new README explicitly says it is unchanged byte for byte—the command advertised for reproducing that evidence instead leaves a different manifest. Preserve the legacy serialization for main, or update the tracked manifest and the byte-for-byte claim.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 7427a32. build_manifest() keeps main's original layout: no prompt_set key, and the original selection wording via MAIN_SELECTION_TEXT. Other sets add prompt_set before selection, which is the committed fresh manifest's order. Running prompts.py without --set now reproduces the committed main manifest and prompts.jsonl byte for byte, and --set fresh does the same for the fresh manifest and its prompts. tests/test_state_safety_prompts.py checks both layouts and, when the prompt files are present, both committed manifests byte for byte. All four tests pass here.
|
Verdict: REQUEST CHANGES This updates my provisional approval of a0417dc (#114 (comment)), which I withdraw. Codex finished its review of a0417dc at 12:50:49 and left one P2. It has no reply or fix yet. Blocking
Everything else from my a0417dc review still holds. |
Codex (r4155532398) found that prompts.py without --set no longer reproduced the committed main manifest: the selection descriptions had changed and a prompt_set key had been added. build_manifest() now keeps the original layout for main (no prompt_set key, the original selection wording). Other sets name themselves before the selection, in the committed fresh manifest's order. Regenerating gives byte-identical main and fresh manifests and prompt files. tests/test_state_safety_prompts.py checks the layouts, and checks both committed manifests byte for byte when the prompt files are present.
|
@codex review |
|
Verdict: APPROVE (provisional: Codex's review of 7427a32 was still running when I posted this. I will re-check its threads on this head before merge.) Re-review on the exact head 7427a32 ("Keep the main prompt manifest regenerating byte for byte").
Blocking: none. Suggestions: none. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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". |
|
Verdict: APPROVE (confirmed on 7427a32) Codex finished its review of 7427a32 at 12:54:39 with "Didn't find any major issues". |
Appendix D.5: the declared first-cycle test as a pending result (#114)
Declares the follow-up test of the exploratory first-cycle observation in #110 before any data for it exists, as the coordinator asked.
What changes
prompts.py --set freshbuilds 960 prompts that share no prompt with the 320 used so far: GSM8K test rows 80–559, HumanEval rows 60–163, AlpacaEval rows 5, 15, …, 795 and CNN/DailyMail test rows 40–335. The set is sized for an approximate joint power of 0.87 at the exploratory effect. MT-Bench has no unused questions. Every third prompt per source runs in thinking mode, as before.evidence/state_safety/prompt_manifest_fresh.jsonfreezes the token IDs (SHA-256).mainset and its digest are unchanged; I regenerated it to check.experiments/state_safety/README.md, "Declared follow-up", fixes the test before any data exists:No runs are queued yet. The runs and the analysis script follow after this merges, so the declaration is on main before any data for it exists.
Checks
Pre-commit passes, including mypy and the host-identity hook.