Payment APIs deal with this using idempotency keys. Most emails don't have one. Neither do webhooks, a button clicked in a browser, or most internal APIs.
Your agent’s checkpointer can work perfectly and still book the same appointment twice. (A thread)
The agent calls the clinic’s scheduling system and the appointment gets booked. Before the step returns, the worker dies (a deploy, an OOM kill).
Two agents working on the same patient hit it too. Checkpoints are per thread, so each agent has its own history and neither mentions the other. Both book.
@GetPingCron@pulkit_gupta2 yea, a DLQ gives the unknowns somewhere to live. the part that bites is draining it later: someone hits replay on one that actually went through and the candidate gets applied twice. has a replay like that burned anyone you've worked with?
a crashed agent is fine. a crashed agent that wakes up 10 minutes later and finishes a job someone else already finished is how you end up in a meeting with your CFO.
@keyserfaty@hecodesforme fixing them as you see them works for the store side. the messier one is the order that hits the change halfway: the agentcard payment goes through, the store page errors, and the agent reads it as failed and buys again. has a mid-checkout break left a double order yet?
@dhuynh95 search, reviews and commute checks are all reads, so rerunning is cheap. booking is different. if the script’s session drops right after airbnb accepts, the agent can’t tell it went through and books again. have you seen a script get rerun mid-booking yet?
@Khaliqgant sitting between tools means relay can’t lock anything inside them. say one agent in cursor and one in claude code both see the same task as open, both can pick it up. has that collision actually happened with your users yet?
@Vatsalpandya333 starting over is the cheap version. the expensive one is the rerun that already pushed a branch or posted in slack the first time, then does it all again. has howl ever opened a second PR for the same bug after a restart?
@svemyh append-only history helps restarts too. when the harness dies mid tool call, the log shows the call started and nothing after. has the agent rerunning that half-finished call (and doing the thing twice) actually bitten you yet?
@trycua the two-minute silence rule is the bit I’d poke at. a slow tool call looks just like a hung one, so if the first process isn’t really dead you’ve got two agents working the same task. same if a mac drops off wifi and comes back. has a restart ever overlapped the old run?