Reliability · By Vrittara
How should an AI agent route work and recover from failures?
Reliable AI agent routing uses providers a team has configured, orders them for the task, and explains the choice. Recovery should retry only failures that might clear on their own, preserve completed work, and stop for a person when the failure is not transient or retries are exhausted.
Published November 9, 2026 · Updated December 1, 2026 · 3 min read · Part of Reliability
Route only to providers that are ready
A routing preference is not the same as a working connection. Start with providers that have valid credentials, then order that available set for the kind of task. If a person pins a provider, respect that choice when it is configured and say clearly when it is not.
Keep the reason visible. A teammate should be able to understand why a provider was chosen and what to fix when a preference could not be honored.
Treat fallback as an ordered choice
A task can have a preferred provider and still need a backup if the first provider is unavailable. A fallback chain should contain only providers the team actually configured, preserve the preference order, and make the next provider predictable.
If there are no configured providers, the safe result is to say so and wait for setup. Silently substituting an unknown provider makes cost, privacy, and reliability harder to reason about.
Retry only failures that can recover
A timeout or rate limit may clear after a wait. A malformed request or a missing permission will not. Classify failures before retrying, use bounded backoff, and respect a provider's Retry-After guidance within a maximum wait.
Automatic retries should have a firm limit and show what happens next. Completed steps should remain available, while permanent errors and exhausted retries should leave the task in a state a person can understand and act on.
A timeout is not a rate limit
A timeout means no answer arrived inside the time allowed, so it says nothing about whether the work happened. A rate limit means the provider answered and refused, usually with a short wait attached. The first is ambiguous, the second is a specific instruction.
Treat them differently. A rate limit is safe to retry after the stated wait, and retrying sooner turns one refusal into a burst. A timeout may leave the provider still running the step, so retrying something that writes, sends or pays can do it twice. Retry a timeout only when the step is safe to repeat, and otherwise mark the step unknown and ask a person to check before the run continues.
Count them apart too, because they have different causes. Timeouts rising on one step usually mean the step is too large for the time allowed. Rate limits rising across runs usually mean too many runs are competing for one quota. Splitting the work fixes the first; queueing the work fixes the second, and a cheaper model fixes neither.
What Vrittara does
Vrittara orders the providers a workspace has credentials for based on the task profile and keeps a person’s valid provider choice first. It exposes a plain-language reason for the routing decision. Transient provider and database failures can be retried with bounded backoff; other failures wait for a person rather than being retried without end.
Teams should still review provider access, costs, and data policies for their own environment. A fallback is only suitable when the workspace has configured and approved that provider.
Keep reading
- Running long AI agent tasks as a team
Long-running AI agents work on tasks for hours or days. What they need to survive failures, keep the team informed and let people catch up.
- Shared AI agents vs solo AI agents and coding assistants
Solo agents like Claude Code and Cursor work in one person's environment. A shared agent workspace lets the whole team see, steer and approve the work.
Vrittara is the workspace a team and its AI agents share: one agent, a plan anyone can read, and a person who approves the result.
Common questions
- What is provider routing for an AI agent?
- It is the rule that orders configured providers for a task, usually by task type and any valid person-selected preference.
- Should an AI agent retry every error?
- No. Retry only failures that may clear with time, such as timeouts or rate limits. Permanent errors should stop and tell a person what needs attention.
- How many times should an agent retry?
- Use a small fixed limit with backoff and then stop with a clear status. The limit should balance transient recovery against repeated cost and delay.
- Is a timeout the same as a rate limit?
- No. A rate limit is a refusal with a stated wait, so retrying after that wait is safe. A timeout is silence inside the time allowed, and the provider may still have run the step, so retry only steps that are safe to repeat.