Repository navigation
Closed
Labels
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: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Description
Problem
GalaxyIR._transaction_program (gitgalaxy/tools/cobol_to_cobol/galaxy_ir.py:2256) returns a transaction's program only when transaction_map() gives exactly one resolves_to. The map also counts the TRANSID(...) attribute of DEFINE PROGRAM. In CICS that attribute names the mirror transaction for a remote DPL request; it does not route a transaction to the program. Only DEFINE TRANSACTION(x) PROGRAM(p) does that. A program definition that carries TRANSID(x) therefore shows up as a false second owner of x, and x is left unresolved.
Evidence (CardDemo, app/csd/CARDDEMO.CSD)
:378-379DEFINE TRANSACTION(CC00) ... PROGRAM(COSGN00C)is the only routing definition of CC00.:203-207DEFINE PROGRAM(COCRDLIC) ... TRANSID(CC00)and:249-253DEFINE PROGRAM(COSGN00C) ... TRANSID(CC00)are program attributes.- Result: COSGN00C's
RETURN TRANSID(CC00) COMMAREA(...)has callee unresolved, so the COMMAREA contract for its own pseudo-conversation is missing. PR cics forge: an opaque DFHCOMMAREA takes the record its flows pass (#4464) #4499 (Generator: COSGN00C's facade takes no COMMAREA, but its pseudo-conversation RETURNs one to itself (opaque ODO DFHCOMMAREA) #4464) works around this in the generator by treating a RETURN TRANSID to one of the program's own transactions as a return to itself, and its body describes the root cause.
Acceptance criteria
-
transaction_map()/_transaction_programroute a transid only fromDEFINE TRANSACTION ... PROGRAM(...)(and other real routing sources).DEFINE PROGRAM ... TRANSID(...)is kept as a program attribute, not a route. - CardDemo CC00 resolves to COSGN00C; a test pins it.
- Ratchets moved by the fix are updated in the same PR (golden masters, ground-truth ledger, fact cross-check ledger, completeness pins).
Found by: the #4464 worker (PR #4499).
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
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: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
engine: DEFINE PROGRAM TRANSID is not a transaction route (#4503) (#4504