Skip to content

det: EXEC CICS WEB CONVERSE URIMAP from the session peer's stated URIMAP (Part of #7525) - #7903

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7525-web-converse-urimap
Nov 6, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7525-web-converse-urimap

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7525 (census #7709): EXEC CICS WEB CONVERSE URIMAP(name) is no longer refused by name. The det port now translates it, and the Java runtime resolves it.

Checklist: partial [c:99219ff9]

What changed

  • Spec (standards/cics/commands/web.py): URIMAP moves from refused to options (area_in, 8 chars). A new at_most_one(URIMAP, PATH) group follows IBM: PATH/PATHLENGTH must not be given with URIMAP.
  • Det port (det/cics_web.py): passes URIMAP to task.webConverse. It enforces the group for PATH and PATHLENGTH.
  • Runtime (cics_task_web.py): a new 13-arg webConverse(token, urimap, method, path, ...). The old 12-arg form stays as an overload with urimap=null. The path comes from the session's own stated peer.
  • Oracle translator (tests/tools/equivalence_cics_web.py): refuses URIMAP via _stub_only until the C stub models it. It would otherwise drop the option silently.
  • Register X35 and the cobolrt API manifest are updated. The new overload is public.

Design (ASSUMED / REFUSED, by name)

  • ASSUMED: the CONVERSE URIMAP is the CLIENT URIMAP that the session's own stated HTTP peer carries (HttpPeer.urimap and .path).
  • REFUSED at run time, by name (WEB CONVERSE URIMAP): a URIMAP the run does not state, a stated one with no path, or one that belongs to another peer than the session's. IBM is silent on these.
  • A per-request URIMAP definition beyond the stated peers is not modelled.

Evidence (levels, not "proven")

  • Translated: every METHOD (POST/GET with query/PUT/PATCH) with URIMAP translates. URIMAP+PATH is refused by the spec group.
  • Executed (javac runtime test, slow-marked): POST/GET/PUT/PATCH accepted. UM2, an unknown name, URIMAP+PATH and a null-path UM3 are refused. A NOTOPEN session gives 27.
  • Executed-equivalent against GnuCOBOL: none yet. The C stub does not model URIMAP, so there is no oracle diff for this verb. That is the remaining slice below.
  • det_port.py check: 244 of 270 ports changed only by the additive CicsTask.java overload. 5 also changed in generated services (cruc-gt-web-client, zecs-ecs001, zecs-zecs000, zecs-zecs001, zecs-zecs003). All 5 were re-proved with det_port.py run: PROVED. The other 239 were not re-run, because their generated service code is unchanged.
  • Gates: pr_gates --fast 9/9, --ratchets 9/9, audit_check clear, cobolrt_api --check holds, the guard tests pass.

Class / Sibling gaps

Class: CONVERSE options the spec refuses by name, beyond URIMAP. Members and status:

  • URIMAP: modelled here (translated and runtime-executed; oracle open).
  • NOTRUNCATE: still refused (IBM silent).
  • CHARACTERSET, BODYCHARSET, DOCTOKEN, CONTAINER, SET and TOCONTAINER: still refused by name.
  • WEB OPEN URIMAP was already modelled. Its shared peer table is what this slice reuses.

Remaining slices

  1. tests/equivalence/cics/ggcics_web.c (GGCWCNV) URIMAP flag with GG-NAME1, then flip _stub_only in equivalence_cics_web.py into a real translation.
  2. The shared step list in tests/cics_crucible/test_cics_runtimes.py.
  3. A cics-crucible case proof on both sides, for the real executed-equivalent evidence.

Cross-repo

Companion: a cics-crucible case for CONVERSE URIMAP (not opened here). This PR merges first. After the case lands, re-run the cics-crucible pin bump and proof_sweep.py --det-only on it.

File count

File-cap exception: atomic. The spec flip forces the oracle guard (else a silent drop) and the one-line stale case in test_det_translate.py; none can land without the others.

The hand-written count is 6 against the cap of 5 (selfcheck): the spec, the runtime, the det translator, the oracle translator, the refusals test and test_det_translate.py. They are atomic. The spec flip forces the oracle guard (else a silent drop) and the stale bad-option case in test_det_translate.py (one line). PR #7866 overlaps web.py, cics_task_web.py, det/cics_web.py and equivalence_cics_web.py. origin/main is merged and conflict-free.

Lessons for agents

  • Adding a public-facing overload to CicsTask makes cobolrt_api.py generate mark it internal. Emitter code uses it, so --check fails until you set visibility to public by hand. Only that field is editable.
  • A spec at_most_one group is not enforced by the det translator on its own. Add the explicit CicsError check.

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

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 6, 2026 12:31
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 12:33
@github-actions

github-actions Bot commented Nov 6, 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