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 3d38cc7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(scripts): scope the "is the guard wired" assertions to update()'s own body
The self-test's wiring cases scanned the WHOLE FILE for
`judgeRecordability({ head:`, which matched the battery's own test code. An
ablation proved the consequence: deleting the generator's call to the judge left
the self-test GREEN at exit 0 — the assertion was pinning itself, and the
battery it claimed to protect was a phantom check.
Scoped to a slice of `update()`'s own body, with the slice bounds asserted so a
rename cannot make the case vacuously green instead. The stamp case is scoped
the same way, for the same reason.
Also stops the off-pin case from crashing when the guard is ablated: reading
`[0].includes(...)` off an empty array threw a TypeError where a named failure
belongs, so the self-test redded for the right reason with the wrong words.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
0 commit comments