Repository navigation
Closed
Labels
epicLarge-scale architectural milestone or multi-issue initiativelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forging
Description
The COBOL→Java path today generates a fixed Spring Boot scaffold, with Spring Boot 3.2.4, Java 17, Maven, PostgreSQL, Lombok, JPA and Batch all hardcoded, from the refactoring stage's schemas alone. The engine now extracts and verifies the whole CICS skeleton (#3445, #3489, #3575), but almost none of it reaches the Java side. This epic does two things:
- makes the target configurable, via a YAML config;
- makes the generator consume the verified skeleton, layer by layer.
It ends with proof that the generated code behaves like the COBOL.
Order:
- Java conversion: YAML target config (Java / Spring Boot versions, build tool, DTO style, database, features) #3613 YAML target config: the foundation every generator reads.
- CI: compile the generated Spring Boot output (no Java toolchain in CI today) #3121 Compile the generated output in CI, across a config matrix.
- Java conversion: hand the verified mainframe skeleton to the generator #3614 Hand the verified skeleton (with verification tiers) to the generator: the foundation for 4-11.
- Java conversion: CICS transactions + COMMAREA / channel contracts -> REST endpoints and request / response DTOs #3615 Transactions + COMMAREA / channels → REST endpoints and DTOs
- Java conversion: LINK / XCTL / CALL targets (incl. data-driven and remote SYSID) -> service-to-service calls #3616 LINK / XCTL / CALL (data-driven, remote) → service calls
- Java conversion: CICS FILE (VSAM) operations + FILE-CONTROL / IDCAMS -> Spring Data repositories #3617 CICS FILE (VSAM) → Spring Data repositories
- Java conversion: embedded DB2 (table access + DCLGEN) -> repositories, dialect per config #3618 Embedded DB2 → repositories
- Java conversion: BMS screens + symbolic maps -> view models and (per config) web views #3619 BMS screens + symbolic maps → view models / web views
- Java conversion: TS / TD queues, containers and MQ -> messaging adapters #3620 Queues + MQ → messaging adapters
- Java conversion: units of work and handlers -> @Transactional boundaries and exception mapping #3621 Units of work + handlers → @transactional + exceptions
- Java conversion: JCL job flow -> Spring Batch jobs #3622 JCL job flow → Spring Batch
- Java conversion: PL/I programs through the same pipeline #3623 PL/I through the same pipeline
- Java conversion: behavioural equivalence harness + CardDemo vertical slice #3624 Behavioural equivalence harness + CardDemo vertical slice
Principles:
- Deterministic scaffolding; AI only for bounded business-logic tickets.
- Every generated artifact traces to the fact it came from. Where a fact is unresolved or draft-tier, the generated code says so (a TODO naming the gap), and never guesses.
- Every config combination compiles.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
epicLarge-scale architectural milestone or multi-issue initiativelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forging
Activity
squid-protocol commentedon Sep 26, 2026
All 13 items are done: #3613, #3121, #3614-#3624. Closing.
What the epic delivered. The generator no longer makes a fixed scaffold from COBOL schemas alone. It now turns the engine's verified model of a whole mainframe estate into a configurable Spring application:
@Transactional;How it's held accountable:
traceability.json), and what is left to a person is sorted inmigration_worklist;Final validation (#3624, PR #3748): CardDemo's CBACT04C ran as COBOL under GnuCOBOL and as the Java on the same inputs:
Published: squid-protocol/cobol_to_java_examples#2 rebuilds the examples on the verified corpora, with provenance, licence notices, scan comparisons and the equivalence report.
Open follow-ups: