Skip to content

det: SYNCPOINT [ROLLBACK] RESP / RESP2 are written, not ignored (#4437) - #4442

Merged
squid-protocol merged 2 commits into
mainfrom
fix/4437-syncpoint-rollback-resp
Oct 5, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/4437-syncpoint-rollback-resp

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Draft. Fixes #4437 (left by #4411 / #4432).

Translator: modelled

EXEC CICS SYNCPOINT [ROLLBACK] RESP(x) RESP2(y) used to emit only task.rollback() / task.syncpoint(). CBSA's IF WS-CICS-RESP NOT = DFHRESP(NORMAL) then read whatever the previous command had left in the RESP area. The det port now writes the response, as the oracle (ggcics GGCSYNC) and CICS do:

  • NORMAL is written: EIBRESP / EIBRESP2, RESP / RESP2, and RESP2 given without RESP.
  • No condition is raised.
  • Why NORMAL is the only outcome in the modelled region (IBM CICS TS API Reference, SYNCPOINT and SYNCPOINT ROLLBACK conditions):
    • INVREQ (RESP2 200) needs a program LINKed from a remote system without SYNCONRETURN, or a program defined EXECUTIONSET(DPLSUBSET).
    • ROLLEDBACK (commit only) needs a remote system that cannot commit.
    • Here every LINK is local and no remote system takes part. CBSA's BANK.csd defines DBCRFUN and INQACC EXECUTIONSET(FULLAPI).

Runtime: refused by name

CicsTask now refuses SYNCPOINT and SYNCPOINT ROLLBACK in a program LINKed from outside the region (LocalRegion.linked, the DPL mirror task). There, CICS answers INVREQ unless the client LINKed with SYNCONRETURN, and the region cannot know which. A task the region starts itself is unchanged. This is covered by a new javac runtime test.

EXECUTIONSET is not read. That is stated in oracle_assumptions.md X3.

Audit (can't regress)

  • New tests in test_det_translate.py:
    • SYNCPOINT / ROLLBACK with RESP, with RESP+RESP2, with RESP2 alone, with NOHANDLE, and with no options.
    • test_every_command_that_accepts_resp_writes_it: every command in det.cics.OPTIONS that accepts RESP must emit the outcome, or name in the test why not. RETURN is exempt because control never comes back. SEND MAP / RECEIVE MAP / LINK are exempt because the test double cannot translate them; their RESP is written via outcome().
  • These tests fail on main (7 failures) and pass here.

Ports

det_port.py check: 47 of 55 ports unchanged. 8 changed, all only in the added stores. Re-proven with det_port.py run (--faults all, SQL faults auto, Db2):

case result
cbsa-dbcrfun proven, 25 scenarios. The backout path is proven: teller-debit--sql-dbcrfun-524 (SQL fault, then SYNCPOINT ROLLBACK RESP, then the NORMAL test).
cbsa-inqacc proven, 17 scenarios. Its ROLLBACK (AH010, under HANDLE ABEND for VSAM RLS abends) is reached by no scenario, as on main (coverage lists ABEND-HANDLING uncovered).
cbsa-xfrfun proven, 27 scenarios, 7 of them through SYNCPOINT ROLLBACK
carddemo-acctupdate / cotrtlic / cotrtupc proven
carddemo-cardupdate not proven: 2 CVV-CD diffs, identical on origin/main (pre-existing)
genapp-lgupdb01 Hole: READ LENGTH (#4432's refusal), as on main

Other checks:

  • ports_compile_check.py: all 45 committed ports compile.
  • CICS crucible java-ported + java-facade: 88/88.
  • Port invariance over the 54-pair sweep: every reading identical, main vs branch.

Not regenerated: the port_invariance fixture's DbcrfunService / InqaccService

The committed 12-pair fixture, tests/cobol_mainframe/port_invariance, is a #4167 snapshot. Its DBCRFUN still shows this bug: RESP is read and never written.

  • port_invariance.py fixture can only rewrite all 12 pairs.
  • With today's emitter, the full rewrite takes the 12-pair function_count rho to 0.798, below its 0.80 floor. The cause is emitter drift since Port invariance: the scanner readings that must survive a COBOL -> Java port #4167, not this change. This change moves no reading on the 54-pair sweep.
  • Replacing only the 2 files mixes emitter vintages, and state_flux falls to 0.41.
  • So the fixture is unchanged. Regenerating it needs a floor re-measure, which is an owner call. Follow-up.

ruff_audit / mypy_audit --ci are clean, and tool_regex_redos --ci passes. Not touched: the 14 CardDemo equivalence ports still carrying the old typed facade (#4435 follow-up).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz

Comment on lines +1108 to +1109
"SYNCPOINT in a program LINKed from outside the region: INVREQ (RESP2 200) unless the client LINKed with "
"SYNCONRETURN, which the region does not know",
Comment on lines +1110 to +1111
"SYNCPOINT ROLLBACK in a program LINKed from outside the region: INVREQ (RESP2 200) unless the client LINKed "
"with SYNCONRETURN, which the region does not know",
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol changed the title WIP: det: SYNCPOINT ROLLBACK RESP / RESP2 are written, not ignored (#4437) det: SYNCPOINT [ROLLBACK] RESP / RESP2 are written, not ignored (#4437) Oct 5, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review October 5, 2026 13:04
@squid-protocol
squid-protocol merged commit 1079a25 into main Oct 5, 2026
39 checks passed
@squid-protocol
squid-protocol deleted the fix/4437-syncpoint-rollback-resp branch October 5, 2026 13:04
squid-protocol added a commit that referenced this pull request Oct 5, 2026
…p Object for cross-program COMMAREAs (#4441) (#4445)

* WIP: resurface the 14 CardDemo equivalence ports' facades after #4427 (#4441)

port_surface.py equivalence: resurface tests/equivalence/<case>/port against
the corpus's fresh generation (ports_compile_check.generate). Only the
imports a written facade uses are added.

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

* Re-prove the 14 resurfaced CardDemo equivalence ports (#4441)

evidence.py prove: all 14 proven, unapproved (runTask path; the equivalence
harness has no facade side).

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

* Re-prove the 14 CardDemo ports on the generator after #4442 (#4441)

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

---------

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.

det translator: SYNCPOINT ROLLBACK RESP is silently ignored (left by #4411; touches DBCRFUN/INQACC ports)

2 participants