The completion guard met a path policy only when one of its registered
proof files was staged with a diff. The cheapest diff was one more
expect(source).toContain(...) pin, so registered proof files grew
thousands of source-text pins that verify nothing about behaviour.
A requirement is now also met when every touched runtime file is
already exercised by a registered proof (exact_files, or tests under
test_prefixes) in the evaluated tree: the index before a commit, the
commit itself in CI. proof_coverage.py decides that statically:
- Go: the test compiles with the package or imports it, without a
non-platform build tag that keeps it out of the default run.
- TS/JS: the test imports the module. readFileSync, Vite ?raw,
import type, typeof import() and vi.mock'd modules do not count.
- Python: the test imports the module (AST, so docstrings and
TYPE_CHECKING imports do not count).
- Docs, workflows, scripts and data: the test names the exact path.
A staged proof still satisfies a requirement as before, and a change
no registered proof exercises still blocks; the message now lists the
uncovered files. Replaying the last 40 main commits, 35 of 44 proof
requirements would have needed no proof edit, at under 0.2 s a commit.
The shape guard shares the same check, and subsystem_lookup --pretty
names the covering proofs so nobody edits one just to pass.
Generic text audits (shared-template-audit.mjs) are deliberately not
coverage: they check export names, which are pins by another name.