Skip to content

equivalence: oracle side of a BMP EXEC DLI (GGDLIBMP, GGDLICHKP, rewrite_bmp) (Part of #5857) - #5889

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5857-20261021T1627Z
Oct 21, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5857-20261021T1627Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5857 (slice 2 of 3: the oracle side for a BMP's EXEC DLI). Slice 1 (#5870) did the det side.

What changed

  • equivalence_ims.py: psb(..., bmp=) accepts CMPAT=YES only for a BMP (a BMP with CMPAT=NO is refused by name); bmp_using, stage reads a BMP's USING io-pcb db-pcb...; cobol_driver(io=True); rewrite_bmp lowers GN/GNP/DLET (via equivalence_cics.translate_dli) and CHKP ID(area); every other form (XRST, ROLB, CHKP options, EXEC CICS) is refused by name.
  • ggdli.c: GGDLIBMP binds the DB PCBs after the I/O area (PCB(1) refused, SCHD/TERM refused in a BMP); GGDLICHKP loses every position (register I5, still an uncited ASSUMPTION).
  • equivalence.py: wires a BMP into run_cobol.
  • register/I5.md: the oracle is linked.
  • Tests: test_equivalence_bmp_dli.py (15 unit, 3 GnuCOBOL E2E: GN/DLET/GNP/CHKP/GN restarts at the beginning, database bytes equal, PCB(1)/PCB(4) refused).

Plan deviation

The batch rewrite and CHKP live in equivalence_ims.py, not equivalence_cics.py (kept it untouched: 5-file limit, and CICS behaviour unchanged because CMPAT=YES is opt-in).

Class table

Sibling Status
GN, GNP, DLET, CHKP ID(area) done
XRST, ROLB, GHU etc., CHKP with options/literal ID refused by name
SCHD/TERM in a BMP refused by name
GSAM/alternate PCBs in a BMP not modelled

Gates

pr_gates --fast 7/7; ruff/mypy baseline audits clean; ruff format clean; test_det_dli, test_equivalence_cics_dli, tests/tools equivalence/dli subset pass; new file passes with EQUIVALENCE_E2E=1. --ratchets: see the checks. evidence.py status shows many records stale ("harness, generator changed"); not re-proved here, as ggdli.c/harness edits are oracle inputs: re-prove in slice 3 / a follow-up.

Cross-repo

None. Overlaps: #5842 (I5.md, equivalence_ims.py), #5887 (equivalence.py); merged origin/main before pushing, no conflicts.

Lessons for agents

  • A generated CALL line must fit col 72: split BY REFERENCE x onto continuation lines; rewrite_bmp refuses over-long statements.
  • equivalence_cics imports equivalence_ims at top level: import it lazily in equivalence_ims.

🤖 Generated with Claude Code

Checklist: partial [c:849f31c6] -- the det side was slice 1 (#5870); this slice adds only the oracle side
Checklist: done [c:4df05120]
Checklist: done [c:e28565b0]
Checklist: partial [c:fa4d89fe] -- no CBPAUP0C case or evidence record yet (slice 3)

…KP, rewrite_bmp (Part of #5857)

equivalence_ims accepts a PSB with CMPAT=YES for a BMP entered USING its I/O PCB and DB PCBs;
ggdli.c binds them and models CHKP (every position lost, register I5); rewrite_bmp lowers
GN/GNP/DLET/CHKP ID(area) to CALLs. Unit tests plus a GnuCOBOL E2E.

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 16:54
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 17:20
@squid-protocol

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md 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 Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed 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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 6a98115 into main Oct 21, 2026
39 checks passed
@squid-protocol
squid-protocol deleted the churn/5857-20261021T1627Z branch October 21, 2026 19:46
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