Skip to content

det/CICS: drop the REWRITE exception for search READ events (Part of #7487) - #7982

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7487-20261107T0614Z
Nov 7, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7487-20261107T0614Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7487 (slice 3, after #7980): ZECS000 was the one program _records_file_events left out of search-READ event recording, because recording its events exposed two stub/port differences. Both are fixed and the REWRITE exception is dropped.

What changed

  • det/cics_filecontrol.py: the gate no longer excludes a program with a REWRITE (a TOKEN read still keeps the event-free call).
  • tests/tools/equivalence_cics.py (event_kv): a file name's leading blanks survive the stub event-line parse ( FILE after a NOTFND RETRIEVE read as '').
  • ggcics_filecontrol.c and cics_task_filecontrol.py (readEvent): a command answered NORMAL only because of a planned ABEND logs no READ / STARTBR / READNEXT / DELETE event (stub) and no READ event (port): IBM never completes a command that abends the task.
  • port_blockers.json P122 and its regenerated page.

File-cap exception: docs/language_status/port_blockers.md is generated by tests/tools/port_blockers.py report --write from port_blockers.json; the hand-written files are the other five.

Class / Sibling gaps

Class: a file event that the stub or harness records differently from IBM or the port, or a program kept out of event recording for a reason now fixed. Fixed here: the stub's four injected branches (READ, STARTBR, READNEXT/READPREV, DELETE) and the port's three READ event sites. Sibling gaps, not fixed: the port's STARTBR/READNEXT/DELETE events still record after a planned abend; the stub's ggcics_filewrite.c WRITE/REWRITE and an UNLOCK abend branch. No burned program plans an abend on these (ZECS000's abend scenarios plan only READ).

Remaining slices

  • readInvalid (KEYLENGTH 25/26/42) and READ TOKEN events: no burned program found that needs them yet.
  • A plain keyed READ INTO without LENGTH records no event in an event-recording program.
  • Register D1 (collation) still stands.

Facts checked

  • det_port.py run zecs-zecs000: PROVED, 19 scenarios, 38/38 paragraphs, 48/48 branches, including control-read-abends-afcr/afcs/afct.
  • det_port.py check: 269/270 ports unchanged; only zecs-zecs000 moved.
  • proof_sweep.py --det-only on zecs-zecs000, carddemo-cardupdate, cbsa-inqcust: all PROVED.
  • audit_check.py all clear; pr_gates.py --fast 9/9; pinned ruff format clean; new tests pass (37 with the ledger test).
  • Crucible bless: not run. No parsing code (detector, language_standards, prism) changed; reasoned, not measured.

Lessons for agents

  • The stub's event line puts pgm= first, so file= is not the first key: match it with (?:^| )file=.
  • A planned ABEND with a HANDLE ABEND exit leaves ended false and the task goes on, so gate on the answered resp (fresp != NORMAL), not on ended.

Cross-repo

None.

🤖 Generated with Claude Code

…blank file names; no event for an abended command (Part of #7487)

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

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 07:17
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 07:17
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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