Skip to content

Forged JCL jobs fix an IF result at first evaluation, as IBM does (Part of #8886) - #9237

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

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8886-20261124T1942Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8886. Checklist: done [c:1b7f6936]

What changed

IBM fixes an IF construct's result when it is first evaluated and does not re-evaluate it for later steps (JCL Reference, IF/THEN/ELSE Example 9). The forged Spring jobs re-evaluated it per step, which was the last two differences in #8821's forged-job comparison (abn-a2-s0c4 A3 and A4).

  • job_flow fact channel carries if_chain ([[IF line, condition as written, in_else], ...], outermost first, presence-keyed healed column, also in _JOB_FLOW_DDL).
  • galaxy_ir.job_steps() passes it on the step and on expands_to entries.
  • Forge emits steps.ifChain(...); JclConditions.bypassed evaluates each construct once, caches it in the step execution context, and bypasses on done == in_else. With no chain it behaves as before.
  • Fixture comparison: KNOWN_DIFFERENCES is now empty and the test asserts (42, 0, 0): all 42 IBM-written answers agree (2 known differences before this slice).

Class / Sibling gaps

Class: JCL conditions whose result depends on state at first evaluation rather than per step. Fixed here: IF/ELSE chains around plain steps and proc-call steps (the caller's chain). Siblings not done:

  • CREASTMT STEP040 needs an owner decision on TRANSACT's record format (CardDemo).
  • TRANIDX STEP30 stays refused (F4 / IDC1646I).
  • TRANBKP / COMBTRAN program steps and a whole-nightly end-to-end run (CardDemo).
  • A proc's inner steps still use the proc's own if_cond, not a chain of the proc's own IF lines (no burned CardDemo proc has an IF today).

Facts checked

  • test_jcl_forged_job_fixture.py, test_jcl_forged_job_carddemo.py, test_galaxy_ir.py, test_fact_channels.py: 115 passed, 1 skipped.
  • pr_gates --fast: 8/9 on the first run; the one failure (docs_read_by_tests.txt stale) was fixed with change_classifier.py --write, and that regenerated file is included.
  • audit_check.py: all clear.
  • pr_gates --ratchets: 6 pass; fact-crosscheck, completeness and ground-truth fail because corpus example-health-apis cannot be fetched (its upstream repo returns "not found"). I did not run an unchanged-main control, so I cannot show they fail there too.
  • Golden bless not run: no parsing rule changed (the new column is a DB fact, not a signal).

Lessons for agents

  • A healed-only fact column still has to be named in the channel's *_DDL text, or test_every_channel_declares_a_schema_that_names_its_own_table fails.
  • A test that restates a forge runtime guard pins its text; moving the guard into a helper needs the pin pointed at the helper (test_the_forge_guard_is_the_one_the_driver_mirrors).

🤖 Generated with Claude Code

…rt of #8886)

The job_flow fact carries each step's enclosing IF constructs (if_chain); the forge
emits them and JclConditions.bypassed evaluates each construct once (JCL Reference,
IF/THEN/ELSE Example 9). The fixture comparison goes from 2 known differences to 0
(42 of 42 IBM-written answers agree).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@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 20:27
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 20:28
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 24, 2026 20:32
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9237 @ 9f8fcea: 1 failed check(s)

== compile (zopeneditor-sample) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45480999538/job/138753803223
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ports
errors:
fail-on-cache-miss: false
##[error]Process completed with exit code 1.
FAIL default
FAIL plain-records
FAIL gradle
/home/runner/work/_temp/java_same/head_scan/java_gradle/src/main/java/com/gitgalaxy/modernized/batch/JclSteps.java:35: error: cannot find symbol
log tail:

ℹ️ Gradle version is out of date — consider upgrading. See Gradle release lifecycle


============================

Gradle State Caching - Disabled


Caching was disabled — Gradle User Home was not restored from or saved to the cache.
##[endgroup]
##[notice]Gradle 8.10.2 is out of date: consider updating to the latest Gradle version. See https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support
Completed post-action step
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/5e5d286e-dc08-4f46-8707-acc15afed61b' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/base
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/8de5a157-70b7-4106-9ce2-45494660bdb7' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@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 24, 2026
squid-protocol and others added 2 commits November 24, 2026 15:52
…obolrt API manifest regenerated (Part of #8886)

ifChains uses ConcurrentHashMap on every job, but the import sat inside the
IDCAMS-only block, so a job with no IDCAMS step failed to compile
(compile zopeneditor-sample). JclConditions.bypassed is emitter-used, so the
manifest promotes it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (90fd797) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 24, 2026 21:11
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 24, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels 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 21:32
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 21:34
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd
squid-shepherd Bot merged commit a209998 into main Nov 24, 2026
117 of 160 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8886-20261124T1942Z branch November 24, 2026 22:08
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