Repository navigation
Description
tests/tools/equivalence_db2.py already runs DB2 cases, but no table rows are generated (PR #4492's limits list). Generate rows from DDL/DCLGEN (column types, NOT NULL, keys, foreign keys), including NULLs, boundary values and missing or duplicate keys. Compare result sets, SQLCODEs and table state after the run.
Done when (each language): (1) the original runs in the harness (or its outputs are captured on z/OS via #4050); (2) inputs are generated from the language's declared data structures, like #3804 does for COBOL; (3) outputs are compared field by field and reported through #4493; (4) one real case proves, with coverage measured and a mutation run on the replacement. If (1) is impossible locally, say so and depend on #4050 instead of faking a runner.
Remaining slices (as of 2026-10-18)
Done so far: 3 merged PRs (#4577, #5305, #5393).
- Generated-Db2 CBSA siblings still on hand-written seed.sql: (a) single-table: delacc, inqacccu, acctctrl; (b) multi-table with PROCTRAN/CUSTOMER foreign keys: crecust, xfrfun, dbcrfun, bnk1*. Each with a Docker proof (SQLCODEs and table state compared, coverage measured); (b) needs multi-table FK generation. (2 PRs) (equivalence: drop stale cbsa-bnk1ccs exemption from the generated-sibling guard (Part of #4507) #5755)
- CardDemo Db2: cotrtlic and copaus2c as generated-row cases. (1 PR) (equivalence: CardDemo COTRTLIC and COPAUS2C on generated Db2 rows (Part of #4507) #5765)
- GenApp lg* (LGACDB01, LGAPDB01, ...) on generated multi-table rows with FKs. (1-2 PRs) (equivalence: GenApp LGACUS01 / LGUCUS01 customer front ends on generated rows with FKs (Part of #4507) #6046)
- (verify) DBB CMORT generated-row case. (1 PR) (equivalence: DBB CMORT generated-row item -- nothing to prove, pinned (Part of #4507) #6051)
- Mutation run on a generated Db2 case (equivalence: a generated batch input keys a generated Db2 table (Part of #4507) #5305/equivalence: cbsa-inqacc-generated proves INQACC on generated Db2 rows (Part of #4507) #5393 did not re-run it). Check: score in
mutation_scores.json. (1 PR) (mutation: score cbsa-updacc-generated, UPDACC on generated Db2 rows (Part of #4507) #6058) - Triage cbsa-updacc-generated survivors (97 of 133 caught) and COBTUPDT's 4 uncovered branches (line 84 never false; EVALUATE no-match at 151, 177, 207). (1 PR) (UPDACC -904 fault slice: det-translated case cbsa-updacc-faults (Part of #4507) #6101)
- (verify) Generator covers duplicate keys (boundaries, NULLs, unique keys shown in equivalence: cbsa-inqacc-generated proves INQACC on generated Db2 rows (Part of #4507) #5393). (audit 2026-10-18: Equivalence harness: Db2 rows generated from DDL, SQL outcomes and tables compared field by field (#4507) #4577, equivalence: cbsa-inqacc-generated proves INQACC on generated Db2 rows (Part of #4507) #5393)
Done when: the burned estates' Db2 batch and CICS programs run on rows generated from DDL/DCLGEN with SQLCODEs and table state compared, each with measured coverage and a mutation run (or "nothing to prove" where no burned case reads it).
Owner decision needed: none (optionally: cap the scope at one generated case per estate).
Drafted 2026-10-18 by a Sonnet triage pass from this issue, its comments and the bodies of its "Part of" PRs; (verify) items were not checked against main. Tick boxes as slices merge; edit freely.
Activity
WIP: batch side SQL outcomes, NULLs one column at a time (#4507)
WIP: Db2 evidence re-proven; det baseline for cbsa-updacc-generated (#…
Db2 evidence records re-proven after merging main (#4507)
Equivalence harness: Db2 rows generated from DDL, SQL outcomes and ta…
det sweep coverage ledger: carddemo-cobtupdt-generated (Part of #4507)
equivalence: a generated batch input keys a generated Db2 table (Part…
equivalence: record cbsa-inqacc-generated in the det-sweep coverage l…
equivalence: cbsa-inqacc-generated proves INQACC on generated Db2 row…
48 remaining items
squid-protocol commentedon Oct 22, 2026
#6031 merged: a partial slice of [c:2b495ce4] "GenApp lg* (LGACDB01, LGAPDB01, ...) on generated multi-table rows with FKs. (1-2 PRs)"; left: LGIPOL01 (hand seed.sql), LGACUS01, LGUCUS01, LGICUS01 front ends still on DDL / hand-written rows (promoter-bot)
equivalence: GenApp LGIPOL01 / LGICUS01 inquire front ends on generat…
squid-protocol commentedon Oct 22, 2026
#6039 merged: a partial slice of [c:2b495ce4] "GenApp lg* (LGACDB01, LGAPDB01, ...) on generated multi-table rows with FKs. (1-2 PRs)"; left: LGACUS01 and LGUCUS01 customer front ends (with their VSAM data) on generated CUSTOMER rows (promoter-bot)
equivalence: DBB CMORT reads only SYSDUMMY1, nothing to generate (Par…
squid-protocol commentedon Oct 22, 2026
Churn run
4507-20261022T1937Z(host melek) ended without a PR. plan approved (shared regenerated table only); resumed as 4507-20261022T1940Zmutation: score cbsa-updacc-generated, UPDACC on generated Db2 rows (…
COBTUPDT: OPEN status guard and the three SQLCODE EVALUATE fall-throu…
squid-protocol commentedon Oct 22, 2026
#6082 merged: a partial slice of [c:e095a6ab] "Triage cbsa-updacc-generated survivors (97 of 133 caught) and COBTUPDT's 4 uncovered branches (line 84 never false; EVALUATE no-match at 151, 177, 207). (1 PR)"; left: UPDACC case-gap re-run and the -904 fault need a det-translated UPDACC (promoter-bot)
squid-protocol commentedon Oct 23, 2026
Churn run
4507-20261022T2357Z(host melek) ended without a PR. plan approved; overlap is shared doc onlycbsa-updacc-faults named as the second exemption from the generated-s…
UPDACC -904 fault slice: det-translated case cbsa-updacc-faults (Part…
squid-protocol commentedon Oct 23, 2026
All slices in the checklist have merged (last: #6101, UPDACC fault case). Acceptance met: burned Db2 cases run on generated rows with SQLCODEs and table state compared, coverage measured, mutation run done (#6058, #6101). Remaining SQL fault arms for cbsa-inqacc-generated / cbsa-updcust and the cbsa-updacc hand-case harness gaps are sibling gaps noted in #6101's class table.
Slice #6123 to CRDTAGY1-5: drop the BNK1DCS PF5 chain (needs a genera…
CBSA slice 2: CRDTAGY1-5 DELAY/PUT-failure infeasible outcomes (Part of