Repository navigation
Closed
Labels
bugUnintended behavior or logic failure in the engineera:4Era CICS TS 3+, Enterprise COBOL: channels, JSON, async (2005+) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Description
Problem
The COBOL-to-Java generator emits methods that correspond to nothing the COBOL program does. A port then ships Java that can never be proven against the COBOL (proof_reach, #4255), and an evidence record (#4048) can only call it ported_unproven or left_as_generated forever. Seen while trying to prove the 20 ports #4316 flagged (#4325, #4326):
- A batch entry point on a CICS-only program: crucible
ca-link-lengths/CALINKexecuteCalinkonly throwsUnsupportedOperationException. CALINK is transaction CA01 and has no batch form. - A log-only entry point: CardDemo dateutil
executeCsutldtccallshandleCallwith blank items and only logs the result, so there is no output to compare. - A handler for a statement that never receives control: CardDemo cardview
onAbendL871was generated fromHANDLE ABEND CANCEL. That statement cancels an earlier HANDLE ABEND and never itself receives control. The cancel is already ported inline and proven (scenariopf3-xctl-fails-abend-routine, Prove 6 CardDemo ports' unproven methods: entry runs, an abend scenario, intcalc key-order fix #4326). - A dispatcher that differs from the proven path: CardDemo acctview
dispatchCdemoToProgramL349differs from the generated dispatcher only intoUpperCase()withoutLocale.ROOT. runTask does its XCTL throughtask.xctl, so the shipped dispatcher and the proven path diverge.
Why it matters
Every future port inherits the same unprovable surface. Reverting these methods by hand fixes today's ports, not the generator.
Acceptance criteria
- The generator emits a batch
executeXonly for programs with a batch entry; aHANDLE ... CANCELgets no handler method; a log-only entry is not generated, or is generated so that its output is comparable. - A dispatcher, where one is generated, is the path the proof drives (e.g. the XCTL goes through it), using
Locale.ROOT. - The affected ports are regenerated and re-proven by the tools. Their evidence records lose those methods, and no evidence.json is hand-edited.
- Regression tests in the generator's suite for each shape.
Related: #4255, #4048, #4316, #4325, #4326, and the façade issue filed alongside this one.
Metadata
Metadata
Assignees
Labels
bugUnintended behavior or logic failure in the engineera:4Era CICS TS 3+, Enterprise COBOL: channels, JSON, async (2005+) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
Generator: CicsRegion runs neither of two sources under one program n…
Tests: the CardDemo INTCALC / POSTTRAN end-to-end pins follow the cases
ruff format (#4342)
Mutation: acctview, menu, dateutil judged again on the regenerated po…
Db2 ports from #4416 follow the generator's #4342 rules
Evidence: every record re-proven by the tools after the merges (#4342)
WIP: Generator: no entry points or handlers with no COBOL behaviour b…
Prove crucible ports through their deployed entry points (Spring faca…