Skip to content

IDCAMS model: DEFINE CLUSTER DATA/INDEX takes CISZ, so CardDemo's DELDEF01 deck runs (Part of #8886) - #9131

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8886-20261123T1524Z
Nov 23, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8886-20261123T1524Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8886 (#8878, #4891). Slice 3 of the forged-job comparison: the IDCAMS oracle model now takes CardDemo's own DELDEF01 deck.

What changed

#9121 ran CardDemo's forged Spring jobs and found CREASTMT's first step, DELDEF01 (IDCAMS: DELETE, DELETE ... CLUSTER, SET MAXCC = 0, DEFINE CLUSTER with DATA (NAME CISZ) and INDEX (NAME)), refused. Before any forge can lower that step, the IDCAMS model (det/idcams_model.py and its Java twin cobolrt/job/Idcams.java) has to run the deck, and it refused DATA(NAME(..) CISZ(4096)) ("only NAME(one name) is modelled").

  • DEFINE CLUSTER | ALTERNATEINDEX DATA / INDEX component: CONTROLINTERVALSIZE(n) / CISZ(n) (one number) is accepted beside NAME(...). It sizes the control interval: no effect on records or the catalog (SC23-6846-60, DEFINE CLUSTER, DATA / INDEX parameters). The same in Python and Java.
  • Still refused by name, on both sides: a non-number or two-value CISZ, CISZ twice, and any other operand inside the component (KEYS(...) stays refused: IBM takes it as the cluster's, GenApp relies on that).
  • Tests (test_equivalence_idcams_java_8881.py): CardDemo's DELDEF01 deck run through the model and the Java side agrees (RC 0; the catalog holds the 350-byte KSDS keyed 32/0, empty), plus four refusals that read the same on both sides.

Evidence level: executed-equivalent between the model and its Java twin, on the real CardDemo deck. The oracle is the model, not z/OS.

Checklist: partial [c:1b7f6936] -- DELDEF01 now runs in the model and the Java side; the forge still routes any multi-command IDCAMS step to steps.utility (fails the job as shipped), so CREASTMT STEP010..STEP040 still differ; the five utility-only jobs are still unforged.
Checklist: partial [c:101680f3] -- the harness runs the generated jobs (#9121) but program steps still call a stub returning the chain's RC, not the proven ports; no job-final-dataset comparison yet.

Class / Sibling gaps

Class: an IDCAMS / utility step of a CardDemo nightly job that the forged Spring job does not run as the COBOL chain does. Members (burned estate: CardDemo, app/jcl):

  • DELDEF01 (CREASTMT, DELETE/SET/DEFINE with DATA CISZ): the model refusal is fixed here; forge lowering is missing (Sibling gap 1).
  • STEP020 (CREASTMT, REPRO INFILE OUTFILE into the VSAM KSDS DELDEF01 defines): the forge lowers it as a file copy; it needs the catalog DELDEF01 builds and STEP010's SORTOUT (Sibling gap 1).
  • STEP010 (CREASTMT SORT from a VSAM KSDS): SORTIN is a cluster no dataset seeds in the Spring run (Sibling gap 2).
  • TRANBKP, COMBTRAN, TRANIDX: utility-only jobs; the forge lists them and generates no job (Sibling gap 3).
  • Program steps (POSTTRAN STEP15, INTCALC, CBSTM03A STEP040): stub service, not the proven ports (Sibling gap 4).

Sibling gaps (none done here: each needs a forge change and a golden / forge-fixture check, over the 5-file cap with this one):

  1. Forge lowers an IDCAMS step through Idcams.run (catalog kept in the job's ExecutionContext, DDs as Sequential / Vsam) instead of steps.utility when idcams_model accepts the deck: cobol_to_java_batch_forge.py (_idcams_refusal, the IDCAMS emit), JclSteps, the harness. Needs: CREASTMT DELDEF01 + STEP020.
  2. Seed the chain's input datasets (TRANSACT.VSAM.KSDS etc.) into the Spring run's dataset dir so SORT / REPRO steps have data: equivalence_forged_spring.py. Needs: CREASTMT STEP010.
  3. Forge utility-only jobs (or state them refused by design in the harness): cobol_to_java_batch_forge.py. Needs: TRANBKP, COMBTRAN, TRANIDX.
  4. Link the proven det ports for program steps; compare each step's output datasets and the job's final datasets with the chain: equivalence_forged_spring.py. Needs: POSTTRAN, INTCALC, CREASTMT STEP040.

Remaining slices

Sibling gaps 1 to 4 above, in that order (1 and 2 close CREASTMT; 3 and 4 close the rest and the final-dataset comparison).

Gates

  • pr_gates --fast via heavy-run.sh: lint, audits, secrets, xray, gen-docs, workflows, gauntlet pass; derived failed on a stale docs_read_by_tests.txt (left by rebless_batch.py: one command to fold PRs that carry golden snapshots into one rebless PR #9120), regenerated with change_classifier.py --write (generated file, in this PR).
  • The five IDCAMS test files: 283 passed (JDK 17).
  • tests/cobol_mainframe/test_evidence.py (Idcams.java is part of the det runtime): 58 passed. Its warning lists records stale on harness / generator, re-proven by the scheduled job; none is stale on the runtime.
  • Merge check against origin/main: clean.

Lessons for agents

  • idcams_model.py and cobolrt/job/Idcams.java are twins: change both and add the deck to test_equivalence_idcams_java_8881.py, whose eij.compare reports any difference.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 23, 2026 10:30
…ALSIZE/CISZ, so CardDemo's DELDEF01 deck runs (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 15:58
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 15:59
@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 23, 2026 16:11
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9131 @ b62eef3: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45211224924/job/137828212175
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
##[group]Operating System
Ubuntu
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261116.88.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261116.88/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261116.88
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: ground-truth
##[group]Run echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
# #5543: ... or when the layout needs no warm job (a cache hit on the scans, or the busy layout): the parts then warm for themselves
{ ok "$WARM" || { test "$WARM" = "skipped" && test "$PLANNED_WARM" = "false"; }; } && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: skipped
PARTS: failure
SKIP:
MODE: full
PLANNED_WARM: false
LAYOUT: busy
##[endgroup]
ground-truth warm: skipped, parts: failure (tested-tree skip: , plan mode: full, layout: busy, warm planned: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45211224924/job/137820784855
repro: python -m pytest -q tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime
failing tests: tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime
errors:
fail-on-cache-miss: false
E AssertionError: assert ['job/Idcams....its plumbing'] == []
tests/cobol_mainframe/test_cobolrt_rules.py:88: AssertionError
FAILED tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime - AssertionError: assert ['job/Idcams....its plumbing'] == []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: f4672af16f88061ed933fe00b80f7a63e6a43aa275b05e9350f823fa684ff54b
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 193614
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 0082537811acba76c6b061ed0a062e56f12036b8e81cdebab59bca9293aba775
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 14837950456
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 193614 bytes. Artifact ID is 14837950456
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/45211224924/artifacts/14837950456
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/98ffd176-717c-4014-bc9e-1a82bdfc0d59' 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 23, 2026
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (82d928e) 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 23, 2026 16:26
@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 23, 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 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 16:28
@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 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 16:28
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 23, 2026
@squid-shepherd
squid-shepherd Bot merged commit 746ae70 into main Nov 23, 2026
106 of 144 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8886-20261123T1524Z branch November 23, 2026 17:17
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