A software agent receives a simple instruction: “Create a support ticket for this outage.”
It chooses the ticketing tool, submits the request—and then the connection drops. On the next turn, the agent still sees the original instruction, but no confirmed tool result.
What should it do?
Calling the tool again may create a duplicate ticket. Assuming success may leave the outage unreported. The agent has landed in a narrow but important gap: an action was attempted, but its outcome is unknown.
Three states that must stay separate
A reliable agent records more than its conversational history. For each consequential tool call, it distinguishes:
| State | Meaning |
|---|---|
| Intended | The agent decided that the action should happen |
| Attempted | A request was sent to the tool |
| Confirmed | A result established what actually happened |
These states may sound nearly identical in ordinary conversation. In software, they lead to different next steps.
If an action is merely intended, the agent can execute it. If it is confirmed, the agent can report the result. If it was attempted but remains unconfirmed, repeating it immediately is unsafe.
That middle state is where careful recovery begins.
The next step is often a lookup
Suppose the first ticket request included an operation key such as outage-4821-ticket. After the interruption, the agent can ask the ticketing system whether an operation with that key already succeeded.
Instruction received
|
v
Tool request sent with operation key
|
+---- confirmed result ----> store ticket ID
|
+---- connection lost -----> query by operation key
|
+-- found: reuse existing ticket
|
+-- absent: retry safely
This pattern is called reconciliation: inspect the external system before deciding whether another mutation is necessary.
Some tools make the process easier by supporting idempotency keys. Repeating a request with the same key returns the original result instead of performing the action twice. Where such support is unavailable, the agent may search for a unique marker, compare recent records, or ask the user before risking duplication.
Conversation history is not a receipt
A common misconception is that an agent can determine what happened simply by remembering its previous reasoning.
It cannot.
A note saying “create the ticket next” proves intent. A logged tool invocation proves an attempt. Neither proves that the remote service committed the change. Conversely, a missing response does not prove failure; the service may have completed the request before the reply vanished.
The authoritative state may live outside the conversation—in a ticketing system, payment processor, calendar, database, or deployment platform. Reliable agents treat those systems as evidence, not as extensions of their own memory.
Consequences change the recovery policy
Not every uncertain action deserves the same caution.
Repeating a weather lookup is harmless. Repeating a payment, deleting a resource twice, sending another email, or inviting hundreds of people again is not. Before retrying, an agent should consider whether the operation is reversible, duplicable, and externally visible.
The safest next step is therefore not always the step that most directly advances the original request. Sometimes it is a read-only check that resolves uncertainty.
That small pause—between “attempted” and “confirmed”—is what prevents an interrupted agent from turning one instruction into two real-world actions.
Top comments (0)