test(core): the traceability gate
A claim is worth what backs it. The new bookspec test module reads every claimed rule's Enforced and Checked paragraphs and follows each backticked name to a real Rust item, test, Kani harness, Lean theorem (checked against bookspec's embedded Audit.lean), path, rule id, or an explicitly classified value; it requires a live record behind every bookspec id and a unique WB id. It then walks every pub fn in the kernel and requires a harness that calls it, a bridge property that calls it, and a harness whose numbered law is a row of spec/laws.md; the wrappers and enum maps with no independent proof are named in a pinned exceptions list with why. Finally it checks every law row that cites a claimed rule names audited theorems or says why not. Floors on sections, tokens and kernel functions, and a made-up name that must fail, keep the gate from passing vacuously. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
5703657957
commit
0a90290160
2 files changed
+1927
No files matched your search
@@ -95,3 +95,4 @@ mod rules_md;
|
||||
mod run;
|
||||
mod source_refs;
|
||||
mod sources;
|
||||
mod traceability;
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user