Skip to content

EIBRCODE port side: det port and forge honour the rcode column (Part of #5126) - #7084

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/5126-20261030T0411Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/5126-20261030T0411Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5126 (slice 2 of 2, EIBRCODE port side, register X64). Builds on #7074 (the stub half); check gh api repos/squid-protocol/gitgalaxy/pulls/7074 -q .merged_at before merging.

Checklist: partial [c:bc93a812] -- port side done and proved on ZECS001; X64.md evidence line, the no-port Zecs002Service compile fix and zero-on-normal in the stub are left (below)

File-cap exception: 4 of the 9 counted files (test_eibrcode_stub_5126.py, ggcics_faults.c, equivalence_cics.py, equivalence_cics_faults.py) are #7074's, merged into this branch as its base; this PR's own hand-written files are 5 (cics_task_faults.py, det/cics.py, det/program.py, test_cics_family_split.py, test_eibrcode_port_5126.py).

What changed

  • det/cics.py, det/program.py: a program that reads EIBRCODE (reads_eibrcode) gets, after a file-control command's EIBRESP/EIBRESP2 stores and before a condition's jump, if (resp != 0 && task.rcode() != null) EIBRCODE.putRaw(task.rcode()). Non-readers keep their text.
  • cics_task_faults.py (forge CicsTask): withFaults keeps the sixth column of a non-ABEND row as rcode() (12 hex digits -> 6 bytes), cleared at every lookup, as the stub's GGCRCOD.
  • tests/equivalence/zecs-zecs001/case.json: rcode on the four ZC01FILE IOERR/NOSPACE faults (only 9100-FILE-ERROR reads EIBRCODE). Values are scenario facts, ASSUMED (X64).
  • Tests: test_eibrcode_port_5126.py; the family-split pin gains rcode/rcodeOf; zecs-zecs001 det ledger refreshed.

Evidence

  • det_port.py run: zecs-zecs001 PROVED 1072/1072, 62 scenarios, 107/119 paragraphs, 173/208 branches; samples cbsa-bnk1cac, carddemo-acctview, genapp-lgacdb01, mortgage-mlist PROVED.
  • det_port.py check: 156 ports differ, all by the 22 lines of CicsTask.java (the rcode field); only zecs-zecs001 also changes its service. The other 155 are left to the nightly det sweep, not re-proved here.
  • pr_gates --fast 9/9, --ratchets all pass, audit_check clear.
  • Deviation from the plan: Java leaves EIBRCODE as it was on a normal response (what the stub does) rather than writing 6 X'00'; zeroing needs a stub change in ggcics_faults.c (cics stub: a file fault states EIBRCODE (rcode, GGCRCOD), slice 1 of 2 (Part of #5126) #7074's file, over the cap).

Class / Sibling gaps

Class: EIB fields a burned program reads that a file command sets. This slice closes EIBRCODE on the port side. Siblings: EIBFN, EIBCPOSN, EIBREQID, EIBRSRCE, EIBERR/EIBERRCD stay refused (no burned reader, X64). Remaining slices: (1) docs/language_status/register/X64.md slice-2 evidence (overlaps #7074); (2) tests/tools/equivalence_java.py: the plain equivalence.py run zecs-zecs001 fails to compile on main (Zecs002Service missing: the no-port path never writes a service stub for case programs; det_port is unaffected); (3) ggcics_faults.c zero EIBRCODE on a normal response. Other checklist keys untouched.

Lessons for agents

  • det_port.py run proves ports but not the no-port equivalence.py run path: a Java compile failure there only shows on the plain run.
  • Test classes derived from _KeyCics/_RbaCics stub outcome(); to test emitted outcome text, set outcome = C.Cics.outcome and give g.jump.

🤖 Generated with Claude Code

squid-protocol and others added 5 commits October 29, 2026 23:36
…2 (Part of #5126)

A scenario's file control fault may state `rcode` (12 hex digits = the 6 bytes of EIBRCODE); the planner writes it as
faults.cfg's sixth column and the C stub copies it into a program that reads EIBRCODE after the command. Unstated,
nothing changes. Port side is slice 2; X64 records ZECS001 is whole and the ASSUMED status.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…mn (Part of #5126)

A program that reads EIBRCODE gets the 6 bytes a planned file-control condition states, set right after the
EIBRESP stores and before a condition's jump (as the stub's GGCRCOD); unstated, the field is left as it was.
CicsTask.withFaults keeps the sixth column of a non-ABEND row as rcode(), cleared at each lookup.
ZECS001 IOERR/NOSPACE scenarios on ZC01FILE now state their rcode.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…cs-zecs001 det ledger (Part of #5126)

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 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 04:48
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

class _RcodeCics(_LenCics):
def __init__(self, reads: bool):
super().__init__()
self.eibrcode_read = reads
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 470739d into main Oct 30, 2026
98 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5126-20261030T0411Z branch October 30, 2026 06:08
squid-shepherd Bot pushed a commit that referenced this pull request Oct 30, 2026
…ervice; X64 slice-2 evidence (Part of #5126) (#7085)

* cics stub: a file fault states EIBRCODE (rcode, GGCRCOD); slice 1 of 2 (Part of #5126)

A scenario's file control fault may state `rcode` (12 hex digits = the 6 bytes of EIBRCODE); the planner writes it as
faults.cfg's sixth column and the C stub copies it into a program that reads EIBRCODE after the command. Unstated,
nothing changes. Port side is slice 2; X64 records ZECS001 is whole and the ASSUMED status.

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

* EIBRCODE port side: det port and forge honour faults.cfg's rcode column (Part of #5126)

A program that reads EIBRCODE gets the 6 bytes a planned file-control condition states, set right after the
EIBRESP stores and before a condition's jump (as the stub's GGCRCOD); unstated, the field is left as it was.
CicsTask.withFaults keeps the sixth column of a non-ABEND row as rcode(), cleared at each lookup.
ZECS001 IOERR/NOSPACE scenarios on ZC01FILE now state their rcode.

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

* EIBRCODE port: pin rcode/rcodeOf in the faults family, refresh the zecs-zecs001 det ledger (Part of #5126)

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

* EIBRCODE slice 2 follow-up: name a LINKed program with no generated service; X64 slice-2 evidence (Part of #5126)

Built on #7084 (merged into this branch as its base). The no-port equivalence.py run of
zecs-zecs001 failed to compile because the forge writes no service for the HLASM ZECS002;
run_java_cics now refuses it by name. X64 records the slice-2 port evidence and why a
normal response does not zero EIBRCODE.

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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