Skip to content

cics-crucible: stub STARTBR / READNEXT / READPREV / ENDBR events + COBOL_CAPS (Part of #6262) - #6321

Merged
squid-protocol merged 3 commits into
mainfrom
churn/6262-stub-browse
Oct 24, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/6262-stub-browse

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6262, slice A of 3: the C stub's STARTBR / READNEXT / READPREV / ENDBR events and COBOL_CAPS, mirroring the Java-leg events of #6314.

Cross-repo: none. Stacked on #6314 (same issue; this branch carries its commit, which adds EVENT_KEYS and JAVA_CAPS). Merge #6314 first; this PR's diff then shrinks to the four files below. Nothing re-runs after.

What changed

  • tests/equivalence/cics/ggcics_filecontrol.c: new browse_event replaces the bare file_event call for STARTBR / READNEXT / READPREV. It records the RIDFLD on entry as hex (rid=; a key may hold spaces or X'FF'), STARTBR's mode=, resp2= where not NORMAL, and for a browse read len= plus the bytes INTO (NORMAL or DUPKEY). The ENDBR line gains resp2=. An RBA browse keeps its rba= lines.
  • tests/tools/cics_crucible.py: _cobol_events reads those lines into SPEC 6.2 events; COBOL_CAPS lists the four events with the same keys as JAVA_CAPS; seed_files sizes a file's key from a browse event too. An RBA browse line maps to ridfld=Unmodelled, not a misread key. A LENGERR read asserts RESP only (SPEC section 2), as READ does.
  • tests/cics_crucible/test_browse_stub_events_6262.py (new): runs the stub through the same command sequence as the Java leg's test and holds its events to the same expected log, so the legs agree on every key; plus a mismatch check and the RBA case.
  • tests/cics_crucible/test_browse_events_6262.py: drops the "stub does not yet" assertion this PR makes false.

Class / Sibling gaps

Class: CICS file-control commands as crucible SPEC events (#6262; sibling of READ / REWRITE / UNLOCK from #4443). Members: READ SET, STARTBR, READNEXT, READPREV, ENDBR, WRITE, DELETE.

  • Done here, stub half: STARTBR, READNEXT, READPREV, ENDBR (same mechanism, one handler browse_event, each exercised in the parity test).
  • Sibling gaps: READ SET (stub cells blocked by the translator; needed by case hc-file-read-set / HCRSET); WRITE and DELETE (Java + stub; no burned program or crucible case needs them yet). RBA browse events (stub emits rba= lines, no Java event; no burned program browses an ESDS by RBA in a crucible case).

Remaining slices

Slice B: #6314 (Java leg). Slice C: the crucible case that uses these events plus the translator wiring (startbrEvent etc. from the generated port), then READ SET; WRITE / DELETE only when a program needs them.

Checklist: partial [c:fe841e1a] -- stub half done here; the Java half is #6314
Checklist: partial [c:74ed4275] -- stub half done here; the Java half is #6314
Checklist: partial [c:0b9cd2fe] -- stub half done here; the Java half is #6314
Checklist: partial [c:785f464d] -- stub half done here; the Java half is #6314

Facts checked

  • pr_gates --fast: 7/7; --ratchets: 9 pass, 0 fail, 0 skipped (golden masters are not touched: no gitgalaxy/ change).
  • tests/cics_crucible + tests/tools/test_crucible_case.py all pass; tree-wide guards 194 pass; the new tests' time ratchet: 0 over the limit; audit_check: clear.
  • Nothing parses the old STARTBR file= key= stub line (grepped tests/ and gitgalaxy/).

🤖 Generated with Claude Code

@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 02:10
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 02:13
@squid-protocol

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@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 squid-protocol removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md 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

CI shepherd: the head of this PR (0cb8293) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 02:34
@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