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
COBOL engine: IDMS IDMS-CONTROL SECTION / PROTOCOL. (ENVIRONMENT DIVISION) recorded as procedure units #4306
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing engineera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: lowUI tweaks, documentation, and minor optimizationsscope:frontierMapped, not yet built: eras/commands/regions the burned estates don't use (Gap Atlas)
CA IDMS programs carry an IDMS-CONTROL SECTION. with a PROTOCOL. MODE IS ... paragraph in the ENVIRONMENT DIVISION. The func_start shield (cobol.py, reserved header list: SOURCE-COMPUTER, SPECIAL-NAMES, FILE-CONTROL, ...) does not list them, so both become function_data units. That adds 2 phantom units per IDMS program and splits nothing real.
Evidence (language-crucible v1.7.0, main and #4290 head)
che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl:6-7 (006800 IDMS-CONTROL SECTION. / 006900 PROTOCOL. MODE IS IDMS-DC-NONAUTO DEBUG.) gives units IDMS-CONTROL, PROTOCOL.
Same in cobol-vanila_IDMSSMPL.cbl, cobol-idms_DACOSMPL.cbl, cobol-daco_DACOSMPL.cbl, cobol-vanila_DACOSMPL.cbl and cobol-dc_ABCD.cbl (6 files, 12 phantom units).
Acceptance criteria
Units are only taken from the PROCEDURE DIVISION (structural fix), or IDMS-CONTROL / PROTOCOL join the reserved-header shield
Fixture from the IDMSSMPL shape
Related: #3975 (IDMS extraction epic). This is only the phantom-unit symptom.
Found during: crucible mainframe count audit (2026-10-04)
Found by a grep-vs-engine count audit of every mainframe file in language-crucible v1.7.0 (802 of 815 files compared), on main 737cab8 and the #4290 head (now merged as c136f46).
Another shape of this bug, found by estate-crucible (#4317, v0.1.0 H-0007): the IDMS SCHEMA SECTION in the DATA DIVISION is also recorded as a procedure unit. Here it swallows the WORKING-STORAGE lines after it.
estate-crucible v0.1.0: estate/apps/LOAN/cobol/LNIDMS01.cbl:12 (SCHEMA SECTION.) gives the phantom unit SCHEMA.
This supports the structural fix in the first acceptance criterion: take units only from the PROCEDURE DIVISION. A reserved-name shield would need SCHEMA added as well, and other dictionary-driven sections (for example MAP SECTION in IDMS-DC programs) would still slip through.
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing engineera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: lowUI tweaks, documentation, and minor optimizationsscope:frontierMapped, not yet built: eras/commands/regions the burned estates don't use (Gap Atlas)
Activity
squid-protocol commentedon Oct 4, 2026
Another shape of this bug, found by estate-crucible (#4317, v0.1.0 H-0007): the IDMS
SCHEMA SECTIONin the DATA DIVISION is also recorded as a procedure unit. Here it swallows the WORKING-STORAGE lines after it.Minimal reproducer, main 25f9233. Units:
IDMS-CONTROL4-4,PROTOCOL5-5,SCHEMA7-10,MAIN-PARA12-15. Expected:MAIN-PARAonly.estate-crucible v0.1.0:
estate/apps/LOAN/cobol/LNIDMS01.cbl:12(SCHEMA SECTION.) gives the phantom unitSCHEMA.This supports the structural fix in the first acceptance criterion: take units only from the PROCEDURE DIVISION. A reserved-name shield would need
SCHEMAadded as well, and other dictionary-driven sections (for exampleMAP SECTIONin IDMS-DC programs) would still slip through.fix(cobol) #4306: a division header split over lines (PROCEDURE / DIV…
fix: train -- #4306, #4330, #4365 (#4389)