joule-code-conformance: the header undersold the harness by a whole suite #367
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/joule-code-conformance-header"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while hand-checking a candidate my own cross-standard audit had flagged — and the audit was wrong.
verify_cascadeandverify_gated_cascadeboth exist, so joule-code's C4 and C5 are implemented. But reading the crate to disprove the flag turned up three stale claims in its own documentation.It says four suites; there are five
That omits C5 gated cascade, whose six vectors demonstrably run (
c5-ungranted-l4-denied-even-when-it-would-close,c5-exhausted-budget-stops-the-escape-hatch-on-the-second-run, …). A reader of the header would not know C5 is covered at all.This is the understating direction of the defect family the last several changes here have been about: documentation narrower than the code. It is the benign direction — better than claiming coverage that doesn't exist (#357) — but it still misleads, and in a conformance harness the header is how an implementer learns what the pack proves.
It implies something is outstanding when nothing is
Both the lib header and
main.rsexplain SKIP as "derived fields pending regeneration". Butconformance/v1/regeneration.mdsays:And the run agrees: 24 passed, 0 failed, 0 skipped.
So two documents disagreed about whether the pack has a backlog. The SKIP mechanism is kept — a future input change re-opens that state, and
is_placeholderis still live — but it no longer reads as though something were outstanding. All three documents now say the same thing.Three
cargo docwarnings were the docs' own faultThose are Rust array literals for the fixed test keys, written without backticks — so rustdoc parsed
[1;32],[2;32],[7;32]each as an intra-doc link and could not resolve any of them. Backticked.cargo doc --no-depsfor this crate goes from 3 warnings to 0. (Unlike the eight I deliberately left injouleclaw-energyin #353, these are neither platform-gated nor another author's cfg-split docs — they are a plain typo in prose this PR is already correcting.)Verification
joule-code-conformance -- verify ../conformance/v1— 24 passed, 0 failed, 0 skippedcargo test -p joule-code-conformance --locked— exit 0cargo clippy -p joule-code-conformance --all-targets --no-deps --locked -- -D warnings— 0 findingscargo doc --no-deps -p joule-code-conformance— 0 warningsOn the audit that led here
Worth stating plainly: the cross-standard audit that flagged this flagged three standards, and every one was a false positive, now each checked by hand:
joule-codeC4/C5 — implemented asverify_cascade/verify_gated_cascade;senseC1–C5 — implemented as named fixture functions (c1_replay_digest,c4_run,c5_verify) plus#[test]s;mapC1–C5 — implemented viarun(); its header states "five positive suites and a negative pack … there are no placeholder SKIPs", and theF0–F4ids my audit matched are the fidelity cascade, not itsCclasses.So the audit produced zero real findings. A grep-level comparison of spec clause ids against ids in source cannot distinguish named differently from absent, and it is recorded as unreliable rather than kept as a tool. Disproving its flags by hand was still worth the time, because that is what surfaced the three stale claims above — and because the one genuine instance of this defect class (#357's
C25) was found by reading, not by grepping.🤖 Generated with Claude Code