Repository navigation
equivalence: carddemo-signon/billpay/report-generated -- RECEIVE MAP typed from BMS (Part of #4506) - #5844
Conversation
…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]>
|
No description provided. |
|
No description provided. |
|
PR #5844 @ 771ba68: 1 failed check(s) == ground-truth part 2/2 (failure) -- real |
…survivors skipped (Part of #4506) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (184e905) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
…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]>
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_fromthe hand-written case, with hand-written scenarios kept only where they carry a fault, clock or COMMAREA length (each with awhy).@generate, ids pinned so the fault scenarios fire@generate, keys agree; balances include a >99,999,999.99 onePlan 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.jsonre-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 --fast7/7,--ratchets8/8,audit_check.pyclear,test_equivalence_bms_inputs_4506.py50 passed,test_evidence.py38 passed,test_det_sweep_fast.pypassed; 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
valueslist 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".@bmsreplaces itsemptyshare: putemptyon the field rule, or the "empty" EVALUATE branches never fire.Cross-repo: none.
🤖 Generated with Claude Code