Repository navigation
Description
Overview
Closed epic #2516 gave the engine the full IBM mainframe language family — cobol, jcl, bms (#2505), pli (#2502), db2_sql (#2511), hlasm (#2503), rexx (#2504) — each with CICS command-level parity (#2990) and a validated control corpus.
The modernization suite that ships alongside it is still COBOL-only, and parses COBOL itself. A sweep of galaxy_master|galaxyscope|_galaxy_audit|LANGUAGE_DEFINITIONS|signal_processor across gitgalaxy/tools/cobol_to_java/, gitgalaxy/tools/cobol_to_cobol/ and both controllers returns only # galaxyscope:ignore pragma comments — no imports, no artifact reads. The two halves of the product share nothing.
This epic connects them: the product should consume what the engine extracts, and the per-layer transformations the language family now makes possible should exist.
The strategic case: every competing offering migrates COBOL program-by-program. But a real estate is COBOL plus the JCL that runs it, the BMS screens that front it, the DB2 that stores it, the PL/I siblings, and the REXX glue. A whole-platform mapping is the differentiated product — and the extraction for it already exists and is already validated. Scanning IBM's zopeneditor-sample yields 107 extracted units across five mainframe languages in one DB (cobol 70, jcl 25, pli 7, rexx 4, hlasm 1); the refraction pipeline can act on the cobol 70 only, and only by re-parsing them itself.
Phase 1 — Foundation (filed)
- Refraction pipeline: consume the engine's master DB instead of re-parsing COBOL #3120 — Refraction pipeline: consume the engine's master DB instead of re-parsing COBOL
- CI: compile the generated Spring Boot output (no Java toolchain in CI today) #3121 — CI: compile the generated Spring Boot output (no Java toolchain in CI today)
Phase 2 depends on #3120 landing first — every item below assumes the pipeline reads engine output rather than its own parser.
Phase 2 — Per-layer transformations (planned; NOT yet filed)
File each as work is scheduled. Each row maps an engine signal that already exists to its migration target.
| engine signal | migration target | readiness |
|---|---|---|
bms class_start → DFHMDI map + field names |
web form / Spring MVC view | Highest-value first candidate — the UI layer, the most business-visible part of a migration, and nothing consumes it today. Caveat: zopeneditor-sample contains no .bms files, so this path rests on the #2505 profile plus its keyword-rosetta control shell, not yet on real-corpus evidence — a real BMS corpus is a prerequisite |
ui_framework → CICS SEND MAP / RECEIVE |
HTTP request/response cycle | signal exists |
ipc_rpc_bridges → CICS LINK / XCTL / channels & containers |
service-to-service call boundaries | signal exists |
jcl DD/PGM extraction + edge_data |
Spring Batch step definitions / an Airflow DAG | signal exists |
pli func_start (+ its #2990 CICS/SQL/DLI parity) |
Java services | PL/I programs in a CICS estate get zero migration support today |
db2_sql statements |
JPA repositories, dialect-aware | signal exists |
io + PIC/COMP-3 layouts |
decoded entities | Already built — the decoder forge (Cp1047 EBCDIC, packed-decimal → BigDecimal with scale, hex-boundary validation) and the PIC/OCCURS/REDEFINES → JPA mapping are the suite's strongest existing components. Phase 2 extends their reach, it does not rebuild them |
rexx labels |
utility scripts / Java helpers | signal exists |
hlasm |
— | Explicit non-goal, see scope notes |
Scope notes
hlasmis not a migration target. Assembler is a wrap-or-retire boundary. This is a deliberate scope limit, stated so it does not read as an omission.- Scale is unproven. The suite's tools are 60-283 lines each, validated against sample banking applications — not a multi-million-line estate. A real-estate scale trial is its own prerequisite and should not be assumed by any phase-2 item.
- Not every legacy-adjacent improvement belongs here. Engine-side rule hardening stays under the language profiles' own issues (see Detection hardening: EQU-only .asm copybooks misclassify as assembly (hlasm discriminator gap) #3110 for the current example), and report-presentation work stays in the Remove the Cumulative Risk composite (unitless sum of 13 mixed-unit vectors) #3112-Documentation Surface: reframe as coverage context, not a risk driver #3114 family.
Related groundwork
#2516 (closed parent — the language additions), #2502 / #2503 / #2504 / #2505 / #2511 (the five language children), #2990 (CICS vocabulary parity across cobol/pli/hlasm), and #3117 (the detection-accuracy analogue of #3121's verification gap).
Activity
feat(#3210): hand-verified COBOL answer key for the #3120 corpora, sc…
fix(#3199): resolve an ambiguous COPY target instead of dropping the …
squid-protocol commentedon Sep 20, 2026
The refraction differential now has cause codes + a per-corpus unexplained gate (#3211, PR #3243), so "every delta explained" is a standing command. Two things it surfaced that belong on this epic's radar:
--corpusreports 0 unexplained on zopeneditor and CBSA; carddemo still carries 157 (142 of them COBOL forge: fixed-format reader ignores cols 73-80 sequence numbers, dropping paragraphs (142 on carddemo) #3244) purely because it has no hand-verified key to adjudicate against. A carddemo key (the COBOL modernization answer key: hand-verified per-program truth for the #3120 corpora, scored against forge and engine #3210 treatment for the third corpus) turns its residuals into scored old-parser/engine verdicts and is what's needed to close the loop on the BMS corpus.Everything else the differential flags maps to already-closed issues (#3197-#3201) or by-design semantics (usage_status != reachability; DB stated-absences), so no new tickets there — the differential + its committed baseline is the living ledger.
feat(mainframe): extract COBOL DATA DIVISION items & FD record layouts (
feat(mainframe): capture the CICS transaction map (#3211-followup, epic
feat(mainframe): capture the CICS transaction map (#3211-followup, epic
feat(mainframe): capture the CICS transaction map (#3211-followup, epic
feat(refraction): grade the CICS transaction map as a differential da…
squid-protocol commentedon Sep 26, 2026
Closing: the pipeline now consumes what the engine extracts.
Never filed: the REXX helpers row of the Phase 2 table. HLASM remains an explicit non-goal. File either as a new issue if it's wanted.
Generated by Claude Code