Skip to content

det/CICS: pointer views advance the pointer (ZECS001 pointer arithmetic) (Part of #4771) - #5706

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4771-20261020T0748Z
Oct 20, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4771-20261020T0748Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4771 (tracked by #5042)

Checklist: partial [c:c25c63af] -- oracle-side equivalence of the pointer arithmetic (GnuCOBOL cannot prove it); ZUIDSTCK's source (CALL ZUIDSTCK is still refused by name, so ZECS001 stays not whole); ZECS001's run-time over-read of CACHE-MESSAGE past a short tail.

What changed

A pure numeric view of a POINTER (a PIC S9(n) BINARY item that REDEFINES the pointer, no children) now moves the pointer along its block instead of computing on handle bytes. Two idioms are lifted: ADD n TO view / SUBTRACT n FROM view (one operand, one target, no ROUNDED / SIZE ERROR) and MOVE view TO view. Everything else on a view still hits the existing "REDEFINES overlays a POINTER" refusal.

Design decision: pointers stay 8-byte handles in the port; the numeric view is never read as an address, only used to advance the pointer within its block.

  • det/program.py: pointer_view_of, and overlaid_pointers ignores pure views.
  • det/gen.py: view_pointer, pointer_view_statement (hooks at MOVE and ARITH).
  • DetCics.java: copyPointer, advancePointer (refuses a move outside the block).
  • X47.md: records the decision, the oracle caveat and the run-time refusals.
  • test_pointer_lane_4771.py: refusal list updated, pure-view generation tests, a javac runtime test, ZECS001 corpus test.

Class

Member Status
ADD/SUBTRACT n on a pointer view lifted
MOVE view TO view lifted
ADD GIVING, two operands, ROUNDED, SIZE ERROR, MULTIPLY, ADD view TO number still refused (tested)
Terminal RECEIVE SET, RETRIEVE SET, GET CONTAINER SET, file READ SET / READNEXT / READPREV, LOAD PROGRAM SET, GETMAIN64/FREEMAIN64 sibling gaps (#5042), no burned-estate program needs them yet

Evidence

Evidence level: translated, unit-proven on the port only. Not executed-equivalent: GnuCOBOL runs ADD n TO view as a big-endian read of the low half of a little-endian 8-byte address, so the oracle cannot prove it. ZECS001: 559 of 561 statements translate with the forge runTask stub; the only pointer hole is line 1244 (CALL ZUIDSTCK).

  • pr_gates --fast: 6/6 pass. pr_gates --ratchets: 8 pass, 0 fail, 0 skipped.
  • det_port.py check: 22 of 139 ports unchanged; the rest differ only by the 20-line DetCics.java runtime addition (no generated Java changed except ZECS001).
  • Pointer-lane + evidence tests: 67 passed via plain pytest from an unrelated cwd. Golden masters not touched (no engine parsing change).

Lessons for agents

  • tests/cics_crucible/ports overlay copies of DetCics.java are not synced to the runtime source; a new runtime method does not appear there.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 20, 2026 03:53
…BTRACT n, MOVE view TO view) (Part of #4771)

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 20, 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 20, 2026 08:06
@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 08:07
@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 #5706 @ 98f01ff: 3 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39391025345/job/118526490704
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261018.339.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261018.339/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261018.339
##[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 warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
# #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.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
# #5543: ... or when the layout needs no warm job (a cache hit on the scans, or the busy layout): the parts then warm for themselves
{ ok "$WARM" || { test "$WARM" = "skipped" && test "$PLANNED_WARM" = "false"; }; } && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: success
PARTS: failure
SKIP:
MODE: full
PLANNED_WARM: true
LAYOUT: calm
##[endgroup]
ground-truth warm: success, parts: failure (tested-tree skip: , plan mode: full, layout: calm, warm planned: true)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 1/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39391025345/job/118524643698
repro: python -m pytest -q tests/cobol_mainframe/test_pointer_lane_5042.py::test_a_set_into_a_pointer_a_redefines_overlays_is_a_hole
failing tests: tests/cobol_mainframe/test_pointer_lane_5042.py::test_a_set_into_a_pointer_a_redefines_overlays_is_a_hole
errors:
fail-on-cache-miss: false
E AssertionError: []
tests/cobol_mainframe/test_pointer_lane_5042.py:278: AssertionError
FAILED tests/cobol_mainframe/test_pointer_lane_5042.py::test_a_set_into_a_pointer_a_redefines_overlays_is_a_hole - AssertionError: []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 5856332376a6de156cbbccce0bca4e54c108f54b2d1068843e6b18eb29699c68
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 55388
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 99ba62ca22094180847e6fcd20760d93d7ef7c68fac5af9b69e7443b42f8ea0d
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12249917609
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 55388 bytes. Artifact ID is 12249917609
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39391025345/artifacts/12249917609
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/e728b1dc-e12b-4208-85f4-9049606d4276' 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

== ground-truth part 4/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39391025345/job/118524643710
repro: python -m pytest -q tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime
failing tests: tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime
errors:
fail-on-cache-miss: false
E AssertionError: assert ['cics/DetCic... its methods'] == []
tests/cobol_mainframe/test_cobolrt_rules.py:88: AssertionError
FAILED tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime - AssertionError: assert ['cics/DetCic... its methods'] == []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 5856332376a6de156cbbccce0bca4e54c108f54b2d1068843e6b18eb29699c68
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-4.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 56098
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7796a78df02420415557135bd9d4250d461171c6d0fd35cc57168bb7f9ffc9e9
Finalizing artifact upload
Artifact test-times-ground-truth-part-4 successfully finalized. Artifact ID 12249569162
Artifact test-times-ground-truth-part-4 has been successfully uploaded! Final size is 56098 bytes. Artifact ID is 12249569162
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39391025345/artifacts/12249569162
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/e8601e23-ab97-4e7e-bce8-a24b9de607de' 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 20, 2026
@squid-protocol squid-protocol added 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 20, 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 20, 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