Skip to content

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

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5401-20261022T1411Z
Oct 22, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5401-20261022T1411Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5401.

Checklist: partial [c:9c764f86] -- report d2fca7d77a (fractional date part: GnuCOBOL truncates, IBM rounds a float-mode store, register C6; needs an owner ruling)

What

billpay (COBIL00C) pays the whole balance: MOVE ACCT-CURR-BAL S9(10)V99 -> TRAN-AMT S9(9)V99, then REWRITE balance minus amount. Every CardDemo account is below 1,000,000.00, so no scenario showed a wide amount or the tenth integer digit the MOVE drops. Two synthetic accounts are appended to the case's own datasets (acctdata-5401.txt, cardxref-5401.txt, the acctview append pattern) with two scenarios: pay-balance-over-one-million (1,234,567.89) and pay-balance-ten-integer-digits (1,234,567,890.12, TRAN-AMT keeps 234,567,890.12).

Class table (wide / fractional amounts that a PIC target truncates)

member status
tranadd 35957e9be4, 77da652333 killed (#5840)
billpay 868815f4c6, 29f0e18174 judged on the pre-#5844 port (store() counted total digits); ids gone. Their current-port equivalents (84cb7729f6, 95f2f0cf57, scale 3) change only the scale of a value the setter writes at scale 2: equivalent, not case gaps
billpay d5264128d1 (store(bal,10,2)) killed by the new ten-integer-digit scenario (mutation.py --only, seed 0)
billpay 2f50a14acd (store(..,11,2)) survives, unreachable (balance minus amount is at most 1,000,000,000.00)
report d2fca7d77a open, C6, owner call

Evidence

  • equivalence.py run carddemo-billpay --record: proven on 35 scenarios, 16/16 paragraphs, 46/48 branches; GnuCOBOL and the port agree on both new scenarios.
  • det port: det_port.py run carddemo-billpay 190/190 translated, PROVED; det_coverage_ledger.py update.
  • det-mutation ledger re-run (det_mutation.py run carddemo-billpay, 150 mutants, seed 0): 96 killed, 51 survivors all accounted, L5 yes.
  • pr_gates.py --fast 7/7, --ratchets 9/9; test_evidence.py, tree-wide guards, new test pass (plain pytest from /tmp).
  • mutation_scores.json not edited and the scores are not re-run; the doc paragraph says so.

Mutation-judging note for reviewers: the two survivors in mutation_scores.json are stale ids; the doc paragraph records the re-judgement.

Lessons for agents

  • mutation.py run --only DIR needs DIR/mutation.json whose results carry both id and verdict; mutant ids change when the port changes, so re-list (mutation.py list) before judging an id from mutation_scores.json.
  • git stash is in the shared stack: a stray one in a worktree stashes tracked edits only; restore with git stash apply <sha> and drop by sha.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 22, 2026 10:23
…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 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 22, 2026 14:41
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 14:45
@squid-protocol
squid-protocol merged commit 1f1f692 into main Oct 22, 2026
49 checks passed
@squid-protocol
squid-protocol deleted the churn/5401-20261022T1411Z branch October 22, 2026 14:54
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