Skip to content

CardDemo nightly: POSTTRAN and INTCALC through the forge's Spring Batch jobs with the proven ports, equal to the chain (Part of #8886) - #9178

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/8886-20261124T0901Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/8886-20261124T0901Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8886 (#8878, #4891).

What

A job-case step may carry forged_job: the equivalence Java side then enters the step through JclJobLauncher (the forge's generated <Job>JobConfig: its own DD/DSN wiring and PARM, the proven det port as the step's service) instead of calling the port directly. RETURN-CODE, ABEND and every output dataset are compared with the GnuCOBOL run as before. New job case carddemo-job-posttran-intcalc-forged: equivalence.py run reports "proven over 2 of 2 steps" (POSTTRAN STEP15 RC=4, INTCALC STEP15 RC=0, final datasets equal), both as real Spring Batch job launches.

Files: tests/tools/equivalence_java.py (forged_job_parts, launcher field, spring.batch.job.enabled=false), tests/tools/equivalence_job.py (key allowed/copied), the new job JSON, tests/cobol_mainframe/test_forged_job_ported_8886.py (unit tests plus an EQUIVALENCE_E2E=1 gated slow e2e), and a one-line docstring fix in test_forged_spring_nightly_8886.py.

Evidence level: executed-equivalent, 2 steps, vs GnuCOBOL plus our stub (not z/OS). TRANIDX STEP30 stays refused (IDC1646I, F4): not closed, not guessed.

Checklist: partial [c:1b7f6936] -- forged-job comparison covers POSTTRAN and INTCALC; CREASTMT STEP040 still not run through a forged job
Checklist: partial [c:101680f3] -- mode runs generated jobs with the proven ports per step and compares outputs/final datasets; CREASTMT STEP040 (needs STEP010..DELDEF01 first) and a single end-to-end nightly run remain

Class / Sibling gaps

Class: program steps in the nightly's generated jobs. POSTTRAN STEP15 and INTCALC STEP15: linked, proven. CREASTMT STEP040 (CBSTM03A): not linked; the chain's STEP010 is RC=16 (OUTREC 328 < LRECL 350, F4, no pad guessed) and the per-step entry cannot start at STEP040. Utility steps (TRANBKP, COMBTRAN, TRANIDX) stay on the light harness. Siblings: DatasetResolver (0)/(+2)/new-job re-snapshot Java unit test; CNTLLIB member matched by name only; IDC1645I citation on the UNIQUEKEY refusal; TRANIDX STEP30 refused by design.

Remaining slices

CREASTMT STEP040 through the forged job; one end-to-end nightly run (this mode is per step); the sibling gaps above.

Gates

pr_gates.py --fast 9/9, audit_check.py clear, ruff format/check clean on changed files; new unit tests 10 pass, e2e skipped without EQUIVALENCE_E2E=1; the e2e proof run itself passed locally. No parsing logic touched, so no golden bless.

Lessons for agents

  • A generated equivalence test method may declare only throws IOException: reflection must be wrapped (ReflectiveOperationException -> IllegalStateException) or the Spring Boot test fails to compile.
  • A new job-case step key must be added to the allowed set in equivalence_job.check_job, or it fails "not runnable faithfully: unknown step key".

🤖 Generated with Claude Code

squid-protocol and others added 5 commits November 24, 2026 00:30
…ts the chain's AIX record-size refusal (Part of #8886)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nd the Java twin; TRANIDX STEP30 stays refused (Part of #8886) (#9176)

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…ted Spring Batch jobs with the proven det ports, equal to the chain (Part of #8886)

A job-case step may carry forged_job: the equivalence Java side then enters the step through JclJobLauncher
(the generated job's own DD wiring and PARM) instead of calling the port directly, and RETURN-CODE and every
output are compared with the GnuCOBOL run as before. carddemo-job-posttran-intcalc-forged is proven over 2 of 2 steps.

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 24, 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 24, 2026 09:22
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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