Repository navigation
JCL oracle tier 1: IF/THEN/ELSE evaluated-once constructs, IF-around-PROC answers match (Part of #8413) - #8464
Merged
Conversation
…narios run via expand_flow_rows; IF slice has no known gaps (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsonwere 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-keyedif_chain(each enclosing construct: its IF line, its condition, whether the step is in its ELSE).if_condis 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 theabn-a2-s0c4gap.jcl_proc.py:expand_flow_rowscarries the call'sif_chainonto the procedure's steps.test_jcl_flow_level_fixture.py: theIF_KNOWN_GAPSlist is gone; all 28 scenarios must match, PRC5/PRC6 (IF around a PROC step,CALL.PROCSTEP.RC/ABENDCC) throughexpand_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 failedaffectedontest_mainframe_corpus.py[example-health-apis]: the shared.mainframe_corpora/example-health-apisis a.gitwith no commit (upstream repo gone), sogit rev-parse HEADerrors instead of skipping. Rerun withGITGALAXY_MAINFRAME_CORPORApointing 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-apisfails 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 --ratchetsfails fact-crosscheck/completeness/ground-truth on any box whoseexample-health-apisclone is missing: the IBM repo is gone upstream, somainframe_corpus.py fetchcannot fix it; compare with--vs-mainbefore reading it as yours.🤖 Generated with Claude Code