Repository navigation
Prove the generated Spring Batch jobs against the CardDemo IBM-written JCL answers, 34 of 34 (Part of #4891) - #8808
Merged
Conversation
…n JCL answers, 34 of 34 (Part of #4891) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pyruns each of the 34 scenarios intests/equivalence/jcl/carddemo/scenarios.jsonthrough whatBatchForgegenerates, not throughJclFlow:job_flowrows (thejob_stepsfact shape ofgalaxy_ir.job_steps);<Job>JobConfigis read back: step chain order and the (job COND, COND, IF) strings of everysteps.*(...)call;JclConditionsJava (_RUNTIME["JclConditions"], compiled with javac) decides run / bypass in the order and with the expressionJclSteps.guardeduses, with each step's rc / abend forced fromgiven. 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
LTin 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'sJclConditionsdocuments that EVEN / ONLY are not evaluated andABENDtests are always "no abend", expect disagreements there); (2) ifelse 18; (3) proc 221 resolve answers (the real forge splices a PROC call intoCALL.PROCSTEPsteps; 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 andDatasetResolverare not run here. Also not run: the SpringJclSteps.guardedbody 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.
affectedfailed 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).derivedreportsdocs_read_by_tests.txtstale, but regenerating it only addstests/core_enginerows unrelated to this change, so it is not committed (main's staleness).--ratchetsnot 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
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