Skip to content

Abend injection on a file control command (AFCR/AFCS/AFCT) so HANDLE ABEND runs (Part of #6271) - #6286

Merged
squid-protocol merged 5 commits into
mainfrom
churn/6271-20261023T1748Z
Oct 23, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/6271-20261023T1748Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6271. Slice for checklist item [c:b93f4d8b]: a scenario can now abend the task at a file control command, so HANDLE ABEND and the abend paragraphs run (register X70).

What changed

  • A fault plan line CMD NAME NTH -1 0 ABCODE (ABCODE one of AFCR, AFCS, AFCT, the VSAM RLS file abends) abends the task at that command. Implemented in the C stub (ggcics.c), the generated CicsTask (forge) and the det port (det/cics.py, det/program.py: a post-command abendExit() check, only in programs with HANDLE ABEND).
  • equivalence_cics.py: resp: "ABEND" plans, anything outside file commands / those codes is refused with Unsupported; the COBOL driver takes the exit after a file command.
  • carddemo-cardupdate: scenarios search-card-read-rls-abend-afcr and pf5-rewrite-rls-abend-afct. det_port.py run carddemo-cardupdate --faults all: 488/488 translated PROVED; events show ABEND AFCR/AFCT, ABEND-ROUTINE, then ABEND 9999.
  • Re-proved after the translator change: carddemo-acctupdate 1442/1442, carddemo-cardview 263/263, cbsa-inqcust 175/175, zecs-zecs000 173/173.
  • New unit tests tests/tools/test_equivalence_cics_abend_injection.py (37 tests, under 1 s).

Class / Sibling gaps

The class is "no way to make something abend so the abend handlers run". Done here: file control commands (AFCR/AFCS/AFCT). Still open: Db2 abend AD2Z (CBSA DBCRFUN, via sql_plan/DetSql); abend of a LINKed/CALLed program (XFRFUN, INQACCCU); abends on non-file commands (SEND, RECEIVE, SYNCPOINT, DELAY, START); batch CALL abends beyond CEE3ABD; the hand-translated ports (carddemo-acctview COACTVWC, carddemo-cardview COCRDSLC) never check abendExit(), so they cannot take these plans. The register id is X70 because X62 was taken (#5154).

Checklist: partial [c:b93f4d8b] -- Db2 (AD2Z) and linked-program/CALL abends, non-file commands

Facts checked:

  • X62 already used (Siblings of #5120: CICS resource-definition sources (SIT/SRT/JCT/TCT/MCT, JCL-assembled tables) #5154), so X70; the choke point is Cics.command() in det/cics.py, not cics_filecontrol.py.
  • acctview's committed port is hand-written and NPEs on an injected abend, so the proof is on cardupdate (det port, no committed port).
  • Gates: audit_check.py, pr_gates --fast (7/7), --ratchets (9 pass), tests/cics_crucible (850 passed), test_evidence*.py (68 passed, staleness warning only), merged origin/main cleanly.

Cross-repo: none.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 23, 2026 14:17
…reach HANDLE ABEND (Part of #6271)

A fault plan line `CMD NAME NTH -1 0 ABCODE` abends the task at that command in the
C stub, the generated CicsTask and the det port (register X70). carddemo-cardupdate
gains two scenarios (READ AFCR, REWRITE AFCT) proved against GnuCOBOL.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nesses pass a short gg_cics) (Part of #6271)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 18:20
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 18:23
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab


def __init__(self, handle_abend):
super().__init__()
self.handle_abend = handle_abend
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6286 @ c85d6ac: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40002493058/job/120595449605
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases cbsa-bnk1ccs-create,cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: cbsa-bnk1ccs-create,cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt
errors:
det mortgage-csmrt NOT PROVEN proven on 5 scenarios, covering 1/1 paragraphs and 1/2 branches
det mortgage-mpmt NOT PROVEN not proven; 11 calls cover 4/4 paragraphs and 12/12 branches
det cbsa-bnk1ccs-create NOT PROVEN
det cbsa-crecust NOT PROVEN
det mortgage-cmort NOT PROVEN proven on 16 scenarios, covering 6/6 paragraphs and 18/21 branches
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 175 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 148353
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2ee34a594841d29250d1fc7f2abd7436c8520cd2e84ac3e89269e121d7b71ceb
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12524361765
Artifact det-sweep-ledger has been successfully uploaded! Final size is 148353 bytes. Artifact ID is 12524361765
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40002493058/artifacts/12524361765
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a342571f-acdf-463e-a9ec-bcac6b1299ff' 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
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-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 23, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (8f63ece) 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).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 18:58
@squid-protocol
squid-protocol merged commit 93fc16c into main Oct 23, 2026
67 checks passed
@squid-protocol
squid-protocol deleted the churn/6271-20261023T1748Z branch October 23, 2026 19:25
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.

2 participants