Skip to content

equivalence: CardDemo COTRTLIC and COPAUS2C on generated Db2 rows (Part of #4507) - #5765

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

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

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

What

Two CardDemo Db2 cases on rows generated from the corpus DDL (db2.seed: "@generate"), beside their hand-seeded originals:

  • carddemo-cotrtlic-generated (COTRTLIC, CICS): 14 TRANSACTION_TYPE + 20 TRANSACTION_TYPE_CATEGORY rows (category rows name generated parents). 5 stated scenarios, 2 PF10 scenarios (DELETE of an unreferenced type, UPDATE), 24 generated (filters, D/U/S selection, ENTER/PF3/PF5/PF7/PF8). Proven on 25 scenarios, 50/59 paragraphs, 123/230 branches.
  • carddemo-copaus2c-generated (COPAUS2C, LINKed): 6 AUTHFRDS rows (CARD_NUM and AUTH_TS pinned to the corpus sample values so a generated COMMAREA can build a key a row holds), 24 generated COMMAREAs (INSERT, INSERT -803 then UPDATE) and the two -913 fault scenarios. Proven on 28 scenarios, 2/2 paragraphs, 6/6 branches.
  • Generator fix (tests/tools/equivalence_db2.py): a SMALLINT filler was drawn up to 100000 and Db2 refused the INSERT (SQL0413N); clamped after the draw, so the random stream and every other column are unchanged.
  • Two EQUIVALENCE_E2E tests and the two det_sweep_coverage entries (written by det_coverage_ledger.py update).

Class

Class: burned CardDemo Db2 cases whose rows come from a hand-written seed.sql (db2.seed: "@case/seed.sql") and so need a -generated sibling ("@generate"). Source: grep '"db2"' tests/equivalence/carddemo-*/case.json.

Member Status Evidence
carddemo-cobtupdt handled before this PR carddemo-cobtupdt-generated exists
carddemo-cotrtlic handled here carddemo-cotrtlic-generated, proven, E2E test
carddemo-copaus2c handled here carddemo-copaus2c-generated, proven, E2E test
carddemo-cotrtupc missing still @case/seed.sql; no -generated case

Sibling gaps

  • carddemo-cotrtupc (TRNTYPE/TRNTYCAT, CICS): missing. Not here: it is a separate case with its own scenarios (a third case would pass the 5-file limit). Source: tests/equivalence/carddemo-cotrtupc/case.json.

Evidence levels

  • Translated: COTRTLIC 631/632, COPAUS2C 56/56 (whole).
  • Executed-equivalent: 25 and 28 scenarios, no diffs; every SQL statement answered alike.
  • Named refusals, not compared: 6 generated COTRTLIC scenarios drive WS-STRING-OUT to length 0 (X8, named in bounds_refused as in the original); the auto-derived SQL-fault variants reach the DSNTIAC hole (Q5).
  • Not covered (same as carddemo-cotrtlic): 9999-FORMAT-DB2-MESSAGE (-532 delete, +100 update/delete of a vanished row), PF7 backward cursor, cursor errors.
  • Oracle is GnuCOBOL plus our stub, not z/OS.

Cross-repo

None. Corpus (CardDemo) unchanged.

Notes

equivalence_db2.py is a harness component: other det_sweep_coverage entries using the Db2 layer go stale on the harness fingerprint, which only warns until the scheduled refresh.

Checklist: done [c:d1425103]

Lessons for agents

  • det_port.py printing DIFFERS can hide an unnamed X8 refusal; read DIR/<case>/proof.log.
  • A delete refused by the category FK (-532) or an update/delete of a missing row reaches the DSNTIAC hole: such scenarios cannot be in a Db2 case until it is modelled.
  • Generated SMALLINT fillers used to overflow (SQL0413N) on any table with a SMALLINT column.

🤖 Generated with Claude Code

…rt of #4507)

carddemo-cotrtlic-generated: 14 TRANSACTION_TYPE + 20 category rows from the DDL, 7 stated and 24 generated scenarios; proven on 25 scenarios, 50/59 paragraphs, 123/230 branches. carddemo-copaus2c-generated: 6 AUTHFRDS rows, 2 stated SQL-fault and 24 generated COMMAREAs; proven on 28 scenarios, 2/2 paragraphs, 6/6 branches. Generator fix: a SMALLINT filler value is clamped to 32767 (SQL0413N).

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 20, 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 20, 2026 18:27
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 18:31
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit d35d45b into main Oct 20, 2026
65 checks passed
@squid-protocol
squid-protocol deleted the churn/4507-20261020T1804Z branch October 20, 2026 18:58
@squid-protocol squid-protocol mentioned this pull request Oct 20, 2026
7 tasks done
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