Repository navigation
CICS: RETURN CHANNEL in the det port (Part of #5005) - #5732
Conversation
The spec accepts CHANNEL on RETURN (alone: COMMAREA / LENGTH / IMMEDIATE refused by name); the translator emits CicsTask.returnChannel, which ends the task with the channel recorded (INVREQ RESP2 2 below the highest level). The stub translator refuses it as a stub-only feature; neither crucible harness carries the channel to the next task yet. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5732 @ 8b902f3: 2 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- real |
|
No description provided. |
|
No description provided. |
Part of #5005. Cross-repo: none. Overlaps open PR #5727 (SET TDQUEUE TRIGGERLEVEL:
det/cics.py,equivalence_cics.py); this PR touches only a 9-line RETURN branch and a 2-line stub refusal there, so it can merge either side first. origin/main is merged in.What changed
EXEC CICS RETURN TRANSID(..) CHANNEL(..)was refused whole ("next task's channel not modelled"). IBM: CHANNEL is "made available to the next program" (created empty if absent); COMMAREA is its alternative; below the highest logical level the command fails INVREQ RESP2 2 and returns to the program.standards/cics/commands/program.py: RETURN accepts CHANNEL (name, 16);at_most_one(CHANNEL, COMMAREA, LENGTH, IMMEDIATE)(IBM silent on IMMEDIATE: refused by name); INVREQ 2 also raised by CHANNEL. Generated spec files are up to date.det/cics.py: emitstask.returnChannel(transid, channel); TRANSID is required.cics_task_containers.py:CicsTask.returnChannel(event with the channel and its container names, rootreturnedChannel, INVREQ/2 below level 1) andreturnedChannel().tests/tools/equivalence_cics.py: the stub translator refuses RETURN CHANNEL as stub-only (no stub process outlives its task), so no silent drop.test_det_translate.py), runtime (test_cics_runtimes.py::test_cics_task_return_channel); the old "RETURN CHANNEL refused" parameter removed.Class sweep
Class: a channel/container command the det port refuses by name although IBM documents it.
ggcics.c)Remaining slices (not in this PR)
tests/tools/cics_crucible.py: Java harnesspendingChannelcarry (set from the RETURN event'schannel, handed to the next task viawithChannel). Needed bypc-return-channelcarry / modify / link-level2.tests/equivalence/cics/ggcics.c+ggcics_containers.c(the channel must outlive the task process) + the stub driver incics_crucible.py+equivalence_cics.py(drop the stub-only refusal,GGCRETNwith a channel).pc-return-channelcells intests/cics_crucible/baseline.jsonanddocs/language_status/cics_crucible.md(regenerated) once 1-2 land.Plan changed: the plan assumed one slice would flip the crucible cells. The cross-task carry needs both harnesses plus the stub runtime, well past the 5 hand-written files, so the det-port slice ships alone. The
pc-return-channelcells are unchanged by this PR (re-run: cobol-stub unsupported ×3, java fail ×3 on the pre-existing skeleton-service reason). Hand-written files: 8 (4 code + 2 register + 2 test), over the cap of 5; each is small and none could be dropped without leaving a stale register line, a silent stub drop or an untested runtime method.Sibling gaps
pc-return-channel/{carry,modify,link-level2}need the harness carry (core: scenario-level proof); no burned-estate program uses RETURN CHANNEL, so by the register no real-program gap (frontier).Gates
pr_gates --fast: 6/6 pass.ruff format,ruff_audit --ci,dead_key_audit --ci: clean.cics regen --check: up to date.test_det_translate,test_equivalence_cics,tests/cics_crucible,test_cics_spec_status: 1461 passed, 7 skipped (before the runtime test added; it passes alone).det_port.py check: 22/143 ports unchanged; the rest differ only inCicsTask.java(+23 lines, additive: new field and two methods). Re-provedcarddemo-menuandcbsa-delcus: PROVED. The other 119 listed ports were not re-proved.pr_gates --ratchets: 8/8 pass (cics-spec, ports, port-surface, estate, fact-crosscheck, completeness, ground-truth, time).pr_gatesused the cached mypy 2.4.0 and passedaudits), golden-master bless (no parsing code touched).Lessons for agents
_stub_only("X")inequivalence_cics.pyis the pattern for an option the det port honours and the stub cannot; the baseline reason stays "translator: X".at_most_onegroup is found by its FIRST option (Command.group): fold related exclusions into one group, not several starting with the same option.🤖 Generated with Claude Code