Skip to content

C2: probe the 31+ digit intermediate on the oracle (Part of #4702) - #5502

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4702-20261018T1643Z
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4702-20261018T1643Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

register/C2.md said the 30-digit intermediate cap was "not measured". Measured on the pinned image gitgalaxy-gnucobol:3 (GnuCOBOL 3.1.2, cobc -x -std=ibm), A and B PIC 9(18) = 999999999999999999 (A * B is 36 digits):

R1=999999999999999999   (A * B / A)
S1=07                   (A * B / (A * B) * 7, S PIC 9(2))
R2=999999999999999999   (A * B / A * T / T, T=10)
R3=999999999999999999   (A + B) * T / (T * 2)

All exact: the oracle applies no cap and no warning. IBM ARITH(COMPAT) truncates the 36-digit product to 30 digits, so this is a declared difference (status stays DIFFERS). Pinned by tests/cobol_mainframe/test_oracle_intermediate_cap.py (Docker-gated, EQUIVALENCE_E2E=1). "To settle" now leaves only the z/OS side (Part 2, blocked).

Burned estates: none reaches a 31+ digit intermediate (per the entry's det sweep), so no proof is affected.

Gates

register.py --check ok; audit_check.py all clear; new test passes with plain pytest from /tmp.

Sibling gaps

None new in a burned estate. C5 (ARITH(EXTEND) stop) already covered; z/OS side of C2 is Part 2.

Checklist: done [c:a6529073]

🤖 Generated with Claude Code

… difference (Part of #4702)

cobc -std=ibm keeps a 36-digit A * B whole; IBM ARITH(COMPAT) truncates to 30.
Probe output quoted in the register entry and pinned by a Docker-gated test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@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 18, 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 18, 2026 16:48
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 16:51
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit df74087 into main Oct 18, 2026
49 checks passed
@squid-protocol
squid-protocol deleted the churn/4702-20261018T1643Z branch October 18, 2026 17:06
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