A customer support agent receives approval to issue a refund and calls the payment API. The request times out. Did the provider reject it, or did it issue the refund and lose the response?
That distinction should determine what the agent does next. Retrying immediately could issue a second refund. A more reliable workflow checks the provider’s records before deciding whether to retry or send the case for human review.
What Should the Agent Runtime Handle?
- Tool permissions. Define which tools the agent can call and which records it can read or change. Enforce those permissions when the tool runs.
- Human approval. Show the reviewer the exact action and its consequences before execution. If the refund amount or destination changes, request a fresh approval.
- Recovery after partial failure. Save the workflow state and give each external action a stable ID. Reuse an idempotency key where the provider supports it. If the outcome is unclear, reconcile it against the provider’s records before retrying.
- Evaluation. Test timeouts after successful writes, duplicate events, and unavailable reviewers. Track the cost of each completed task, including model calls, retries, and human review.
How Five Companies Approach Agent Reliability
GeekyAnts describes how an agent harness defines which tools the model can access, which actions require approval, and how the system should handle partial failures. Read the original article on building agents that can reason, act, and recover.
OpenAI provides tracing in its Agents SDK so developers can inspect model calls, tool calls, and handoffs when a run goes wrong.
AWS lets Amazon Bedrock Agents ask users for confirmation before running selected actions.
Microsoft uses checkpoints in its Agent Framework so interrupted workflows can resume from a saved state.
LangChain uses LangGraph interrupts to pause a workflow for human input and resume it later. The interrupted node starts from the beginning on resume, so any external action before the pause must be safe to repeat or moved to a separate step.
Where Should Reconciliation Live?
When a tool times out after a possible write, where does your team check what actually happened? Does the tool adapter reconcile the result, does the workflow engine own it, or does the case go to a human review queue?
Top comments (0)