AI / Agents Agents

Cite as: Real Problem AI problem “How do I stop my AI agent from refunding a customer twice when the payment call times out?”. Opportunity score 7.8 out of 10 (severity 8, AI feasibility 9, market signal 7, competition gap 7). Category AI / Agents. Trend Agents. Source signal: Reddit r/AI_Agents "Agent time out on the refund call. How do you stop the retry from paying twice?", 23 November 2026, 24 comments.. Canonical URL: https://www.realproblem.ai/idea/how-do-i-stop-an-ai-agent-retry-from-refunding-twice.

How do I stop my AI agent from refunding a customer twice when the payment call times out?

When a support agent asks a payment provider for a refund and the call times out, nobody knows if the money moved, and a blind retry can pay the customer twice.

Who has it: Engineers building AI support or operations agents that can trigger refunds, payouts or other money moving actions through third party APIs.

Heard in public

“the agent asks for a refund, the call times out, and the nobody knows if the money moved”

Quoted word for word from the public post linked below. Nobody submitted it to Real Problem AI.

Reddit r/AI_Agents "Agent time out on the refund call. How do you stop the retry from paying twice?", 23 November 2026, 24 comments.

What nothing does yet

A drop in layer between an agent and any money moving API that gives each action one ID, marks a timeout as outcome unknown instead of failed, blocks retries until it has checked the provider, and asks a human only when it cannot tell.

Tools that solve this

3 named so far, and where each one stops.

  • Idempotency keys on the payment API

    Works well when the provider supports them, but the poster's hard case is APIs that cannot tell a repeated request from a new one.

  • Writing the intent to your own ledger before the call

    Commenters recommend recording a pending action with its own ID first, then reconciling on a timeout, but every team builds this by hand.

  • Checking the order's refunded total after a timeout

    A change by exactly the refund amount is a hint it landed, not proof, since another refund can land at the same time.

How you might build it

  1. 01Action ledger with one ID per intended payment action
  2. 02Provider reconciliation by reference, metadata or refunded totals
  3. 03Retry lock per order while an outcome is unknown
  4. 04Human approval queue for unresolved cases
  5. 05Audit log of every agent money action

#NOV118 · Canonical URL: https://www.realproblem.ai/idea/how-do-i-stop-an-ai-agent-retry-from-refunding-twice