Skip to content

Prove the generated Spring Batch jobs against the CardDemo IBM-written JCL answers, 34 of 34 (Part of #4891) - #8808

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4891-20261121T0006Z
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4891-20261121T0006Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #4891 (slice 1 of N)

Owner decisions

Owner OK (2026-11-20): slice 1 of N -- prove the GENERATED Spring Batch jobs against the IBM-written JCL answer key, starting with CardDemo.

What

tests/cobol_mainframe/test_jcl_forged_job_carddemo.py runs each of the 34 scenarios in tests/equivalence/jcl/carddemo/scenarios.json through what BatchForge generates, not through JclFlow:

  1. each of the 8 jobs is forged from its real job_flow rows (the job_steps fact shape of galaxy_ir.job_steps);
  2. the generated <Job>JobConfig is read back: step chain order and the (job COND, COND, IF) strings of every steps.*(...) call;
  3. the forge's own JclConditions Java (_RUNTIME["JclConditions"], compiled with javac) decides run / bypass in the order and with the expression JclSteps.guarded uses, with each step's rc / abend forced from given. An abend ends the job (Spring: the tasklet throws), as JCL's flush does with no EVEN / ONLY.
    The corpus-gated tests skip without the CardDemo checkout; the shape tests (the guard text the driver mirrors, a synthetic job's order and CONDs) run without it. A mutation of LT in the Java made the test fail, so it can.

Result (first run, 2026-11-20)

34 of 34 forged-job answers agree with the IBM-written key. No forge defect found; no answer touched.

Class / Sibling gaps

Class: the generated Spring Batch job's JCL step-flow behaviour (step order, COND / IF evaluation, abend flush, DD binding) against the IBM-written answer key, per estate level fixture. Covered here: CardDemo's 34 scenarios (the EXEC COND shapes (0,NE), (4,LT), abend, job-order). Sibling gaps, each a later slice with its own answers: (1) fixture level, FLOW.jcl 14 + IFFLOW 28 scenarios (IF/THEN/ELSE and EVEN/ONLY: the forge's JclConditions documents that EVEN / ONLY are not evaluated and ABEND tests are always "no abend", expect disagreements there); (2) ifelse 18; (3) proc 221 resolve answers (the real forge splices a PROC call into CALL.PROCSTEP steps; here a PROC call is one step, assumption A5, so that splice and COND naming the calling step are not exercised); (4) dataflow, (5) gdg, (6) restart: DD binding and DatasetResolver are not run here. Also not run: the Spring JclSteps.guarded body itself (pinned by text; needs the Spring jars), and the job's final exit status.
Stand-ins: every program a job names gets an empty skeleton, because the forge generates a job only when a step runs an estate program (none of the 8 CardDemo jobs would otherwise be "application").

Remaining slices

fixture (FLOW.jcl 14 + IFFLOW 28), ifelse 18, proc 221 resolve answers, dataflow, gdg, restart.

Files (2 hand-written)

tests/cobol_mainframe/test_jcl_forged_job_carddemo.py (new), tests/equivalence/jcl/carddemo/README.md (section added).

Gates

pr_gates --fast 7/9: workflows, gauntlet pass. affected failed 2 tests that need corpora at their pinned ref (test_runtime_option_table::test_used_by_is_exactly_the_burned_corpora_that_hold_the_construct, test_completeness[example-health-apis]: not fetched here; not confirmed against main). derived reports docs_read_by_tests.txt stale, but regenerating it only adds tests/core_engine rows unrelated to this change, so it is not committed (main's staleness). --ratchets not run. The new test file: 4 passed. Draft PR CI: ruff-audit, mypy-audit, Small audits pass; heavy jobs skip on a draft. No parsing logic touched, no golden bless.

Lessons for agents

  • The forge (BatchForge.applications) emits a Spring job only when a step runs a program with a skeleton: a test of generated JCL jobs over utility-only JCL gets zero jobs unless it supplies stand-in skeletons.

🤖 Generated with Claude Code

…n JCL answers, 34 of 34 (Part of #4891)

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 21, 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 21, 2026 00:45
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 00:46
@squid-shepherd
squid-shepherd Bot merged commit cbcab5a into main Nov 21, 2026
65 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4891-20261121T0006Z branch November 21, 2026 01:14
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