Inference Continuity
A large deployment runs many agents on several LLM vendors and many keys — one per business unit, project or cost centre. Inference continuity keeps that estate running when a vendor or a key fails, keeps each key inside its budget, and lets you move whole groups of agents with one rule instead of editing them one by one.
Everything lives under Models › Continuity.
What happens when a provider refuses
When a run fails because of the provider — a key out of credit, a revoked key, a rate limit, a vendor outage, a retired model — MeetLoyd tries again on another target, in this order:
- Another key of the same vendor, same model. Nothing about the agent's behaviour changes; only the key does. Skipped when the vendor itself is down.
- The fallbacks of the agent's routing policy, in the order you set.
- Your organisation's failover chain (Models › Continuity › Defaults), across vendors if you allow it.
Three rules never bend:
- Your boundaries come first. Your approved-model list, excluded vendors and confidential-run rules apply to every attempt. When no permitted target is left, the run is refused and the reason is recorded — MeetLoyd never quietly moves your data to a vendor you excluded.
- Nothing happens twice. A run is retried only if it has not yet streamed text to the user or run a tool. A run that already sent an email or wrote to a system is never replayed.
- Governance refusals are final. A data-protection block, a budget stop or a policy refusal is not a provider failure and is never retried elsewhere.
Every run that routing touched records which model and key served it, and why. You see it on Models › Continuity and in each run's details.
Key budgets
Under Key budgets, give any key a cap per day or per month (UTC):
| State | Meaning | What routing does |
|---|---|---|
| OK | Under the warning threshold | Uses the key normally |
| Near cap | Past the warning threshold (80 % by default) | Prefers your other keys of the same vendor |
| At cap | Spend reached the cap | Hard cap: never uses the key until the period rolls — runs move to another key or fallback, or are refused if nothing permitted is left. Soft cap: uses the key only when nothing else is left |
| Out of credit | The vendor refused the key for lack of credit | Moves runs elsewhere; tries the key again after a while, or immediately when you click Topped up |
Each key also shows a forecast: at the current rate, when it will reach its cap.
Routing policies
A policy applies to one scope: the whole organisation, a workspace, a team, a model profile, or a single agent. The most specific policy wins. A policy on a model profile governs every agent of that profile at once — the way to manage thousands of agents.
A policy holds:
- Fallbacks — an ordered list of models (and optionally a specific key) to use when the agent's own model fails.
- Boundaries — whether failover may leave the agent's vendor, vendors never to use, whether to try the vendor's other keys first, and whether only qualified fallbacks may be used.
- Rules — "when this happens, move this scope there".
Rules
| When | Example |
|---|---|
| A key nears or reaches its budget, or is forecast to | Key finance at its cap |
| A vendor refuses a key for credit | Any OpenAI key out of credit |
| A vendor keeps failing | 5 failovers away from a vendor in 15 minutes |
| Runs find no permitted target | 1 refused run in 15 minutes |
| A time window | Every night 20:00–06:00 Europe/Paris |
| Then | Effect |
|---|---|
| Move to the next fallback | The scope runs on the first usable fallback of the pool |
| Move to the cheapest fallback | The scope runs on the least expensive usable fallback |
| Move to a specific model / key | The scope runs on the target you chose |
| Refuse new runs | The scope stops serving, with the reason shown to callers |
| Only notify | You are told; nothing moves |
Rules react within minutes, and within seconds when a key runs out of credit. Each move is a switch: audited, announced, visible under In force now, and reverted automatically once its cause has been gone for the revert delay (15 minutes by default), so a flapping vendor does not flap your fleet. You can also revert a switch by hand, or create one yourself (for a planned migration or an incident).
What if?
The What if? tab simulates an outage before it happens — a vendor down, a key out of credit, a model retired. It runs the same logic as live failover over every agent and shows:
- who would keep running, and on which model and key;
- who would stop because no permitted target is left — the list to fix first;
- the cost difference at the last 30 days' volume.
Nothing changes when you simulate.
Qualified fallbacks
A fallback model behaves differently from the model it replaces. To fail over only to models you have tested, run an A/B experiment with the fallback model as the challenger. When it concludes without losing, click Qualify as fallback: the model joins the agent's fallbacks with the experiment as evidence. Turn on Only fall back to qualified models in a policy to require it.
Events
Routing announces on the event bus (usable by webhooks, workflows and agents):
| Event | When |
|---|---|
governance.continuity.engaged | A run was served by a fallback |
governance.continuity.exhausted | A run found no permitted target |
governance.key.budget_warn / governance.key.budget_maxed | A key crossed its warning threshold / reached its cap |
governance.key.exhausted | A vendor refused a key for credit |
governance.routing.switched / governance.routing.reverted | A rule or an owner moved a scope / the move ended |
Who can change it
Viewing requires settings: read; policies, budgets and switches require settings: write (owners and admins).