An idempotency decision tree for agent steps to avoid duplicate charges
11/07/2026 — 11/07, 01:19·1 sources (all)·1 reports (all)
Key takeaways
- A walkthrough of a nightly job shows how duplicate charges happen: the process restarts at minute nine, the retry loop replays a payment ste…
Background & analysis
On November 7, 2026, the AI section of DEV Community published a piece titled "Two Writes, One Charge: An Idempotency Decision Tree for Agent Steps". The article opens with a nightly job that walks an invoice queue and calls a payments tool once per invoice. A full run takes eleven minutes. In minute nine the worker is restarted — the reason, the author notes, does not matter: a deploy, an OOM kill, or a dropped connection all produce the same outcome. The retry loop resumes from the last checkpoint and re-executes the step that was already in the air. The visible text of the article cuts off there, but the summary spells out the consequence: two writes, one charge, and one long morning for whoever has to reconcile the account. The author's central argument is that none of this is fixed by a better prompt. What fixes it is deciding, for each step, what "already done" actually means — and encoding that decision by choosing among four mechanisms: an idempotency key, a local deduplication ledger, a compensating action, or doing nothing at all. The choice depends on the step in question rather than on a single global policy. The excerpt available ends mid-sentence at "re-executes", so the full walkthrough of how the decision tree is applied step by step is not visible in the material provided. As of now this appears to be the only report on the topic, with no follow-up coverage, community discussion, or vendor response recorded.
AI-generated from 1 reports · updated 1 hour ago
- Heat index
- 96
- All sources
- 1
- All reports
- 1
- First seen
- 2 hours ago
Reports on this story headlines open the original
A nightly job restarts in minute nine and the retry loop re-runs a payment step that was already in flight — two writes, one duplicate charge. The fix isn't a better prompt: for each agent step, decide what "already done" means and choose between an idempotency key, a local dedupe ledger, a compensating action, or nothing at all.
DEV Community · AIAI score 60
Other stories people are talking about
- Heat index 915OpenAI rolls out GPT-6 Cyber to Daybreak Red users with API, Codex access16 sources
- Heat index 763Claude rolls out Personal Finance to US Pro, Max and Ultra users via read-only Plaid links13 sources
- Heat index 740SurgeAnthropic IPO cools as investors weigh valuations down to $1.1 trillion10 sources
- Heat index 725SurgeThinking Machines Lab releases Inkling 2 Small amid reported $5B funding round10 sources
- Heat index 674RisingAI market turmoil spreads as US chip stocks sell off, credit and Asia equities slide10 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

