Skip to content

MQ fault injection + COPAUA0C MQCLOSE-fails (line 963), re-proved (Part of #5278) - #6552

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5278-20261024T2227Z-regraft
Oct 24, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5278-20261024T2227Z-regraft

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5278 (slice 2 of 2). Supersedes #6157 (regraft onto current main; the old branch was 339 commits behind and no longer merged).

What

  • MQ fault injection. A scenario's mq_faults ([{call, nth, reason}]) becomes FAULT <VERB> <NTH> <REASON> lines in mq.cfg, which both twins read (ggmq.c, QueueManager.java). The nth call of that verb is not performed and answers the IBM reason (completion code from comp()), logging the usual event, so the compared cc/rc prove both sides fired. equivalence_mq.fault_plan refuses an unknown verb, nth < 1, or a reason IBM does not give that verb.
  • COPAUA0C scenarios: close-request-queue-fails (MQCLOSE, line 963, M005), plus the same-mechanism open-request-queue-fails (M001) and get-request-fails (M003), all MQRC 2009.
  • Re-proved on current main via ladder_refresh.py carddemo-copaua0c:
case paragraphs before paragraphs after net branches before net branches after proof
carddemo-copaua0c 100.0 (41/41) 100.0 (41/41) 89.9 (62/69) 91.3 (63/69) proven

Line 963 is covered. The 6 uncovered are the stated-unprovable ones (339 true, the 6000-MAKE-DECISION EVALUATE arms).

Checklist: done [c:0c25aa7e]
Checklist: done [c:647cd935]

Class table

Class: an MQI call the case plans to fail Status
MQOPEN / MQCLOSE / MQGET scenario + proof here
MQPUT / MQPUT1 model supports the fault; failure branch (~767) already proved by no-reply-queue

Owner decisions

None needed.

Sibling gaps

  • C-vs-Java byte-for-byte fault scripts in test_det_mq.py. Parity is proved today only through the COPAUA0C scenarios (MQOPEN/MQGET/MQCLOSE); MQPUT/MQPUT1 fault paths are modelled but unexercised. Burned program needing them: none.

Remaining slices

  • test_det_mq.py fault scripts for all five verbs.

Regraft notes

  • Hand-written files re-applied with git apply -3 against current main (clean): QueueManager.java, ggmq.c, equivalence_mq.py, case.json, test_carddemo_copaua0c_5278.py, cobolrt_rules.json (the catalogue is hand-maintained: cobolrt_rules.py --check fails without the planned plumbing entry).
  • Generated files regenerated, not carried: evidence.json (evidence.py prove, proven / unapproved) and det_sweep_coverage/carddemo-copaua0c.json (det_coverage_ledger.py update). The old PR's carddemo-dbunldgs.json refresh was main-side drift and is not needed now.

Facts checked

  • Main has no MQ fault injection (grep FAULT in both twins and equivalence_mq.py: none), and no *-fails MQ scenarios in the case.
  • blockers.txt (generated branch, baseline 3420449) has no MQ / CMQ copybook row at all.
  • Gates: audit_check.py all clear; ruff format --check clean; pr_gates.py --ratchets 9/9; cobolrt_rules.py --check consistent; ladder_refresh pin tests 994 passed / 160 skipped (Db2/IMS corpora-gated); focused test_carddemo_copaua0c_5278, test_det_mq, test_mq_calls 82 passed with the translator extra, no skips.
  • Not run: det_port.py check (runtime-only change, translator output untouched) and the full suite; CI det-sweep re-proves the MQ cases.

Cross-repo

None.

🤖 Generated with Claude Code

…rt of #5278)

Regraft of #6157 onto current main: a scenario's mq_faults become FAULT lines
in mq.cfg, read by both twins (ggmq.c, QueueManager.java); three COPAUA0C
scenarios (MQOPEN / MQGET / MQCLOSE 2009). Re-proved: 25 scenarios, 41/41
paragraphs, 63/69 branches.

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-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 24, 2026 22:39
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 7bdf81d into main Oct 24, 2026
65 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5278-20261024T2227Z-regraft branch October 24, 2026 23:27
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