Skip to content

Forged Spring Batch jobs vs the JCL level fixture: 42 IBM-written answers, 21 agree, 28 step differences named (Part of #4891) - #8821

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4891 (slice 2 of N)

What

tests/cobol_mainframe/test_jcl_forged_job_fixture.py runs the level fixture's 42 IBM-written answers (FLOW.jcl 14, IFFLOW.jcl 28) through what BatchForge generates, as slice 1 (#8808) did for CardDemo: each job is forged from the job_steps fact shape (a PROC call carries expands_to, so procedure steps forge as CALL.PROCSTEP), the <Job>JobConfig is read back, and the forge's own JclConditions Java decides run / bypass in the order JclSteps.guarded uses. Slice 1's helpers and driver are reused; the cell separator is U+001F because an IF expression holds |.

Result (first run, 2026-11-21)

21 of 42 scenarios agree; 21 differ on 28 steps. KNOWN_DIFFERENCES names every one with its cause, and the test fails on a new difference AND on a listed one that stops reproducing:

  • COND=ONLY not read (the forge's COND regex takes (code,op) tests only): 4 steps run that IBM bypasses.
  • Abend flush: an abend ends a Spring Batch job, so 18 steps IBM runs after an abend (EVEN / ONLY / IF ABEND / ABENDCC) never start. The forge documents this.
  • stepname.RUN: 4 steps; the IF parser reads it as true (and leaves = FALSE unconsumed), so .RUN = FALSE and NOT .RUN come out inverted.
  • stepname.ABENDCC = code: 2 steps; the parse ends after the left token, so the whole expression is one false relation and NOT (...) holds whatever RC is.
    The agreeing 21 cover EXEC COND (code,op[,step]), nested IF / ELSE, NOT, & / |, RC and stepname.RC, and procedure steps keyed CALL.PROCSTEP.

Class / Sibling gaps

Class: the generated Spring Batch job's JCL step-flow behaviour against the IBM-written answer key, per estate-level fixture. Covered: CardDemo 34 (#8808), fixture FLOW 14 + IFFLOW 28 (this PR). Sibling gaps (each a different mechanism, not done here): (1) forge JclConditions defects found above (ONLY, .RUN, ABENDCC = parse; the abend flush is a design limit, EVEN / ONLY need a job that survives an abend): a forge fix slice that deletes entries from KNOWN_DIFFERENCES; (2) ifelse 18 answers; (3) proc 221 resolve answers (here only the in-stream PROC shape of IFFLOW is exercised); (4) dataflow, (5) gdg, (6) restart: DD binding and DatasetResolver not run; also not run: the Spring JclSteps.guarded body (pinned by text in slice 1) and the final job exit status. Not logged in port_blockers.json: its entries are tagged by a burned estate, and these were found on a fixture.

Remaining slices

forge JclConditions fix (1 file + test), ifelse 18, proc 221, dataflow, gdg, restart.

Files (1 hand-written)

tests/cobol_mainframe/test_jcl_forged_job_fixture.py (new).

Gates

New file: 2 passed (6 with slice 1's file; also from an unrelated cwd). ruff format (pinned 0.17.4) clean; ruff_audit --ci and doc_refs_audit --ci pass; mypy_audit --ci shows nothing in the new file (it reports unrelated findings in this local env). pr_gates --fast / --ratchets not run. No parsing logic touched, no golden bless.

🤖 Generated with Claude Code

…wers, 21 agree, 28 step differences named (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 02:20
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 02:23
@squid-shepherd
squid-shepherd Bot merged commit 623d03f into main Nov 21, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4891-20261121T0211Z branch November 21, 2026 02:46
squid-shepherd Bot pushed a commit that referenced this pull request Nov 24, 2026
…0 of #8821's 28 step differences closed (Part of #8886) (#9190)

* IDCAMS BLDINDEX UNIQUEKEY-over-duplicates refusal cites IDC1645I in the model and the Java twin (Part of #8886)

Still refused: IBM keeps the first pointer and states no condition code (register F4).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Forge JclConditions: COND=ONLY, stepname.RUN and ABENDCC=code read; 10 of #8821's 28 step differences closed (Part of #8886)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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