Skip to content

tooling: det-sweep coverage ledger so main sees coverage (#4270) - #4606

Merged
squid-protocol merged 3 commits into
mainfrom
tooling/4270-sweep-coverage
Oct 7, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
tooling/4270-sweep-coverage

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4270.

Main's proof_blockers could not see coverage for non-Db2 det-swept cases with no committed port (no evidence record). This adds a committed, CI-checked ledger written from the det sweep.

Strict-bar count (proof_blockers.py <baseline survey> --label before --branches, no --sweep): proven 1 -> 3 (COSGN00C, ABNDPROC cbsa-abndproc, UPDCUST cbsa-updcust). coverage: unknown 9 -> 0 programs (the unknowns became real numbers: branch/paragraph gaps or Db2 gaps; ranking diff in the handoff note). Ledger numbers come from one fresh proof_sweep.py --det-only --skip-db2 (40 cases; 3 baselined unproven, 11 proven cases print no coverage line and get no entry, so stay unknown).

Ledger tests/equivalence/det_sweep_coverage.json (26 cases), written only by tests/tools/det_coverage_ledger.py update SWEEP_DIR...:

{"format": "det-sweep-coverage/1", "about": "...", "cases": {CASE: {"scenarios": N,
  "paragraphs": {"covered": P, "live": L}, "branches": {"covered": B, "total": T},
  "inputs": {"case": SHA, "corpus": SHA, "harness": SHA, "oracle": SHA}}}}

Fingerprints are evidence.py's compute_inputs digests (case dir, corpus pin, harness, oracle; not the Java generator, which cannot change COBOL-side coverage). det_coverage_ledger.fresh_coverage(case, load()) returns (P, L, B, T) or None when stale -- evidence_report can use it for cases without an evidence record.

Ratchet: proof_sweep.py --aggregate (CI's det job) now also fails on a proven case with no entry, numbers the sweep disagrees with, a stale case/corpus fingerprint, or an entry for a missing case; stale harness/oracle only warns. proof_blockers coverage order: sweep line, fresh ledger, evidence record. Stale or missing stays unknown.

Gates: full pr_gates 7/7 pass. No evidence records or approvals written.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol added a commit that referenced this pull request Oct 7, 2026
L2 is the det-sweep verdict alone (main's CI ratchet; a local --sweep for
Db2); the #4048 evidence record becomes a reported column. Coverage comes
from the --sweep line or the det-sweep coverage ledger (#4606, fresh
entries, frozen at build like the record status). Bars default to 100%
paragraphs / 100% branches, with "net of reviewed infeasible outcomes"
reported as not yet available (#4602). Pins come from the #4597 manifest.
Reports re-rendered at translator commit ec87c13.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…) and fail when it is not tracked

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review October 7, 2026 13:08
@squid-protocol
squid-protocol merged commit 7d1a0b7 into main Oct 7, 2026
26 checks passed
@squid-protocol
squid-protocol deleted the tooling/4270-sweep-coverage branch October 7, 2026 13:09
squid-protocol added a commit that referenced this pull request Oct 7, 2026
squid-protocol added a commit that referenced this pull request Oct 7, 2026
L2 is the det-sweep verdict alone (main's CI ratchet; a local --sweep for
Db2); the #4048 evidence record becomes a reported column. Coverage comes
from the --sweep line or the det-sweep coverage ledger (#4606, fresh
entries, frozen at build like the record status). Bars default to 100%
paragraphs / 100% branches, with "net of reviewed infeasible outcomes"
reported as not yet available (#4602). Pins come from the #4597 manifest.
Reports re-rendered at translator commit ec87c13.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 7, 2026
squid-protocol added a commit that referenced this pull request Oct 7, 2026
L2 is the det-sweep verdict alone (main's CI ratchet; a local --sweep for
Db2); the #4048 evidence record becomes a reported column. Coverage comes
from the --sweep line or the det-sweep coverage ledger (#4606, fresh
entries, frozen at build like the record status). Bars default to 100%
paragraphs / 100% branches, with "net of reviewed infeasible outcomes"
reported as not yet available (#4602). Pins come from the #4597 manifest.
Reports re-rendered at translator commit ec87c13.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 7, 2026
squid-protocol added a commit that referenced this pull request Oct 7, 2026
* tooling: purchaser-facing evidence report (#4601)

tests/tools/evidence_report.py writes, per estate, report.md + report.json
(gitgalaxy-evidence-report/1): a row per program with a level L0-L5 and the
numbers under it -- translation, executed equivalence, coverage, oracle
backing, assumptions named, residual risk, reproducibility. Filled only from
cics_census / proof_blockers / evidence / cics_spec_status / the crucible
baseline / oracle_assumptions.md. Corpus- and sweep-dependent inputs are
frozen in a `measured` block, so --refresh and --check need no corpora.

Committed for the five burned estates under
docs/language_status/evidence_report/. Tests: staleness (--check),
forbidden words, every Markdown number comes from the JSON, levels.
The nightly evidence-refresh job rebuilds the reports (--refresh --live).

Part of #4270.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* tooling: evidence report follows the owner's #4601 decisions

L2 is the det-sweep verdict alone (main's CI ratchet; a local --sweep for
Db2); the #4048 evidence record becomes a reported column. Coverage comes
from the --sweep line or the det-sweep coverage ledger (#4606, fresh
entries, frozen at build like the record status). Bars default to 100%
paragraphs / 100% branches, with "net of reviewed infeasible outcomes"
reported as not yet available (#4602). Pins come from the #4597 manifest.
Reports re-rendered at translator commit ec87c13.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* tooling: re-render evidence reports on main 3bcbb8c (after #4606, #4616)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* tooling: evidence report ladder per the owner (#4601): net branches, mutation rung

L4 is 100% of branch outcomes net of the case's reviewed infeasible
outcomes (infeasible_outcomes.stated, #4602), listed per program as stated
claims with family and reason; raw and net numbers both printed, and a
refuted claim blocks L4. L5 is every surviving det-port mutant accounted
for (#4628), reported as not yet measured. Oracle backing leaves the
ladder and becomes a per-program column (DIFFERS reached: not measured).
Model-port mutation scores are left out on purpose. Reports re-rendered
with --refresh.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant