Repository navigation
equivalence: CICS proofs compare DISPLAY output and keep low-values apart from spaces (#4635) - #4660
Merged
Merged
Conversation
…part from spaces in the COMMAREA (#4635) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 8, 2026
Merged
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
marked this pull request as ready for review
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4635 (part of #4270, found by det-port mutation testing #4628).
Changes (tests/tools/equivalence_cics.py)
ggdisplay.sopreloaded (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 pointsgitgalaxy.sysoutat a per-scenario file;compare_task_sysoutreusesequivalence.compare_sysout. Reported per scenario (sysout), in report.md and feedback. Opt out with"sysout": falsein the case; tasks judged up to a point (LINK not run, refused WRITEQ) are not compared.decode_record(exact=True)keeps a returned COMMAREA's LOW-VALUES;_same_commareadrops 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
IF WS-CICS-RESP NOT = DFHRESP(NORMAL)negated (DISPLAY diff), COSGN00C RECEIVE's clear of COSGN0AI deleted (commarea.CDEMO-USER-IDLV vs spaces) -- the survivors of equivalence: CICS proofs do not compare DISPLAY output, and treat low-values as spaces (det-port mutation survivors, #4628) #4635 (4f2f93e07d/5014504153/f758c610d2,3ddaca02b1). The det_mutation_survivors.json entries live on the paused Evidence L5: mutation testing on det ports, survivors accounted for (#4601) #4628 branch and drop there once it rebases onto this.proof_sweep --det-only): 50 prove (cardupdate is the known Porting loop at scale: baseline-reuse proofs, run-many, adopt; COCRDUPC recorded as not proven #4085). Real divergences exposed, NOT loosened, listed in det_sweep_baseline.json: carddemo-billpay (STARTBR NOTFND RESP2, det runtime: STARTBR NOTFND leaves EIBRESP2 0 where the stub (and z/OS) gives 3 (carddemo-billpay) #4657), cbsa-xfrfun (SQLCODE -4220 vs -180, cbsa-xfrfun det port: SQLCODE -4220 where GnuCOBOL/Db2 gives -180 on a null-date update (to-null-date-* scenarios) #4658).--model-only --faults none): 18 prove; carddemo-billpay (det runtime: STARTBR NOTFND leaves EIBRESP2 0 where the stub (and z/OS) gives 3 (carddemo-billpay) #4657), carddemo-signon (model port returns spaces where COSGN00C returns LOW-VALUES, carddemo-signon model port leaves spaces where COSGN00C leaves LOW-VALUES in the RETURN COMMAREA (CDEMO-USER-ID) #4659) now fail, baselined.pr_gates --fast5/5;--ratchets7 pass, 0 fail, 0 skipped.det_coverage_ledger checkpasses with warnings only.🤖 Generated with Claude Code