Skip to content

JCL oracle tier 1: IF/THEN/ELSE evaluated-once constructs, IF-around-PROC answers match (Part of #8413) - #8464

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261114T0831Z
Nov 14, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261114T0831Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #8413. Slice: IF / THEN / ELSE / ENDIF, the last 9 of 28 IBM-written answers (#8418, #8451 landed the first 19 and the fixture; the IBM answers in ifflow_scenarios.json were written before any evaluator ran and are unchanged).

Checklist: done [c:c0e6aa54]

What changed

  • job_flow.py: a STEP row inside an IF carries presence-keyed if_chain (each enclosing construct: its IF line, its condition, whether the step is in its ELSE). if_cond is unchanged.
  • jcl_flow.py: a construct's result is fixed when first evaluated and not re-evaluated for its later steps (IBM Example 9: after A2 abends, A3 still runs and the ELSE step A4 stays bypassed). Closes the abn-a2-s0c4 gap.
  • jcl_proc.py: expand_flow_rows carries the call's if_chain onto the procedure's steps.
  • test_jcl_flow_level_fixture.py: the IF_KNOWN_GAPS list is gone; all 28 scenarios must match, PRC5/PRC6 (IF around a PROC step, CALL.PROCSTEP.RC/ABENDCC) through expand_flow_rows (the JCL oracle tier 1: PROC resolution answers and resolver (Part of #8413) #8456 resolver); a test pins the construct ids.

Evidence

pytest -k "jcl or job_flow" (tests/cobol_mainframe, tests/core_engine): 258 passed. 28/28 scenarios match the IBM answers (previously 19/28). The 4 hand-written files are all source or test.

Class / Sibling gaps

Class: IF/THEN/ELSE/ENDIF step-flow tests, per the checklist line: RC, ABEND, ABENDCC, RUN and ¬ tests (NOTJOB, ABNJOB), nested IFs (NESTJOB), IF around a PROC step (PRC5JOB, PRC6JOB), COND=EVEN / COND=ONLY on the same job (MIXJOB): every member has scenarios and now matches. Sibling gaps: none for this line. Still ASSUMED (B1, B2 in the fixture) where the manual is silent. A construct is evaluated at its first step rather than at the IF statement; the two differ only if an abend lands between them, which no construct with a step in its THEN clause can do.

Gates

pr_gates --fast: 9/9 pass. It first failed affected on test_mainframe_corpus.py[example-health-apis]: the shared .mainframe_corpora/example-health-apis is a .git with no commit (upstream repo gone), so git rev-parse HEAD errors instead of skipping. Rerun with GITGALAXY_MAINFRAME_CORPORA pointing at a scratch dir of symlinks to the other corpora: green, no code change.
--ratchets: fact-crosscheck, completeness and ground-truth fail with "example-health-apis is not fetched at its pinned ref"; mainframe_corpus.py fetch example-health-apis fails because https://github.com/ibm/example-health-apis is "not found" upstream. These are environment, not this change (no corpus, golden or ledger input moved); not re-blessed. Golden masters not run (no parsing/detector change). CI is the check.

Remaining slices

Same issue, other checklist lines: GDG relative generations; Restart; Data flow between steps. PROC resolution landed in #8456.

Lessons for agents

  • pr_gates --ratchets fails fact-crosscheck/completeness/ground-truth on any box whose example-health-apis clone is missing: the IBM repo is gone upstream, so mainframe_corpus.py fetch cannot fix it; compare with --vs-main before reading it as yours.

🤖 Generated with Claude Code

…narios run via expand_flow_rows; IF slice has no known gaps (Part of #8413)

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 14, 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 14, 2026 08:51
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 08:51
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 76d5808 into main Nov 14, 2026
107 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8413-20261114T0831Z branch November 14, 2026 09:33
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