Repository navigation
Closed
Labels
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginedata-integrityIssues relating to RAM state or SQLite database fidelitylegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Description
Problem
A section-level COPY member REPLACING ... (one that copies whole 01 records) is not applied to the records GalaxyIR builds for the program. The records either keep the copybook's names, or, for a pseudo-text template copybook (:TAG:), do not exist at all. In-group REPLACING was fixed by #4265; this is the remaining case.
Evidence (engine origin/main e3ace8a, found by the #4273 engine-vs-translator cross-check)
- CBSA
src/base/cobol_src/INQACC.cbl:199COPY INQACC REPLACING INQACC-COMMAREA BY DFHCOMMAREA.→ the engine's record isINQACC-COMMAREA(the program'sPROCEDURE DIVISION USING DFHCOMMAREAnames a record the engine does not have under that name). The translator, the answer key and the compiler call itDFHCOMMAREA. - CBSA
GETSCODE.cbl:28COPY SORTCODE REPLACING ==SORTCODE== BY ==LITERAL-SORTCODE==.→ engine recordSORTCODE, should beLITERAL-SORTCODE. - zopeneditor-sample
COBOL/SAM1.cbl:61,67,131COPY CUSTCOPY REPLACING ==:TAG:== BY ==CUST==(andCSTOUT,WS-CUST): GalaxyIR has noCUST-REC,CUST-CONTACT-REC,CSTOUT-REC,CSTOUT-CONTACT-REC,WS-CUST-RECorWS-CUST-CONTACT-RECat all (ef.recordslists none;ef.section_copiesholds one CUSTCOPY entry for three COPYs). Same inSAM1LIB.cbl,SAM2.cbl,multiroot/sam/SAM1.cbl,multiroot/sam/SAM2.cbl: 22 records, 275 fields with no engine layout.
Impact on a real estate
Record layouts, COMMAREA contracts and lineage for these programs are missing or misnamed, silently. A consumer of record_layout (the det translator, if it took engine layouts) would build on a record that does not exist.
Acceptance criteria
- A section-level COPY REPLACING yields the replaced records in
EngineFile.records(names, offsets) for both the==pseudo-text==and the word forms. - The fact cross-check ledger (
tests/cobol_mainframe/fact_crosscheck_ledger.json, causeengine-section-copy-replacing) loses these entries (fact_crosscheck.py update).
Out of scope
In-group REPLACING (#4265, fixed).
Found during: #4273 engine-vs-translator fact cross-check (PR #4456)
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginedata-integrityIssues relating to RAM state or SQLite database fidelitylegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
test: cbsa-inqacc port follows #4457's DTO rename (InqaccCommarea -> …
fix: train -- #4457, #4458 (#4471)
[experiment A] fix(crosscheck): read replaced records of section COPY…