Inbox dedup: how to stop webhook retries from triggering duplicate agent runs
blaizedsouza · x · 2026-09-11
A production AI pattern worth knowing: senders retry webhooks, and if every retry is treated as new work, your agent acts twice. The fix is inbox dedup before the agent runs.
- Require a stable event id from the source
- Store seen ids in an inbox; drop duplicates
- Process each id at most once; expire old ids on a policy
- Alert on spikes in duplicates
Core principle: exactly-once starts with ignoring the second copy. If the source has no id, hash the payload plus a timestamp window.
More from coding & agent
- Dev removes his AI assistant's emotion module mid-test; the system notices, adapts, and starts its own experiment — Dzikula · 2026-09-12
- ApprenticeBench: Agents Continually Learn Real Jobs, Surpassing Human Pros — ysu_nlp · 2026-09-12
- Agora open-sources meeting copilot demo powered by GPT-Live-1 — testingcatalog · 2026-09-12
- Open-source Agora meeting copilot puts GPT-Live-1 in your video calls — testingcatalog · 2026-09-12
- Ex-engineering manager: I now run Claude and Codex agents like I once ran dev teams — letandrewcook · 2026-09-12
- astra thrives on context: minimal prompting massively underperforms, dev finds — brandon_galang · 2026-09-12