Skip to content

inventory: fallback_parse reads program text only, not sequence/identification areas (Part of #5106) - #5323

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5106-20261017T0931Z
Oct 17, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5106-20261017T0931Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5106 (first scanner-input gap).

What

fallback_parse (gitgalaxy/tools/readiness/inventory.py) ran its EXEC CICS / EXEC SQL / FUNCTION / verb regexes over raw fixed-form source. A multi-line EXEC block therefore read sequence numbers (columns 1-6, 73-80) as words (RETRIEVE 01327507), and a verb in the identification area or in a comment line was counted. New program_text() blanks columns 1-6 and 73+ and empties comment lines (column 7 * / /); free-form source (>>SOURCE FORMAT FREE) is returned whole. Line count is kept.

Class table

Member Status
CICS/SQL/FUNCTION/statement regexes over raw text in fallback_parse fixed here, tested
comment-line stripping fixed here, tested
free-form passthrough tested
CALL-target category in the inventory sibling gap (new schema category, moves every fixture)
stand-in copybook (CEEIGZCT) record sibling gap (same)
rule catalogue (#4711) feature keys sibling gap (catalogue join key)
the 8 unowned refusals sibling gaps (own translator/runtime work each)

Evidence

  • New tests in tests/cobol_mainframe/test_feature_inventory.py: sequence numbers in cols 1-6 / 73-80 over a multi-line EXEC CICS, comment verb, identification-area verb, free-form.
  • pr_gates --fast 6/6, --ratchets 8 pass / 0 fail / 0 skipped. test_feature_inventory, test_support_matrix, test_readiness_report, test_assess: 84 passed, 6 nightly skips.
  • No golden or fixture moves: no parsing code touched.

Finding (not fixed here)

The committed CardDemo feature_inventory fixture is already stale on main: it still has the RETRIEVE 01327507-style keys, but with the MQ stand-in copybooks (#5236) those programs no longer reach fallback_parse, so a rescan drops them (plus statement/data-type count shifts, COPY CMQGMOV/CMQODV gaps gone). Reproduced with this fix disabled, so it is not caused by this PR. --check is nightly-only (GITGALAXY_NIGHTLY=1), and test_assess.test_carddemo_sequence_numbers_never_reach_the_report asserts the stale keys exist, so refreshing the fixture needs that test's premise dropped. Left for a follow-up.

🤖 Generated with Claude Code

…dentification areas (Part of #5106)

fallback_parse ran its EXEC CICS / SQL / FUNCTION / verb regexes over raw fixed-form
source, so a multi-line EXEC block read sequence numbers as words
(`RETRIEVE 01327507`) and a verb in columns 73-80 or a comment was counted.
program_text() blanks columns 1-6 and 73+ and empties comment lines; free-form
source is left whole.

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 17, 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 17, 2026 10:02
@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 10:06
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit d849e54 into main Oct 17, 2026
67 checks passed
@squid-protocol
squid-protocol deleted the churn/5106-20261017T0931Z branch October 17, 2026 10:16
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