{
  "id": 20578501,
  "title": "The Claim Row Stopped the Duplicate. My Agent Sent the Payment Twice Anyway.",
  "url": "https://urgent.news/2026/11/18/the-claim-row-stopped-the-duplicate-my-agent-sent-the-payment-twice",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-18T10:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/aheadkit/the-claim-row-stopped-the-duplicate-my-agent-sent-the-payment-twice-anyway-456o"
  },
  "original_language": "en",
  "account": "Yesterday, the author resolved webhook duplicates by using one claimable row per delivery key. However, a slow receiver caused three payments to be sent before the first acknowledgment arrived. The fix involved claiming a row atomically, turning three deliveries into one. The author wrote up the solution, feeling pleased but then received a comment that revealed an issue: the claim row stops the resend, but the agent still believes the step failed. The author ran the fix twice to examine the impact of this belief, discovering that the planner did not see the claim row. The first run saw the planner read the claim row before planning, leading to a single delivery and no duplicate payments. The second run did not, resulting in two deliveries and a duplicate payment. The key difference was one read of the claim row. The author argues that informing the planner about the step's success is crucial, as the planner's belief remains outdated unless it revisits the information. Additionally, a log line indicating the acknowledgment was written but unobserved by the planner highlights the importance of feedback in the system. Finally, the author notes that re-running the step with a new key does not save from the issue, as the claim row cannot prevent a duplicate payment if the planner believes it was never made. The only safe step for the quiet fix is one without a downstream step.",
  "summary": "Yesterday I fixed my webhook duplicates with one claimable row per delivery key. A slow receiver took 2.5 seconds to answer, my sweeper ticked every second, and the same payment went out three times before the first acknowledgement landed. One row in a table, claimed atomically, and three deliveries became one. I wrote it up feeling pleased with myself. Then rudratosh left a comment that undid…",
  "key_points": [
    "Author resolved webhook duplicates using one claimable row per delivery key",
    "Slow receiver caused three payments before first acknowledgment arrived",
    "Claim row stops resend, but agent believes step failed, leading to duplicate payments"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}