What Happens to an AI Agent When the Wi-Fi Drops? A developer argues that the main failure mode for AI agents is not dropped connections but the uncertainty that follows: when a reply is lost, the agent cannot tell whether its action succeeded. The proposed fix is to make every action idempotent by generating a request_id once and sending it with each attempt, then checking the supplier's API for an existing order before retrying, so a blind retry does not duplicate the order and a give-up does not leave the task silently incomplete. Most of the time, the agent ends up not knowing whether its last action happened. I'd rank that uncertainty above the drop itself as a cause of AI agent failure. Say an agent reorders printer paper from a supplier. It sends the order, and the connection dies before the reply comes back. Maybe the order never arrived. Maybe it arrived and only the confirmation got lost. From the agent's side, both look like silence. An agent that retries blindly orders paper twice. An agent that gives up leaves you with no paper and no idea why. The fix is to check before trying again: sketch – run-check against your supplier's real API order = supplier.find order request id if order is None: supplier.place order request id, items The request id is an ID the agent creates once and sends with every attempt, so the supplier can match a repeat to the first order. The common objection is that networks are reliable now, so this is rare. Per call, sure. But one agent run can make dozens of calls to outside services, and Diagrid's guide to failure modes in production agents lists tool calls that "timeout, return partial results, fail with errors." https://www.diagrid.io/learn/common-failure-modes-in-production-agents https://www.diagrid.io/learn/common-failure-modes-in-production-agents Pick one action your agent takes and ask what it would do if the reply never came.