What problem does it solve? Webhooks redeliver, jobs restart mid-run, and crons overlap, so without idempotency by design every re-delivery risks corrupting state or duplicating side effects like payments and notifications. ## Core Features & Use Cases - Webhook safety pattern: Enforces a fixed order of signature verification, atomic idempotency-key claim, event handling, and completion marking, with replay-window enforcement and durable dedup stores (Redis or Postgres adapters). - Outbox pattern: Writes the database change and the domain event in one transaction so external notifications are never lost or sent without the corresponding state change. - Job and cron safety: Defines explicit job state machines, exponential backoff with jitter, dead-letter queues after bounded retries, and overlap protection for scheduled tasks. - Fail-soft outbound HTTP: Requires timeouts, bounded retries for idempotent reads, and an explicit critical-vs-degradable failure decision for third-party calls. - Use Case: When adding a Stripe webhook endpoint, apply this discipline so the handler verifies the HMAC signature, dedups on the Stripe event ID, and processes each event exactly once even under redelivery. ## Quick Start Ask the agent to make my Stripe webhook handler idempotent with signature verification, dedup, and an outbox for the refund notification.