Skip to content

equivalence harness: planned SEND TEXT RESP faults (Part of #6271) - #6477

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

squid-protocol merged 5 commits into
mainfrom
churn/6271-20261024T1410Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #6271.

Checklist: partial [c:7358346e] -- SEND TEXT is done; SEND CONTROL has no fault plan yet, and no committed bnkmenu scenario injects a SEND TEXT fault (proved on a scratch copy only).

What

Planned TSIOERR / INVREQ (RESP2 200) / LENGERR faults on SEND TEXT, register X71. The command is nameless, like RETURN (-). The ggcics.c stub and the det translator (det/cics.py) read the same plan, and a planned fault sends nothing. CONVERSE's own write consults no SEND TEXT plan. X71.md records the IBM conditions. test_strengthen_loop.py got its two per-command tables extended, which this PR's new FAULT_COMMANDS member required. ruff_audit_baseline.json takes the one edited baselined ISC004 line.

Evidence ladder

  • Unit: 334 passed (fault-resp, strengthen loop, source reads, cics spec, generated branch, sweep plan, critical-path split, proof reach). pr_gates --fast 7/7 and --ratchets pass, with audit_check clean after regenerating the ruff baseline.
  • Executed-equivalent, scratch copy of cbsa-bnkmenu (pf3 base plus a TSIOERR, an INVREQ/200 and a LENGERR fault on SEND TEXT): det_port.py run PROVED, 3/3 events equal in each fault scenario, DISPLAY output equal, both legs fired the same plan. The scratch case is not committed.
  • det_port.py check against main: 73 of 179 ports change (each SEND TEXT now has a planned-fault lookup). I re-proved the 32 changed ports from the burned estates (CardDemo, CBSA, zECS, DBB mortgage, async credit-card): all PROVED. The other 41 are non-burned estates and were not run.
  • The oracle is GnuCOBOL plus our stub, not z/OS.

Class / Sibling gaps

Class: terminal and unit-of-work commands whose RESP can be planned in the equivalence harness (X71).
Sibling gaps: SEND CONTROL has no plan yet (it is refused; one test pins that). No committed scenario in any case injects a SEND TEXT fault. infeasible_outcomes/cbsa-bnkmenu.json:131 still records the SEND TEXT failure branch as infeasible and could now be replaced by a scenario. The non-burned changed ports were not re-proved.
Facts checked: IBM SEND TEXT conditions (IBM CICS TS docs) against UI_FAULT_CONDITIONS; BNKMENU.cbl 1210-1216 (the failure route abends); the stub and translator read the same plan line, which test_the_send_text_stub_and_translator_read_the_same_plan pins.

Cross-repo

None. No parsing change, so no golden bless.

Remaining slices

SEND CONTROL plan; a committed bnkmenu SEND TEXT fault scenario that replaces the infeasible entry (touches case.json plus the infeasible file).

Lessons for agents

  • equivalence.py run without --port has no Java port, so every Java event list is empty and it looks like a failing fault. Prove a det-port case with det_port.py run CASE --work DIR.
  • A scenario that aborts before the command under test never fires the fault: check the COBOL path first (BNKMENU's SEND TEXT is reached via pf3, not the option-*-return-invreq scenarios).
  • det_port.py check takes longer than 2 minutes; give it a 25 min timeout.

Rescue fix (Opus): tests/cobol_mainframe/test_det_translate.py::test_send_text_terminal_is_the_default_disposition pinned the unguarded task.sendText(...) line; it now pins the task.planned("SEND-TEXT", "-") read and the if (planned2[0] == 0) guard. That is one more test file the lowering change itself requires.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 24, 2026 10:17
…D TEXT (Part of #6271)

SEND TEXT joins the X71 fault commands: nameless, like RETURN. The ggcics.c stub
and the det translator read the same plan; a planned fault sends nothing.
CONVERSE's own write consults no SEND TEXT plan. SEND CONTROL is left as a
sibling gap.

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 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 14:43
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 14:44
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6477 @ 9e1f9ec: 1 failed check(s)

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40103797561/job/120901556876
repro: python -m pytest -q tests/cobol_mainframe/test_det_translate.py::test_send_text_terminal_is_the_default_disposition
failing tests: tests/cobol_mainframe/test_det_translate.py::test_send_text_terminal_is_the_default_disposition
errors:
fail-on-cache-miss: false
tests/cobol_mainframe/test_det_translate.py:1472: AssertionError
FAILED tests/cobol_mainframe/test_det_translate.py::test_send_text_terminal_is_the_default_disposition - assert 'task.sendText(text1.substring(0, Math.min(text1.length(), 56)), 56, "ERASE", "FREEKB", "WAIT");' in ['String text1 = Cobol.text
##[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: 7f275a04c8dc48c66830efc5775bfdfa50ea776f9bea54b33f0ea7b08149ff3e
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-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 122041
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 6f3dbf16831f5bb6a89eb02d64a9da21bb359533d1a99e99e409a6bc64855051
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 12564157294
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 122041 bytes. Artifact ID is 12564157294
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40103797561/artifacts/12564157294
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/9930b7e8-8cdd-44d8-92df-348e8729f719' 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 24, 2026 10:58
…Part of #6271)

The SEND TEXT lowering now reads task.planned("SEND-TEXT", "-") and sends only
when no fault is planned; the disposition test pinned the old unguarded line.

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