Skip to content

Job harness: a job may declare IBM ends it at a DFSORT step (ICE043A), first slice of the CREASTMT job case (Part of #8884) - #9041

Merged
squid-shepherd[bot] merged 8 commits into
mainfrom
churn/8884-20261122T1646Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 8 commits into
mainfrom
churn/8884-20261122T1646Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Part of #8884 (Part of #8878). First slice, cut to the 5-file cap. Supersedes the stale draft #8978 (its test file conflicted and its OUTREC join was refused by #9035).

What this does

CardDemo CREASTMT is STEP010 SORT -> STEP020 IDCAMS -> STEP030 CBSTM03A (CALLs CBSTM03B). IBM ends that job at STEP010: DFSORT reports ICE043A reason code 9 (SC23-6879) because the fixed SORTOUT LRECL (350) is longer than the OUTREC it is given (328), and COND=(0,NE) bypasses every later step. #9035 made the harness refuse that join by name. This PR lets a job case declare the outcome and prove what IBM actually runs, instead of padding the record (a job IBM never runs) or refusing the case.

  • tests/tools/equivalence_job.py: new job-level key ibm_stops = {"step": <case>, "reason": "ICE043A"}. check_job accepts the short DFSORT join only when declared AND backed by a real short join from a DFSORTST writer; an undeclared join is still refused with the citation; a declaration no join backs, an unknown step or reason, or one on the last step is refused. run_case proves the steps up to the stop, reports ibm_stop with the steps not reached, and proven covers only the steps run.
  • tests/cobol_mainframe/test_job_case_4268.py: 2 new tests on stub cases (declared stop accepted and named; undeclared still refused with the citation; five ways a declaration is refused).
  • docs/language_status/register/F4.md: the ICE043A bullet describes ibm_stops.

No committed job case declares it yet, so no det case is added: this slice moves no golden, no det-sweep duration and no evidence record.

Evidence

Checked by the stub-case tests only (test_job_case_4268.py: 14 pass). The real run of the full case (STEP010 compared COBOL vs the Java det port, SORTOUT 100/100; "proven over 1 of 3 steps") was done on this branch's earlier head and is not part of this slice's evidence. The oracle is GnuCOBOL plus our stub, not z/OS.

Gates

pr_gates --fast re-run on this head (result in the report); test_evidence.py, test_det_sweep_fast.py, test_ci_shard_plan.py pass (194 passed with the job tests). audit_check.py previously failed only on ast-accuracy (this box's venv has no PyYAML), unrelated.

Class / Sibling gaps

Class: a job case whose chain IBM ends partway (a DFSORT step terminated by ICE043A), so only the run prefix can be compared. Siblings, not done here: (1) the CREASTMT job case itself; (2) a padded-OUTREC authored variant that runs the whole SORT -> IDCAMS -> CBSTM03A chain (a new det case, labelled authored); (3) a Java-side IDCAMS comparison inside the job (model-only oracle today); (4) the IEFBR14 STEP030 step; (5) DELDEF01 catalog state between steps.

Remaining slices

  1. The CREASTMT job case (File-cap exception not requested; it is the next PR): tests/equivalence/carddemo-sort-creastmt/ (case, DFSORTST.cbl, LICENSE, NOTICE, sortin, committed det port port/service + provenance.json from det_port.py run, evidence.json from evidence.py prove), det_sweep_coverage/carddemo-sort-creastmt.json, jobs/carddemo-job-creastmt.json + creastmt-step020.idc, a MUTATION_PENDING row in test_evidence.py, and the creastmt tests. Built and proven on this branch's earlier commits (7675db7, 8307e4c, 6 evidence/mutation commit after them; see the branch history before the "Cut to the harness slice" commit). Expect test_det_sweep_fast / test_ci_shard_plan red until the nightly records its duration (49/195 unmeasured, over 25%).
  2. Siblings (2)-(5) above.

Checklist: the queue's [c:...] ids were not in my brief; items 1 and 2 landed earlier (#8951, #8971/#8976, #9011) and item 3 is slice 1 of 2 here, so the orchestrator should set the line.

Lessons for agents

  • A job step on a lowered DFSORT case needs a committed port/service + provenance.json (det_port.py run CASE), else the job's Java build fails "cannot find symbol DfsortstService"; the new port also needs evidence.json and a MUTATION_PENDING row.
  • A new det case can tip the unmeasured-duration ratio over 25%: red until the nightly.
  • A job-case harness feature is cut from its case data to stay under the cap: stub-case tests (_sort_job) carry it.
  • churn selfcheck hung with no output on this box (three runs); the body sections were checked by hand.

Cross-repo: none.

🤖 Generated with Claude Code

@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-11-22). Nothing is needed from contributors; work resumes once it is answered.

@squid-protocol squid-protocol changed the title CREASTMT job case: SORT, IDCAMS, CBSTM03A in JCL order; job declares IBM's ICE043A stop (Part of #8884) Job harness: a job may declare IBM ends it at a DFSORT step (ICE043A), first slice of the CREASTMT job case (Part of #8884) Nov 22, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 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 22, 2026 18:02
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 18:03
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9041 @ 679102e: 1 failed check(s)

== db2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45052784987/job/137302573825
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 22, 2026 19:14
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 22, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 19:25
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 2178a6a into main Nov 22, 2026
44 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8884-20261122T1646Z branch November 22, 2026 20:01
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