Skip to content

CICS WEB: record and compare WEB-OPEN / WEB-CLOSE events on both runtimes (Part of #4767) - #6174

Merged
squid-protocol merged 5 commits into
mainfrom
churn/4767-20261023T0257Z
Oct 23, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/4767-20261023T0257Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4767 (EXEC CICS WEB family, zECS).

What

The HTTP client verbs WEB OPEN / WEB CLOSE now record an event on both runtimes (the Java CicsTask and the C stub ggcics.c), and the equivalence harness reads and compares them, as it already does for WEB CONVERSE. Before this, a program that opened or closed a session wrongly (wrong host, scheme, or a missed close) could not differ in the harness: only the requests were compared.

  • WEB-OPEN: host as the connection names it ('' when HOSTLENGTH gave none, the peer's for a URIMAP), scheme (none when neither HTTP nor HTTPS), RESP / RESP2. A refused open records nothing.
  • WEB-CLOSE: RESP / RESP2.
  • Harness compares host, scheme, resp2 (open) and resp2 (close).

Class

Client-side WEB events the harness cannot yet see. Members: WEB-OPEN (done), WEB-CLOSE (done), WEB-CONVERSE (already recorded and compared before this PR).

Hand-written files: 6 (limit 5)

Five code/test files plus docs/language_status/register/X35.md, the register entry that must state the new events and the crucible gap (the register is the status record for this construct).

Gates

Gate Result
pr_gates.py --fast 7/7 pass
pr_gates.py --ratchets 9/9 pass
test_evidence.py 47 pass (stale records are the known warning, re-proven by the scheduled job)
det_port.py run zecs-ecs001, zecs-zecs000, zecs-zecs003 PROVED, new events compared both ways
det_port.py run carddemo-signon, cbsa-inqacc, genapp-lgipol01, mortgage-mlist (sample) PROVED
det_port.py check CicsTask.java changes by 12 lines in 154 of 179 ports (the runtime template, additive); only the sample above re-proved here, the rest is left to the scheduled re-prove
golden masters not run: no parsing/extractor code touched

ruff format --check on tests/cics_crucible/test_cics_runtimes.py still reports one hunk at line 30 (javac = ...) that this PR does not touch (local ruff 0.16.0 vs CI 0.17.0; the 0.17.0 pr_gates lint gate passes).

Checklist

Checklist: partial [c:8672e721] -- server events (WEB-RECEIVE / WEB-SEND) were already done; WEB-OPEN / WEB-CLOSE are now recorded and compared on both runtimes; the crucible side of the client events is left (see below)
Checklist: partial [c:5ddf2663] -- both runtimes and the harness carry the client events; the crucible SPEC (v0.9.0) has no WEB-OPEN / WEB-CONVERSE / WEB-CLOSE event, so a SPEC change is needed

Cross-repo

Companion: a cics-crucible SPEC change adding the client-role events (not opened by this PR). It must merge first, then a pin bump here (needs the owner's OK, c:0cbe6ac6), then the gt-web-* cases and a re-run of the crucible leg. Nothing in this PR depends on it.

Remaining slices

Lessons for agents

  • equivalence.py run on the zecs cases uses the generated skeleton and reports 0/N for the java-facade leg on main too; det_port.py run is the real proof.
  • det_port.py check requires --work DIR; a change to the CicsTask template shows up as a 12-line CHANGED in nearly every port (additive events are not a regression, but say so in the PR).
  • A background shell loses env: source a file with PATH / JDK 17 / *_CRUCIBLE_PATH before each call.

🤖 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 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 06:34
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 06:38
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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