Skip to content

JCL oracle tier 1: IBM-manual answers for data flow between steps and resolver (Part of #8413) - #8552

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8413-20261117T0302Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8413-20261117T0302Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Last unchecked slice of #8413, "Data flow between steps". tests/equivalence/jcl/dataflow/scenarios.json holds 7 jobs and their answers, written from IBM's z/OS MVS JCL Reference (SA23-1385) by section before gitgalaxy/core/jcl_dataflow.py existed. The resolver then reproduced all 7 on the first run (one scenario input, a missing given outcome for a step that starts, was my own mistake and was fixed in the fixture; no answer changed and no evaluator needed a fix).

Per STEP.DDNAME of a step that ran the answer is {datasets: [...]} (a concatenation in coded read order), {dummy: true}, {temporary: "system-named"} or {dd_class, output?}; each &&name also gets its creating DD, the DDs that receive it and the step after which it is deleted (JOB = end of job). A bypassed step allocates nothing.

Checklist: done [c:13ade2b7]

Class / Sibling gaps

Class: how a DD of a running step names data, and how that data moves between steps of one job. Members and status:

Member Status Scenario / test
&& temp passed (DISP=(NEW,PASS), received OLD,PASS then OLD,DELETE) handled temp-pass-chain
&& temp default dispositions (NEW with none = deleted at step end; existing with none stays passed, ASSUMED A1) handled temp-default-dispositions
&& temp of a bypassed creator handled (no temp; a later reader refused) temp-bypassed-creator, refusal test
system-named temporary (no DSN, SPACE/UNIT) handled temp-pass-chain S1.WORK
DD DUMMY, DSN=NULLFILE, DUMMY with ignored DSN/DISP handled dummy-and-nullfile
concatenation read order, incl. a GDG member and temps handled concat-read-order, concat-temporaries
SYSOUT class (A, * = MSGCLASS, (B,,FORM)) handled sysout-classes
OUTPUT references (*.NAME, *.STEP.NAME, a list) handled (job-level fallback ASSUMED A2) sysout-classes
temp with CATLG/UNCATLG/KEEP; DUMMY inside a concatenation; read before create / after delete; created twice; SYSOUT with no class; dangling OUTPUT ref refused by name unit tests + refused list

Sibling gaps (not done here):

  • Effective SYSOUT class when the referenced OUTPUT statement also codes CLASS: which wins is not answered (dd_class is the DD's own). Needs the OUTPUT statement's values in job_flow rows (output_params holds keyword names only). Source: job_flow.py OUTPUT row.
  • OUTPUT DEFAULT=YES implicit references and SYSOUT=(,) taking its class from an OUTPUT: same cause.
  • MSGCLASS is not on the JOB row, so the resolver takes it as an argument (scenario input msgclass); a job_flow JOB-row field would remove the argument but moves fact-channel rows, so it is its own slice.
  • Procedure-step DDs (in_proc, jcl_proc.expand_flow_rows splices) are not resolved: DDs of spliced steps are not read here, as in jcl_gdg.
  • IBM page numbers are not cited: the manual was not open in the authoring environment, so sections are named and nothing is invented. A1 and A2 are marked ASSUMED where I could not check the text.
  • capability_ledger count of dataflow scenarios (same follow-up as gdg / restart).

Files (5 hand-written)

gitgalaxy/core/jcl_dataflow.py, tests/cobol_mainframe/test_jcl_dataflow_case.py, tests/equivalence/jcl/dataflow/scenarios.json, .gitignore (whitelist line for the new json), tests/cobol_mainframe/test_mainframe_corpus.py (a clone with no commit now skips the byte-identity test instead of crashing: git rev-parse HEAD exited 128 on the emptied shared example-health-apis clone). Regenerated: tests/tools/docs_read_by_tests.txt.
Doc-refs fixes: gitgalaxy/core/README.md (one row for the new module, 1 line).

Gates

  • test_jcl_dataflow_case.py: 16 passed (0.5 s; time ratchet 0 over limit); tree-wide guards: 305 passed.
  • pr_gates --fast: 7/9; derived fixed by change_classifier.py --write; affected was red only on test_mainframe_corpus.py::...[example-health-apis] (emptied local clone); fixed by the skip guard, rerun PASS. All 9 gates pass.
  • audit_check.py: ruff, mypy, dead-key, doc-refs OK after the commit.
  • pr_gates --ratchets: cics-spec, port-surface, estate, det-mutation, time pass. NOT passed, environment, untouched by this change: completeness and ground-truth and fact-crosscheck (example-health-apis corpus), ports (local cics-crucible checkout not on its v0.19.0 pin). Left to CI.
  • No parser / golden / det change; no crucible re-bless.

Lessons for agents

  • audit_check.py doc-refs reads tracked files: a new module named in a README row fails as "[name]" until the module is committed, then passes.
  • A JclFlow.run scenario needs given for every step that starts, including later steps after a bypass, or it raises KeyError.

🤖 Generated with Claude Code

… temporaries, DUMMY / NULLFILE, concatenation, SYSOUT / OUTPUT) and resolver (Part of #8413)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 03:32
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 03:32
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

… test instead of crashing (Part of #8413)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (82c7d41) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 17, 2026 04:08
auto-merge was automatically disabled November 17, 2026 04:08

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 17, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 04:10
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 04:11
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd
squid-shepherd Bot merged commit 1bac737 into main Nov 17, 2026
112 of 150 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8413-20261117T0302Z branch November 17, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant