Repository navigation
det/CICS: data-value options take a constant across commands (Part of #8058) - #8066
Merged
Merged
Conversation
…ake a constant (Part of #7959) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
…8058) WEB CLOSE SESSTOKEN, WEB OPEN HOST, WEB SEND DOCTOKEN / MEDIATYPE, WEB PARSE URL, WEB WRITE HTTPHEADER SESSTOKEN, WEB READ QUERYPARM, WRITE OPERATOR TEXT / ROUTECODES and VERIFY PASSWORD USERID are IBM data-values (CICS TS 6.x syntax diagrams): Cics.value_text reads a literal as its value; a data name keeps its data-area text path byte-identical; a figurative constant is refused by name. Data-area options stay strict. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
# Conflicts: # gitgalaxy/tools/cobol_to_java/det/cics_web.py # tests/cobol_mainframe/test_det_cics_operand_forms_7959.py
This was referenced Nov 8, 2026
squid-protocol
marked this pull request as ready for review
November 8, 2026 02:06
5 tasks done
Contributor
|
No description provided. |
Contributor
This was referenced Nov 8, 2026
Merged
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 #8058. Builds on #8057 (WEB CONVERSE SESSTOKEN / URIMAP, Part of #7959). #8057 has merged, and main is merged into this branch, so the diff is this PR's change only.
What
An option IBM declares a data-value (a sender; IBM "COBOL argument values": "For a data-value, you can also use a constant") was read by det through the data-area path (
Cics.ref/field/read_field), so a literal was refused asnot a data area ... source defect, #7959. That refusal, owned bygap_prevalence.OWNERSas a source defect, is only right where IBM declares a data-area.Cics.value_text(det/cics.py): a data name keepsCobol.text(<read_field>, CS), byte-identical to before; a literal (alphanumeric, hex, numeric) is its value (gen.text); a figurative constant is refused by name (figurative constant as a data-value ... not modelled, #8058): it has no length of its own and the length CICS's translator gives it is not modelled. That refusal is an open translator gap, not a source defect.value()now calls it (same output).Audit table
Every
ref/field/read_fieldcall site in det/cics*.py. Receivers (CICS writes the operand) are data-areas by definition and IBM's diagrams agree on every one fetched; they are grouped. IBM types are from the CICS TS 6.x syntax diagrams (https://www.ibm.com/docs/en/cics-ts/6.x?topic=summary-<command>).value_texthtext)htext)field/ref(receivers)field/ref(receivers)_clong/_cint:refonly for a raw data area, elselong_/int_(constants already accepted)Counts: about 49 call sites; 48 sender (command, option) positions checked against IBM's 6.x pages, the rest receivers. 12 data-value options were read as data-areas: 2 fixed in #8057, 10 (in 8 commands) fixed here; 1 unverified (SEND FROM, left strict); GETMAIN INITIMG is a data-value IBM requires as a data area in COBOL (left strict).
Class / Sibling gaps
Class: an EXEC CICS option IBM declares a data-value, read by det as a data-area, so valid IBM source was refused as a "source defect". Every member found in det/cics*.py is handled in this PR or #8057 (table above). Sibling gaps, not done here:
TEXT(SPACES)): refused by name now (det/CICS: audit every ref / read_field option against IBM's data-value vs data-area type (sibling of #7959) #8058), not as a source defect. Modelling it needs the length CICS's translator gives a figurative constant at each option (IBM documents none on the command pages): a different mechanism.htext) accepts a literal there. The other direction from this class (det looser than IBM's page); needs an owner look before tightening, since a burned program may state the literal form.Remaining slices
tests/tools/gap_prevalence.pyOWNERS rowEXEC CICS: operand is not a data area: narrow it to data-area positions and give it the IBM citation rule 10 asks for (CICS TS 6.x "Data-areas and data-values", "COBOL argument values"). It needs an Opus review under rule 10, so it is left out of this PR.Gates
tests/tools/box/heavy-run.sh python tests/tools/pr_gates.py --fast: 9/9 gates pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected), with CI's ruff 0.17.3 and mypy 2.4.1. Run before the main merge; the merge changed no file this PR touches beyond taking det/CICS WEB CONVERSE: SESSTOKEN and URIMAP take a constant, as IBM's data-values do (Part of #7959) #8057's identical text.tests/cobol_mainframe/test_det_cics_operand_forms_7959.py: 37 passed (time ratchet: 0 over, 0 warned). Each fixed option is translated throughP.translatewith a literal and with a data name. A figurative constant is refused by name. Four data-area options (WEB READ FORMFIELD, DOCUMENT RETRIEVE DOCTOKEN, WEB SEND STATUSTEXT, WEB PARSE URL HOST) still refuse a literal.test_source_reads,test_cics_spec,test_proof_reach): 74 passed.tests/cobol_mainframe -k "web or operator or verify or system": 264 passed, 9 skipped.det_port.py check --base <HEAD-before-this-change translation>over every burned port using a changed command (zECS ecs001, zecs000-003, zecsnc, zecsplt; cics-crucible gt-web-client, gt-web-parse-url, gt-web-server-send, gt-web-server-receive, gt-http-inbound, gt-urimap-browse): 13/13 ports unchanged.--ratchetsnot run: no port, golden or baseline input changed (13/13 ports byte-identical).🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY