Skip to content

det: a numeric REDEFINES view of a POINTER is a hole, not arithmetic on a handle (Part of #4771) - #5301

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

squid-protocol merged 3 commits into
mainfrom
churn/4771-20261017T0421Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

  • ZECS001 adds to / moves a PIC S9(8) COMP item that REDEFINES a POINTER; the lane holds an 8-byte block handle there, so the translation did integer arithmetic on a handle without saying so. Statements naming such a view are now refused by name; INITIALIZE of the whole group still moves as bytes.
  • Register X47 records why pointer arithmetic and ADDRESS OF a WORKING-STORAGE item are not lifted.
  • Plan changed: the planned offset-pointer design is infeasible (immutable Field/Storage, Storage.bytes read at ~129 sites; needs a windowed Storage and a 4- vs 8-byte pointer decision).

Evidence

ZECS001 translates 543/561 (was 548, the 5 newly refused are the overlay ADD/MOVEs at lines 1111, 1115, 1147, 1400, 1519). det_port.py check: 118/118 ports unchanged. pr_gates --fast 6/6, --ratchets 8/8; pointer-lane tests 15 pass. Golden masters untouched. Not run: full test suite; field_testing.json not updated.

Sibling gaps

Offset aliasing and ADDRESS OF ZF-DATA (ZECS001, zECS); CALL ZUIDSTCK refused permanently; ZC##FILE template for ZECS000/003 belongs to #4767.

🤖 Generated with Claude Code

…on a handle (Part of #4771)

ZECS001 adds to and moves a PIC S9(8) COMP item that REDEFINES a POINTER.
The lane stores an 8-byte block handle there, so the translation silently did
integer arithmetic on a handle. Statements naming such a view are now refused
by name (INITIALIZE of the whole group still moves as bytes). Offset aliasing
needs a windowed Storage and is recorded in register X47 as not lifted.

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 04:38
@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 04:40
@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

PR #5301 @ 9242fda: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39003340547/job/117312950569
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {1e96a024-d3d6-4431-8ee9-ac0d6b2f569e}
Region: westus2
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: ground-truth
##[group]Run echo "ground-truth parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE)"
echo "ground-truth parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
MODE: full
##[endgroup]
ground-truth parts: failure (tested-tree skip: , plan mode: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39003340547/job/117310838792
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/cobol_mainframe/test_det_whole_programs_4270.py::test_set_pointer_to_null_translates
errors:
fail-on-cache-miss: false
E AssertionError: ['line 25: MOVE P2-X: a REDEFINES overlays a POINTER with it (pointer arithmetic is not modelled)', 'line 26: DISPLAY ...s not modelled)', 'line 28: DISPLAY P2-X: a REDEFINES overlays a POINTER with it (pointer arith
tests/cobol_mainframe/test_det_whole_programs_4270.py:77: AssertionError
FAILED tests/cobol_mainframe/test_det_whole_programs_4270.py::test_set_pointer_to_null_translates - AssertionError: ['line 25: MOVE P2-X: a REDEFINES overlays a POINTER with it (pointer arithmetic is not modelled)', 'line 26: DISPLAY ...s n
##[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-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 134997
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 79cceccafc8edc785fb39dba13cf740522855d38e58079c62c479e0affa708ac
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12090306118
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 134997 bytes. Artifact ID is 12090306118
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39003340547/artifacts/12090306118
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/1cdbd21e-b4c9-4957-b756-cb6584b8dfb4' 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
squid-protocol and others added 2 commits October 17, 2026 00:57
…w is a hole (Part of #4771)

test_set_pointer_to_null_translates moves ALL 'K' to a PIC X(8) item that
REDEFINES a POINTER; the pointer_views refusal turned that into holes. Only
a view with a numeric item (or a numeric field under a group view) computes
on handle bytes.

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 (9d39ec9) 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.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 05:05
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 0457bbc into main Oct 17, 2026
53 checks passed
@squid-protocol
squid-protocol deleted the churn/4771-20261017T0421Z branch October 17, 2026 05:26
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