AI Agents Need an Unknown Tool Outcome State
A timeout does not mean an AI tool failed. It means the runtime stopped knowing what happened.
That difference is easy to hide in an exception and expensive to discover after a retry. A deployment request can reach the server, change production, and lose its response on the way back. An agent that maps the timeout to failed may issue the same action again. An agent that maps it to succeeded may continue with a state that never existed.
I want a third terminal state in every consequential tool protocol:
confirmed | rejected | unknown
unknown is not a softer error. It is a control state that blocks blind progress and starts reconciliation.
Transport status is not effect status
Most tool adapters expose a familiar vocabulary: success, error, timeout. That vocabulary describes the call path, not the external effect.
{
"call_id": "call_01K...",
"tool": "release.deploy",
"transport": "timeout",
"effect": "unknown",
"attempt": 1
}
The network may have failed before delivery, during execution, or after commit. From the caller's position, those cases can look identical. AWS describes this exact ambiguity in its guidance on idempotent APIs: after a timeout, a client may need reconciliation because it cannot tell whether a singleton resource was created.
This is not specific to cloud infrastructure. The same boundary appears when an agent sends a message, creates a ticket, writes memory, changes permissions, books a reservation, or starts a long-running job.
A runtime should therefore record two independent facts:
| Field | Question |
|---|---|
transport |
Did the caller receive a protocol response? |
effect |
Is the external state known to match the requested transition? |
A transport error can coexist with a confirmed effect discovered later. A clean HTTP response can coexist with a rejected business transition. Collapsing these axes makes recovery guesswork.
Unknown must have a typed recovery path
An unknown outcome should produce an artifact, not another prompt:
{
"effect_id": "deploy:atlas:2026-08-04:01",
"intent_digest": "sha256:...",
"state": "unknown",
"last_transport": "timeout",
"reconcile": {
"method": "query_by_effect_id",
"deadline": "2026-08-04T07:35:00Z",
"on_found": "confirm",
"on_absent": "retry_same_effect_id",
"on_conflict": "escalate"
}
}
The effect identity matters because parameter equality is not enough. Two identical requests may represent two intended actions; two retries with the same intent must represent one. AWS recommends a caller-provided request identifier for this reason and rejects reuse of the identifier with changed parameters.
This extends the effect identity model. Identity makes deduplication possible. The outcome state machine defines what the runtime may do while the identity has no confirmed result.
I would allow only four transitions:
proposed -> executing -> confirmed
\-> rejected
\-> unknown -> reconciling -> confirmed
\-> rejected
\-> escalated
There is deliberately no direct unknown -> new attempt with new identity edge. That edge is how one uncertain action becomes two real effects.
Reconciliation is a first-class tool capability
Retry policy is incomplete without a way to observe the target system.
For every consequential tool, I would ask for one of these contracts:
- Idempotent replay: repeat the same intent with the same effect ID and receive a semantically equivalent result.
- Query by effect ID: ask the target whether that exact operation committed.
- Observable postcondition: test a specific state version or resource marker tied to the request.
- Human resolution: freeze progress and present the intent, evidence, and possible outcomes when the system cannot decide safely.
A generic list recent deployments query is weak reconciliation. A matching deployment may belong to another actor. The observation must bind the result to this request through an idempotency token, operation ID, resource label, version, or receipt.
This also changes tool design. A write-only connector that returns no stable identifier may be easy to demo but impossible to recover safely. Read methods are part of the write contract because they let the runtime establish what the write did.
Durable execution does not remove ambiguity
Durable workflow engines preserve orchestration state and retry failed activities. Temporal documents that an activity task may be lost after its function starts and that a timeout can schedule another attempt. Heartbeats can preserve progress and deliver cancellation, but an external side effect still needs an idempotent or reconcilable contract.
A checkpoint can prove where the orchestrator resumed. It cannot, by itself, prove whether an external system committed a request before the worker disappeared.
This is why recoverable agents need two histories:
- workflow history: what the runtime decided and scheduled;
- effect history: what external systems can confirm happened.
The join between them is the effect ID. Without that join, replay is durable but not necessarily safe.
Unknown should consume authority, not retries
Retry counters are the wrong budget for uncertain effects. Five remaining attempts do not justify five possible deployments.
I would give unknown a reconciliation budget instead:
unknown_policy:
max_reconcile_queries: 6
max_age: 5m
retry_requires: confirmed_absence
identity_policy: reuse
unresolved: human_review
Low-impact reads can retry aggressively. Reversible writes may reconcile and retry under policy. Irreversible or high-consequence actions should fail closed when absence cannot be established.
The consequence should determine the proof required. A duplicated cache refresh and a duplicated payment are not the same failure class.
This mechanism also complements approval receipts. Approval says the exact intent was authorized. It does not say execution completed. An outcome receipt says what the target system accepted. Keeping those artifacts separate prevents authorization from being mistaken for evidence of effect.
Boundaries
This model cannot manufacture observability that a target API does not provide. Reconciliation can race with delayed commits. Read-after-write may be eventually consistent. Idempotency records expire. A target can return the wrong status. Human review can still make a bad decision.
The practical response is not to call every timeout unknown forever. Define per-tool deadlines, consistency assumptions, identity retention, authoritative queries, and escalation rules. When the evidence expires, say that certainty is unavailable; do not silently convert uncertainty into failure.
I am describing an architectural pattern, not claiming that current FACET or IOSM implementations already provide this state machine. It fits the same direction: the model may propose the next move, while the runtime owns state transitions and evidence.
Stop turning ignorance into failure
Binary outcomes are attractive because they simplify code. They also force a distributed system to lie.
When a consequential tool times out, the honest answer is often: execution may have happened, and we need a bounded procedure to find out. Encoding that answer gives the runtime somewhere safe to stand. It can preserve identity, reconcile external state, and refuse to multiply effects merely because a response packet disappeared.
unknown is not indecision. It is the state that keeps recovery from becoming duplication.