Repository navigation
CICS coverage: skeleton-completeness report + ingestion checklist (#3498, #3499) - #3505
Merged
Merged
Conversation
, #3499) GalaxyIR.completeness() measures how much of a scanned estate's mainframe skeleton resolved, per channel -- program calls, copybooks, transactions (CICS programs a transaction / LINK / XCTL / START reaches, CSD programs present), screens, data flows, IMS PSBs, batch entry (batch main programs a JCL step runs) -- and splits the rest into `system` (IBM / runtime names: IDCAMS, CEE3ABD, DFHAID, EIB fields -- not gaps) and named gaps. Gaps map to `missing_inputs`: what to ask the estate owner for, with counts and examples; engine limits (dynamic targets, dynamic map names, programs in assembler / PL/I calls do not link to) are gaps with no input. tools/cobol_to_cobol/completeness_report.py renders it (Markdown / JSON) from a master DB. docs/mainframe_ingestion_checklist.md lists each input: what it unlocks, how to extract it, the signal that shows it is missing. Pinned corpus numbers (a test): CardDemo 83%, CBSA 80%, zOpenEditor 89%. CBSA's gaps are real: four programs only its z/OS Connect API LINKs, three CSD transactions to programs it does not ship, a MAP/MAPSET name mismatch. Closes #3498 Closes #3499 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
This was referenced Sep 24, 2026
Contributor
squid-protocol
pushed a commit
that referenced
this pull request
Sep 25, 2026
…nnotations `def main(argv: list[str] | None = None)` is evaluated at import on Python 3.9, raising TypeError in tests/cobol_mainframe/test_completeness.py and test_tool_regex_redos.py on every 3.9 matrix cell (since #3505; the matrix only runs on labelled PRs, so main never exercised it). tests/cobol_mainframe on Python 3.9.23: 481 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YAtpBfGGyBGGovitSVaM5Q
squid-protocol
added a commit
that referenced
this pull request
Sep 25, 2026
… their class (#3377) (#3637) * fix(ruby): calls without parentheses, `?`/`!` names, and methods owned by their class (#3377) calls_out used CALLS_OUT_C_STYLE (`name(`), which found a third of Ruby's calls: idiomatic Ruby writes `obj.to_s`, `xs.each do`, `puts x`, and method names end in `?`/`!`. The new CALLS_OUT_RUBY takes a name when it follows a receiver dot (`obj.name`, `obj&.name`, a leading-dot chain, `Mod::name`), is followed by `(`, ends in `?`/`!` (a local variable never does), or opens a statement as a command with an argument (`puts x`, `command! "brew"`) -- never a bare word, which Ruby cannot tell from a local variable without a symbol table. Keywords, modifiers (`value if cond`), ternaries, `!=`/`=~` and `name?:` hash labels are excluded; ReDoS-tested. detector.py runs it like the C-style family (qualifiers, #3360 header check) via QUALIFIED_CALLS_OUT_PATTERNS. call_graph_accuracy ruby (vs tree-sitter): recall 34.4% -> 92.9%, precision 91.5% -> 92.7%. 41 of the 71 misses left are `class`/`require`/`raise`, which the contract ignores. Baseline regenerated (it also ratchets javascript, php and typescript gains already on main). Paren-less capture exposed a resolver false edge: brew.rb's bare `puts` resolved `unique` to AbstractDownloadStrategy's private `def puts`. Root cause: no Ruby method was ever attached to its class. The class-scope search looked for a `{`, found the first hash literal or block, and ended the class there (208 of 283 crucible methods classless, 38 agreeing with tree-sitter's enclosing class). Ruby now uses the indentation scoping Python uses -- a class ends at its `end` -- and 245 agree, 0 classless; the rest are naming (`ActiveStorage::Blob` vs `Blob`, `class << self`). The false `puts` edges and an old false `fetch` edge (brew.rb's `options.fetch`) are gone. Golden masters: shell/brew/download_strategy.rb Popularity Rank / Direct Downstream 1 -> 0, plus the network_macro and systemic_bottlenecks ripple and Composition Fit. Closes #3377. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YAtpBfGGyBGGovitSVaM5Q * fix(py39): completeness_report's `list[str] | None` needs postponed annotations `def main(argv: list[str] | None = None)` is evaluated at import on Python 3.9, raising TypeError in tests/cobol_mainframe/test_completeness.py and test_tool_regex_redos.py on every 3.9 matrix cell (since #3505; the matrix only runs on labelled PRs, so main never exercised it). tests/cobol_mainframe on Python 3.9.23: 481 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YAtpBfGGyBGGovitSVaM5Q * fix(windows): `/` paths in cross_verify's answer matching and the signal-contract render Two Windows-only failures in the Full Suite Gate matrix, present on main since each landed (the matrix only runs on labelled PRs): - tests/tools/cross_verify.py `_rel` stripped a `/`-joined root, but on Windows `str(Path("/repo"))` is `\repo` and answer paths are `\repo\B.cbl`, so no task-B/C/D/E answer ever matched its key (3 test_cross_verify tests). Both sides are now compared with `/`. - tests/signal_contract_audit.py rendered doc links with `Path('..') / doc`, i.e. `..\docs\x.md` on Windows, so the committed render always read stale. PurePosixPath keeps the link `/` on every OS; the Linux render is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YAtpBfGGyBGGovitSVaM5Q --------- Co-authored-by: Claude <[email protected]>
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 epic #3489.
What it does
GalaxyIR.completeness()measures how much of a scanned estate's mainframe skeleton resolved, channel by channel:systemcounts names that IBM or the runtime supplies, so they are not gaps: IDCAMS, IEFBR14, CEE3ABD, DFHAID, EIB fields.missing_inputsturns the gaps into what to ask the estate owner for, with counts and up to five examples.scoreis the mean of the channel ratios: a coarse summary. The channels are the real answer.tools/cobol_to_cobol/completeness_report.pyrenders the report as Markdown or JSON from a master DB:python -m gitgalaxy.tools.cobol_to_cobol.completeness_report <master.db> [--md out.md] [--json out.json].docs/mainframe_ingestion_checklist.md(#3499) covers the CSD, the web / API layer, copybook libraries, vendor copybooks, BMS sources, PSB/DBD, JCL/PROCs, application programs and the scheduler export. For each it gives what it unlocks, how to extract it (DFHCSDUP LIST, PROCLIB unloads,LISTLOAD, CA-7LJOB…), and the completeness signal that shows it's missing.Pinned corpora
The numbers are pinned per channel in
test_pinned_corpus_completeness, which runs locally when the corpora are fetched. Any change is either an engine improvement (re-pin) or a regression.Scope
The report is an IR / CLI view. Showing it in the scan's audit report and LLM brief needs the scan to load the IR after writing the DB, which is a follow-up, now tracked as #3506. The checklist item "shown in the audit report and the LLM brief" is therefore not done in this PR.
Checks
Closes #3498
Closes #3499
🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g