You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f684af
Browse filesBrowse the repository at this point in the historyBrowse files
fix(scripts): evaluate the census self-test's battery floor before its verdict
`selfTest()` printed its verdict line, set the handshake flag, and only then
evaluated its battery floor. Two consequences, both measured on the source: a
floor breach printed "all cases passed" and then its own FAIL lines (a
transcript that contradicts itself), and any early exit inside the floor region
left a run that had printed the success line, set the handshake and exited 0
with its floor never evaluated. The floor's own comment already claimed it was
"Evaluated ... BEFORE the verdict"; the code order said otherwise.
The floor block moves above the verdict write, byte-identical (its rules, the
roster and SELF_TEST_BATTERY_FLOOR are untouched), so the `failures` the verdict
reads already includes any floor breach. The handshake flag becomes the last
statement of the function, after the success line prints, which is the landed
shape scripts/check-agent-model-declared.mjs carries and what the AGENTS.md
--self-test band requires. The comment now describes the order it relies on.
The ordering is a STATIC property -- the floor prints only when it fails, so a
passing run's bytes are identical either way and no mutation of a green tree
exposes it -- so a new self-test case reads it off this file's own text: the
floor above the verdict, the floor feeding the counter the verdict reads, the
flag below the verdict with no exit between them, and the flag as the last
statement before the return. Filed under the battery already open; the roster is
not widened.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BTeBejoPUvRHN8WdAJC6oF
0 commit comments