Skip to content

assess: ranked rules to land in the report, closed gap classes only (Part of #4726) - #6085

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4726-20261022T2259Z
Oct 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4726-20261022T2259Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4726 (slice 2: the ranked rules of the readiness report, #5228, carried by gitgalaxy assess).

What

gitgalaxy assess now writes rules beside the dry run's counts: the ranked rules to land, per estate, with only / one_away / touched and the era mix of the only programs (the ordering of cics_census.blockers).

Design decision: closed classes, never text. A hole's text can quote the program, so dryrun.translate_program reduces each hole at once to a gap class (schema.gap_class): a COBOL statement, EXEC CICS plus the spec's command words, or EXEC SQL, plus at most one reason from the fixed list GAP_REASONS; anything else is the word other. A refusal is refused: <exception class>. The outcome holds only these names (the existing text-free outcome test is untouched). validate refuses a rule outside the classes, an entry with extra keys, or an era mix that does not sum to only. Rules carry no program or copybook name, so redaction is unaffected. rules is written only when the dry run ran.

Files (4 hand-written)

gitgalaxy/tools/readiness/schema.py, dryrun.py, tests/cobol_mainframe/test_assess.py, docs/assess.md.

Tests

  • planted-marker estate gains PLANT4 (a CICS WRITE with a quoted file / key length, a MOVE of an undeclared name): the real subprocess run's rules holds EXEC CICS WRITE: key length not known and MOVE: no such item, and ZQX appears nowhere in the report (plain or redacted).
  • 11 real hole shapes (CardDemo, CBSA, GenApp, DBB) each with a planted marker reduce to the expected class; ranking equals the census order; a class outside the closed set becomes other; validate refuses widened rules.

Class table (the report's gap classes)

Member Status
Statement holes (MOVE, COMPUTE, CALL, SET-POINTER, ...) done, closed STATEMENTS + reasons
EXEC CICS holes done, spec words only
EXEC SQL holes done (head + reason)
Refusals done, refused: <exception class>
Holes no class names done, other

Sibling gaps

  • Reason list is a lower bound of the translator's wording: a new hole wording lands in the bare head or other until added to GAP_REASONS. Not here: the list grows with the translator.
  • Dry-run placeholder artifacts (no generated screen for map, no batch package) can top the ranking; documented in docs/assess.md, not removable without a generated project.
  • No --previous delta in assess (the committed report has one); different mechanism.
  • Post-publish PyPI install check: still open (docs follow-ups).

Remaining slices

Delta against a previous report (schema + assess.py + test + docs); PyPI post-publish check (workflow, owner approval).

Evidence

pr_gates --fast 7/7; --ratchets 9 pass, 0 fail, 0 skipped; tree-wide guards 191 passed; per-test time ratchet 0 over, 0 warned. test_assess*.py: 79 passed, 5 skipped (corpus / nightly). Real run on DBB MortgageApplication prints 12 classes. No parsing code touched: no golden drift.

Cross-repo

None.

🤖 Generated with Claude Code

…Part of #4726)

The dry run reduces each hole to a closed gap class (a statement, EXEC CICS with
the spec's command words, EXEC SQL, plus one fixed reason, or `other`); project()
ranks them by only / one_away / touched with the era mix, as cics_census.blockers
does. validate refuses a rule outside the classes.

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 22, 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 22, 2026 23:13
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 23:15
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit d7baeb1 into main Oct 22, 2026
76 checks passed
@squid-protocol
squid-protocol deleted the churn/4726-20261022T2259Z branch October 22, 2026 23:35
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