Skip to content

DELAY faults in the equivalence harness: EXPIRED and INVREQ planned per scenario; CRDTAGY1-5 reach the failure branch (Part of #6271) - #6318

Merged
squid-protocol merged 4 commits into
mainfrom
churn/6271-20261024T0121Z
Oct 24, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/6271-20261024T0121Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #6271 (slice 3 of 5: the DELAY fault). Slices 1 (#6286) and 2 (#6292) merged.

Checklist: done [c:14e85615]

What changed

  • The harness can plan a failed DELAY: {"cmd": "DELAY", "resp": "EXPIRED|INVREQ", "resp2": n} (INVREQ RESP2 4/5/6/22; EXPIRED names none). The C stub (GGCDLAY) and the det port (CicsTaskControl.delay via CicsTask.planned) both honour it: the delay is not performed, RESP/RESP2/EIBRESP carry the plan, HANDLE CONDITION fires when no RESP is coded.
  • Register X72 states IBM's DELAY conditions (checked against the IBM page) and what is assumed; refused by name: NORMAL RESP2 23 (needs a second task), any other condition, a RESP2 where IBM states none or outside its list.
  • CBSA CRDTAGY1-5 gain delay-invreq-seconds-out-of-range (plus the ABNDPROC program and ABNDFILE dataset the failure arm LINKs to, mirroring cbsa-bnkmenu).

Evidence (CBSA CRDTAGY1-5, det port vs GnuCOBOL + stub)

case before (scenarios, paragraphs, branches) after
crdtagy1-5 (each, identical) 7 scenarios, 4/7, 4/6 8 scenarios, 7/7, 5/6

All five: translated 57/57, proved on every scenario. The one uncovered branch outcome in each is the PUT CONTAINER failure (a stated-infeasible entry, CHANNELERR 3, unchanged). The oracle is GnuCOBOL plus our stub, not z/OS.

Plan was partly wrong: the DELAY-failure outcome was stated infeasible in infeasible_outcomes/cbsa-crdtagy1-5.json (true for the natural 1-2 second interval); a planned fault reaches it, so the sweep failed until those five entries were removed. RESP2 22 was added to the plan's 4/5/6 after reading IBM.

Re-prove after the DELAY lowering changed

det_port.py check listed 41 ports whose generated Java changed (DELAY now reads task.planned first). All 41 were re-proved with det_port.py run: 39 PROVED, 2 DIFFER: cbsa-crecust (#4952) and cbsa-bnk1ccs-create (#5089). Both are already in tests/equivalence/det_sweep_baseline.json (the CEEDAYS 10-byte-picture issue), so they are not caused by this PR. The 39 include CRDTAGY1-5, the -generated variants, the asynccc cases, carddemo and zecs-zecs000.

Class / Sibling gaps

Class: commands whose failure arm the harness cannot reach because no fault can be planned on them (slice 1 file commands, slice 2 terminal/unit-of-work commands, this slice DELAY). Siblings, each with the burned program that needs it:

gap status needed by
DELAY done here CRDTAGY1-5
plain RETURN TRANSID with RESP open BNKMENU line 178
SEND TEXT / SEND CONTROL open not yet named
linked-program / CALL abend injection, Db2 (AD2Z) open #6271 later slices
DELAY NORMAL RESP2 23 (cancel by another task) refused, needs a second task none
natural out-of-range DELAY values (computed FOR/INTERVAL) not turned into INVREQ by the stub open none burned

Remaining slices: CEEDAYS model, X6 WRITEQ, paragraph-level infeasible outcomes.

Hand-written files

equivalence_cics.py (4 lines + message register id; overlaps #5898/#5900, merged origin/main), ggcics_taskcontrol.c, det/cics_taskcontrol.py, X72.md, test_equivalence_cics_fault_resp.py are the five. Two more tests had to follow the changed DELAY lowering and the new fault command: test_det_translate.py, test_strengthen_loop.py (over the limit of five, to fix this PR's own failures); test_cbsa_slice2_6072.py (the #6123 pin of the two CRDTAGY infeasible entries) now expects the one PUT CONTAINER entry plus a planned DELAY fault (Opus rescue).

Lessons for agents

  • Removing an infeasible_outcomes entry: grep tests/ for tests pinning that case's entry count (test_cbsa_slice2_6072.py pinned CRDTAGY's).
  • A stated-infeasible entry that a new harness feature makes reachable fails the det sweep ("claim is wrong"): remove the entry from infeasible_outcomes/<case>.json in the same PR.
  • Adding a fault command means updating _FAULT_RESP / _NAMELESS in test_strengthen_loop.py and any test pinning the command's first lowered line (test_det_translate.py).

Cross-repo

None: no companion PR in another repo.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 23, 2026 21:29
…er scenario, CRDTAGY1-5 reach the failure branch (Part of #6271) (X72)

A scenario can plan a failed DELAY (EXPIRED; INVREQ RESP2 4/5/6/22) on the stub and the det port alike. CBSA CRDTAGY1-5 gain a
delay-invreq-seconds-out-of-range scenario, so the A010 DELAY-failure arm (stated infeasible before) is now reached and its
infeasible entries are removed. Register X72 states IBM's conditions and refuses NORMAL RESP2 23.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 02:13
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 02:19
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6318 @ 886bdbf: 1 failed check(s)

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40053261329/job/120751166119
repro: python -m pytest -q tests/cobol_mainframe/test_cbsa_slice2_6072.py::test_every_crdtagy_case_states_its_delay_and_put_container_failure_arms
failing tests: tests/cobol_mainframe/test_cbsa_slice2_6072.py::test_every_crdtagy_case_states_its_delay_and_put_container_failure_arms
errors:
fail-on-cache-miss: false
tests/cobol_mainframe/test_cbsa_slice2_6072.py:22: AssertionError
FAILED tests/cobol_mainframe/test_cbsa_slice2_6072.py::test_every_crdtagy_case_states_its_delay_and_put_container_failure_arms - assert 1 == 2
##[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: 79fbc48ab1156cd8b1615077b6ae09a2e142a4117df0eb3455c1d13bc41f2dce
PYTHONUTF8: 1
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 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 119661
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 0c4d9a403c18549cebf7264b3fb10089e4ded8b218a61f1ef5d46347ccf49ebb
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12544307365
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 119661 bytes. Artifact ID is 12544307365
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40053261329/artifacts/12544307365
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/cd9ba8ea-1617-45e2-913f-f5332af59b6f' 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-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 and others added 2 commits October 23, 2026 22:30
…ned fault, not stated infeasible (Part of #6271)

The PR removed the DELAY-failure entry from infeasible_outcomes/cbsa-crdtagy1-5.json; the #6123 pin
still expected two entries. It now expects the one PUT CONTAINER entry and a DELAY fault in the case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed 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

Copy link
Copy Markdown
Owner Author

No description provided.

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