Skip to content

equivalence: genapp-lgupdb01-generated -- LGUPDB01 update on generated multi-table rows with FKs (Part of #4507) - #5827

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4507-20261021T0500Z
Oct 21, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4507-20261021T0500Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

New equivalence case genapp-lgupdb01-generated: GenApp LGUPDB01 (policy update with optimistic lock) proved against GnuCOBOL + Db2 on rows generated from the DDL (db2.seed: "@generate", seed 4507, compare_sql: true): CUSTOMER 10, POLICY 12, ENDOWMENT 3, HOUSE 4, MOTOR 4, COMMERCIAL 3, with FKs.

  • 19 scenarios: endowment / house / motor updates, stale LASTCHANGED (02), wrong request type for the policy (01), wrong customer, unknown policy, NULL BROKERID policy.
  • ksdspoly.txt gives LGUPVS01 (always LINKed) a KSDS record for every key a scenario reaches.
  • E2E test in test_equivalence_db2_rows.py (gated on EQUIVALENCE_E2E=1) and the det_sweep_coverage ledger entry.

Result: PROVED, 171/171 statements translated, 26 runs, 9/9 paragraphs, 29/38 branches, SQLCODEs {0, 100}.

Class

Member Status
LGIPDB01, LGAPDB01, LGACDB01 merged earlier
LGUPDB01 this PR
LGDPDB01 (cascade delete over five FK tables) open
LGUCDB01 + LGICDB01 (single-table CUSTOMER) open
LGACDB02 (hand seed.sql to generated) open

Checklist: partial [c:2b495ce4] -- LGDPDB01 (cascade delete over generated rows), LGUCDB01 + LGICDB01 (single-table CUSTOMER), LGACDB02 (hand seed.sql to generated)

Not in this PR: the mutation run (separate checklist item). Generated policies 4 and 5 (NULL ISSUEDATE/EXPIRYDATE) are not used: LGUPDB01's FETCH has no indicator for them (-305, 90, then LGSTSQ), so they would hit the X6 oracle hole.

Gates

pr_gates --fast 7/7, --ratchets 8/8, audit_check clear, the new E2E test passes (45 s), guard tests 205 passed / 23 skipped.

Lessons for agents

  • A generated identity POLICYNUMBER runs 1000001.., not 1..12; scenarios on 1..12 all return SQLCODE 100 and cover 7/38 branches.
  • LGUPDB01's +100 wrong-type paths still LINK LGUPVS01, so every scenario needs a KSDS record or the run hits Unsupported: LINK PROGRAM(LGSTSQ).

Cross-repo: none.

🤖 Generated with Claude Code

@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 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 05:17
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 05:22
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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