Skip to content

State: the declared first-cycle test is inconclusive (960 fresh prompts) - #174

Merged
SamMausberg merged 4 commits into
mainfrom
state/first-cycle-results
Oct 2, 2026
Merged

SamMausberg merged 4 commits into
mainfrom
state/first-cycle-results

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

The first-cycle test declared in #114 and implemented in #116 has run on its 960 fresh prompts. The declared result is inconclusive: neither criterion holds, and on the fresh prompts the first verify cycle after the prefill diverged from plain decoding less often per fragile position than later cycles, not more.

Result (evidence/state_safety/first_cycle_fresh.json)

Pairs (960 prompts, none excluded) First cycle: diverged / fragile positions Later cycles Odds ratio
Primary, pooled (plain c1 vs MTP steps 5 c1 and vs tree c1) 8 / 162 (4.9%) 842 / 11,252 (7.5%) 0.68
Control, pooled (MTP steps 5 and tree, c1 vs c32) 6 / 156 (3.8%) 845 / 11,567 (7.3%) 0.55
  • (a) one-sided 95% percentile lower bound of the pooled primary log odds ratio: -1.437, not above 0.
  • (b) the same bound for the primary minus the control log odds ratio: -0.865, not above 0.
  • Secondary: one-sided Fisher exact p = 0.92.
  • Descriptive, post hoc (amendment below): the data are inconsistent with a pooled primary odds ratio above 1.28 (one-sided 95%, the 95th percentile of the same 10,000 prompt-resampling bootstrap replicates, percentile method), which is below the exploratory 2.36. The same bound for the primary minus control log odds ratio is 1.26.

The exploratory pattern from #110 (7/40 and 6/33 first-cycle fragile positions diverging for MTP steps 5 and the tree, 17.8% pooled) did not recur. That fits it having been a small-sample fluctuation picked out after looking at the data; neither the declared test nor the post-hoc bound establishes that. The prefill-to-decode GDN handoff check, which was to follow a supported result, is not run.

Validity (none of the declared void conditions applies)

  • Runs: plain c1 (hold 1, 2026-10-01 19:15-19:29 UTC) and MTP steps 5 and the tree at c1 and c32 (hold 2, 2026-10-01 23:53 to 2026-10-02 00:16 UTC). Declared flags, pinned pools (cap 8, 49,152 KV tokens, 40 GDN slots), radix cache (extra_buffer) and overlap on, cold passes, clean engine pin bd66ce343e, repo_sha = b918c8b in every run; each configuration's c1 and c32 from one server.
  • Records: exactly the 960 frozen prompts in every run, prompt lengths equal to the frozen ones, every record complete (stop or 256 tokens, top-5 logprobs at every token), all 960 pass the chunk checks.
  • Attestation: before and after records for both holds, clean checkout at b918c8b with its runner files, one run_matrix.py process per hold from that checkout with the canonical prompt file and hash, analysed files equal to the after hashes, every pass started inside its hold. The watcher (a byte-identical copy of the committed attest_runner.py) logged no restart after 13:41 UTC on 2026-10-01, before hold 1, and the guard that would have logged its death during a hold logged none; the after records come from the same watcher process that wrote the before records.
  • KV provenance: radix cache on as declared, flushed before every pass; plain c1 and the MTP c1 runs served the same prompts in the same order, so the primary pairs have identical request histories.

Amendment of 2026-10-02 (post hoc, descriptive; approved by main before it ran)

The declared statistics are one-sided lower bounds, which cannot say what excess the data are inconsistent with. The amendment (committed before the amended code ran) makes first_cycle.py also write the 95th percentiles of the same bootstrap replicates (same default_rng(0) draws) under descriptive_upper_95, rounded up. Nothing declared reads them. tests/test_state_safety_first_cycle.py loads the declaration-era script from a493cbf and checks that, with the new key removed, the output is byte-identical on synthetic runs (supported and inconclusive cases); the regenerated evidence file was checked the same way against the first output before it was committed.

Commits

  1. The declared result, computed with first_cycle.py unchanged since a493cbf (before either hold), from origin/main at fc47cf6.
  2. The dated amendment text in experiments/state_safety/README.md.
  3. The amendment code and its test.
  4. The regenerated first_cycle_fresh.json (declared keys byte-identical) and the final README wording.

Command (SGLang venv, from experiments/state_safety/): python first_cycle.py --runs ~/vp-data/state/runs_fresh --out ../../evidence/state_safety/first_cycle_fresh.json. analyze_all.sh runs the same line.

Checks

  • pytest tests/test_state_safety_first_cycle.py and pre-commit run --files on every changed file, in main's CPU window (log in the PR comments if asked).
  • self_review.md gone through: every number above recomputed from first_cycle_fresh.json; the verdict is stated as declared; the post-hoc bound is labelled as such.

Paper markers this closes once merged: state-firstcycle (paper/notes/register.tex, status.tex, engine.tex). The paper text goes to main separately.

first_cycle.py (unchanged since a493cbf) on the five declared runs in
~/vp-data/state/runs_fresh. None of the void conditions applies: all runs at
b918c8b on the clean engine pin with pinned pools, 960 frozen prompts, complete
records, both holds attested clean before and after, no prompt excluded.

Pooled primary pairs (plain c1 vs MTP steps 5 and the tree at c1): 8 of 162
first-cycle fragile positions diverged against 842 of 11,252 later (odds ratio
0.68). Neither declared criterion holds: the one-sided 95% lower bounds are
-1.437 for the primary log odds ratio and -0.865 for its excess over the
control. The decision is inconclusive; the exploratory first-cycle excess of
the pinned matrix did not recur on the fresh prompts.
Dated 2026-10-02, written after the declared result was seen and approved by
the integrator before it runs. first_cycle.py will also write the 95th
percentiles of the same bootstrap replicates (one-sided 95% upper bounds) for
the primary log odds ratio and its excess over the control, outside the
decision. The declared statistics, criteria and verdict do not change.
descriptive_upper_95 holds the 95th percentiles of the same 10,000 replicates
(same default_rng(0) draws) for L_p and L_p - L_c, rounded up, and the primary
bound as an odds ratio. Nothing declared reads them. A new test loads the
declaration-era script from a493cbf and checks that, with the new key removed,
the output is byte-identical on synthetic runs, supported and inconclusive.
The amended first_cycle.py on the same runs. With descriptive_upper_95 removed
the file is byte-identical to the declared result of the first commit (checked
before committing). The README states the declared verdict first and the
post-hoc bound as descriptive.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T01:54:01.661500Z 8270b7f Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 8270b7fe62

ℹ️ 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".

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at 8270b7f

The declared output is the declared analysis's output, byte for byte. I reran both versions on the raw runs in ~/vp-data/state/runs_fresh (CPU window, 03:09 UTC), each from its own worktree:

  • first_cycle.py from a full checkout of a493cbf, the declaration-era tree, siblings included. Its output is byte-identical to first_cycle_fresh.json as committed in 0127f1c.
  • the amended script from 8270b7f. Its output is byte-identical to the committed 8270b7f file.

Each run passed every declared void check on the raw data, because the script writes nothing otherwise. With descriptive_upper_95 removed, the 8270b7f file serializes byte-identically to the 0127f1c file. first_cycle.py is unchanged from a493cbf to 0127f1c (empty diff). The amendment adds only two np.percentile reads of the existing bootstrap arrays and draws nothing from the RNG, so the declared keys cannot move. The compare.py changes since a493cbf only add code inside compare_pair and summarize, not the load_run and spec_cycles_consistent that the analysis imports. pytest tests/test_state_safety_first_cycle.py: 11 passed.

The numbers match the file.

  • Pooled primary 8/162 against 842/11,252; control 6/156 against 845/11,567.
  • The odds ratios 0.68 and 0.548 use +0.5 per cell, which is declared (first_cycle.py:19, 131; experiments README). The raw table's ratio, 0.64, would differ.
  • Lower bounds -1.4371 and -0.8649; Fisher p = 0.9228; per-pair counts sum to the pooled ones.
  • 13/73 = 17.8% for the pinned matrix's first-cycle rate.
  • The declaration's power figures, 219 and 12,200 positions and odds ratio 2.36, are at experiments README lines 246-252.

Post hoc labelling is right.

  • The upper bound (descriptive_upper_95: 0.2392 log odds, 1.271 as an odds ratio, 1.2536 for the difference) is called post hoc and descriptive in the JSON's own note, the evidence README, the dated amendment section and the PR body. It comes after the declared verdict in each.
  • 1.28 and 1.26 are 1.271 and 1.2536 rounded up, the safe direction for an upper bound.
  • The order is verified in the commit job that ran in the CPU window (state-fc-commits): the declared result computed in an earlier window, then the amendment text committed, then the amended code with its test (pytest gating the commit), then the regenerated evidence, checked against the first output.

Validity and hygiene. Validity rests on the script's void checks, now reproduced on the raw runs, rather than on fields in the JSON. The README's description of them matches what first_cycle.py enforces. No hostname in the diff, the commit log or the PR body. Commits are authored and committed by Samuel Mausberg, with no co-author lines. Codex found no major issues on 8270b7f.

Optional:

  • The PR body's results table gives the odds ratio next to the raw counts. Adding "(+0.5 per cell)" there, as the evidence README does in (a), would stop a reader from computing 0.64 and suspecting an error.
  • "the data are inconsistent with an odds ratio above 1.28" is fine as a description of a one-sided 95% percentile bound. "a one-sided 95% upper bound of 1.28" says the same with less inferential weight.

@SamMausberg
SamMausberg merged commit 9a6e849 into main Oct 2, 2026
SamMausberg added a commit that referenced this pull request Oct 2, 2026
The pending paragraph of evidence/state_safety/README.md keeps #174's
first-cycle sentence and this branch's shorter list of queued runs. Two
overlong lines in the first-cycle section and the chunked-prefill wording are
rewrapped; no number changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant