Skip to content

readiness report: oracle caveats count reached register entries where measured (Part of #5229) - #6420

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5229-20261020T2029Z
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5229-20261020T2029Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial [c:7c9ae995] -- the evidence report does not measure reach yet (its assumptions.reach is still the string "not measured"; proof records carry no per-scenario command or model trace), so the narrowing has no input. This PR ships the readiness-report consumer half.

What changed

readiness_report.caveats() now counts, per program, the register entries in assumptions.reach.registers (intersected with the entries its commands name) when the evidence report supplies them, and the named-by-commands upper bound otherwise. A row carries named_only (programs counted by the upper bound) only when non-zero; the markdown table gains a "named only" column and an "(upper bound where a program's reach is unmeasured)" heading only then. With today's committed reports nothing is measured, so output is unchanged apart from the named_only key on every row (all programs are upper-bound) and the heading text.

Tests: three new cases in tests/cobol_mainframe/test_readiness_report.py (all upper bound, mixed measured/unmeasured, fully measured with no named_only key).

Class / Sibling gaps

Class: readiness-report inputs that are upper bounds until the evidence report measures them. Covered here: oracle caveats (consumer side, shape reach = {"registers": [ids]}). Not covered: the measurement itself (see Remaining slices). Other upper-bound inputs in the class: none found in readiness_report.py.

Remaining slices

  1. Harness: record the CICS commands (or oracle model entries) each proof scenario executes into the evidence record (tests/tools/equivalence.py / evidence.py; today oracle.assumptions is None and proof.outputs holds only equal/record counts). Needs a re-prove of every burned case, so it is its own PR.
  2. evidence_report.py line ~790: map executed commands to register ids (css.registers) and emit reach = {"registers": [...]} only when the record carries the trace; update its "reach: not measured" prose and the charter (definition_of_done.md sections 3/4).

Gates

pr_gates.py --fast 7/7 pass (ruff 0.17.1 pinned); test_readiness_report.py, test_source_reads.py, test_generated_branch.py pass (46). --ratchets not run: no engine, golden or ledger input touched.

🤖 Generated with Claude Code

… measured (Part of #5229)

caveats() reads assumptions.reach.registers when an evidence report carries it and
falls back to the named-by-commands upper bound otherwise, counting those programs
per row in named_only. The evidence report does not emit reach yet, so output on
the committed estates is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 08:31
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 08:42
@squid-protocol
squid-protocol merged commit 91271b8 into main Oct 24, 2026
53 checks passed
@squid-protocol
squid-protocol deleted the churn/5229-20261020T2029Z branch October 24, 2026 09:04
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant