Repository navigation
Forged-job harness: CardDemo nightly's generated Spring Batch jobs vs the COBOL chain, per step (Part of #8886) - #9081
Conversation
…ain, per step (Part of #8886) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #9081 @ 12f5b83: 2 failed check(s) == ground-truth (failure) -- real == ground-truth part 1/2 (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (226b001) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Part of #8886 (slice 1 of N).
What changed
A harness that compares the job
BatchForgeGENERATES from CardDemo's real nightly JCL with the COBOL chain of #8885, step by step.tests/tools/equivalence_forged_job.pyforges the six JCL jobs (TRANBKP's REPROC expanded from its member), reads the generated<Job>JobConfigandDDS_<STEP>constants back, replays the forged guard (the forge's ownJclConditionsJava, compiled with javac, in the decisionJclSteps.guardedmakes) over the chain's step return codes, and compares per case step: step order, run or bypass against ran / not reached, and eachgdg_in/gdg_out/feedsagainst the forgedDdconstants.tests/equivalence/jobs/carddemo-nightly.forged.jsonmaps case steps to JCL steps. The test embeds the chain report, so it needs the corpus and a JDK but not Docker (2 s).Result per step (evidence level: forged plan and guard compared; Spring NOT run)
Chain from
equivalence.py run carddemo-nightlyon this head: 7 steps equal COBOL vs Java, TRANIDX refused by the IDCAMS model, IBM ends the job at carddemo-sort-creastmt (ICE043A), 2 steps not reached.FILEOUTDdFILEINnot in the forged planTRANKSDSfeed unchecked (no forged DD)7 of 9 steps equal, 2 differ. The two differ for one reason:
//STEP05R.PRC001.FILEIN/FILEOUTare PROC override DDs,galaxy_ir.job_ddsdoes not read them, so the forged TRANBKP has noFILEIN/FILEOUT. Reported as a difference, not worked around; the test pins it so the fix has to update the pin.Assumptions relied on: RC 16 for the ICE043A step (only nonzero matters to COND=(0,NE)); RC 0 for CREASTMT DELDEF01 and STEP030, which the chain has no case for. Residual risk: the Spring
guardedbody is replayed, not executed.Checklist: partial [c:1b7f6936] -- the step differences it names are measured (2 DD-wiring differences, one cause); not yet closed (the engine fix is a remaining slice). The 34 COND scenarios of #4891 slice 1 already agree.
Checklist: partial [c:101680f3] -- the harness compares the plan and guard per step; it does not run the Spring job or compare each step's output datasets and the job's final datasets.
Checklist: partial [c:0d1ebe5a] -- result per step for the 9 case steps above; the run is a replay, not the Spring run.
Class / Sibling gaps
Class: a generated job's step plan diverging from the chain it must equal (order, COND/IF decision, DD wiring, outputs, exit status), here proven on CardDemo's nightly. Siblings: (1) PROC override DDs
//STEP.PROC.DDare dropped byjob_dds, so any job that wires datasets through an override (TRANBKP'sFILEIN/FILEOUT) has no forgedDd; (2) the Springguardedbody is replayed, not run; (3) the case has no step for CREASTMT DELDEF01 / STEP030; (4) TRANIDX's feed is unchecked and its deck is model-refused; (5) output datasets are not compared on the forged side.Remaining slices
~/.m2) and compare each step's outputs and the final datasets with the chain.galaxy_ir.job_ddsread PROC override DDs (engine change, golden re-bless), then update the pin intest_forged_job_nightly_8886.py.--forgedinequivalence.py run.Facts checked: #9072 merged 2026-11-23T01:39:19Z (60a66ad);
carddemo-nightly.jsonis on main; chain run on this head as above;audit_check.pyall clear;pr_gates --ratchetsfails fact-crosscheck, completeness and ground-truth because the shared corpora checkout lacksexample-health-apisat its pinned ref (this PR changes no engine file).Lessons for agents
report.json'ssteps: derive "ran" from the case's steps minusibm_stop.not_reached, not from the report's list.//STEP.PROCSTEP.DDoverride DDs are outsidegalaxy_ir.job_ddsandjob_flowfiles them under the PROC step's name, not the job step's.🤖 Generated with Claude Code