Skip to content

det: refuse COMP-5 byte observation by name (Part of #4271) - #5316

Merged
squid-protocol merged 3 commits into
mainfrom
churn/4271-20261017T0658Z
Oct 17, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/4271-20261017T0658Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4271 (COMP-5 byte order, register C7). The HFP, NUMPROC, TRUNC(OPT) items are already on main.

What

A COMP-5 item of 2+ bytes whose bytes are observed (a group used whole, a REDEFINES by a non-COMP-5 item, a reference modification, an 88 on such a group) is now a Hole citing C7, instead of being proven on the oracle's little-endian order. Reuses the COMP-1/2 extent guard (Gen.overlaps_float, new comp5_extents). Numeric uses unchanged. The SQLCA record is exempt: the SQL lane hands the whole group to DetSql, which sets fields as numbers (without the exemption 44 Db2 ports moved).

Class table

member status
group MOVE / compare / 88 over COMP-5 refused (test)
REDEFINES by non-COMP-5 (4, 8 byte, table) refused (test)
reference modification refused (test)
numeric read/write, COMP-5 REDEFINES COMP-5 translated (test)
SQLCA MOVEd as bytes sibling gap
CALL argument / COMMAREA / record write not via the uses above sibling gap

Evidence

  • det_port.py check: 119/119 ports unchanged (so no burned program observes COMP-5 bytes; no re-proof, no golden or ledger move).
  • pr_gates --fast 6/6, --ratchets 8/8 pass. det tests: 115 passed, 128 skipped (Docker/GnuCOBOL e2e cells not run locally).

Cross-repo

None.

Not in this PR

Float ** in EPSMPMT (mortgage-mpmt, -csmrt, -cmort stay in the baseline) needs z/OS captures (#4050). ARITH(EXTEND), INTDATE(LILIAN) stay refused; no burned program needs them.

🤖 Generated with Claude Code

…OS big-endian) (Part of #4271)

A group use, REDEFINES by a non-COMP-5 item, or reference modification that
observes a COMP-5 item's bytes is a Hole citing register C7, through the same
extent guard COMP-1/COMP-2 use. Numeric uses are unchanged; the SQLCA is exempt.
det_port.py check: 119 of 119 ports unchanged.

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 17, 2026
@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 marked this pull request as ready for review October 17, 2026 07:17
@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 07:18
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5316 @ 52bc0d9: 1 failed check(s)

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39013093314/job/117339769528
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[L-BIN] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[L-STD] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[LS-BIN] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[LS-STD] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[T-BIN] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[T-STD] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[TS-BIN] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[TS-STD] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[U-BIN] tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[U-STD]
errors:
fail-on-cache-miss: false
E AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...its bytes hold UPKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_a
tests/cobol_mainframe/test_det_nondigit_binary.py:146: AssertionError
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[TS-BIN] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...i
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[LS-STD] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...i
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[LS-BIN] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...i
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[U-STD] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...it
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[U-BIN] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...it
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[T-STD] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...it
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[T-BIN] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...it
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[L-STD] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...it
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[L-BIN] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...it
FAILED tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[TS-STD] - AssertionError: ['line 52: MOVE PK: its bytes hold PKN COMP-5 (COMP-5 is little-endian on the oracle, big-endian on z/OS: oracle_assum...i
##[error]Process completed with exit code 1.
log tail:
archive: true
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
PYTHONUTF8: 1
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 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 8209
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 0787f5d6b28f1aacac769370a9b747ddce83490d5b3b2e9b6fd88202c234b400
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 12093342729
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 8209 bytes. Artifact ID is 12093342729
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39013093314/artifacts/12093342729
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/b78cabd5-a29d-4039-aa33-b31ef5153440' 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-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 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 2 commits October 17, 2026 04:21
…reads are refused, C7) (Part of #4271)

The test read packed bytes through a COMP-5 REDEFINES, which the new C7 refusal rejects.
A big-endian COMP redefine reads the same bytes with no oracle/z/OS difference; the
expected lines were regenerated from cobc (only the PK / UPK lines moved).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (4d0ed3b) 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 17, 2026
@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