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
det: ca-xctl-versions length-range: XCTL COMMAREA bytes past the DTO are refused (#4009); the COMP-5 VALUE half is fixed #4501
bugUnintended behavior or logic failure in the 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: mediumscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Found while proving #4413 through cics-crucible. With RECEIVE now translated, the det translator ports ca-xctl-versions CAXA whole (11/11 statements, 0 holes), and 3 of its 4 scenarios pass the hand-written logs. The fourth, length-range, fails:
CAXA declares 01 WS-BIGLEN PIC S9(4) COMP-5 VALUE 32767. and issues EXEC CICS XCTL PROGRAM('CAXB') COMMAREA(WS-BIG) LENGTH(WS-BIGLEN). The det port reads the item as Cobol.num(f6_WS_BIGLEN, CS).intValue() over Field.binary(s_WS_BIGLEN, 0, 4, 0, true, true) and passes -12534, not 32767. A COMP-5 halfword holds 32767 (IBM: COMP-5 is not limited by its PICTURE), and the cobol-stub side passes the same scenario.
Repro
Det-translate the case's programs onto the case's generated project (the overlay script from #4413's PR, or port_runner run --backend det), then: python tests/tools/cics_crucible.py --cases ca-xctl-versions --sides java-ported --ports <det overlays> --offline
Acceptance
A COMP-5 item whose VALUE exceeds its PICTURE's digits keeps its value in the det port (image and read), as the stub side does.
ca-xctl-versions length-range passes with the det port.
changed the title [-]det: S9(4) COMP-5 VALUE 32767 reads back as -12534 (XCTL LENGTH in ca-xctl-versions)[/-][+]det: ca-xctl-versions length-range: XCTL COMMAREA bytes past the DTO are refused (#4009); the COMP-5 VALUE half is fixed[/+]on Oct 6, 2026
Retitled: the COMP-5 half (S9(4) COMP-5 VALUE 32767 read back as -12534) is fixed by #4571 (COMP-5 now holds its native binary capacity, little-endian as GnuCOBOL does). What remains is the length-range scenario itself: CAXA passes LENGTH 32767 over a COMMAREA larger than the DTO, which the det port now refuses by name ("commarea bytes past DTO", tracked under #4009) instead of passing a wrong length. This issue stays open for modelling those bytes and proving length-range with the det port.
bugUnintended behavior or logic failure in the 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: mediumscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
det: COMP-1 / COMP-2 as IBM hexadecimal floating point; COMP-5 VALUE …
[-]det: S9(4) COMP-5 VALUE 32767 reads back as -12534 (XCTL LENGTH in ca-xctl-versions)[/-][+]det: ca-xctl-versions length-range: XCTL COMMAREA bytes past the DTO are refused (#4009); the COMP-5 VALUE half is fixed[/+]squid-protocol commentedon Oct 6, 2026
Retitled: the COMP-5 half (S9(4) COMP-5 VALUE 32767 read back as -12534) is fixed by #4571 (COMP-5 now holds its native binary capacity, little-endian as GnuCOBOL does). What remains is the length-range scenario itself: CAXA passes LENGTH 32767 over a COMMAREA larger than the DTO, which the det port now refuses by name ("commarea bytes past DTO", tracked under #4009) instead of passing a wrong length. This issue stays open for modelling those bytes and proving length-range with the det port.
🤖 Generated with Claude Code
det: XCTL COMMAREA LENGTH past the DTO passes those bytes; failed XCT…
det: LINK RESP2; RETURN/LINK COMMAREA LENGTH past the DTO passes the …