Skip to content

det: model ALTER and the altered GO TO (Part of #5560) - #5568

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5560-alter
Oct 19, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5560-alter

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5560 (ALTER slice; docs/refusal-map remainder listed below).

What

ALTER p TO [PROCEED TO] q [p TO q]... is parsed (stmt._alter) and modelled through the paragraph dispatcher: each altered paragraph gets an int alt<i> slot initialised to the target its GO TO names; ALTER writes the slot (last wins), the paragraph's GO TO does return GOTO | alt<i>. GO TO, PERFORM THRU and fall-through reach it as any paragraph. Refused by name: altered paragraph not a lone GO TO without DEPENDING, ALTER of an undeclared paragraph. A bare GO TO. is accepted (GnuCOBOL -std=ibm accepts it) and throws a Hole at run time if reached before any ALTER. Independent segments are not modelled (no burned use).

Class

member status
ALTER p TO [PROCEED TO] q translated (ALTER1)
several ALTERs of one paragraph translated (ALTER1)
reached by GO TO / PERFORM / fall-through translated (ALTER1)
multi-pair ALTER translated (ALTER1)
bare GO TO. altered translated (ALTER2)
paragraph not a lone GO TO / undeclared refused by name (test)
independent segments not modelled, no burned use

Evidence

  • ALTER1 / ALTER2 equal GnuCOBOL -std=ibm in bytes/typed/groups (EQUIVALENCE_E2E=1, 9 passed).
  • CBSTM03A (det_survey): 424 statements, 419 translate, holes 9 -> 5 (all SET ADDRESS OF), port compiles.
  • det_port.py check: 131/131 ports unchanged (no burned program moves).
  • pr_gates --fast 6/6, --ratchets 8/8 pass.

Remaining slices

docs/language_status/definition_of_done.md (drop ALTER from refusal families), docs/language_status/refusal_map.json (alter entry), register entry with IBM's text (oracle_assumptions.md, generated branch). Cut by the 5-file limit.

Checklist: partial -- docs/refusal_map/register left (see Remaining slices)

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 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 19, 2026 03:34
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 03:46
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5568 @ dff4515: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39195321952/job/117879910375
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {6bce8222-235f-43b6-ad6e-fd5c477937df}
Region: westcentralus
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: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
##[endgroup]
full-suite parts: failure (tested-tree skip: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39195321952/job/117877143012
repro: python -m pytest -q tests
errors:
fail-on-cache-miss: false
FAIL tests/tools/test_evidence_report.py::test_the_release_gate_passes_the_published_non_live_report_and_fails_drift: 39.2s is over 2.5x its baseline 15.1s (make it faster, or mark it slow with a reason)
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 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
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 179297
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7b683006d16ee13d421a77ff258956c5e3158efaad22112a3e7e8c225a3e1ba4
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 12161961902
Artifact test-times-part-3 has been successfully uploaded! Final size is 179297 bytes. Artifact ID is 12161961902
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39195321952/artifacts/12161961902
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/f741ba52-6b6c-4bcb-b495-762eb32a468a' 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
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 19, 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 19, 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 19, 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