Repository navigation
det: CICS options, refusals and RESP read from standards/cics; 45 commands + API name-only entries (#4270, spec PR 2) - #4591
Merged
Conversation
…mands + API name-only entries (#4270, spec PR 2) det/cics.py now imports OPTIONS, DFHRESP, every refusal reason, the option-group messages and its option tuples (MAP / TEXT / SEND CONTROL options, AID keys, FORMATTIME forms) from gitgalaxy/standards/cics. check_options is one line: Command.refusal_message. Spec: full entries for the 34 other OPTIONS commands (files, terminal, program control, handle table, queues, task / time / sync) and LOAD / RELEASE (engine-only, EngineFacts.edge="load" for PR 8b), plus 206 name-only entries: every other CICS application command in IBM's CICS TS 6.x command summary (336 topics, 259 names), no SPI. An unknown verb that is an API command now gets its entry's reason (decision 4). Owner decision on disagreement 2: each command has its own refusal reasons, no global table. A file / queue / LINK command keeps SYSID's reason and a read keeps SET's; other commands lose the reason another command's entry lent them (e.g. GET CONTAINER WAIT). The det survey over the burned corpora and the census clones: translated / statements identical for all 179 programs, blockers identical; the only hole texts that changed are 16 whole-verb refusals gaining their reason. The PR 2 equality tests are deleted; det/cics.py is a listed importer of the spec. The doc's "about 125" name-only commands is corrected to 206. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6
| "QNAME": "transient-data trigger-level tasks are not modelled", | ||
| k: None if c.open_options else frozenset(c.options) for k, c in SPEC.items() if c.status == "modelled" | ||
| } | ||
| _FORMS = DATE_FORMS |
Contributor
…ts (dead-key audit) (#4270) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6
Owner
Author
|
Local gates on the PR head:
|
squid-protocol
marked this pull request as ready for review
October 7, 2026 00:34
This was referenced Oct 7, 2026
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 #4270 (spec PR 2 of
docs/language_status/cics_command_spec.md, section 7). PR 1: #4589.What changes
OPTIONS,DFHRESP, every refusal reason (the old_REFUSED_WHY/_ASSIGN_REFUSED_WHY/_SEND_TEXT_REFUSED_WHY), the option-group messages (Command.group(kind, option)), and the option tuples (MAP / TEXT / SEND CONTROL options, AID keys, FORMATTIME forms, ASSIGN's terminal options) all come fromgitgalaxy/standards/cics.check_optionsis nowSPEC[key].refusal_message(bad); the five special cases are per-commandrefusedentries (RETURN / START / RUN CHANNEL and CANCEL arewhole=True).files.py(READ / READNEXT / READPREV / STARTBR / ENDBR / WRITE / REWRITE / DELETE),terminal.py(SEND MAP, RECEIVE MAP, SEND CONTROL, RECEIVE),program.py(LINK, XCTL, RETURN, ABEND, HANDLE ABEND),handles.py(HANDLE / IGNORE CONDITION, HANDLE AID:open_options; PUSH / POP HANDLE),queues.py(WRITEQ TD, WRITEQ TS, READQ TS),task.py(ENQ, DEQ, DELAY, GET COUNTER, ASKTIME, FORMATTIME, INQUIRE PROGRAM, SYNCPOINT [ROLLBACK]). Each has options with argument kinds, refusals, groups, outcomes (NORMAL plus the conditions the runtimes raise; RESP2 where a runtime sets it, elseNonefor PR 6 to state), engine facts that match the engine's verb tables (now checked for FILE / MAP / QUEUE too).status="engine-only", with a reason for the translator andEngineFacts(edge="load", target_option="PROGRAM")for PR 8b.api.py: name, IBM URL, reason). This is every other application command in IBM's CICS TS 6.x command summary, with no SPI. IBM lists 336 API topics, which are 259 command names once the device and role variants count as one name. 44 of those names have full entries (the 45th full entry, INQUIRE PROGRAM, is SPI), and 9 are forms the translator reads as a modelled command. The doc said "about 125"; that is corrected to 206. A sample of the URLs (GETMAIN, WEB SEND (Server), DEFINE COUNTER, ISSUE COPY, INQUIRE PROGRAM) was checked on ibm.com; the rest follow IBM'ssummary-<name>slug pattern.whole_refusal(key, verb, first_option)finds the entry, so the message isEXEC CICS GETMAIN not modelled (<reason>). The old container MOVE / browse and child-task reasons are kept word for word.GET CONTAINER WAIT: option not modelled. Check: on a 14,321-case grid (every modelled command × 306 option names, plus pairs), 1,473 messages differ before vs after. Each one contains one of the 16 old global-table options and only loses that borrowed reason. No message gains a new one.Command.why,Command.open_options,Command.whole_message,Command.group,EngineFacts.edge;Outcome.resp2=Noneis now documented as "not stated yet".det/cics.pyis inIMPORTERS. New spec tests cover the coverage counts,whole_refusal,groupand per-command reasons.equivalence_cics.py), the runtimes and the engine (PRs 3-8).Proof: det survey before / after
cics_census.py survey(translation only) over the 5 burned corpora, the 2 local non-burned ones and the 10 census clones. The "before" run was on a snapshot of origin/main, the "after" run on this branch:blockers: identical output ("translated whole: 69 / 125 (non-burned 13 / 31)"), same gap classes and counts.EXEC CICS GETMAIN / FREEMAIN / DELETEQ TS / BIF DEEDIT / DOCUMENT CREATE / DOCUMENT RETRIEVE / WRITE OPERATOR / WEB CLOSE / CONVERSE / EXTRACT / OPEN / PARSE / READ / RECEIVE / SEND / WRITE not modelled+(<reason>). No option-level message changed in any corpus.Gates
See the comment below for ratchets / pr_gates.
🤖 Generated with Claude Code
https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6