Skip to content

equivalence: BNK1CRA on generated Db2 rows (Part of #4507) - #5555

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4507-20261019T0126Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4507-20261019T0126Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4507.

Checklist: partial [c:a7f4b905] -- bnk1tfn (blocked, below), bnk1cac, bnk1cca, bnk1ccs, bnk1dac, bnk1uac; creacc and delcus are the same shape.

What

cbsa-bnk1cra-generated: the credit / debit screen BNK1CRA (LINKs DBCRFUN) on 30 generated ACCOUNT rows (@generate, compare_sql) instead of the hand seed.sql. 40 generated ENTER / PF3 / PA1 scenarios type an account number drawn from the generated rows (15% a number no row holds), a sign and an amount; the non-ENTER keys and MAPFAIL stay stated. port_from: cbsa-bnk1cra. The other cases in the item (delacc, inqacccu, acctctrl, crecust, xfrfun, dbcrfun) had already merged (#5496, #5510, #5519, #5537, #5542).

Evidence (Docker proof, GnuCOBOL + real Db2 vs the Java port)

  • translated: whole; executed-equivalent: 50 scenarios, 0 diffs; ACCOUNT and PROCTRAN alike after every task; SQL outcomes equal per statement.
  • coverage: 28/28 paragraphs, 43/67 branches (ledger det_sweep_coverage/cbsa-bnk1cra-generated.json).
  • Assumption: oracle is GnuCOBOL plus our stub, not z/OS. Amounts are IEEE/HFP-exact values (register C6): a first draft with 0.01 differed (COMP-2), so it is not used.
  • No mutation run yet (a separate item on the issue).

Not done: BNK1TFN

cbsa-bnk1tfn-generated ran clean on COBOL vs Java, but the deployed-entry-point (facade) check refuses it: BNK1TFN RETURNs LENGTH(29) from the 28-byte WS-COMMAREA, so the forge's returned(Bnk1tfnWsCommarea) gets a byte[]. That is a forge/facade defect, outside this slice; not committed.

Sibling gaps

All CBSA (burned): bnk1tfn (blocked on the facade defect above; needs XFRFUN-side handleTransaction to answer Object), bnk1dac, bnk1uac, bnk1cac (CONTROL table), bnk1cca, bnk1ccs (83 scenarios, customer datasets), creacc, delcus.

Gates

pr_gates --fast 6/6; EQUIVALENCE_E2E=1 test test_the_bnk1cra_screen_holds_on_generated_db2_rows; proof_sweep --det-only PROVED.

Lessons for agents

  • A generated screen amount goes through NUMVAL into COMP-2: use binary-exact values (.25, .5, .75), never 0.01 (C6).
  • A screen whose RETURN LENGTH exceeds its WS-COMMAREA DTO (BNK1TFN: 29 vs 28) fails the facade check with "RETURNed a [B": needs a forge change, not a case change.

🤖 Generated with Claude Code

cbsa-bnk1cra-generated: 30 generated ACCOUNT rows, 40 generated screen scenarios whose typed
account number is drawn from them (some a number no row holds), compare_sql on. Proved on
50 scenarios, 28/28 paragraphs, 43/67 branches. Amounts are binary-exact (C6): 0.01 through
COMP-2 differed on the oracle and Java sides.

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 19, 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 19, 2026 01:41
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 01:51
@squid-protocol
squid-protocol merged commit 67e028a into main Oct 19, 2026
47 checks passed
@squid-protocol
squid-protocol deleted the churn/4507-20261019T0126Z branch October 19, 2026 01:53
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