Skip to main content

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:

  1. 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.
  2. The fallbacks of the agent's routing policy, in the order you set.
  3. Your organisation's failover chain (Models › Continuity › Defaults), across vendors if you allow it.
When a provider refuses, MeetLoyd tries another key of the same vendor, then the policy fallbacks, then your organisation's failover chain, and refuses the run if no permitted target is left.When a provider refuses, MeetLoyd tries another key of the same vendor, then the policy fallbacks, then your organisation's failover chain, and refuses the run if no permitted target is left.

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):

StateMeaningWhat routing does
OKUnder the warning thresholdUses the key normally
Near capPast the warning threshold (80 % by default)Prefers your other keys of the same vendor
At capSpend reached the capHard 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 creditThe vendor refused the key for lack of creditMoves 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​

WhenExample
A key nears or reaches its budget, or is forecast toKey finance at its cap
A vendor refuses a key for creditAny OpenAI key out of credit
A vendor keeps failing5 failovers away from a vendor in 15 minutes
Runs find no permitted target1 refused run in 15 minutes
A time windowEvery night 20:00–06:00 Europe/Paris
ThenEffect
Move to the next fallbackThe scope runs on the first usable fallback of the pool
Move to the cheapest fallbackThe scope runs on the least expensive usable fallback
Move to a specific model / keyThe scope runs on the target you chose
Refuse new runsThe scope stops serving, with the reason shown to callers
Only notifyYou 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):

EventWhen
governance.continuity.engagedA run was served by a fallback
governance.continuity.exhaustedA run found no permitted target
governance.key.budget_warn / governance.key.budget_maxedA key crossed its warning threshold / reached its cap
governance.key.exhaustedA vendor refused a key for credit
governance.routing.switched / governance.routing.revertedA 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).