Skip to content

det/CICS: record READ events for GTEQ / GENERIC (Part of #7487) - #7980

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7487-20261107T0355Z
Nov 7, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7487-20261107T0355Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7487 (slice 2: READ GTEQ / GENERIC events)

What changed

  • CicsTask.readSearchEvent (new, public in the cobolrt API manifest): readSearch plus the SPEC 6.2 READ event (resp, resp2, length, data), LENGERR 22/11 for a record longer than INTO's LENGTH, as readInto.
  • det/cics_filecontrol.py: _search emits it for the SET form, and for the INTO / INTO-LENGTH forms when the program records file events. _records_file_events is also true for a tokenless READ GTEQ / GENERIC, unless the program has a REWRITE (see Sibling gaps). A TOKEN read keeps the event-free call.
  • file_key_method docstring: the register X22 note (a name outside the region answers FILENOTFOUND, det/CICS: a file name the region did not define answers FILENOTFOUND (Part of #7487) #7960).
  • Harness: the stub's RESP 12 is named FILENOTFOUND (RESP_NAMES kept the later alias DSIDERR, so a FILENOTFOUND on a file event could never match CicsTask's name).
  • Case data: genapp-lgipvs01 and genapp-lgipvs01-linked drop the first ksdspoly.txt row (key 9000000000..., a counter row no scenario reads). With it, GTEQ M0000000011 found that row in the port (EBCDIC order, IBM's) and NOTFND in the oracle (ASCII order): the new event exposed register D1's "keys mixing letters and digits" gap. The program output matched either way, which is why it was never seen.

Facts checked

  • det_port.py run PROVED: genapp-lgicvs01, genapp-lgicvs01-linked, genapp-lgipvs01, genapp-lgipvs01-linked, zecs-zecs000, zecs-zecs003. det_port.py check: services that moved are those five (zecs000's is unchanged from main); the other ports change only through the shared CicsTask.java.
  • proof_sweep.py --det-only on the two lgipvs01 cases: 2/2 proven (7 and 5 scenarios, 6/6 branches).
  • pr_gates --fast: 9/9 pass; audit_check.py all clear; cobolrt_rules.py --check consistent; new test_search_read_events_7487.py 13 passed (one javac test, slow).
  • Not run: the full OS x Python matrix, crucible_check.py (no parser path moved).

Cross-repo

None.

Sibling gaps

  • ZECS000 (burned) keeps the event-free calls: recording its READ UPDATE LENGTH / REWRITE FROM events shows two stub/port differences, a file name with leading blanks (the stub logs it as '') and an ABEND-planned READ UPDATE (the stub logs the stale len=70, the port none). That is why the extension skips a program with a REWRITE.
  • readInvalid (KEYLENGTH 25/26/42) and READ TOKEN record no event; a plain keyed READ INTO without LENGTH records none in a program that records events. No burned program found that needs them.
  • Register D1 still stands for any browse or search over keys mixing letters and digits.
  • Hand-written files: 7 (cap 5): the two ksdspoly.txt / case.json pairs were needed to keep the two cases PROVED once the event existed.

Remaining slices

  • ZECS000's two differences above, then drop the REWRITE exception.
  • readInvalid / READ TOKEN events.

Lessons for agents

  • A new event can expose an oracle gap the program output hid: a GTEQ the port answers from EBCDIC order and the stub from ASCII returned the same output. Read a new DIFFERS against register D1 before touching the port.
  • ec.RESP_NAMES is built from DFHRESP where DSIDERR follows FILENOTFOUND: any stub RESP 12 is named DSIDERR unless a caller maps it.
  • cobolrt_api.py generate lists a new public method as internal: set visibility to public by hand when emitter code calls it, and fix the summary counts (test_no_committed_port_or_generator_string_uses_an_internal_member).

🤖 Generated with Claude Code

@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 05:21
@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

@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 Nov 7, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 05:27
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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