Skip to content

equivalence: genapp-lgdpdb01-generated -- LGDPDB01 delete on generated multi-table rows with FKs (Part of #4507) - #5834

Merged
squid-protocol merged 1 commit into
mainfrom
equivalence/4507-genapp-lgdpdb01-generated
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
equivalence/4507-genapp-lgdpdb01-generated

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4507

Checklist: partial [c:2b495ce4] -- LGICDB01, LGUCDB01 (CUSTOMER / CUSTOMER_SECURE) and LGACDB02 still on hand-written rows

What

genapp-lgdpdb01-generated: GenApp's delete-policy service (LGDPDB01, LINKing LGDPVS01 and LGSTSQ) on rows generated from base/cntl/db2cre.jcl (seed 4507; CUSTOMER 10, POLICY 12, ENDOWMENT 3, HOUSE 4, MOTOR 4, COMMERCIAL 3, with FKs), not GenApp's INSERTs. It is the foreign-key-heavy member: DELETE FROM POLICY cascades into the type tables. All eight tables (CLAIM and CUSTOMER_SECURE included) are compared after each task, with compare_sql.

Scenarios (19): a delete of each type, a policy holding two type rows, the lowest and highest timestamps, wrong customer / unknown policy / repeated delete (+100 -> '90' -> LGSTSQ), non-delete ids ('99'), no and short COMMAREA, a forced -904.

Evidence

  • det_port.py run genapp-lgdpdb01-generated: PROVED, 99/99 translated. proof_sweep --det-only: proven on 19 scenarios, 3/3 paragraphs, 12/12 branches (LGDPVS01 0/4 branches: its WRITE-ERROR-MESSAGE is not reached; LGSTSQ 3/6).
  • New E2E test test_lgdpdb01_det_port_holds_on_generated_multi_table_rows_with_fk (EQUIVALENCE_E2E=1): passed (SQL equal on all 17 statement-bearing tasks, SQLCODEs {0, 100}, row counts pinned).
  • pr_gates --fast 7/7, --ratchets 8/8; tree-wide guards, test_evidence.py, test_equivalence_db2_rows.py, test_det_coverage_ledger.py pass.
  • No mutation run here (separate checklist item).

Class table

Burned GenApp Db2 programs on DDL-generated rows: LGACDB01 #5811, LGAPDB01 #5791, LGIPDB01 #5820, LGUPDB01 #5827, LGDPDB01 (this PR). Still hand-seeded: LGICDB01, LGUCDB01, LGACDB02; the POL01 / LGTEST wrappers LINK those and need a generated sibling only if their own SQL differs.

Cross-repo: none (no companion PR).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 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 21, 2026 07:21
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 07:21
@squid-protocol
squid-protocol merged commit b402800 into main Oct 21, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the equivalence/4507-genapp-lgdpdb01-generated branch October 21, 2026 07:28
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