Skip to content

Forged-job harness reads job_dds/job_steps from a real CardDemo JCL scan (Part of #8886) - #9117

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8886-20261123T1330Z
Nov 23, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8886-20261123T1330Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Slice 1 of 3 from #9086's remaining slices (Part of #8886, #8878, #4891). tests/tools/equivalence_forged_job.py no longer hand-builds job_steps / job_dds facts (which mirrored the PROC-override rule). It copies the corpus's JCL and PROC dirs into a temp estate, runs a real scan (galaxy_ir.scan_to_db + load_galaxy_ir), and hands the forge ir.job_steps() / ir.job_dds() rows, the same facts the controller uses. Override rows are the job_dds rows whose source is the job file under a proc_step.

Result unchanged: CardDemo nightly forged comparison 9 of 9 steps equal (guard replayed, Spring not run).

Test: new test_the_forge_reads_the_scans_job_dds_rows_not_a_mirror_of_the_override_rule pins that the forged facts equal the scan's rows and that TRANBKP's PRC001.FILEIN/FILEOUT overrides come from the job file while all other PROC DDs come from proc/.

Class / Sibling gaps

Class: forged-job harness inputs that re-derive what the engine's job_steps / job_dds already compute (so a harness could pass while the engine is wrong). Members: step facts, DD facts, PROC override DDs: all now read from the scan. Sibling gaps: none in this harness. Not here (other mechanism, later slices): executing the forged Spring job and comparing to the chain; the --forged hook in equivalence.py run.

Remaining slices

  1. Execute the Spring job and compare to the chain. 3. --forged hook in equivalence.py run.

Checklist: partial [c:1b7f6936] (slice 1 of 3 done; slices 2 and 3 left)

Gates: audit_check.py all clear; ruff format clean; test_forged_job_nightly_8886.py 7 passed (~9 s, doom-ci venv, JDK present). Hand-written files: 2.

🤖 Generated with Claude Code

…mo's JCL, not hand-built facts (Part of #8886)

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 23, 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 23, 2026 13:38
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 13:38
@squid-shepherd
squid-shepherd Bot merged commit 8b47687 into main Nov 23, 2026
65 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8886-20261123T1330Z branch November 23, 2026 14:02
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