Skip to content

JCL step-flow level fixture: FLOW.jcl, IBM-written scenarios, shape test (Part of #4891) - #7654

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4891-20261102T1249Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4891-20261102T1249Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4891 (slice 1 of 3): the JCL step-flow level fixture, with expected answers written from IBM's text before any evaluator exists (evidence policy 5, as in #7539).

Changes

  • tests/equivalence/jcl/fixture/FLOW.jcl: three jobs. CONDJOB (EXEC COND with and without a stepname, a bypassed step named by a later test, EVEN, ONLY), EVNJOB (EVEN and ONLY combined with a test), IFJOB (IF/THEN/ELSE/ENDIF on stepname.RC, RC, ABEND, stepname.RUN).
  • tests/equivalence/jcl/fixture/scenarios.json: 14 scenarios (each step's RC or abend in; run / bypass per step out), each with the IBM rule it rests on; the assumed points (A1-A4) and the refused constructs, by name.
  • tests/cobol_mainframe/test_jcl_flow_level_fixture.py: shape test (9 tests) plus that job_flow reads the steps, cond, if_cond and DD bindings the scenarios assume. No execution model yet; a last test pins that.
  • docs/language_status/register/F4.md: the note, with ASSUMED and refused lists.
  • .gitignore: whitelist for the fixture's JSON (*.json is ignored repo-wide).

Class / Sibling gaps

Class: JCL conditional step flow, i.e. every construct that decides whether a step starts: EXEC COND (RC tests, with and without stepname, EVEN, ONLY), IF/THEN/ELSE/ENDIF (RC, stepname.RC, ABEND, ABENDCC, RUN, operators, nesting), the JOB-statement COND, and restart/checkpoint. Handled here with a scenario each: EXEC COND tests and EVEN / ONLY, IF on RC / stepname.RC / ABEND / RUN, abend-then-IF. Sibling gaps: (1) the evaluator that reproduces every expect (JclFlow): different mechanism, slice 2. (2) A burned case, CardDemo DEFGDGD / TRANEXTR (COND=(n,op,step) and IF RC=0 in BLDCIDB2.prc): after the evaluator, slice 3. (3) ABENDCC, stepname.ABEND, & without |, nesting depth: named in IBM's text, no scenario yet, listed for slice 2 (no IF in the fixture uses them). (4) JOB-statement COND, COND inside THEN/ELSE, the job's final completion code, RESTART=/RD=/checkpoint: refused by name (IBM text for them was not found; no burned estate uses CHKPT). (5) Mixed AND/OR: refused by name (IBM gives one priority, no mixing rule).

Facts checked

  • IBM text is $H/4891-ibm-jcl-sources.md (z/OS 3.1.0 MVS JCL Reference, EXEC COND and IF/THEN/ELSE pages); not copied into the repo, paraphrased with the page names.
  • The 14 expected answers were cross-checked with a throwaway evaluator kept in scratch, not committed: 0 differences. They are not derived from the engine.
  • jcl_job_flow reads FLOW.jcl as the test asserts (e.g. if_cond NOT (I1.RC = 0) in the ELSE).
  • Not done and said so: IBM's EVEN/ONLY Table 2 cell alignment was lost in extraction (A4), so the fixture follows the prose; the live page was not re-read here.

Remaining slices

  1. JclFlow evaluator over job_flow rows (new module + tests); flip test_there_is_no_flow_evaluator_yet.
  2. Burned case: CardDemo DEFGDGD / TRANEXTR step flow, with feeds from the real JCL.
  3. ABENDCC / stepname.ABEND scenarios; re-read Table 2 live and pin its rows.

Gates

pr_gates.py --fast (heavy-run, ruff 0.17.2 pinned): 9/9 pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected). Tree-wide guard tests (287) pass; new test file 9 passed in about 1 s. --ratchets not run: no parsing logic, golden, ledger or pin touched. Local ruff was 0.16.0 (shared venv); the gate used the pinned 0.17.2.

Cross-repo

None: this repo only.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 04:00
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 04:06
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 4, 2026
@squid-shepherd
squid-shepherd Bot merged commit c00ebfc into main Nov 4, 2026
88 of 94 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4891-20261102T1249Z branch November 4, 2026 07:21
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