Skip to content

#5856 slice 3: CBSTM03A equivalence case (batch subprograms, mvs step, tab-indented copybooks) - #5891

Merged
squid-protocol merged 5 commits into
mainfrom
churn/5856-20261021T1653Z
Oct 21, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/5856-20261021T1653Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Part of #5856 (slice 3 of 3).

Cross-repo

None. Stacked on #5887 (branch churn/5856-20261021T1607Z, not merged): its branch is merged into this one, so this PR also shows its commits. Merge #5887 first; nothing re-runs elsewhere after.

What changed

  • tests/equivalence/carddemo-cbstm03a/: batch case for CardDemo CBSTM03A (job CREASTMT, step STEP040, mvs_step stated, CBSTM03B as a subprograms entry, STMTFILE and HTMLFILE compared). LICENSE, NOTICE, trnx.txt are copies from the cbstm03b case.
  • tests/tools/equivalence.py: the batch oracle compiles a case's subprograms (it only existed for CICS).
  • tests/tools/equivalence_java.py: the Java run passes -Dgitgalaxy.mvs.step when the case states mvs_step (the COBOL side already had GGMVS_STEP).
  • tests/tools/equivalence_common.py: a copybook with tabs whose lines pass column 72 at tab stops of 8 (CardDemo CUSTREC.cpy) is staged at stops of 4; one that fits at 8 is untouched; one still too long is refused by name. Only columns move, never tokens.
  • tests/cobol_mainframe/test_cbstm03a_case_5856.py: case shape, harness wiring, tab-stop cases, e2e gated on EQUIVALENCE_E2E.
  • Hand-written files: 5 (the four above plus case.json). docs/language_status/register/A2.md was dropped from this slice; its "not yet modelled" line is equivalence: the oracle's PSA/TCB/TIOT -- ggtiot.c and the equivalence_mvs lowering (Part of #5856) #5887's to fix.

Evidence (level, not a verdict)

det_port.py run carddemo-cbstm03a --faults none: PROVED. Translated 477/477 (0 holes, 0 refused). Executed-equivalent: 1 scenario, RETURN-CODE 0/0, STMTFILE 950/950 records, HTMLFILE 3200/3200, SYSOUT 11/11 lines (includes job, step and DD names from the TIOT walk). COBOL coverage 23/25 paragraphs, 0/46 branches (the run takes no error paths). No fault runs. Oracle is GnuCOBOL plus our stub, not z/OS; relies on register A2. CBSTM03B (callee) has 0 holes.

evidence.py prove could NOT record a level: it needs a committed port/ that builds on the generated skeleton; a det batch port imports cobolrt.batch, so the Java side fails to build. No evidence.json is committed (none was hand-written). Needs a decision on how evidence records a det batch port.

Checklist

Checklist: partial [c:80274138] -- CBSTM03A is 477/477 translated and proven by det_port.py run; coverage ledger entry now recorded (carddemo-cbstm03a, 23/25 paragraphs, 0/46 branches); no committed port, see above
Checklist: partial [c:0fb89649] -- case added and proven via det_port run; evidence.py prove cannot record a det batch port (above)

Class sweep

Class: a batch program that CALLs a COBOL subprogram, or reads its own control blocks, or copies a tab-indented member.

Sibling Status
batch case with a CALLed COBOL program now supported (subprograms); CBSTM03A is the first
CICS case with subprograms already supported
other copybooks with tabs past col 72 staged at 4 or refused by name
evidence record for a det batch port gap, not done

Sibling gaps: evidence for det batch ports (above). Remaining slices: none for the case; the evidence path needs an issue.

Gates

audit_check (ruff, mypy, dead-key, ast-accuracy) clear; pr_gates --fast 7/7; --ratchets 8/8; the new test, test_tiot_walk_5856 and test_mvs_oracle_5856 pass (plain pytest from /tmp). Not run: det_port.py check (no translator or runtime change), golden bless (no parsing change).

Lessons for agents

  • evidence.py prove on a case with no port/ writes a not-proven record; delete it, do not commit it.
  • CardDemo CUSTREC.cpy has tab-indented lines: GnuCOBOL's tab stop of 8 pushes them past column 72 ("unbalanced parentheses", "not defined"). Fixed in _tab_stops.
  • The batch oracle needs subprograms for any program that CALLs another COBOL program.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 21, 2026 12:16
…e_mvs lowering (Part of #5856)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…step on the Java side, tab-indented copybooks

CBSTM03A (CardDemo) walks PSA -> TCB -> TIOT and CALLs CBSTM03B. The batch COBOL
oracle now compiles a case's `subprograms`; the Java run states `mvs_step` as
-Dgitgalaxy.mvs.step; a copybook whose tab-indented lines pass column 72 at
tab stops of 8 is staged at 4 (refused by name if still too long).

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 Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 21, 2026 17:20
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 17:28
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5891 @ f051ca3: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39642930722/job/119410782498
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt
errors:
det mortgage-csmrt NOT PROVEN proven on 5 scenarios, covering 1/1 paragraphs and 1/2 branches
det mortgage-mpmt NOT PROVEN
det cbsa-crecust NOT PROVEN
det mortgage-cmort NOT PROVEN proven on 16 scenarios, covering 6/6 paragraphs and 18/21 branches
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 158 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 127762
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is b37df717f5d412a12b9ac715067e0c2c593c42a31aa041dd085900ed4a09d48b
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12370734786
Artifact det-sweep-ledger has been successfully uploaded! Final size is 127762 bytes. Artifact ID is 12370734786
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39642930722/artifacts/12370734786
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/2c98561e-d423-49e5-b766-a1b9ec55a86f' 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
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-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 21, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (621edec) 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).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 18:56
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 59ec6a0 into main Oct 21, 2026
49 checks passed
@squid-protocol
squid-protocol deleted the churn/5856-20261021T1653Z branch October 21, 2026 19:37
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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