Repository navigation
JclFlow: run / bypass evaluator over the job_flow rows, reproduces the 14 FLOW scenarios (Part of #4891) - #7670
Conversation
…es the 14 FLOW scenarios (Part of #4891) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #7670 @ b278c4c: 1 failed check(s) == Small audits (failure) -- real |
… (Part of #4891) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (05d171d) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
Part of #4891 (slice 2 of 3; slice 1 was #7654).
What
gitgalaxy/core/jcl_flow.py:JclFlow(rows).run(job, given)takes the STEP rows ofjob_flow.jcl_job_flowand, per step that starts, an RC or abend, and returns run / bypass per step (plus highest RC). It reads EXECCOND(tests, EVEN, ONLY, bypassed/unstarted-step tests false) and the reader'sif_cond(relations, NOT, AND / OR,stepname.RC / RUN / ABEND / ABENDCC, highest-RC-so-far, abend flush). The oldtest_there_is_no_flow_evaluator_yetpin is replaced by a test that reproduces everyexpectof all 14 FLOW scenarios;test_jcl_flow.pyadds operator spellings, abend / ABENDCC, thegivencontract and the refusals. Core README row and F4 register note updated.Evidence
pr_gates --fast9/9;--ratchets9/9 (cics-spec, ports, port-surface, estate, fact-crosscheck, completeness, ground-truth, det-mutation, time); pre-PR tree-wide guard tests 305 pass.detector,language_standards,prism) touched; the new module is not imported by the scan pipeline.scenarios.json; no answer was loosened. Refused by name (JclFlowRefused): AND/OR mixed without parentheses, more than 8 COND tests (7 with EVEN/ONLY), a COND test on a PROC step, a bareABEND/RUNkeyword,IF RCbefore any step executed, ordering comparison on ABENDCC.Class / Sibling gaps
Class: JCL step-flow semantics in IBM's JCL Reference (EXEC COND, IF/THEN/ELSE/ENDIF), members as listed in the level fixture. Handled here: COND tests / EVEN / ONLY, IF relations on RC, stepname.RC, RUN, ABEND, ABENDCC, NOT, AND, OR, nested IFs (the reader joins them with AND), abend flush (A3). Sibling gaps: JOB-statement COND (IBM text not found; refused in the fixture), COND inside THEN/ELSE (nothing in IBM's pages), the job's final completion code (JES matter), RESTART/RD/checkpoint (not fetched, no burned estate uses CHKPT), cancel/time-expiry/scheduling abends (no answer worth comparing), PROC-step qualified references (
a.b; refused by name here, needs proc expansion).Remaining slices
Slice 3: a burned case (CardDemo DEFGDGD / TRANEXTR, COND=(n,op,step) and IF RC=0 in BLDCIDB2.prc) driving
JclFlowfrom realjob_flowrows; hand-written files: the case, its test, the register note. Restart/checkpoint last, refused by name.🤖 Generated with Claude Code