Skip to content

det: group MOVE over COMP-1/COMP-2/COMP-5 laid out alike is translated (Part of #7646) - #7763

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7646-20261105T0641Z
Nov 5, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7646-20261105T0641Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7646 (part of #5865). Slice after #7756. Draft; the translate() default (slice 5) is untouched.

What changed

  • det/gen.py: a group MOVE between two groups that lay their COMP-1 / COMP-2 / COMP-5 items alike (same size, same offsets, sizes and usages, no OCCURS) is now translated as a byte copy. A copy keeps each number's bytes where they were, so HFP versus IEEE and big- versus little-endian do not matter, and the oracle can compare it.
  • tests/cobol_mainframe/test_det_number_group_copy_7646.py (new): two synthetic programs (COMP-2/COMP-1/COMP-5 beside X(2) with a REDEFINES group copied back and forth; S9(4)/S9(9)/9(18) COMP-5). The port prints cobc's lines (pinned, and re-checked against GnuCOBOL under EQUIVALENCE_E2E=1). Nine refused shapes, each under zos_comp5 False and True, assert one named hole citing C6.
  • register/C6.md: states what is now translated and what stays refused.

Evidence

  • Translated: 2 synthetic programs whole; refused: 9 shapes x 2 modes, all by name (C6 FLOAT_BYTES).
  • Executed-equivalent: the new test, 2 programs, 0 diffs against GnuCOBOL.
  • det_port.py check over every case: 269/269 ports unchanged, so no burned program depended on this.
  • pr_gates --fast 9/9, --ratchets 9/9.
  • Assumption relied on: group MOVE is an alphanumeric byte copy (IBM and GnuCOBOL agree). Oracle is GnuCOBOL, not z/OS.

Class / Sibling gaps

Class: byte uses of a COMP-1/COMP-2/COMP-5 item through an overlapping item (REDEFINES, group MOVE, reference modification, record bytes).

  • Handled: group-to-group MOVE laid out alike (this PR); COMP-5 REDEFINES and byte views under zos_comp5=True (slice 2).
  • Refused by name (HFP bytes cannot be compared with the IEEE oracle): an X or DISPLAY item REDEFINES over a float; a group moved to a differently laid group or to X; reference modification over a float; a record or file read as bytes; level 88 on an overlaid float.
  • Not touched: the slice 5 default flip, and the SQLCA / COMMAREA / BY REFERENCE COMP-5 items already named in C7.
  • Burned-estate need: none known; no burned port changed.

Remaining slices: the refused shapes above, if a program needs one; slice 5 (default flip).

Facts checked: det_port.py check 269/269 unchanged on this head. Not checked: whether any non-burned estate program uses these shapes (out of scope by policy).

Lessons for agents

  • det_port.py check takes over 10 min: run it in the background with a long timeout, not timeout 590 (it was killed at 590 s once).
  • pr_gates warns the shared venv's ruff is not the CI pin but uses a cached 0.17.2 anyway; a ruff picked by hand from ~/.cache/gitgalaxy/ may be the wrong version.

🤖 Generated with Claude Code

…ranslated; other byte views stay refused (Part of #7646)

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 5, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 5, 2026 07:25
@squid-shepherd

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 5, 2026 07:25
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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