Repository navigation
WEB SEND/RECEIVE identity code-page pair and literal HTTPHEADER/MEDIATYPE operands: GTHECHO, GTWRECV stub-whole (Part of #6876) - #7502
Merged
Conversation
…, MEDIATYPE and VALUELENGTH lowered; http peer body ignores trailing blanks (Part of #6876) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…RECV stub pass; GTWSEND fails on non-text SRVCONVERT) (Part of #6876) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
Waiting on an owner decision (asked privately, 2026-11-02). Nothing is needed from contributors; work resumes once it is answered. |
…END passes on the cobol-stub (Part of #6876) The crucible's GTWSEND expects NORMAL for SRVCONVERT on application/json. Under the identity code-page assumption (owner ruling, pending z/OS data #4702) SRVCONVERT converts nothing, so the one non-text type the case uses is accepted in the stub and CicsTask; every other non-text/* type stays refused. Baseline, coverage and report regenerated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #6876 (slice: GTHECHO, GTWRECV, GTWSEND whole translation; WEB SEND/RECEIVE CHARACTERSET/HOSTCODEPAGE and the "not a data area" literal, #4767).
File-cap exception:
docs/language_status/cics_crucible.mdis the reportcics_crucible.py --update-baselinegenerates (never hand-edited, withbaseline.jsonandcoverage.json); the hand-written files are five.What changed
WEB SEND/WEB RECEIVEacceptCHARACTERSET('iso-8859-1')withHOSTCODEPAGE('037'), both literals, and nothing else. Any other value, a data-area operand, one option alone, andCLNTCODEPAGEstay refused by name on both translators (code_page_pair_refusalindet/cics_web.py; the stub imports it from there because the spec-importer allowlist is closed). The refusal text still says "code-page conversion".HTTPHEADERname, a literalWEB WRITE HTTPHEADERvalue, a literalWEB SEND MEDIATYPEand a literalWEB READ HTTPHEADER VALUELENGTH(input only, so no write-back) are lowered on det and stub. A literalWEB READ HTTPHEADER VALUEis refused ("written to").WEB SEND/WEB RECEIVElistCHARACTERSET/HOSTCODEPAGEasnameoptions; READ HTTPHEADERVALUELENGTHisinout_unless_literal.Evidence (stub leg of the three cases; oracle is GnuCOBOL plus our stub, not z/OS)
application/json): the stub runtime refuses "SRVCONVERT on a media type that is not text/*" (ggcics_web.c:480,cics_task_web.py:270). Not whole yet.tests/cics_crucible,test_det_translate,test_equivalence_cics_spec,test_cics_spec,test_source_reads;audit_check.pyclear.Assumption and open ruling
The owner ruling on code-page handling is still open (it only received an auto-hold). This PR takes the narrow route: the identity pair is ASSUMED to convert nothing the model can see (the model keeps the exchange in the program's characters; SRVCONVERT was already a no-op). Residual risk: IBM does not state the EBCDIC/ASCII byte mapping for non-ASCII bytes, so a non-ASCII payload is unproven. The register text (X37/X38) is not written here (file cap): see Remaining slices.
Class / Sibling gaps
Class: WEB-family options and operands the model refuses although they carry no model-visible effect or only need a literal lowered. Fixed here: the SEND/RECEIVE code-page pair; literal HTTPHEADER name/value, MEDIATYPE, READ VALUELENGTH.
Sibling gaps (not here):
CLNTCODEPAGE; non-identity pairs; the_CODEPAGEoptions on WEB READ FORMFIELD / QUERYPARM / STARTBROWSE;DOCUMENT RETRIEVE/CREATE HOSTCODEPAGE(X33,documents.py:56); other stub literal sites inequivalence_cics_web.py(FORMFIELD, QUERYPARM, DOCTOKEN, STARTBROWSE names, FROM / STATUSTEXT literals);NOTRUNCATE/TOCONTAINER/CHUNKING; SRVCONVERT on a non-text media type when the pair is stated.Remaining slices
application/jsonaccepted unconditionally inggcics_web.candcics_task_web.py(provisional, recorded in register X37 with its residual risk); the cobol-stub leg passes. Not gated on the stated pair.PROGRAMSintests/tools/cics_crucible_det.py, overlays undertests/cics_crucible/det-ports/), flipping the java-facade / java-ported rows.Checklist: partial [c:6103c400] -- GTHECHO, GTWRECV and GTWSEND pass the cobol-stub leg; the committed det ports (java-facade / java-ported rows) remain
Cross-repo: none. Overlaps open PR #7498 on
docs/language_status/cics_crucible.mdandtests/cics_crucible/baseline.json(regenerated, small); #7498 likely merges first, so this PR regenerates on top of it.Lessons for agents
test_options_honoured_without_code_say_whyrequires every spec option's name to appear quoted in det code: a check that reads a wholeoptsdict does not count, so pass the named entries (_pair(opts)).tests/core_engine/test_cics_spec.pylists the only importers of the CICS spec: a helper shared by det and stub goes in a det module the stub imports, not behind an extra spec import.🤖 Generated with Claude Code