Skip to content

equivalence: BNK1TFN on generated Db2 rows (Part of #4507) - #5703

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4507-20261020T0734Z
Oct 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4507-20261020T0734Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

cbsa-bnk1tfn-generated: CBSA's transfer-funds screen (BNK1TFN -> XFRFUN, ABNDPROC) on Db2 rows generated from CRETB01's DDL instead of a hand-written seed.sql. 30 ACCOUNT rows (boundary values, NULLs, a quarter under another sort code); PROCTRAN starts empty (CRETB02 declares no foreign key on it, so no multi-table FK generation is needed). 40 generated ENTERs draw FROM/TO account numbers from the rows (10% a number no row holds). Stated scenarios keep the non-ENTER keys, MAPFAIL and the row-independent input checks.

Evidence (det_port.py run, Docker Db2 + GnuCOBOL, JDK 17)

  • Translated 788/788, refused none; PROVED, java-facade leg also proved.
  • 64 scenarios equal; 40 generated tasks, 40/40 SQL logs equal, 20 with statements; SQLCODEs 0, +100, -180; verbs SELECT, UPDATE, INSERT; ACCOUNT and PROCTRAN compared after every task.
  • Coverage: 28/28 paragraphs, 56/72 branches (BNK1TFN); ledger entry det_sweep_coverage/cbsa-bnk1tfn-generated.json written from the sweep.
  • Gates: pr_gates --fast 6/6, --ratchets all PASS, tree-wide guards + test_equivalence_db2_rows.py pass (E2E test skipped without EQUIVALENCE_E2E=1).

Finding (not masked)

BNK1TFN moves the typed amount through a COMP-2 (WS-AMOUNT-AS-FLOAT, line 494). On a first run, generated amounts 12.34, 9999999999.99 and 0.01 DIFFERED: GnuCOBOL and the det port move a non-exact double into the 2-decimal field differently (12.34: balance off by 0.01; 0.01: GnuCOBOL read it as not greater than zero). Which is IBM-correct is not settled here. This case therefore draws only amounts a double holds exactly (100.50, 0.25, 2500.50, ...); the case notes say so. xfrfun-generated covers the amount range directly through the COMMAREA.

Class table (burned CBSA Db2 cases on seed.sql)

member status
acctctrl, delacc, inqacccu, crecust, xfrfun, dbcrfun, bnk1cca/cra/dac/uac generated already (earlier PRs)
bnk1tfn this PR
bnk1cac (ACCOUNT, PROCTRAN, CONTROL) left
bnk1ccs (PROCTRAN, LINKs CRECUST) left
bnk1dcs no Db2, n/a

Checklist: partial [c:a7f4b905] -- bnk1cac, bnk1ccs

Cross-repo: none (no engine change, no golden re-bless).

Lessons for agents

  • A generated screen case that types an amount into a COMP-2 field exposes GnuCOBOL-vs-port double-to-decimal MOVE differences; check the first run's DIFFERS before assuming the generator is wrong.

🤖 Generated with Claude Code

cbsa-bnk1tfn-generated: 30 ACCOUNT rows generated from CRETB01, PROCTRAN empty, 40 generated
transfers (account numbers drawn from the rows, some misses), SQLCODEs and tables compared.
Proven on 64 scenarios, 28/28 paragraphs, 56/72 branches.

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 20, 2026 07:49
@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 07:54
@squid-protocol
squid-protocol merged commit 41589ff into main Oct 20, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the churn/4507-20261020T0734Z branch October 20, 2026 07:56
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