Repository navigation
det: GETMAIN without INITIMG answers LENGERR and is refused by name when it would acquire storage (X47, Part of #6876) - #7137
Merged
Conversation
…hen it would acquire storage (X47, Part of #6876) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… by name on the stub (Part of #6876) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
8 tasks done
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
Follow-up to #7062. This diff is 7 hand-written code and test files plus one register doc, over the 5-file cap for one reason: dropping the spec's
required INITIMGgroup (storage.py) broke tests that pinned the old refusal (test_det_translate.py,test_eibrcode_port_5126.py) and the oracle's_getmain, which read that group (equivalence_cics.py). Source:gitgalaxy/standards/cics/commands/storage.py,gitgalaxy/tools/cobol_to_java/det/cics.py,gitgalaxy/tools/cobol_to_java/cobol_to_java_transaction_forge.py,tests/tools/equivalence_cics.py; teststests/cobol_mainframe/test_pointer_lane_4771.py,test_det_translate.py,test_eibrcode_port_5126.py; docdocs/language_status/register/X47.md.File-cap exception: the spec change cannot land apart from the two test files and the oracle line it breaks (each is a one-to-five-line edit that follows from it); the stub-side work is listed under Remaining slices.
What
EXEC CICS GETMAINwithout INITIMG on the det port. IBM: "There is no default initialization", so the acquired contents are undefined. No fill byte is ASSUMED; the outcome is by case:CicsTask.getmaincalled with initimg -1). No proof can rest on undefined bytes; no proof is loosened.equivalence_cics._getmainstill refuses at translation (now with a literal message, since the spec group is gone), so CAGMZ has no stub-side proof yet.Evidence
IF WS-PTR2-N = 0(a REDEFINES numeric view of a pointer). CAGMPT stays 46/46.test_pointer_lane_4771.py: a translation test (no holes,task.getmain(..., -1)emitted, literal INITIMG still a hole) and, in the compiled-Java alias test, the runtime answers for lengths 0, -1, LENGTH 0 (22/1, pointer 0) and the refusal for a valid FLENGTH and LENGTH.pr_gates --fast9/9,--ratchets9/9 (0 skipped),audit_checkclear, pre-PR guard files 280 pass, 0 over the per-test time limit, ruff format clean on changed files. No detector change, no golden bless. det sweep: none of the 9 ports' translation changed (portsratchet PASS); the burned epscsmrd stays blocked by SOAPFAULT and sibling CALLs.Checklist: partial [c:5019a6ff] -- GETMAIN without INITIMG now translates on the det port (CAGMZ x3 closed there); the stub-side translation, and CAGMZ's
IF WS-PTR2-N = 0/ CAGMPT'sADD 4 TO WS-PTR2-Nnumeric pointer view, are still holes.Checklist: partial [c:36bb664b] -- CAGMZ's remaining hole is the REDEFINES numeric view of a pointer; unchanged here.
Class / Sibling gaps
Class: EXEC CICS GETMAIN whose acquired contents IBM leaves undefined (X47). Members: no INITIMG with length below 1 (answered LENGERR, det port, done); no INITIMG with a valid length (REFUSED at run time, det port, done); a literal or multi-byte INITIMG (refused, unchanged). Sibling gaps: cobol-stub GETMAIN without INITIMG (
equivalence_cics._getmain/GGCGETM/ shared table intest_cics_runtimes.py: needs the same answer-or-refuse split on the C side; different mechanism, would pass the file cap); WS-PTR2-N REDEFINES numeric view of a pointer (IF ptr-N = 0as a NULL test,ADD n TO ptr-Nas pointer arithmetic; blocks CAGMZ and CAGMPT on the stub; #5042); TWA/TCTUA (#5079); LOAD/RELEASE; RECEIVE SET without MAXLENGTH; ADDRESS OF undeclared item (#6262); UNLOCK with no key (#5079); WEB CHARACTERSET/HOSTCODEPAGE (#4767).Remaining slices
equivalence_cics._getmainemits GGCGETM with no image,ggcics.cGGCGETM answers LENGERR for n < 1 and refuses otherwise, one new step in thetest_cics_runtimes.pyshared table. 3 files.IF WS-PTR2-N = 0as a NULL test of the pointer (det translatorgen.py/program.pynumeric-view refusal, plus tests); then theADDview for CAGMPT.Cross-repo
None.
Lessons for agents
required(...)group from agitgalaxy/standards/cics/commands/*.pyspec entry makes_rule(key, "required", X)raiseKeyErrorintests/tools/equivalence_cics.py(the oracle reads the same groups): grep_rule(key, "required"for the command before editing the spec.🤖 Generated with Claude Code