Skip to content

det/CICS WEB CONVERSE: SESSTOKEN and URIMAP take a constant, as IBM's data-values do (Part of #7959) - #8057

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
fix/7959-web-converse-data-values
Nov 8, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
fix/7959-web-converse-data-values

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7959 (census #7709). This was found by the rule-10 review of #7967's source-defect label (`.claude/rules/mainframe-evidence-policy.md` section 10: an Opus review reads the IBM citation against the gap's shape).

What the review found

#7967 named every `EXEC CICS: operand is not a data area` refusal a source defect. Its body said it had not checked the per-option types or the census program's shape. A counts-only probe settled that shape. The probe wraps `Cics.ref` during translation and prints IBM keywords and form categories only; no census source, name or operand text was printed or read.

The one census program's refusal is `EXEC CICS WEB CONVERSE`, option `URIMAP`, given an alphanumeric literal.

IBM declares that option a data-value, so the label was wrong for this program:

  • CICS TS 6.x and 5.6, "EXEC CICS WEB CONVERSE", syntax: `SESSTOKEN(data-value) … URIMAP(data-value)`.
  • CICS TS 6.x, "Data-areas and data-values": "A data-value is always, and exclusively, a sender". Constants, including literals, may be used for one.
  • CICS TS 6.x, "COBOL argument values": "For a data-value, you can also use a constant that can be converted to the correct type."

So the program is valid IBM source, and the refusal was a translator gap.

What changed

  • `det/cics_web.py`, WEB CONVERSE: `SESSTOKEN` and `URIMAP` (IBM data-values) now take a constant, read as its value.
    • A data name keeps the old `Cobol.text(read_field(…))` path, so existing ports are byte-identical.
    • The runtime already strips the URIMAP name, as `webOpenUrimap` does.
  • The data-areas (`PATH`, `QUERYSTRING`, `FROM`, `MEDIATYPE`, `INTO`, `STATUSTEXT`) still need a data name.
  • `test_det_cics_operand_forms_7959.py` runs the real `P.translate` on an authored program:
    • data names, a literal `URIMAP` and a literal `SESSTOKEN` all translate;
    • a literal `MEDIATYPE` (a data-area) is still refused.

Census effect (counts only, tools only)

The probe re-translated the one program with this branch. Its refusals of this class went from 1 to 0, and it now has 0 holes of any kind: 37 of 37 statements, no error.

Expected after merge: census 13 of 39 whole (was 12), and accounted 37 of 39, which is the ceiling. The remaining two are the z/OS Connect BAQ programs, unaccounted by ruling (#7900). The ledger row comes from the census nightly (#8055 unblocks its publish).

Class / Sibling gaps

Class: an IBM data-value option that det reads through a data-area path (`ref` / `read_field`), so a constant is refused.

  • Swept for WEB CONVERSE: every option was checked against IBM's syntax. Only `SESSTOKEN` and `URIMAP` were affected; the length options already go through `int_`.
  • Not swept, and the reason the `source defect` row in `gap_prevalence` still needs care: the other roughly 49 `ref` / `read_field` call sites across commands (WEB OPEN `HOST`, WEB CLOSE `SESSTOKEN`, and others), each checked against IBM's per-option type. Until then, that row is right only where IBM declares a data-area (for example `WRITEQ TS FROM`). No census program is affected after this PR.

Gates

  • `pr_gates --fast`: audits, secrets, xray, gen-docs, derived, workflows, gauntlet and affected pass.
  • Lint: the import order is fixed. `ruff_audit` shows no finding in the changed files; plain main shows the same 72 findings locally.
  • `test_det_cics_operand_forms_7959.py`: 12 passed. The WEB tests in `test_det_translate.py`: 33 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 01:10
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

squid-shepherd Bot commented Nov 8, 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