Repository navigation
assess: ranked rules to land in the report, closed gap classes only (Part of #4726) - #6085
Merged
Merged
Conversation
…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]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 23:13
squid-protocol
enabled auto-merge (squash)
October 22, 2026 23:15
Contributor
Owner
Author
|
No description provided. |
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4726 (slice 2: the ranked rules of the readiness report, #5228, carried by
gitgalaxy assess).What
gitgalaxy assessnow writesrulesbeside the dry run's counts: the ranked rules to land, per estate, withonly/one_away/touchedand the era mix of theonlyprograms (the ordering ofcics_census.blockers).Design decision: closed classes, never text. A hole's text can quote the program, so
dryrun.translate_programreduces each hole at once to a gap class (schema.gap_class): a COBOL statement,EXEC CICSplus the spec's command words, orEXEC SQL, plus at most one reason from the fixed listGAP_REASONS; anything else is the wordother. A refusal isrefused: <exception class>. The outcome holds only these names (the existing text-free outcome test is untouched).validaterefuses a rule outside the classes, an entry with extra keys, or an era mix that does not sum toonly. Rules carry no program or copybook name, so redaction is unaffected.rulesis 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
rulesholdsEXEC CICS WRITE: key length not knownandMOVE: no such item, andZQXappears nowhere in the report (plain or redacted).other; validate refuses widened rules.Class table (the report's gap classes)
MOVE,COMPUTE,CALL,SET-POINTER, ...)STATEMENTS+ reasonsEXEC CICSholesEXEC SQLholesrefused: <exception class>otherSibling gaps
otheruntil added toGAP_REASONS. Not here: the list grows with the translator.no generated screen for map,no batch package) can top the ranking; documented indocs/assess.md, not removable without a generated project.--previousdelta inassess(the committed report has one); different mechanism.Remaining slices
Delta against a previous report (schema + assess.py + test + docs); PyPI post-publish check (workflow, owner approval).
Evidence
pr_gates --fast7/7;--ratchets9 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