Repository navigation
Split the CICS containers / channels family out of the four hot files (Part of #5274) - #5289
Merged
Merged
Conversation
…iles (Part of #5274) The forge's CicsTask (cics_task_containers.CONTAINERS_JAVA), the stub (ggcics_containers.c, included by ggcics.c), the harness's stub translator (equivalence_cics_containers.py) and the det translator (ContainerCommands in det/cics_containers.py) each get the family as a verbatim, contiguous move. CICS_TASK_JAVA and gcc -E -P of ggcics.c are byte-identical to main. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…mponent test checks one target per kind Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…me set now in its first 8 KB) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 16, 2026 21:44
…need the owner) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
CI shepherd: the head of this PR (f5b99d7) is not the one a maintainer labelled |
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 16, 2026 21:47
Owner
Author
|
No description provided. |
| from gitgalaxy.standards.cics.resp import DFHRESP | ||
| from gitgalaxy.tools.cobol_to_java.det import expr as E | ||
| from gitgalaxy.tools.cobol_to_java.det import layout as L | ||
| from gitgalaxy.tools.cobol_to_java.det.cics_containers import ContainerCommands # #5274 |
| """#4270 (X17): PUT's FROMCCSID or GET's INTOCCSID as a Java int expression (a data value; the runtime refuses one outside | ||
| 37 / 500 / 1140 / 1208), None when not given. The port's storage is read as the region's page (#4528), which the | ||
| conversion assumes is CCSID 037: another declared page refuses the option.""" | ||
| from gitgalaxy.tools.cobol_to_java.det.cics import CicsError, _arg, region_page |
| channels. DELETE: the channel and its containers go. QUERY: CONTAINERCNT, a fullword, is set to the number of | ||
| containers on NORMAL (not on a condition: IBM does not say). CHANNELERR RESP2 2 comes back through RESP / HANDLE | ||
| CONDITION (AEZV by default); what IBM leaves open is refused at run time (register X44).""" | ||
| from gitgalaxy.tools.cobol_to_java.det.cics import _arg |
| container's 16-character name into CONTAINER (not on END / TOKENERR). ENDBROWSE: the token. CHANNELERR, | ||
| CONTAINERERR, INVREQ, END, ILLOGIC and TOKENERR come back with their RESP2 through RESP / HANDLE CONDITION; | ||
| what IBM leaves open is refused or assumed at run time (register X42).""" | ||
| from gitgalaxy.tools.cobol_to_java.det.cics import _arg |
|
|
||
| import cobol_coverage as cov # #4023 | ||
| import equivalence_common as common | ||
| import equivalence_cics_containers as cics_containers # #5274: the channels / containers family |
|
|
||
| import re | ||
|
|
||
| import equivalence_cics as ec |
Contributor
This was referenced Oct 18, 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 #5274 (PR 1 of the family split): the CICS containers / channels family moves out of the four hot files, one module per runtime. Behaviour-preserving: contiguous verbatim moves, nothing reordered.
Class
CICS command-family code living in a shared hot runtime file. This PR covers the containers / channels family: PUT / GET / DELETE CONTAINER, MOVE CONTAINER, STARTBROWSE / GETNEXT / ENDBROWSE CONTAINER, DELETE / QUERY CHANNEL, the container CCSID conversion, channel scope, ASSIGN / LINK / XCTL CHANNEL, channel.cfg in / containers.out.
cobol_to_java_transaction_forge.pycics_task_containers.py(CONTAINERS_JAVA)CICS_TASK_JAVA= head, then+= CONTAINERS_JAVA, then+=tail (same non-raw literal, so escapes keep their bytes)tests/equivalence/cics/ggcics.cggcics_containers.c#include "ggcics_containers.c"where the block sat; both compile paths copy the whole stub dirtests/tools/equivalence_cics.pytests/tools/equivalence_cics_containers.py_translate_command; family reachesec._call/ec._resp/ec.SPEC... at call timedet/cics.pydet/cics_containers.py(ContainerCommandsmixin, plus_datatype/_convertst, which only it used)class Cics(ContainerCommands);commandandcommand_keystay the registry. Shared helpers are imported inside each method, asG_jstralready does, so no import cycle (CodeQLpy/cyclic-import); members it uses fromCicsare declared underTYPE_CHECKINGfor mypyRegistered: evidence
HARNESSand theharness:cicscomponent, trialHARNESS_PATHS,_TOOLS_WITHOUT_APPROVALS,det_sweep_plan.GENERATOR.Needs the owner:
cics-crucible.yml'spull_requestpath filter liststests/tools/equivalence_cics.pybut not the newtests/tools/equivalence_cics_containers.py, so a PR that changes only the harness family module does not trigger the CICS crucible. The other three family files are already covered bygitgalaxy/**andtests/equivalence/cics/**. Workflow edits are out of scope for this worker, so the one-line addition (- "tests/tools/equivalence_cics_containers.py") is left to the owner.oracle:cics-stub(tests/equivalence/cics/**) andgenerator(gitgalaxy/tools/cobol_to_java/**) already cover the other two files. X-Ray:cics_task_containers.pyadded toXRAY_BYPASS_PATHS. IBM's channel-name set (NAME_CHARS) is a dense Java literal that now falls in the first 8 KB X-Ray reads; the forge held it past that point.Evidence
CICS_TASK_JAVAbyte-identical to main (sha256b01bad28...ddd1before and after).gcc -E -P ggcics.cbyte-identical to main.det_port.py check: 118/118 ports unchanged.test_cics_family_split.py(splice / include / dispatch per runtime, every spec'd family command implemented in its family module);test_evidence_components(a family file stales the same inputs as its host for a target of each kind); stub-text readers (test_cics_spec_equality.GGCICS_C, the 64-bit stub test, the det "options are read" test) read the family files too. Container / channel / evidence / det / runtime suites green locally.pr_gates --fast: 6/6 (after the X-Ray bypass, rerun after dropping the workflow edit).pr_gates --ratchets: 8 pass, 0 fail, 0 skipped.det_port.py run asynccc-getname cbsa-crdtagy1: 6/6 and 44/44 translated, both PROVED (PUT / GET CONTAINER on both runtimes through the moved code).Remaining families (later PRs, one each)
file control (next), program control (LINK / XCTL / RETURN), interval / START / RUN / FETCH / RETRIEVE, TS / TD queues, counters, terminal / BMS / SEND TEXT, WEB / TCPIP, ENQ / DEQ / SYNCPOINT, storage / pointers, ASSIGN / HANDLE.
Lessons for agents
binary_anomaly_detector) reads only the first 8 KB of a file: code moved into a new small module can trip the entropy check on a literal that was safely deep in its old host file.name + """..."""when the literal has SQL words (the CicsTask Java): splice with+=statements instead.pgrep -fwait loop on another command's arguments matches its own shell: wait on the task's own completion.🤖 Generated with Claude Code