Skip to content

det runtime: same-shape zoned MOVE is a byte copy (cobc); carddemo-cardupdate baseline re-pointed at #4875 - #4879

Merged
squid-protocol merged 3 commits into
mainfrom
test/carddemo-cardupdate-proves
Oct 11, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
test/carddemo-cardupdate-proves

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4875 (does not close it).

carddemo-cardupdate does NOT prove since #4806/#4871, so its baseline entry stays, re-pointed at the open issue #4875 (the old #4085 is closed and described a different thing) with the real cause:

  1. Fixed here (runtime). COCRDUPC's PF5 path moves blanks (the BMS map has no CVV field) through CARD-CVV-CD-X into CARD-UPDATE-CVV-CD PIC 9(3). cobc compiles a MOVE between zoned items of one shape as a memcpy, so the spaces travel; the det runtime always ran libcob's store_common_region (space -> '0'), so the COMMAREA differed (<invalid b' '> vs 0) in pf5-confirms-and-rewrites / pf5-rewrite-fails. Cobol.move now copies the bytes for one-shape zoned items; measured against cobc for every sender shape in test_det_nondigit_zoned.py (receiver OWN; expected lines regenerated from cobc, additions only); register C11. After it the COMMAREA events are 3/3 equal in all 33 scenarios, on the port and the java-facade.
  2. Remaining (carddemo-cardupdate: COCRDUPC writes spaces into a PIC 9(3) CVV; the entity-backed file cannot hold them (+ 30 uncovered branches) #4875). The REWRITE's file record: CARD-CVV-CD COBOL , Java 000: DetCics.Store persists through the typed CardRecord entity, which cannot hold non-digits. Needs a lossless entity/store design (options in the issue).
  3. Coverage: 33 scenarios cover 44/45 paragraphs and 159/189 branches, 30 outcomes uncovered (the baseline's "30"): list in carddemo-cardupdate: COCRDUPC writes spaces into a PIC 9(3) CVV; the entity-backed file cannot hold them (+ 30 uncovered branches) #4875.

Runtime change, so the whole det suite was re-proved (proof_sweep.py --det-only, 104 cases, Db2 included): "sweep: as expected", nothing regressed or newly proven besides the above. Gates: pr_gates --fast 5/5, --ratchets 7/7, none skipped. No change to gitgalaxy/standards/cics or det/cics.py (cobolrt/Cobol.java is the shared runtime).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

…as cobc compiles it; re-point carddemo-cardupdate at #4875 (Part of #4875)

cobc turns a MOVE between zoned items of the same digits / scale / sign / size into a memcpy (cb_build_move_copy), so
spaces in a PIC 9(3) travel (COCRDUPC's CVV); the det runtime ran store_common_region (space -> '0'). Measured against
cobc per sender shape (OWN receiver in test_det_nondigit_zoned.py); C11 documents it. carddemo-cardupdate's COMMAREA
now agrees; its file record still differs (typed CardRecord entity holds 000) and 30 branches are uncovered, so the
baseline entry stays, now pointing at the open issue #4875 with the real cause.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: medium testing Unit, integration, and E2E pipeline verification 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 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

…) (Part of #4875)

IBM documents no result for non-digit data in a numeric item, but APAR
PH21007 (Enterprise COBOL 6.3) says the V6.2 sign-nibble fix-up in zoned to
zoned moves was removed "to match the pre-V5 behavior", and it only ever
applied where the receiver's sign or length differs. A MOVE between items of
one shape copies the bytes as they are on IBM too, as cobc does: MATCHED for
that case. Read from the APAR, not run on z/OS (#4050).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 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 11, 2026 10:45
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 10:45
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit cd85042 into main Oct 11, 2026
56 checks passed
@squid-protocol
squid-protocol deleted the test/carddemo-cardupdate-proves branch October 11, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: medium shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant