Skip to content

equivalence: CICS proofs compare DISPLAY output and keep low-values apart from spaces (#4635) - #4660

Merged
squid-protocol merged 4 commits into
mainfrom
fix/4635-cics-display-lowvalues
Oct 8, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
fix/4635-cics-display-lowvalues

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4635 (part of #4270, found by det-port mutation testing #4628).

Changes (tests/tools/equivalence_cics.py)

  1. DISPLAY output compared. The COBOL task runs with ggdisplay.so preloaded (IBM's DISPLAY text, as batch Batch equivalence ignores DISPLAY / SYSOUT: a port that writes the wrong job-log message is still proven #4056); the Java test points gitgalaxy.sysout at a per-scenario file; compare_task_sysout reuses equivalence.compare_sysout. Reported per scenario (sysout), in report.md and feedback. Opt out with "sysout": false in the case; tasks judged up to a point (LINK not run, refused WRITEQ) are not compared.
  2. Low-values != spaces in the COMMAREA. decode_record(exact=True) keeps a returned COMMAREA's LOW-VALUES; _same_commarea drops only trailing spaces. Screens and queue/event text compare as before. Undefined storage of a no-COMMAREA task (X12) is now masked for text too, so the compare does not report it.

Evidence

🤖 Generated with Claude Code

…part from spaces in the COMMAREA (#4635)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread tests/tools/equivalence_cics.py Fixed
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 2 commits October 8, 2026 10:43
compare_sysout / sysout_lines / NOT_MODELLED move to the leaf equivalence_common, so
equivalence_cics no longer imports equivalence (which imports it). equivalence keeps
compare_sysout; devin_port and thirdparty_port take sysout_lines from equivalence_common.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
@squid-protocol
squid-protocol marked this pull request as ready for review October 8, 2026 15:18
@squid-protocol
squid-protocol merged commit b0f19a1 into main Oct 8, 2026
27 checks passed
@squid-protocol
squid-protocol deleted the fix/4635-cics-display-lowvalues branch October 8, 2026 15:18
squid-protocol added a commit that referenced this pull request Oct 8, 2026
Conflicts: equivalence_cics.compare_task_sysout takes main's (#4660's own
change); det_sweep_baseline.json keeps this PR's removal of the
billpay / signon model entries. Evidence records for carddemo-billpay /
carddemo-signon taken from main and re-proven (evidence.py prove),
reports refreshed (evidence_report.py --refresh).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
squid-protocol added a commit that referenced this pull request Oct 8, 2026
…entry

The merge of main silently restored it (#4660's squash re-added what this
branch's own commit removed); billpay is proven on the det sweep.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
squid-protocol added a commit that referenced this pull request Oct 8, 2026
Conflict: equivalence_cics.compare_task_sysout takes main's (#4660's own
change). det_sweep_baseline.json keeps this PR's removal of cbsa-xfrfun
(git's merge silently restored main's entry). Evidence reports
regenerated (evidence_report.py --refresh).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
squid-protocol added a commit that referenced this pull request Oct 8, 2026
…COBOL side's (#4679 x #4635)

#4635 (#4660) reads the COBOL side's RETURN COMMAREA exact (LOW-VALUES
apart from spaces); #4679's Java byte[] COMMAREA went through
decode_record without it, so COCRDLIC's MOVE LOW-VALUES TO WS-ALL-ROWS
read as '' on the Java side against the COBOL side's NULs: cardlist,
acctupdate, cotrtlic, cotrtupc not proven after the merge. Same bytes on
both sides; now decoded the same way. Re-swept: as expected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
squid-protocol added a commit that referenced this pull request Oct 8, 2026
…bytes; opaque bytes passed on (#4679) (#4694)

* det: XCTL COMMAREA LENGTH past the target's DTO passes those bytes; failed XCTL sets RESP2 (#4501)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* det: LINK RESP2 by condition; RETURN/LINK COMMAREA LENGTH past the DTO passes the bytes; opaque bytes passed on (#4679)

- LINK stores RESP2 from its condition (DetCics.linkResp2: LENGERR 11, PGMIDERR 1),
  as XCTL does since #4501.
- RETURN TRANSID COMMAREA with a LENGTH past the DTO passes those bytes
  (DetCics.commareaOut), as XCTL; the equivalence harness reads a byte[]
  COMMAREA by the case's layout (equivalence_cics.java_commarea).
- LINK with a LENGTH past the target's DTO lays that many bytes over the
  caller's storage (Cobol.commarea), capped at 32763.
- A receiver keeps the bytes past its DFHCOMMAREA record (Storage.beyond);
  a further RETURN / XCTL / LINK of the area passes them on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* det: a LINK whose target no DTO types passes its COMMAREA as bytes (ca-link-lengths undefined-program) (#4679)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* det: lint / mypy for #4679

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* equivalence: a COMMAREA passed as bytes keeps its LOW-VALUES, as the COBOL side's (#4679 x #4635)

#4635 (#4660) reads the COBOL side's RETURN COMMAREA exact (LOW-VALUES
apart from spaces); #4679's Java byte[] COMMAREA went through
decode_record without it, so COCRDLIC's MOVE LOW-VALUES TO WS-ALL-ROWS
read as '' on the Java side against the COBOL side's NULs: cardlist,
acctupdate, cotrtlic, cotrtupc not proven after the merge. Same bytes on
both sides; now decoded the same way. Re-swept: as expected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 8, 2026
#4660 moved compare_sysout / sysout_lines into equivalence_common.py:
equivalence.py takes main's, and #4691's decoding (the Java side's
SYSOUT in the data encoding, not UTF-8) is re-applied in
equivalence_common.compare_sysout, which a CICS task's DISPLAY log
(compare_task_sysout, run with -Dgitgalaxy.data.charset) goes through too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
squid-protocol added a commit that referenced this pull request Oct 8, 2026
…LOW-VALUES (#4657, #4659) (#4661)

* equivalence: CICS proofs compare DISPLAY output and keep low-values apart from spaces in the COMMAREA (#4635)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* evidence: refresh committed reports (#4635)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* det runtime: browse / DELETE RESP2 as the CICS stub and IBM state it; signon model port keeps LOW-VALUES (#4657, #4659)

CicsTask.startbr / endbr / delete record RESP2 (resp2()), readnext / readprev return it in Browsed: STARTBR INVREQ 33 / NOTFND 80, READNEXT/READPREV INVREQ 34 / ENDFILE 90 / NOTFND 80, ENDBR INVREQ 35, DELETE NOTFND 80. The det translator stores them in EIBRESP2 / RESP2. COSGN00C model port: RECEIVE MAP clears the map to LOW-VALUES. billpay (det+model) and signon (model) leave det_sweep_baseline.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* evidence: refresh committed reports (#4657)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* det_sweep_baseline: keep #4661's removal of the carddemo-billpay det entry

The merge of main silently restored it (#4660's squash re-added what this
branch's own commit removed); billpay is proven on the det sweep.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

* Refresh evidence report after merge of main

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

equivalence: CICS proofs do not compare DISPLAY output, and treat low-values as spaces (det-port mutation survivors, #4628)

2 participants