Skip to content

cics-crucible: Java leg records WRITE and DELETE as SPEC 6.2 events (Part of #6262) - #7166

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6262-20261030T1631Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6262-20261030T1631Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6262. Checklist: partial [c:WRITE event (Java + stub)] and [c:DELETE event (Java + stub)] -- Java leg done here; the C stub half and the SPEC rows are left.

What

The Java leg records WRITE and DELETE as SPEC 6.2 events: CicsTask.writeEvent, deleteEvent, deleteGenericEvent, deleteInvalidEvent, deleteHeldEvent, deleteTokenEvent wrap the existing write / delete* (which stay event-free for every port). Event shape (proposed here, to be written into the SPEC): WRITE {file, ridfld, data, resp, resp2}, DELETE {file, ridfld, generic, resp, resp2}; ridfld is absent when the DELETE has none (held record, TOKEN); resp2 only when not NORMAL and IBM states one (DUPREC states none). JAVA_CAPS, _java_file_event and the comparator's EVENT_KEYS learn both kinds. New test_write_delete_events_6262.py runs the whole condition class through CicsTask against a hand-traced IBM log (NORMAL, DUPREC, planned NOTOPEN, NOTFND, generic, INVREQ 25 / 31, held, token), checks the event-free methods record nothing, that every key is compared, and that the stub does not yet advertise the kinds.

Class / Sibling gaps

Class: EXEC CICS file-control commands that mutate a file, with no SPEC 6.2 event wrapper on the Java leg (same mechanism as rewriteFrom / unlock #4443 and the browse events #6262). Handled here: WRITE, DELETE by key, GENERIC, KEYLENGTH INVREQ, held, TOKEN. Not here (5-file cap, different files):

  • Cross-repo / Remaining slice 1: cics-crucible SPEC.md rows for WRITE / DELETE, schema/expected.schema.json, tools/validate.py:1124. Needs the owner or orchestrator (cics-crucible is case PRs only for workers); merges before the pin bump. No burned-estate program needs it (scope: sweep).
  • Remaining slice 2: stub half: ggcics.c GGCWRIT and ggcics_filecontrol.c DELETE emit the SPEC event (rid=<hex>, data, generic=1, resp2) instead of the old key= line, COBOL_CAPS and the stub parser in tests/tools/cics_crucible.py, a stub test like test_browse_stub_events_6262.py.
  • Remaining slice 3: det/cics_filecontrol.py emitting the event variants for ports; needed only once a case asserts these events.

Cross-repo: companion is the cics-crucible SPEC PR above (merges first, then a pin bump); nothing re-runs here before it lands since no case uses the events yet.

Gates

pr_gates --fast 9/9, --ratchets 9/9 (via heavy-run.sh, JDK 17), cics_crucible + guard tests 1108 passed, time_ratchet 0 over. No golden touched (no language_standards change). Facts checked: SPEC at pin and crucible main has no WRITE/DELETE row; the stub still logs the old line.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 30, 2026 12:36
… token) as SPEC 6.2 events (Part of #6262)

CicsTask.writeEvent / deleteEvent / deleteGenericEvent / deleteInvalidEvent / deleteHeldEvent / deleteTokenEvent wrap the
existing methods; JAVA_CAPS, the Java mapping and the comparator's key table learn the two kinds. The stub half follows.

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 16:47
@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 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 16:56
@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 added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 30, 2026
@squid-shepherd
squid-shepherd Bot merged commit 31f4412 into main Oct 30, 2026
106 of 107 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6262-20261030T1631Z branch October 30, 2026 18:17
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