Repository navigation
Commit 06e3d78
committed
fix(p037-rocq): make assumptions audit fail closed
check.sh's Audit.v/ElectionAudit.v checks piped rocq compile's output into
grep and swallowed the whole pipeline's exit status with a trailing
`|| true`. That masked two real failure modes: rocq compile itself
failing (despite `set -o pipefail`), and a future "Axioms:" line, which
grep would print and still let the script exit 0 for.
Replace both with a check_audit() helper that checks the compile's own
exit code explicitly, then requires the exact expected count of "Closed
under the global context" lines (10 for Audit.v, 6 for ElectionAudit.v)
and zero "Axioms:" lines, failing loudly on any mismatch.
Verified via disposable (never committed) hostile mutations: a syntax
error injected into Audit.v now makes check.sh exit non-zero instead of
silently passing; an axiom-dependent theorem appended to Audit.v is now
rejected instead of merely printed. Restoring the pristine files then
reproduces the original clean PASS (10/10, 6/6).
Also dropped the undocumented `bc` dependency, used only for cosmetic
per-file timing that README never declared as a toolchain requirement.
No theorem, proof, kernel, or production change. Re-verified: check.sh
PASS; 11/11 + 4/4 mutants killed; election_loc_gate.py 111/180; ruff
check . passes; diff against rust/, frontend/, ownlang/,
formal/p037-kernel/ is empty; Phase-B instrument_identity and
B_treatment_head/B_after_evidence are unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AN6xHbpovxrmZ4AMjS7WQA1 parent e4c73f4 commit 06e3d78
1 file changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
30 | 59 | | |
31 | | - | |
| 60 | + | |
32 | 61 | | |
33 | | - | |
| 62 | + | |
0 commit comments