Skip to content

det: EXEC SQL COMMIT / ROLLBACK in a CICS program answer -925 / -926 (Part of #7709, #7527) - #7727

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7709-20261104T1919Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7709-20261104T1919Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7709 (census mock trial), #7527.

Checklist: partial [c:4112a597] -- translation and both runtimes done; the equivalence proof case and the census re-survey are left.

What

EXEC SQL COMMIT / ROLLBACK in a CICS program: IBM answers COMMIT -925 and ROLLBACK -926 (SQLSTATE 2D521) and the task's unit of work is untouched (SYNCPOINT is CICS's). Before, the det translator refused ROLLBACK by name and turned COMMIT into an SQLCA reset (a declared difference from z/OS). Now:

  • det/sql.py emits DetSql.commit/rollback(..., true) in a CICS program; other options and savepoints stay refused by name.
  • DetSql.java overloads commit / rollback with a cics flag: SQLCA reset, fault plan honoured, then -925 / -926 / 2D521; no commit, no backout, no cursor closed.
  • tests/equivalence/db2/ggsql.c (oracle): linked with ggcics.c (weak ggcics_event), the COMMIT / ROLLBACK kinds answer the same and call no SQLEndTran. Db2 for Linux has no CICS attachment; the answer is IBM's, not the instrument's.
  • Register Q3: the refusal / declared-DIFFERS text is replaced by the modelled behaviour.

Evidence level

Translated: whole (no new refusal). Executed-equivalent: none yet; no burned CICS program issues either statement (CBSA's COMMIT WORK is in a batch program), so there is nothing burned to prove it on. Unit tests cover the whole class (COMMIT / ROLLBACK, with and without WORK, other options refused, batch unchanged, savepoints in CICS refused, Java overloads name the SQLCODE and touch no unit-of-work state).

Gates

pr_gates --fast 9/9, pr_gates --ratchets 9/9 (via heavy-run.sh), audit_check.py clear. No golden re-bless (det translator, not the parsing engine). Det port sweep: ports ratchet passes, no port moved.

Class / Sibling gaps

Class: det-translator statement families the census survey reports as "not modelled" in CICS programs; this PR takes EXEC SQL COMMIT / ROLLBACK in CICS (both verbs share one handler and one rule).
Sibling gaps (different mechanisms, not here): No such item, 3 programs (no owner yet); STRING numeric / decimal sender (#7523); bytes overlap COMP-1/2/5 (#7646, PR #7673); EXEC CICS map no such field (#4270); JSON GENERATE / PARSE (#7524); MOVE literal beyond single-byte code page (#7526); EXEC CICS WEB CONVERSE / RECEIVE (#7525).

Remaining slices

  1. An equivalence / cics-crucible case (synthetic, burned-estate policy) proving -925 / -926 against the oracle, in tests/equivalence/.
  2. Hand-written files this PR could not also touch (5-file cap): docs/language_status/cobolrt_rules.json (title of RT-SQL-UNIT-OF-WORK still reads "COMMIT ... ROLLBACK ... refused with no unit of work"; add the CICS answer) and docs/language_status/det_port_design.md line ~826 (still says a CICS ROLLBACK is refused).
  3. Census re-survey and a ledger row in Census mock trial: take the 40 census programs from 8 whole to 40 of 40 accounted, measured by the tool only #7709 after merge.

Cross-repo: none.

Lessons for agents

  • A new public method in DetSql.java needs a cobolrt_rules.json catalogue entry (test_the_catalogue_matches_the_runtime); an overload of a listed method does not.
  • Register entries that claim MATCHED need an IBM document number or an ibm.com/docs link, or a "DIFFERS" note; dropping the DIFFERS text fails test_register_audit until a link is added.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 19:40
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 19:40
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

PR #7727 @ 2aab02c: 1 failed check(s)

== ground-truth part 1/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41899201529/job/126817278587
repro: python -m pytest -q tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface
failing tests: tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface
errors:
fail-on-cache-miss: false
E AssertionError: assert ['member cobo....py generate'] == []
tests/cobol_mainframe/test_cobolrt_api.py:109: AssertionError
FAILED tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface - AssertionError: assert ['member cobo....py generate'] == []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 8d46b213935b0be4e732ca12d6f1bb303b6af569371e3496bfc9df3f64f51948
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 90550
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is b0ce6e498ac4839edac5715c24b3fe32b120ae2a763797adedbaddb8b0bce054
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 13357457958
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 90550 bytes. Artifact ID is 13357457958
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41899201529/artifacts/13357457958
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/6a9b494b-b26f-4264-8db9-10d5e7142d3d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 4, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 20:11
@squid-shepherd squid-shepherd Bot removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 4, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (1d80348) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 4, 2026 20:16
auto-merge was automatically disabled November 4, 2026 20:16

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 4, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 20:20
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 20:21
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd
squid-shepherd Bot merged commit 4c5e3e2 into main Nov 4, 2026
110 of 145 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7709-20261104T1919Z branch November 4, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant