Skip to content

C stub records READ update/length/data/RESP2, REWRITE and UNLOCK events (Part of #4443) - #6269

Merged
squid-protocol merged 11 commits into
churn/4443-20261023T1559Zfrom
churn/4443-a0b-stub-file-events
Oct 23, 2026
Merged

squid-protocol merged 11 commits into
churn/4443-20261023T1559Zfrom
churn/4443-a0b-stub-file-events

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Slice A0b of #4443. The C stub ggcics.c now records the SPEC 6.2 keys that PR #6261's compare layer checks, so the four hc-file-unlock cobol-stub cells that #6261 turned into unsupported run again and pass.

  • ggcics_filecontrol.c: READ records upd=1 (UPDATE), len= (NORMAL and LENGERR), resp2= (when not NORMAL and the stub knows a nonzero value) and the INTO bytes as a blob (NORMAL only), on all three exits. UNLOCK records file resp resp2 on all three exits.
  • ggcics.c: REWRITE records file resp resp2 and the FROM bytes.
  • cics_crucible.py: _cobol_events parses them; COBOL_CAPS gains the keys. A LENGERR READ asserts its RESP only (SPEC section 2), so its RESP2 is dropped, as on the Java leg.
  • New test test_stub_file_events_4443.py: one stub run over 14 outcomes, compared with a hand-written log, plus a mutation check (every key's mismatch fails the comparison).
  • test_file_events_4443.py (from cics-crucible: Java-leg READ / REWRITE / UNLOCK file events (Part of #4443) #6261): the "stub stays unsupported" assertion now expects no blockers for the HCUNLK events and keeps READ SET as unsupported.

Baseline moves

Full run: 322 pass / 423 fail / 35 unsupported of 780 cells (#6261: 318 / 423 / 39). The baseline diff is exactly four lines removed: hc-file-unlock/{read-short,unlock-nothing,unlock-rewrite,update-rewrite}/cobol-stub. Coverage and the report are regenerated.

Class / Sibling gaps

Class: the stub's file-control commands record fewer SPEC 6.2 keys than the log defines. READ, REWRITE and UNLOCK are fixed here.
Sibling gaps (not fixed, no issues filed): READNEXT/READPREV length/data/resp2 on the stub; READ SET on the stub; WRITE/DELETE events carry no RESP2/data.

Remaining slices

Java port of HCUNLK (slice A).

Checklist: partial [c:8004bd43] -- LENGERR scenario's stub cell runs; Java port (slice A) left

Gates

pr_gates --fast 7/7, --ratchets 9/9, tests/cics_crucible/ plus source-read, cics-spec and generated-branch guards pass (plain pytest from /tmp), ruff format clean.

Cross-repo

None. Builds on #6261, which touches the same baseline, coverage and report files: this branch merges that branch, and the baseline must be regenerated if #6261 changes before it lands. Merge #6261 first.

🤖 Generated with Claude Code

squid-protocol and others added 11 commits October 23, 2026 12:22
#5274) (#6250)

* Split the CICS harness's conditions family into its own module (Part of #5274)

HANDLE CONDITION / AID / ABEND, PUSH / POP HANDLE, ASSIGN, the AID transfer after an input command and handler_labels move verbatim into equivalence_cics_conditions.py; the harness dispatches to it and re-exports handler_labels. Registered with the evidence harness inputs and trial.

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

* crucible_events.EVENTS: the four WEB events cics-crucible v0.10.0 added (Part of #5274)

The v0.10.0 pin bump (#6230) added WEB-WRITE-HTTPHEADER, WEB-OPEN, WEB-CONVERSE and
WEB-CLOSE to schema/expected.schema.json, but EVENTS was not updated. That left
test_crucible_case red on main and on every PR. The rows are copied from the
pinned schema.

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

* test_cics_spec: list equivalence_cics_conditions.py as a spec importer (Part of #5274)

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…6258)

Q is accepted on GU/GHU/GN/GHN/GNP/GHNP as no effect (one program, nobody to
wait); refused by name on ISRT. DLICMD Q40-Q45 prove it on the C twin and the
Java runtime; register I5 updated.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…bles (Part of #3383) (#6260)

* Fact channels: LLM brief section 13 as FACT_LINES / FACT_SUMMARIES tables (Part of #3383)

_mainframe_facts_lines iterates a table instead of ~20 hand-written branches. Output is
byte-identical against the old method on 3000 randomized payloads.

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

* llm_recorder: ruff format and ISC004 parenthesisation (Part of #3383)

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…Part of #5051) (#6264)

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…(Part of #4702) (#6263)

Six probes (CEEDAYS x3, CEEDYWK, CEEQCEN, COBDATFT) with oracle_expected measured on the pinned cobc
image (module not found, rc=1) and each note stating the answer z/OS should give. MATCHED_NO_COBC_FORM
is now empty: every MATCHED entry is probed or sorted out.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
… cells run again (Part of #4443)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ects the stub to record READ/REWRITE/UNLOCK (Part of #4443)

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 23, 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 23, 2026 17:05
@squid-protocol
squid-protocol merged commit 13ed36c into churn/4443-20261023T1559Z Oct 23, 2026
4 checks passed
@squid-protocol
squid-protocol deleted the churn/4443-a0b-stub-file-events branch October 23, 2026 17:05
squid-protocol added a commit that referenced this pull request Oct 23, 2026
…4443) (#6261)

* WIP cics-crucible: Java-leg READ / REWRITE / UNLOCK file events (Part of #4443)

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

* WIP cics-crucible: regenerate the baseline, coverage and report for the full READ key set (Part of #4443)

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

* C stub records READ update/length/data/RESP2, REWRITE and UNLOCK events (Part of #4443) (#6269)

* Split the CICS harness's conditions family into its own module (Part of #5274) (#6250)

* Split the CICS harness's conditions family into its own module (Part of #5274)

HANDLE CONDITION / AID / ABEND, PUSH / POP HANDLE, ASSIGN, the AID transfer after an input command and handler_labels move verbatim into equivalence_cics_conditions.py; the harness dispatches to it and re-exports handler_labels. Registered with the evidence harness inputs and trial.

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

* crucible_events.EVENTS: the four WEB events cics-crucible v0.10.0 added (Part of #5274)

The v0.10.0 pin bump (#6230) added WEB-WRITE-HTTPHEADER, WEB-OPEN, WEB-CONVERSE and
WEB-CLOSE to schema/expected.schema.json, but EVENTS was not updated. That left
test_crucible_case red on main and on every PR. The rows are copied from the
pinned schema.

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

* test_cics_spec: list equivalence_cics_conditions.py as a spec importer (Part of #5274)

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* carddemo cotrtupc, acctupdate: PF3 XCTL-fails scenario reaches ABEND-ROUTINE (Part of #6072) (#6259)

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* DL/I command code Q (enqueue) on gets, both runtimes (Part of #5233) (#6258)

Q is accepted on GU/GHU/GN/GHN/GNP/GHNP as no effect (one program, nobody to
wait); refused by name on ISRT. DLICMD Q40-Q45 prove it on the C twin and the
Java runtime; register I5 updated.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* Fact channels: LLM brief section 13 as FACT_LINES / FACT_SUMMARIES tables (Part of #3383) (#6260)

* Fact channels: LLM brief section 13 as FACT_LINES / FACT_SUMMARIES tables (Part of #3383)

_mainframe_facts_lines iterates a table instead of ~20 hand-written branches. Output is
byte-identical against the old method on 3000 randomized payloads.

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

* llm_recorder: ruff format and ISC004 parenthesisation (Part of #3383)

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* port_blockers: backfill the multi-estate / no-estate rows P065-P071 (Part of #5051) (#6264)

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* C stub records READ update/length/data/RESP2, REWRITE and UNLOCK events (Part of #4443)

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

* z/OS calibration probes for the remaining MATCHED entries A1, L1, L6 (Part of #4702) (#6263)

Six probes (CEEDAYS x3, CEEDYWK, CEEQCEN, COBDATFT) with oracle_expected measured on the pinned cobc
image (module not found, rc=1) and each note stating the answer z/OS should give. MATCHED_NO_COBC_FORM
is now empty: every MATCHED entry is probed or sorted out.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* Regenerate the CICS crucible baseline: four hc-file-unlock cobol-stub cells run again (Part of #4443)

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

* Stub file-event test: format, and the #6261 stub-unsupported test expects the stub to record READ/REWRITE/UNLOCK (Part of #4443)

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: Joe Esquibel <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Joe Esquibel <[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.

1 participant