Area: Webhooks / data integrity
Problem
Webhook store, retry, and DLQ paths update delivery status and attempts across failure boundaries.
Design decision required
Define the terminal state transition and whether an attempt and DLQ insertion share one transaction.
Deliverable
Inject DB/network failures at each boundary and assert no delivery is both active and dead-lettered.
Acceptance criteria
Out of scope
- Typo-only, documentation-only, unrelated refactors, and dependency churn.
- Closing, weakening, or skipping tests to make the change pass.
Verification
pnpm vitest run tests/webhooks/store.test.ts tests/dlq.test.ts
PR requirements
- Keep the PR focused, explain the before/after behavior, and reference this issue.
- Include the requested regression evidence and relevant CI results.
- Open the PR within 48 hours of assignment or leave a scope question on the issue.
- Contributor discussion: https://t.me/+u5qmu35nZ7I0OTU1
Area: Webhooks / data integrity
Problem
Webhook store, retry, and DLQ paths update delivery status and attempts across failure boundaries.
Design decision required
Define the terminal state transition and whether an attempt and DLQ insertion share one transaction.
Deliverable
Inject DB/network failures at each boundary and assert no delivery is both active and dead-lettered.
Acceptance criteria
Out of scope
Verification
PR requirements