Skip to content

CBSA L3: DBCRFUN SQL faults, BNKMENU / DBCRFUN stated arms (Part of #6072) - #6277

Merged
squid-protocol merged 6 commits into
mainfrom
churn/6072-20261023T1708Z
Oct 24, 2026
Merged

squid-protocol merged 6 commits into
mainfrom
churn/6072-20261023T1708Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #6072 (CBSA slice of the L2->L3 ladder). Checklist: partial [c:db77a1b6] -- only part of the slice moved; see Remaining slices.

What changed (3 hand-written files, 2 regenerated)

  • tests/equivalence/cbsa-dbcrfun/case.json: three sql_faults scenarios: ACCOUNT UPDATE -911, ACCOUNT UPDATE 923 (SQLSTATE 57015, the storm-drain arm), PROCTRAN INSERT -803 (rollback answers NORMAL, fail code 02).
  • tests/equivalence/infeasible_outcomes/cbsa-bnkmenu.json, cbsa-dbcrfun.json (per-case files since Infeasible outcomes: one file per case, add CLI, paragraph entries (Part of #6072) #6279): cbsa-bnkmenu (27 outcomes: the RETURN / SEND MAP / SEND TEXT failure arms, the never-set SEND-DATAONLY flag, IF ACTIONI = 'A' false) and cbsa-dbcrfun (SYNCPOINT ROLLBACK RESP arm at 569). Each reason cites the IBM condition list (RETURN, SYNCPOINT ROLLBACK).
  • tests/cobol_mainframe/test_cbsa_l3_6072.py: JSON pins for the above.
  • Regenerated (not hand-written): det_sweep_coverage/cbsa-bnkmenu.json, cbsa-dbcrfun.json.

Before / after (det sweep, proof_sweep --det-only --cases cbsa-dbcrfun,cbsa-bnkmenu, both PROVED)

program paragraphs branches
DBCRFUN 16/22 -> 16/22 22/35 -> 27/35 (+ one stated arm)
BNKMENU 19/25 -> 19/25 35/62 live, 27 outcomes now stated
Paragraphs did not move: every paragraph still uncovered in the eight programs is behind a path no scenario can reach (below). The other six programs are unchanged.

Why the paragraphs are still uncovered (sibling gaps, by class)

  • ABEND-HANDLING / AH010 / AH999 + POPULATE-TIME-DATE (DBCRFUN, INQACC, INQACCCU, INQCUST, BNK1DCS, XFRFUN AH999): entered only by HANDLE ABEND LABEL on a system abend (AD2Z, AFCR/AFCS/AFCT) or a failed rollback; the harness injects neither. Unmodelled, not infeasible: left uncovered, not stated.
  • BNK1DCS DEL-CUST-DATA, DCD010, DCD999: need a valid PF5 delete that LINKs DELCUS, which is not translated whole (cics_census: 4 holes; already in the case notes).
  • BNKMENU IOT999, ATT010/ABEND-THIS-TASK, PTD: IOT999 follows eight RETURN-IMMEDIATE arms, ABEND-THIS-TASK and POPULATE-TIME-DATE only follow a failed RETURN / SEND.
  • CRDTAGY1-5: only POPULATE-TIME-DATE (performed from a DELAY failure arm, already stated per case in the ledger).
  • Branch-only gaps not taken (cap): INQACCCU 252/271/374/513/662/672, INQACC 273/353/604/616/874, INQCUST 357, XFRFUN (32 file / SQL fault arms).

Remaining slices

INQACCCU, INQACC, XFRFUN SQL / file-fault scenarios (file cap); BNK1DCS delete after DELCUS is translated; an abend-injection harness feature for the ABEND-HANDLING paragraphs.

Review ask

Owner to review the family-R reasons: assumption that the BNKMENU terminal is not APPC (RETURN INVREQ 4) and that DBCRFUN's remote caller links with SYNCONRETURN (SYNCPOINT ROLLBACK INVREQ 200).

Gates

pr_gates --fast 7/7, --ratchets 9/9, infeasible_outcomes check ok, pytest -k "evidence or infeasible or det_sweep or cbsa" 890 passed. Evidence records stay proven, unapproved (stale-on-harness warning is the scheduled job's). No engine code touched: no golden re-bless.

Merge with main (rescue, 2026-10-23)

#6279 deleted the single infeasible_outcomes.json (modify/delete conflict). The two cases' entries moved 1:1 into per-case files with infeasible_outcomes.write_case, and the pin test now reads those files. After the merge: infeasible_outcomes check on both sweeps ok, pytest -k "evidence or infeasible or det_sweep or cbsa or ladder" 925 passed / 4 skipped, pr_gates --fast 7/7.

Merge with main (shepherd fix, 2026-10-23)

#6292 (RESP faults on SEND MAP / RECEIVE MAP / RETURN) made the proof reach 11 outcomes this PR had stated infeasible (BNKMENU IOT010 394/466/539/612/685/758/831/905 true, SMM010 987/1138 true; DBCRFUN WTPD010:569 true), so det went red ("the claim is wrong"). Those entries are removed (cbsa-dbcrfun.json is now empty and deleted), cbsa-dbcrfun/-generated coverage ledgers refreshed with det_coverage_ledger.py update, the pin test updated. Both sweeps now report "as expected"; the other BNKMENU entries stand.

Lessons for agents

  • A sql_faults entry with a SQLCODE that has no table SQLSTATE (923) raises no SQLSTATE for SQLCODE -- give sqlstate (57015).

  • sql_faults accepts table + verb instead of a line number.

  • A harness feature that injects new faults (e.g. RESP on RETURN) can make a stated-infeasible outcome reachable: re-run the sweep after merging main and drop entries it flags.

Cross-repo: none.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 23, 2026 13:24
…Part of #6072)

DBCRFUN: ACCOUNT UPDATE -911 and 923 (storm drain) and PROCTRAN INSERT -803.
infeasible_outcomes: BNKMENU's RETURN / SEND failure arms and dead flags,
DBCRFUN's SYNCPOINT ROLLBACK failure arm, each with its IBM condition list.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…s and stated arms (Part of #6072)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-10-23). Nothing is needed from contributors; work resumes once it is answered.

…les (Part of #6072)

#6279 split tests/equivalence/infeasible_outcomes.json into one file per case. The
cbsa-bnkmenu and cbsa-dbcrfun entries move 1:1 into
infeasible_outcomes/cbsa-bnkmenu.json and cbsa-dbcrfun.json (written with
infeasible_outcomes.write_case), and the pin test reads them from there.

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

Copy link
Copy Markdown
Owner Author

The owner decided (2026-10-23); the bot applies it on its next tick.

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 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 24, 2026 00:16
@squid-protocol

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@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 24, 2026
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 00:16
…bcrfun det-sweep coverage (Part of #6072)

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

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (a9fe0e2) 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 24, 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 24, 2026 00:53
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6277 @ a9fe0e2: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40044742548/job/120725607468
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[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 142924
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 4aa6df0956c52ac174afcb9c79ac77b743bb04adddfdd110178bd9716a9b0b8a
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12541145875
Artifact det-sweep-ledger has been successfully uploaded! Final size is 142924 bytes. Artifact ID is 12541145875
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40044742548/artifacts/12541145875
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8f2b8d8c-b5b3-452f-bb7c-689951911109' 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

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6277 @ a9fe0e2: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40044742548/job/120725607468
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[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 142924
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 4aa6df0956c52ac174afcb9c79ac77b743bb04adddfdd110178bd9716a9b0b8a
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12541145875
Artifact det-sweep-ledger has been successfully uploaded! Final size is 142924 bytes. Artifact ID is 12541145875
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40044742548/artifacts/12541145875
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8f2b8d8c-b5b3-452f-bb7c-689951911109' 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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6277 @ a9fe0e2: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40044742548/job/120725607468
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[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 142924
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 4aa6df0956c52ac174afcb9c79ac77b743bb04adddfdd110178bd9716a9b0b8a
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12541145875
Artifact det-sweep-ledger has been successfully uploaded! Final size is 142924 bytes. Artifact ID is 12541145875
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40044742548/artifacts/12541145875
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8f2b8d8c-b5b3-452f-bb7c-689951911109' 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 and others added 2 commits October 23, 2026 21:21
…aches (Part of #6072)

After merging main (#6292 added RESP faults on SEND MAP / RECEIVE MAP / RETURN),
the proof reaches BNKMENU IOT010:{394,466,539,612,685,758,831,905}:true,
SMM010:{987,1138}:true and DBCRFUN WTPD010:569:true, so the infeasible claims
were wrong. Removed them (cbsa-dbcrfun's file is now empty and deleted),
refreshed the dbcrfun coverage ledger, updated the pin test.

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

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (49f8957) 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 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 01:27
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 7737fe0 into main Oct 24, 2026
37 checks passed
@squid-protocol
squid-protocol deleted the churn/6072-20261023T1708Z branch October 24, 2026 01:36
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