Skip to content

det: ARITH(EXTEND) modelled -- an intermediate past 30 digits stops by name (Part of #4706) - #5340

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4706-20261017T1241Z
Oct 17, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4706-20261017T1241Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4706.

What

Next unchecked item of the option table: ARITH(EXTEND) goes from "refused by name" to "modelled, like TRUNC(OPT)".
EXTEND differs from COMPAT only for an intermediate past 30 digits (31 instead) and float precision.

  • Oracle: COBC_OPTIONS[("ARITH","EXTEND")] compiles it with the COMPAT flags (GnuCOBOL caps neither, C2).
  • det runtime: Codec.arithExtend / Cobol.swapArithExtend; add/subtract/multiply/divide stop by name when the result passes 30 digits (rules RT-NUM-ARITH-EXTEND-STOP, RT-CBL-ARITH-PER-PROGRAM; catalogue check passes).
  • Translator: with_trunc(..., extend=True) swaps it on per entry and restores it; under EXTEND gen.py routes + - * (expressions and ADD/SUBTRACT/MULTIPLY) through Cobol.* (wide_op) so the stop sees them. Float under EXTEND stays refused (Untranslatable).
  • Declared difference: a port without the stop (model/generated) is proven as COMPAT, recorded by option_differences.
  • Docs: C5 (status, table row, new section), C2, C6, definition_of_done.
  • Tests: new tests/cobol_mainframe/test_arith_extend.py (oracle flags, declared difference, translator emission, JDK runtime: within 30 digits equals COMPAT, past 30 stops by name for *, MULTIPLY GIVING, chained); _java_run(arith_extend=); test_regional_options no longer lists EXTEND as refused.
  • Crucible ports: PCCONF/PCIMMA overlay runtime copies updated (PCIMMA: only this change's hunks, its overlay lags main); PCCONF, PCWIZ, PCIMMA/B/L/S re-proven and evidence records refreshed.

Burned-estate reach

Among the burned estates only DBB epscsmrd.cbl carries PROCESS ARITH(EXTEND); no committed case ports it, so no case port's service changed. det_port.py check: 120/120 ports differ only in the shared cobolrt/Cobol.java runtime (as for any runtime change). No burned program uses INTDATE(LILIAN), ZONEDATA, INVDATA, DISPSIGN, NSYMBOL(DBCS), FLOAT(NATIVE), SSRANGE or NUMCHECK.

Plan changes

The plan was partly redundant: arith_extend() and the float refusal already existed. Real gaps were the oracle refusal, the runtime stop, the declared difference, and a generator path that emitted raw BigDecimal.multiply (found by the first runtime test).

Gates

  • pr_gates --fast: 6/6 pass; --ratchets: 8/8 pass
  • pytest tests/cobol_mainframe tests/cics_crucible: 5621 passed, 3 failed before the fixes in this PR (EXTEND refusal test, evidence/provenance currency); those three files re-run green after.
  • Golden masters not re-blessed: no parsing logic touched.
  • Not run: Docker oracle comparison (EQUIVALENCE_E2E); re-proving the 120 estate ports (runtime-only change; scheduled job).

Sibling gaps (no burned program needs them)

INTDATE(LILIAN), ZONEDATA/INVDATA, DISPSIGN(SEP), NSYMBOL(DBCS), FLOAT(NATIVE), SSRANGE/NUMCHECK checks (owner decisions), ARITH(EXTEND) floats, intrinsic-mode (intr) + - * under EXTEND.

Lessons for agents

  • A cobolrt runtime change needs the tests/cics_crucible/ports/*/overlay/cobolrt copies of ports that carry one; copy only your own hunks if the overlay lags main (PCIMMA did: a wholesale copy broke its re-proof).
  • crucible_port_provenance.py reprove without --cases rewrites every provenance.json; pass --cases.
  • The det generator emits raw BigDecimal.add/multiply in many places; a runtime guard on Cobol.* alone sees none of them.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 17, 2026 08:52
…y name (Part of #4706)

The oracle compiles ARITH(EXTEND) as COMPAT; the det runtime stops by name where an add, subtract,
multiply or divide would produce more than 30 digits (RT-NUM-ARITH-EXTEND-STOP), and a port without
the stop is a declared difference (option_differences). Floats under EXTEND stay refused.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… ports; EXTEND is no longer refused (Part of #4706)

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.

@squid-protocol
squid-protocol marked this pull request as ready for review October 17, 2026 14:02
@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 14:03
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5340 @ dad77b6: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39039059897/job/117416765410
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: {427c6222-440b-430b-bec5-eb5187164d57}
Region: westus3
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) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/39039059897/job/117415165836
repro: stale base (main changed these tests since this branch): git merge origin/main
failing tests: tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach
errors:
fail-on-cache-miss: false
E AssertionError: assert ({('crucible:ca-link-lengths', 'CALINK'), ('crucible:ca-link-lengths', 'CASUB'), ('crucible:ca-xctl-versions', 'CAXA'),...e:ca-xctl-versions', 'CAXB'), ('crucible:gt-start-retrieve', 'GTSTART'), ('crucible:gt-
tests/cobol_mainframe/test_proof_reach.py:271: AssertionError
FAILED tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach - AssertionError: assert ({('crucible:ca-link-lengths', 'CALINK'), ('crucible:ca-link-lengths', 'CASUB'), ('c
##[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 137959
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is b56490ab5ca72afbfa82427a2aa319bd724717b6aa8b53ae8a91efc29ffe9290
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12102779202
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 137959 bytes. Artifact ID is 12102779202
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39039059897/artifacts/12102779202
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/e33320cc-3181-4505-9585-918129bcdb37' 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

Copy link
Copy Markdown
Owner Author

PR #5340 @ dad77b6: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39039059897/job/117416765410
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: {427c6222-440b-430b-bec5-eb5187164d57}
Region: westus3
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) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/39039059897/job/117415165836
repro: stale base (main changed these tests since this branch): git merge origin/main
failing tests: tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach
errors:
fail-on-cache-miss: false
E AssertionError: assert ({('crucible:ca-link-lengths', 'CALINK'), ('crucible:ca-link-lengths', 'CASUB'), ('crucible:ca-xctl-versions', 'CAXA'),...e:ca-xctl-versions', 'CAXB'), ('crucible:gt-start-retrieve', 'GTSTART'), ('crucible:gt-
tests/cobol_mainframe/test_proof_reach.py:271: AssertionError
FAILED tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach - AssertionError: assert ({('crucible:ca-link-lengths', 'CALINK'), ('crucible:ca-link-lengths', 'CASUB'), ('c
##[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 137959
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is b56490ab5ca72afbfa82427a2aa319bd724717b6aa8b53ae8a91efc29ffe9290
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12102779202
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 137959 bytes. Artifact ID is 12102779202
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39039059897/artifacts/12102779202
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/e33320cc-3181-4505-9585-918129bcdb37' 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 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 (9c3dd44) 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:waiting-on-main Bot: the failing check fails on main too (main's to fix). 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 14:33
@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