Skip to content

equivalence: tranadd fractional amounts at, above and below half (Part of #5401) - #5840

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5401-20261021T0724Z
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5401-20261021T0724Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5401. Checklist: partial [c:9c764f86] -- report d2fca7d77a (fractional date part, blocked on the GnuCOBOL/IBM float-store difference, C6) and billpay 868815f4c6 / 29f0e18174 (large balances)

What

COTRN02C moves NUMVAL-C of the amount into S9(9)V99; the port truncates (RoundingMode.DOWN). Every tranadd amount had cents below .50, so a HALF_UP mutant of the integer part survived. tranadd gains four scenarios: amount-fraction-above-half (.75), -at-half (.50), -nines (.99), amount-negative-fraction-above-half.

Evidence

  • equivalence.py run carddemo-tranadd --record: proven on 78 scenarios, 72/75 branches (java-facade); det sweep of the case proven on 78 (det_coverage_ledger.py update).
  • Re-run of the same mutation sample (seed 0, 100): 35957e9be4 and 77da652333 killed (BDM, Cotrn02cService.java:603/604). Scores not recorded.
  • test_carddemo_fractional_5401.py (pure JSON): cents below/at/above half, both signs, valid format.
  • Gates: pr_gates --fast 7/7, --ratchets 8/8, test_evidence.py and the tree-wide guards pass. No engine change, no golden bless.

Class table (rounding with a fractional value)

member status
tranadd amount (35957e9be4, 77da652333) killed here
tranadd b319e8ae74, 5cd582556a; billpay 3e8fa7fe46 equivalent (value already at scale 2)
report d2fca7d77a (unsignedDigits HALF_UP) open: a .9 date part kills it on the model port, but GnuCOBOL truncates NUMVAL-C into PIC 99 while IBM rounds a float-mode store (register C6, RT-HFP-FLOAT-STATEMENT-STORE); the det port follows IBM, so the det sweep of carddemo-report fails. Scenario not committed. Burned program: CORPT00C
billpay 868815f4c6, 29f0e18174 open, different mechanism (balance >= 1,000,000.00 needs a new account in the dataset). Burned program: COBIL00C

Lessons for agents

  • A fractional NUMVAL-C store into a fixed PIC is a known oracle/IBM difference (C6): a case scenario for it passes equivalence.py run on the model port but fails proof_sweep.py --det-only. Run the det sweep of a case before committing a scenario that stores a float-mode value.

🤖 Generated with Claude Code

…lf (Part of #5401)

COTRN02C truncates NUMVAL-C of the amount into S9(9)V99; every case amount had cents below .50, so a HALF_UP mutant of the integer part survived. Four scenarios (.75, .50, .99, negative .75) kill 35957e9be4 and 77da652333. Report d2fca7d77a is left: a fractional date part is not provable (GnuCOBOL truncates, IBM rounds a float-mode store, C6).

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:05
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 08:05
@squid-protocol
squid-protocol merged commit 1ab2143 into main Oct 21, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the churn/5401-20261021T0724Z branch October 21, 2026 08:31
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