Skip to content

cics web: WEB WRITE HTTPHEADER SESSTOKEN translates on an assumed sequence (Part of #7525) - #7866

Merged
squid-shepherd[bot] merged 18 commits into
mainfrom
churn/7525-web-write-httpheader
Nov 6, 2026
Merged

squid-shepherd[bot] merged 18 commits into
mainfrom
churn/7525-web-write-httpheader

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Part of #7525 (census #7709). Follow-up to #7850 (merged).

Checklist: partial [c:cf396ab3] -- the det port and the GnuCOBOL stub (GGCWWRT, from #7881, merged into this branch) both carry the client form; the X38 register wording is #7882
Checklist: partial [c:99219ff9] -- not started here: WEB CONVERSE URIMAP POST needs per-request URIMAP definitions the run does not state (see Remaining slices)
Checklist: partial [c:f8526cbf] -- not started here: the re-survey runs after URIMAP POST lands and the census WEB rows are gone

What

EXEC CICS WEB WRITE HTTPHEADER ... SESSTOKEN(tok) (the client form) now translates in the det port. #7747 refused it because IBM does not say which request the header goes on or whether it persists. This PR lifts that refusal on a stated, ASSUMED sequence (register X38): a header written on a session goes on every later WEB CONVERSE on that session until WEB CLOSE, in the order written. It shows as a headers key on the WEB-CONVERSE event (only when some were written) and as a WEB-HEADER event with sesstoken.
Outcomes: NOTOPEN RESP2 27 (token not an open session), LENGERR 35 / 55 as the server form. Refused by name: blank name or one holding a blank or colon, a length past its area, two conditions at once.
Equivalence: the GnuCOBOL stub does not keep session headers, so equivalence_cics_web.py refuses the client form by name (as #7850 did for NOTRUNCATE). Evidence level: translated (whole), executed on the det runtime (javac test), NOT executed-equivalent against GnuCOBOL. Oracle is GnuCOBOL plus our stub, not z/OS.

Class / Sibling gaps

Class: CICS WEB client-session options refused by name for IBM silence; this PR lifts WEB WRITE HTTPHEADER SESSTOKEN (the member sharing the session/WEB-CONVERSE mechanism). Server WEB WRITE HTTPHEADER unchanged and tested (spec, oracle, det translator). Sibling gaps: WEB CONVERSE URIMAP (refused #7753, per-request URIMAP not stated; different mechanism); WEB CONVERSE NOTRUNCATE (client, response kept for later RECEIVEs); WEB CONVERSE CHARACTERSET / BODYCHARSET / DOCTOKEN / CONTAINER / SET; WEB READ HTTPHEADER SESSTOKEN (a response's headers, refused); WEB SEND client form; GnuCOBOL stub support for session headers (ggcics_web.c).

Remaining slices

  1. ggcics_web.c + equivalence_cics_web.py: the stub keeps session headers, so the client form gets an executed-equivalent proof on cruc-gt-web-client.
  2. WEB CONVERSE URIMAP POST (needs a stated URIMAP definition fact).
  3. c:f8526cbf re-survey after the census rows are gone.

Files

Six hand-written files, over the 5 cap by one, for this reason: test_det_translate.py pinned the old refusal (client form) for WRITE, so its one-line assertion has to change with the spec; the other five are the minimum for one feature (spec, runtime, det translator, oracle refusal, test). docs/language_status/cobolrt_api.json is regenerated (the new public overload).

File-cap exception: tests/cobol_mainframe/test_det_translate.py is a one-line change (its loop pinned the old WRITE SESSTOKEN refusal, which this PR lifts); the other five files are one feature.

Tests

tests/cobol_mainframe/test_web_write_httpheader_client_7525.py (spec, oracle refusal + server form still translates, translator token passing for client vs server, javac run of the runtime: NOTOPEN / LENGERR 35 / 55 / two headers carried by each later converse / NOTOPEN after CLOSE); test_det_translate, test_cics_spec, test_equivalence_cics_spec, test_cics_family_split, test_source_reads green; cobolrt_api.py --check holds.

Lessons for agents

  • cics_task_web.py Java is inside a Python """ string: a Java "\n" must be written "\\n" in the .py.
  • A client-side change to a spec option also trips test_equivalence_cics_spec.py (matches client form in the oracle refusal text) and test_det_translate.py: grep both before the first push.

Cross-repo: none (no crucible pin change; the cics-crucible corpus is untouched).

🤖 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.

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

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

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 6, 2026 05:56
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (c637f1b) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 6, 2026 06:05
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 6, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels 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 added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 6, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@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 10:03
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. 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.

3 similar comments
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 10:04
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 6, 2026 11:18
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 6, 2026
@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 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…eader(SESSTOKEN) public (Part of #7525)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (2a16e45) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 6, 2026 11:37
@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. 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.

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