Skip to content

tooling: proof-level blocker ranking, spec status page, blocker-slice workflow (#4270) - #4594

Merged
squid-protocol merged 2 commits into
mainfrom
tooling/4270-proof-blockers
Oct 7, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
tooling/4270-proof-blockers

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4270 (the blocker-driven initiative, #4587). Depends on the tools PR (branch tooling/4270-blocker-tools) merging first: the skill references cics_census.py survey/blockers --baseline, blockers --unmask, compare --before-baseline, history append/show, equivalence_env.py --provision and tests/tools/pr_check.py as they will be on main. Nothing in this PR imports them; proof_blockers.py takes any cics_census.py survey directory.

1. tests/tools/proof_blockers.py -- the blocker ranking one level up

For every program a survey translates WHOLE: what stops it being PROVEN, as gap classes ranked by programs made proven (only / one_away, burned / non-burned), like blockers:

gap source
no case no tests/equivalence/*/case.json runs it (its program, or a LINKed one in programs), no crucible det port
known unproven: #issue tests/equivalence/det_sweep_baseline.json
scenario differs: KIND a proof_sweep.py --det-only sweep (--sweep DIR): first diff's event + field root from proof/report.json; crucible java-ported cells in tests/cics_crucible/baseline.json
not proven in CI: Db2 case no sweep given: CI's det-sweep runs --skip-db2
coverage: live paragraphs no scenario runs (--branches: branch outcomes too) the sweep's coverage line, else the case's evidence record; crucible: coverage.json
fact: EIBTASKN / fact: ASSIGN USERID / fact: ASSIGN APPLID/SYSID EIB fields no driver states (both sides read zero), ASSIGN facts an equivalence case cannot state yet (X19), a case with no region
no det port (crucible) a crucible case with no committed port

Without --sweep, a non-Db2 case outside det_sweep_baseline.json counts as proven (main's CI ratchet guarantees it). Census programs are read as cics_census reads them (EXEC CICS / EIB names, counts only). Crucible programs (a surveyed cics-crucible clone) rank apart from the estates.

Run for real on main 8dff2ec2e (survey of all 16 corpora incl. the 9 census clones; a full local det sweep, Db2 included: 56/59 cases proved, the 3 baseline ones not):

estates: translated whole 75 (non-burned 13); proven 22 (non-burned 0)
distinct proof gaps per program: 0: 22, 1: 32, 2: 20, 3: 1
sources: 59 swept cases, 59 equivalence cases, 33 crucible programs

 only gap (B/NB)  one away (B/NB)  touched  proof gap
    19 ( 7/12)     14 (13/ 1)       34  no case
     7 ( 7/ 0)     18 (18/ 0)       26  fact: EIBTASKN (no harness states it)
     6 ( 6/ 0)      6 ( 6/ 0)       12  coverage: live paragraphs no scenario runs
     0 ( 0/ 0)      1 ( 0/ 1)        1  fact: ASSIGN STARTCODE (no equivalence case states it)
     0 ( 0/ 0)      1 ( 1/ 0)        1  known unproven: #4085
     0 ( 0/ 0)      0 ( 0/ 0)        1  fact: EIBRCODE (no harness states it)

## cics-crucible (surveyed clone v0.5.0): translated whole 31, proven 15
      16        0       16  no det port (crucible)

Reading: no non-burned program is proven yet -- all 13 whole non-burned programs need a case first (12 of them need nothing else). On the burned side the cheapest wins are stating EIBTASKN on both sides (7 programs proven at once, 18 more one gap away; GenApp's debug MOVEs and CBSA's RANDOM seed, C12) and strengthening scenarios for 6 programs that leave a live paragraph unrun. Proven today: 14 CardDemo screens, CBSA ABNDPROC / CUSTCTRL / UPDACC / UPDCUST, GenApp LGACVS01 / LGDPVS01 / LGUCVS01 / LGUPVS01 (through their LINKing DB01 cases).

2. Workflow: .claude/skills/blocker-slice/SKILL.md (new), linked from cics-command-slice

A separate skill, not a section of cics-command-slice: the loop picks non-CICS work as often as CICS work (#4588 wide characters, #4590 cut literals / listing control, #4592 FUNCTION RANDOM), so it cannot live in a per-command checklist, and an orchestrator needs one page with the measure / stop rule and the brief template without the release flow. It covers: measure first on the baseline (blockers --baseline, --unmask for * rows) and STOP when nothing goes whole (WEB 2026-10-07: 0 alone, +2 only with JSON; ASSIGN 7 -> 7); the proof-level ranking; SPEC-FIRST (full entry promoted from a name-only one, det/cics.py and the stub read it, runtimes hand-written, crucible logs never derived from the spec, check-hand-derived); --provision, history append, pr_check.py; the honest-refusal patterns of #4588 (D4), #4590 and #4592 (C12, seed as a stated fact); one trap list; a brief template (issue, gap key + counts, acceptance, stop rule, coordination). cics-command-slice now points to it for picking, says "spec entry first" and has the after-merge step.

3. tests/tools/cics_spec_status.py + generated docs/language_status/cics_spec_status.md

Per command: spec entry (full / engine-only / name-only), translator (OPTIONS: honoured / refused-by-name counts), stub (a probe of equivalence_cics.translate_command), X-register entries (checked against oracle_assumptions.md's table), census use (programs, burned / non-burned; counts only), crucible cases; plus section 7's 8 spec PRs with 1-3 done (#4589, #4591, #4593). Spec, translator and stub are read live; census use and crucible cases need corpora, so refresh --census --crucible DIR measures them into the committed cics_spec_status.json (counts and case ids only; .gitignore exception added) and render reads it. Convention as field_testing.py / evidence.py render: render --check, and test_the_committed_page_is_current fails on a stale page (CI's full suite has the translator extra; the test importorskips without it).

Highlights: 251 entries (43 full, 2 engine-only, 206 name-only); every full entry is taken by both the translator and the stub; the most used name-only entries are WEB CONVERSE / WEB OPEN / BIF DEEDIT (5 programs each); the translator keys ASKTIME NOHANDLE / SYNCPOINT NOHANDLE (a bare option first) and SPI INQUIRE / SET to no spec entry -- listed in their own section.

Checks

  • tests/tools/test_proof_blockers.py (8), tests/tools/test_cics_spec_status.py (13): pass.
  • ruff 0.16.0 format + check (no new findings beyond the tests' S101, as every test file), mypy clean on the new files.
  • pr_gates.py --ratchets: 6 pass, 0 fail, 0 skipped. Full pr_gates.py: see the comment below / CI.
  • Census clones were read only through the translator's EXEC parser and counts; estate4_candidates.json never opened. The crucible was a private v0.5.0 clone (the shared checkout untouched).

🤖 Generated with Claude Code

https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6

… workflow (#4270)

- tests/tools/proof_blockers.py: for every program a cics_census survey translates WHOLE, what stops it
  being PROVEN (no case, known unproven, scenario differs, Db2 unswept, coverage, unstated runtime facts
  such as EIBTASKN / ASSIGN USERID), ranked like `blockers` by programs made proven; crucible programs
  ranked apart.
- tests/tools/cics_spec_status.py + docs/language_status/cics_spec_status.{md,json}: per CICS command its
  spec entry, translator / stub support, X-register, census use (counts only) and crucible cases, plus
  the 8 spec PRs' progress; a test fails when the page is stale.
- .claude/skills/blocker-slice: the measure / stop / spec-first loop, honest-refusal patterns, traps
  and the brief template; cics-command-slice links to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6
@squid-protocol squid-protocol added documentation Updates to standard operating procedures, guides, or wiki enhancement New feature, sensor, or structural signature testing Unit, integration, and E2E pipeline verification labels Oct 7, 2026
@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

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

Labels

documentation Updates to standard operating procedures, guides, or wiki enhancement New feature, sensor, or structural signature testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant