Skip to content

oracle: stub keeps a session's headers for WEB WRITE HTTPHEADER SESSTOKEN (Part of #7525) - #7881

Merged
squid-shepherd[bot] merged 4 commits into
churn/7525-web-write-httpheaderfrom
churn/7525-web-session-headers-oracle
Nov 6, 2026
Merged

squid-shepherd[bot] merged 4 commits into
churn/7525-web-write-httpheaderfrom
churn/7525-web-session-headers-oracle

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7525 (census #7709). Stacked on #7866 (base churn/7525-web-write-httpheader): the det-port halves of both slice-1 items were already merged or in #7866, so this PR is the oracle half only.

What

The GnuCOBOL stub (ggcics_web.c) now keeps a session's headers: new entry GGCWWRT (SESSTOKEN client WRITE HTTPHEADER; NOTOPEN 27, LENGERR 35/55, the same refusals as CicsTask.webWriteHeader), and GGCWCNV puts them on the WEB-CONVERSE event as headers. equivalence_cics_web.py translates the client WRITE (client READ stays refused), equivalence_cics_compare.py compares headers.

Evidence level

Executed-equivalent on the stub and Java crucible tests (new: converse before any write has no headers key, order of two headers, NOTOPEN after WEB CLOSE, LENGERR 35/55, 3 refusals). Sequence is register X38 ASSUMED (IBM is silent). Oracle is GnuCOBOL plus our stub, not z/OS. No parsing change, no golden bless.

Gates: audit_check.py clean; pr_gates --fast 9/9; ruff format clean; 423 tests in the cics_crucible runtimes, spec and family-split files pass.

Class and Sibling gaps

Class: det-port client WEB commands the oracle stub could not mirror. Sibling gaps: WEB CONVERSE URIMAP POST (c:99219ff9), re-survey (c:f8526cbf), WEB READ HTTPHEADER SESSTOKEN (response headers, still refused).

Cross-repo

No companion PRs. Merge #7866 first, then retarget this PR to main; nothing re-runs elsewhere.

File-cap exception: stacked on #7866, so the diff against main also carries its 4 det-port files; this PR's own change is 6 files, the sixth being the refusal test that must flip with the translator (X38.md wording left to the next slice).

Checklist: done [c:220ea1f3]
Checklist: partial [c:cf396ab3] -- the det port and oracle agree; X38.md still says the client form is refused
Checklist: partial [c:99219ff9] -- CONVERSE URIMAP POST is a later slice
Checklist: partial [c:f8526cbf] -- re-survey is a later slice

Lessons for agents

  • GGCWWRH's signature is used by spec tests: add a new stub entry (GGCWWRT) rather than changing it.
  • In a Java-in-Python-string test, a header joined by a newline splits the printed lines: replace \n before comparing.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits November 6, 2026 07:57
… word boundary (Part of #4108) (#7876)

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…book (Part of #7846, #7709) (#7855)

* census: EXEC CICS map "no <name> field" row is a named source defect (Part of #7844, #7709)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* census: missing copybooks split into clone defect vs IBM product copybook (Part of #7846, #7709)

The estate-owned fallback is now `clone defect (not in the clone)`, a named source
defect; more IBM product prefixes (CSQ, DFS, ISP/ISR, EZA, ICE, IGY) get their own
families with an open owner pointer. status_of checks named defects first.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: squid-shepherd[bot] <347545360+squid-shepherd[bot]@users.noreply.github.com>
…PHEADER SESSTOKEN (Part of #7525, #7709)

New stub entry GGCWWRT appends a header to an open session; GGCWCNV emits them as the
WEB-CONVERSE event's headers (the format CicsTask uses). The equivalence translator now
translates the client WRITE (READ stays refused) and the event comparison covers headers.
Stub and Java crucible tests assert NOTOPEN 27, LENGERR 35/55, order, no key when none written.

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

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 35dbe10 into churn/7525-web-write-httpheader Nov 6, 2026
4 of 5 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7525-web-session-headers-oracle branch November 6, 2026 08:35
squid-shepherd Bot added a commit that referenced this pull request Nov 6, 2026
…uence (Part of #7525) (#7866)

* cics web: server WEB RECEIVE NOTRUNCATE keeps the rest of the body for the next RECEIVE (Part of #7525)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* cobolrt API manifest: list the new CicsTask.webReceive overload as public (Part of #7525)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

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

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* ruff format the changed tests (Part of #7525)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* oracle: stub keeps a session's headers for WEB WRITE HTTPHEADER SESSTOKEN (Part of #7525) (#7881)

* go/java: pin that no non-word-first alternative sits behind a leading word boundary (Part of #4108) (#7876)

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* census: missing copybooks split into clone defect vs IBM product copybook (Part of #7846, #7709) (#7855)

* census: EXEC CICS map "no <name> field" row is a named source defect (Part of #7844, #7709)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* census: missing copybooks split into clone defect vs IBM product copybook (Part of #7846, #7709)

The estate-owned fallback is now `clone defect (not in the clone)`, a named source
defect; more IBM product prefixes (CSQ, DFS, ISP/ISR, EZA, ICE, IGY) get their own
families with an open owner pointer. status_of checks named defects first.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: squid-shepherd[bot] <347545360+squid-shepherd[bot]@users.noreply.github.com>

* oracle: the GnuCOBOL stub keeps a session's headers for WEB WRITE HTTPHEADER SESSTOKEN (Part of #7525, #7709)

New stub entry GGCWWRT appends a header to an open session; GGCWCNV emits them as the
WEB-CONVERSE event's headers (the format CicsTask uses). The equivalence translator now
translates the client WRITE (READ stays refused) and the event comparison covers headers.
Stub and Java crucible tests assert NOTOPEN 27, LENGERR 35/55, order, no key when none written.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: squid-shepherd[bot] <347545360+squid-shepherd[bot]@users.noreply.github.com>

* cobolrt_api: recount the manifest summary after the webWriteHeader(SESSTOKEN) entry (Part of #7525)

The earlier merge kept the new member row but not its summary count, so
test_the_manifest_is_the_sources_surface failed in ground-truth part 1/2.
Regenerated with cobolrt_api.py generate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: squid-shepherd[bot] <347545360+squid-shepherd[bot]@users.noreply.github.com>
Co-authored-by: Joe Esquibel <[email protected]>
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