You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Architecture: Create "CICS-crucible" (The Ultimate Transactional Evil Benchmark) #3989
Mainframe developers over the last 40 years have done unspeakable things to CICS (Customer Information Control System) and BMS (Basic Mapping Support). To ensure our cobol_to_java Spring Boot generator is bulletproof, we need an adversarial CICS-crucible repository filled with the most horrific transaction state and UI edge cases imaginable.
The "Evil" Benchmark Suite
This repository will stress-test the CICS-to-Spring conversion pipeline with:
The Spaghetti Condition Trap: Bizarre EXEC CICS HANDLE CONDITION and HANDLE ABEND jumps that completely break structured Java try/catch flow control.
The Hex Attribute Trap: BMS screen logic that bypasses standard UI attributes and manually injects raw Hex codes into the UI buffer (e.g., MOVE X'3C' TO MAP-ATTR) to make fields blink, turn invisible, or unlock dynamically.
The COMMAREA Mismatch Trap:EXEC CICS XCTL and LINK commands where Program A passes a 100-byte COMMAREA, but Program B expects a 500-byte COMMAREA, forcing the Java generator to handle memory padding and truncation safely.
The Pseudo-Conversational Nightmare: Deeply nested EXEC CICS RETURN TRANSID() COMMAREA() logic that bounces state between screens endlessly.
The Goal
If the Java code generated from the CICS-crucible successfully compiles and runs with 100% equivalence in a Spring Boot / REST API context, the engine is officially ready for the most complex Fortune 500 banking migrations.
New public repo squid-protocol/cics-crucible, pinned by gitgalaxy CI to a release tag the way language-crucible is.
Each case ships a hand-written expected event log, derived from IBM CICS documentation and citing it. The Java port and the COBOL run on our stub runtime (tests/equivalence/cics/ggcics.c) must both match that log, so the stub is under test too, not the oracle.
Raw hex attribute bytes in BMS maps (MOVE X'..' TO xxxA, DFHBMSCA vs literals, the 3270 attribute bits)
COMMAREA length mismatch on XCTL / LINK (EIBCALEN, short and long commareas, LENGTH vs FLENGTH)
START TRANSID ... INTERVAL/TIME with FROM data and RETRIEVE
Pseudo-conversational RETURN TRANSID COMMAREA chains across screens
Each case has programs, copybooks, BMS, a CSD, scenarios, expected events and doc citations.
Phase 2: gitgalaxy runner
cics_crucible tool: scan, refract, generate Java, compile, then run the equivalence harness per case against the expected events.
Baseline ratchet ledger (like the Unicode gauntlet), pin (CICS_CRUCIBLE_REF + a PINNED_TAG constant), CI job, docs/ecosystem.md entry.
Phase 3: close the gaps
Each failing cell becomes an issue: engine facts, forge output, or harness/stub semantics. The harness does not yet model LINK, START/RETRIEVE, EIBCALEN padding/truncation or attribute bytes.
The Java cells can pass only once the generated runTask bodies are ported. That is porting work (#3753), beyond these harness issues. The issues above make every cell measurable, and they make the COBOL-on-stub side match the oracle.
The Java side is now fully measurable (0 unsupported). All 37 cells fail because the generated runTask bodies are skeletons.
Remaining for this epic's goal ("compiles and runs with 100% equivalence"): port the runTask bodies through the porting loop (#3753). The crucible is now the test bed for that.
Deferred and refused by name in the harness: READQ/WRITEQ TS SET/SYSID; START AFTER/AT/RTRANSID/QUEUE; RETRIEVE SET/WAIT; HANDLE ABEND PROGRAM; LINK SYSID/CHANNEL; RECEIVE NOTRUNCATE/SET. Crucible known gaps (FLENGTH, file control, validator cross-checks) are listed in its README.
All three phases are complete: cics-crucible v0.2.0 is pinned (#4032), every scenario passes on the COBOL stub (44/44) and on the ported Java (44/44), with 0 unsupported cells and full paragraph and branch coverage of all 17 programs. The 44 remaining baseline cells are the generated skeletons with empty task bodies, which can't pass by design. Mutation testing continues in #4024.
Activity
squid-protocol commentedon Sep 29, 2026
Plan (2026-09-29)
Decisions:
squid-protocol/cics-crucible, pinned by gitgalaxy CI to a release tag the way language-crucible is.tests/equivalence/cics/ggcics.c) must both match that log, so the stub is under test too, not the oracle.Phase 1: cics-crucible repo
Case format (spec).
Apache-2.0; original programs only, nothing copied.
At least 2 cases per trap:
MOVE X'..' TO xxxA, DFHBMSCA vs literals, the 3270 attribute bits)START TRANSID ... INTERVAL/TIMEwith FROM data and RETRIEVERETURN TRANSID COMMAREAchains across screensEach case has programs, copybooks, BMS, a CSD, scenarios, expected events and doc citations.
Phase 2: gitgalaxy runner
cics_crucibletool: scan, refract, generate Java, compile, then run the equivalence harness per case against the expected events.CICS_CRUCIBLE_REF+ aPINNED_TAGconstant), CI job,docs/ecosystem.mdentry.Phase 3: close the gaps
🤖 Generated with Claude Code
#3989: commit the CICS crucible baseline and fixture JSON
#3989: strict transcoding in the CICS crucible runner (#3813 guard)
#3989 phase 2: CICS crucible runner, baseline ratchet and CI (#4000)
squid-protocol commentedon Sep 29, 2026
Phase 1 and 2 done; phase 3 filed
Phase 3 lane A:
Phase 3 lane B:
The Java cells can pass only once the generated
runTaskbodies are ported. That is porting work (#3753), beyond these harness issues. The issues above make every cell measurable, and they make the COBOL-on-stub side match the oracle.🤖 Generated with Claude Code
Fix #4005: CICS harness models terminal RECEIVE of unformatted input (#…
Fix #4010: layout_fields expands a nested COPY instead of shifting la…
Fix #4002: CICS harness models TS queues (READQ / WRITEQ TS) (#4015)
Fix #4010: layout_fields expands a nested COPY instead of shifting la…
Fix #4010: layout_fields expands a nested COPY instead of shifting la…
Fix #4011: dto_shape resolves a class by its package, never an arbitr…
Fix #4003: CICS harness models the condition machinery
Fix #4009: CicsTask records SEND TEXT length/options, RECEIVE MAP, an…
24 remaining items
Fix #4001: BMS output fidelity in the stub and CicsTask (9 cobol-stub…
Fix #4008: CICS harness models XCTL RESP/RESP2 and LENGTH
Fix #4007: CICS harness models HANDLE AID
Fix #4008: CICS harness models XCTL RESP/RESP2 and LENGTH (#4020)
Fix #4007: CICS harness models HANDLE AID
Fix #4007: CICS harness models HANDLE AID (#4022)
squid-protocol commentedon Sep 29, 2026
Phase 3 harness work complete (main
a9a1a25c)All 11 phase-3 issues are closed. PRs: #4012, #4013, #4014, #4015, #4016, #4017, #4018, #4019, #4020, #4021, #4022.
Summary:
runTaskbodies are skeletons.Remaining for this epic's goal ("compiles and runs with 100% equivalence"): port the
runTaskbodies through the porting loop (#3753). The crucible is now the test bed for that.Deferred and refused by name in the harness: READQ/WRITEQ TS SET/SYSID; START AFTER/AT/RTRANSID/QUEUE; RETRIEVE SET/WAIT; HANDLE ABEND PROGRAM; LINK SYSID/CHANNEL; RECEIVE NOTRUNCATE/SET. Crucible known gaps (FLENGTH, file control, validator cross-checks) are listed in its README.
🤖 Generated with Claude Code
#3989: port the CICS crucible's 17 programs through the porting loop;…
#3989 / #4023: pin the CICS crucible at v0.2.0 -- 44 scenarios, every…
Fix #4039: generate CobolRecords / CobolEdit for every program to port (
squid-protocol commentedon Oct 3, 2026
All three phases are complete: cics-crucible v0.2.0 is pinned (#4032), every scenario passes on the COBOL stub (44/44) and on the ported Java (44/44), with 0 unsupported cells and full paragraph and branch coverage of all 17 programs. The 44 remaining baseline cells are the generated skeletons with empty task bodies, which can't pass by design. Mutation testing continues in #4024.