Skip to content

equivalence: carddemo-signon/billpay/report-generated -- RECEIVE MAP typed from BMS (Part of #4506) - #5844

Merged
squid-protocol merged 3 commits into
mainfrom
churn/4506-20261021T0827Z
Oct 21, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/4506-20261021T0827Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4506 (slice 2: BMS maps support in the equivalence harness).

Checklist: done [c:a0dccb01]

What changed

Three cases move their hand-written RECEIVE MAP input to @bms (typed from the BMS source), following carddemo-menu-generated and adminmenu-generated (#5833). Each is <name>-generated, port_from the hand-written case, with hand-written scenarios kept only where they carry a fault, clock or COMMAREA length (each with a why).

Case Map Generated Datasets Det proof
carddemo-signon-generated COSGN0A 30 (ENTER, PF3, PF7) USRSEC @generate, ids pinned so the fault scenarios fire proven, 38 scenarios, 6/6 paragraphs, 16/17 branches (hand-written: 17/17)
carddemo-billpay-generated COBIL0A 30 (ENTER, PF3, PF4, PF5) ACCTDATA, CARDXREF, TRANSACT @generate, keys agree; balances include a >99,999,999.99 one proven, 50 scenarios, 16/16, 41/48 branches (hand-written: 46/48)
carddemo-report-generated CORPT0A 30 (ENTER, PF3, PF5) none proven, 47 scenarios, 10/10, 45/59 branches (hand-written: 52/59)

Plan deviation: @case/... cannot reference a sibling case's files, so signon and billpay generate their datasets instead of reusing the hand-written ones. Hand-written scenarios stay in the hand-written cases, which still pass (billpay 46/48, signon, report).

Port defect found and fixed (carddemo-billpay)

Cobil00cService.store(v, digits, scale) reduced the unscaled value mod 10^digits, so it dropped the scale: S9(09)V99 (11 digits) kept 9. A balance of +0798929100.87 wrote TRAN-AMT 8929100.87 and ACCT-CURR-BAL 90000000.00 in Java; GnuCOBOL writes 798929100.87 and 0.00. The hand-written case never reached a balance over 99,999,999.99. Fix: 10^(digits + scale). evidence.json re-proved (evidence.py prove carddemo-billpay).

Evidence levels

Translated: det-port whole (190/190, 247/247 for billpay and report). Executed-equivalent: signon 38, billpay 50, report 47 scenarios, no diffs. Residual risk: branch coverage below the hand-written cases (listed above); the oracle is GnuCOBOL plus our stub, not z/OS.

Gates

pr_gates --fast 7/7, --ratchets 8/8, audit_check.py clear, test_equivalence_bms_inputs_4506.py 50 passed, test_evidence.py 38 passed, test_det_sweep_fast.py passed; det sweep of the three cases proven, coverage ledger and durations updated. No engine change, so no golden bless.

Sibling gaps

Burned-estate cases with receive: and no @bms: carddemo acctupdate, cardlist, cardupdate, cotrtupc, tranadd, tranlist, userlist; cbsa-bnk1dcs, bnkmenu; genapp-lgtest*; mortgage-cmort.

Lessons for agents

  • A generated values list is indexed by row, so row 0 is the first value: pin the ids the hand-written fault scenarios use (account 00000000001, ADMIN001, USER0003) as the first values, or every fault run reports "faults fired differ or none fired".
  • A field rule beside @bms replaces its empty share: put empty on the field rule, or the "empty" EVALUATE branches never fire.

Cross-repo: none.

🤖 Generated with Claude Code

…MAP typed from BMS (Part of #4506)

Three generated cases (port_from the hand-written ones). Billpay port fix: store() kept the low
`digits` of the unscaled value, dropping the scale (S9(09)V99 is 11 digits), so a balance above
99,999,999.99 lost high digits in TRAN-AMT and ACCT-CURR-BAL; COBOL keeps them.

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 21, 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 21, 2026 08:54
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 08:57
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5844 @ 771ba68: 1 failed check(s)

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39572769898/job/119132148370
repro: python -m pytest -q tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach
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
tests/cobol_mainframe/test_proof_reach.py:320: 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 - assert (89 == 91)
##[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: b59da68cf60fd671dc8b8963737ef623830d9002ea4e496ec3ee7e7b983c7729
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-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 104825
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 4762fbb351f09054c7a8f4759a16168ca805c9c9f27724abeb472dbebbd31133
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 12332988449
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 104825 bytes. Artifact ID is 12332988449
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39572769898/artifacts/12332988449
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/50d5e9df-c988-4fbc-b174-f60fa545cff7' 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 21, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (184e905) 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 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 09:19
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit c01d313 into main Oct 21, 2026
34 checks passed
@squid-protocol
squid-protocol deleted the churn/4506-20261021T0827Z branch October 21, 2026 09:57
squid-protocol added a commit that referenced this pull request Oct 22, 2026
…integer digits (Part of #5401) (#6017)

* equivalence: billpay pays a balance above one million and one of ten integer digits (Part of #5401)

COTRN02C-style truncation on COBIL00C: no account reached a wide amount or the tenth integer digit TRAN-AMT drops. Two synthetic accounts (appended) and two scenarios; GnuCOBOL and the port agree. The two survivors named in the issue were judged on the pre-#5844 port and are equivalent on the current one.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* det-mutation: billpay ledger re-run after the wide-balance scenarios, COBIL00C L5 (Part of #5401)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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