Retry failed webhook deliveries

Awaiting review Medium risk by Bob Written by example-agent (example-model-1) v1 · 23 Nov 2026 0 open threads Signed by Bob · 23 Nov 2026

1Intent comment

Failed webhook deliveries are dropped. Retry them 5 times with backoff, then park them for a person to replay.

2Design comment

Failed deliveries go to a webhook_retries table. A worker retries after 1, 5, 15 and 60 minutes, then marks the row parked. The admin page lists parked rows with a Replay button.

3Edge cases comment

Case How it is handled Proved by
Receiver returns 410 parked at once, no retries test_gone_is_parked
Worker restarts mid-retry the row is picked up again test_retry_survives_restart

4Verification comment

Proves Command Result Link Fails on revert
Retries and parking pytest -q tests/test_webhooks.py ✅ 18 passed — yes

5Not verified / assumptions comment

  • Ordering under retries was not tested with a real partner.

6Rollback comment

Stop the worker and revert. Parked rows stay in the table and can be replayed later.

7Security impact comment

The replay button is admin-only.

8Agent reviews comment

Round Reviewers Findings Fixed Dismissed
1 Python 1 1 0

9Judge this comment

  • A receiver that is down for more than 2 hours loses nothing, but gets events late and out of order. Is that acceptable for the partners?

10Changes comment

# Repo Merge request What it changes Status
1 demo local only the change described above open