# Replay payment webhooks without duplicate effects — acceptance checklist

Record evidence for every checked item. Unchecked or untested is not a pass. This checklist does not execute an integration or authorise external actions.

## Required inputs

- [ ] A pinned handler revision, event schemas and provider documentation for signing, retry windows, event identities and ordering guarantees.

- [ ] Synthetic payment, refund and entitlement fixtures with expected transitions and a clean initial ledger; amounts and currencies come from fixtures, not model invention.

- [ ] An isolated ingress, queue and datastore with disposable signing material managed outside prompts, a side-effect sink and fault-injection/reset controls.

- [ ] A bounded event manifest covering duplicates, reordering, missing events and partial failures, plus a saved provider-state fixture for independent reconciliation.

## Output checks

- [ ] Reject an invalid signature or stale ingress envelope before business processing; internal replay must not become a public bypass of authentication.

- [ ] Deliver the same event concurrently and after a retry; verify one permitted business effect using stored state and sink receipts, not only a successful response.

- [ ] Fail durable persistence or enqueueing; an acknowledgement that conceals event loss fails the transport contract.

- [ ] Interrupt processing after an effect but before completion recording; recovery must not double-apply a charge-related ledger entry or entitlement.

- [ ] Deliver a stale payment update after a refund or newer terminal state; regression of the business state fails even when events parse successfully.

- [ ] Replay an expired-dedup record and a poison event under the documented retention policy; silent loss, unbounded retries or untracked reapplication blocks the runbook.

- [ ] Remove one event from the manifest and reconcile against fixture truth; unexplained balance, currency, refund or entitlement drift prevents a convergence claim.

## Deliverables

- [ ] Bounded event manifest and independently derived payment-state oracle.

- [ ] Ingress, acknowledgement and durable-processing evidence for normal and faulted runs.

- [ ] Reconciliation ledger for payments, refunds, entitlements and downstream effects.

- [ ] Replay runbook with event-selection limits, abort conditions and unresolved semantics.

## Evidence and decision

Evidence links: [fill in]
Untested paths: [fill in]
Unresolved findings: [fill in]
Reviewer: [fill in]
Decision and scope: [fill in]

## Boundaries

- The webhook-engineer profile covers delivery mechanics and replay but installs no broker, ledger or provider sandbox. Map its read/write/shell tools and sonnet alias to a restricted project host; sibling agents mentioned upstream are not configured by this recipe.

- Payment-state rules, retention windows and reconciliation authority are project/provider inputs. At-least-once receipt is not exactly-once execution, and a successful transport response is not evidence of correct billing.

- Use synthetic events, an isolated side-effect sink and host-managed disposable test material. No production replay, real charge, refund, public tunnel or credential handling occurs during authoring; the suggested combination has not been runtime-tested.

Workflow: https://undominated.ai/workflows/#replay-payment-webhooks
