Repository navigation
JCL oracle tier 1: PROC resolution answers and resolver (Part of #8413) - #8456
Conversation
…e the resolver (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… INCLUDE); COND/IF accept CALL.PROCSTEP (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…en files) (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
stepname.procstepname tests inside IF left over from slice 1).|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #8456 @ 12da555: 1 failed check(s) == ruff-audit (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (3e0ece3) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
PR #8456 @ 3e0ece3: 1 failed check(s) == Small audits (failure) -- real |
|
No description provided. |
|
No description provided. |
…n files) (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (5ed3713) is not the one a maintainer labelled |
Pull request was converted to draft
|
No description provided. |
Part of #8413 (slice 2 of 5: PROC resolution, plus the
stepname.procstepnametests inside IF left over from slice 1).Checklist: partial [c:e2b88820] -- answers and a resolver for symbolics/defaults, SET (job-level), EXEC PARM./COND. overrides, DD override, added DD, INCLUDE, JCLLIB ORDER are in; the refused rows below (unqualified PARM/COND, SET vs PROC default, null symbolic, nested calls, SYSOUT/DUMMY override) and library-member proc steps in IF flow are left.
Checklist: partial [c:c0e6aa54] -- the
stepname.procstepname.RC / RUN / ABENDCCtests and a COND test on a procedure step are done; the rest of the line was slice 1.What changed
tests/equivalence/jcl/proc/(case data):scenarios.json(holds the five jobs asflow_jcllines and the JCLLIB library members aslibraries, so the case adds no .jcl file) with 15 resolve answers and 5 flow answers. Written from IBM's z/OS MVS JCL Reference (SA23-1385) before the resolver existed (first commit holds only the answers; the manual was read by section, no page numbers). ASSUMED A1-A3 named in the file.gitgalaxy/core/jcl_proc.py(new):resolve_jobandexpand_flow_rows.job_flowdoes not keep PROC defaults, EXEC symbolic values or JCLLIB, so the resolver reads those statements itself.gitgalaxy/core/jcl_flow.py: a COND test namingCALL.PROCSTEPis no longer refused (the evaluator already keys steps by name); the refusal test is updated intest_jcl_flow.py.tests/cobol_mainframe/test_jcl_proc_case.py: reproduces everyexpect; refusals tested..gitignore: whitelist for the newscenarios.json.Class / Sibling gaps
Class: how a JCL procedure call resolves to the steps and DDs the system runs, and how IF/COND address a procedure's steps.
CALL.PROC.RC / RUN / ABENDCC, COND onCALL.PROCSibling gaps (not here, one mechanism each):
PARM=/COND=on a procedure call: refused by name; its rule on the procedure's other steps is not answered. Source: JCL Reference, EXEC PARM / COND.expand_flow_rowsreads in-stream procedures only.Remaining slices
tests/tools/capability_ledger.py(+ regenerated docs): count the proc scenarios in "JCL step flow" (the file countsscenariosarrays ofIBM_WRITTEN_JCL_LEVELS; this case hasresolveandflow). 1 hand-written file.Evaluator disagreements
None: every answer was reproduced on first run. Two fixes were needed in code not answers:
expand_flow_rowsscoped per job, and the COND refusal onCALL.PROCSTEPremoved.Gates
pr_gates --fast: lint and audits pass; theaffectedgate fails ontest_mainframe_corpus.py::test_committed_excerpt_is_byte_identical_to_the_clone[example-health-apis](git rev-parse HEADexits 128 in the corpus clone, a box environment fault, not this change). No parsing logic touched, so no golden bless.--ratchetsnot run.Lessons for agents
job_flow.jcl_job_flowdrops PROC statement defaults, EXEC symbolic values and JCLLIB rows: a resolver must re-read statements withjob_flow._statements/_split.🤖 Generated with Claude Code