skip to content

As the lead who owns a company's model gateway, which model substitutions would you let it make silently, and what would you alert on when it substitutes?

level: principalimportance: should knowfreq 38%

answer

  1. green error rate, hidden incident
  2. tiers of substitution
  3. the answering model on every record
  4. fallback share per route

basics

~20 s

Allow silent substitution only where answers stay equivalent: the same model in another region, account or approved host. Require route opt-in and a visible answering-model field for a different model, and alert on each route's fallback share, not errors.

solid answer

~50 s

Silent failover keeps the error rate green, which is exactly why it hides a vendor incident: the only symptoms are answers that drift, cost more or parse differently. I would tier substitutions. The **same model in another region or account** can be silent, because the model itself is unchanged, provided the route's data rules allow that region. The **same model on another host** can be silent only once the host is approved and the route's evals pass on it. A **different model** is never silent: the route must opt in, the entry must pass the route's evals, and every response and log record names the model that actually answered. The alert is the **fallback share per route**, the fraction of calls served by anything other than the primary, against its normal baseline, plus chain exhaustion. Reasonable leads differ on where tier two ends, but the fallback share is non-negotiable.

go deeper

for a junior

Recall that good failover keeps errors low, so a provider outage can go unnoticed unless the gateway records which model answered each call.

for a middle

Explain the difference between same-model and different-model substitution, and why the answering model must appear on responses and log records.

for a senior

Show the alert design: fallback share per route against baseline, chain exhaustion, ejections per target, and cost and quality split by answering model.

for a principal

Own the tiered default and its exceptions, weighing availability against fidelity per route, and defend where the line on approved hosts sits.

## Why silent substitution hides incidents A gateway that fails over well makes outages disappear from the dashboards people watch. The primary region degrades, calls move to the fallback, and the **error rate returned to applications stays near zero**. That is the goal, and also the danger: - **The incident becomes invisible.** Nobody learns the primary has been failing for six hours, so nobody escalates to the vendor, plans capacity or checks the fallback's limits. - **Quality drifts quietly.** If the fallback is a different model, answers change in style, format adherence and refusal rate, and users notice before the team does. - **Cost moves.** The fallback may cost more per call and tokenise text differently, so spend jumps without any change in traffic. - **Debugging goes blind.** A bug report about a strange answer cannot be explained if nobody can tell which model wrote it. So the policy question is not "should the gateway fail over" but **which substitutions it may make without telling anyone, and how every substitution stays visible somewhere**. ## A tiered policy | Tier | Example | Silent? | Condition | |---|---|---|---| | 1. Same model, same provider, other region or account | Primary region down, second region serves | Yes | The route's data rules allow that region | | 2. Same model, another host | Same open-weight checkpoint at a second host | Yes, once approved | Host approved by the platform; route evals pass on it | | 3. Different model | Another vendor's model | No | Route opts in; entry passes route evals; answering model is exposed | | 4. Nothing left | Chain exhausted | No | Clear error to the caller, with the targets tried | Tier 1 is safe because the model itself does not change. Tier 2 is nearly safe, but hosts can serve different precision or versions, which is why approval and evaluation come first. Tier 3 changes the product, so the feature team decides, not the gateway. Where a request may go for data-residency reasons is a separate set of rules that sits above all of this and can remove a tier for a route. ## Make every substitution visible somewhere Silent to the user is not the same as invisible to the company: - **Every response carries the answering model and target**, in a field the calling application can read and log. - **Every gateway log record stores the resolved target**, so a strange answer can be traced back to the model that wrote it. - **Fallback events are counted per route and per target**, so the platform team and the route owner both see them. - **Cost is attributed to the target that answered**, not the one that was requested. ## What to alert on Error rate is the wrong primary signal, because good failover holds it down. Useful alerts, in rough priority: 1. **Fallback share per route**: the fraction of a route's calls answered by anything other than its primary, compared with its normal baseline. A jump from a few percent to most of the traffic is the incident. 2. **Chain exhaustion**: calls that ran out of entries; these are real user-facing failures. 3. **Ejections per target**: which provider, region or account is being routed around, and for how long. 4. **Tier-3 traffic on any route**: different-model answers are rare by design, so any sustained amount deserves a look. 5. **Quality and cost signals on fallback traffic**: parse failures, refusal rate and cost per call, split by answering model. Not every single fallback event should page someone; a few percent is normal. Alert on sustained deviation, route by route. ## Who decides, and where leads differ The platform team owns the default: tier 1 on for every route, tier 2 on for approved hosts, tier 3 off unless a route opts in. Route owners own exceptions, because only they know what a different model breaks. The trade is availability against fidelity: - A consumer chat feature may happily accept a different model to stay up. - A regulated workflow may prefer an error to any answer from an unreviewed model, and may rule out tier 2 too. - Some providers and hosts differ in their data-handling terms, which can rule out an entry regardless of quality. Reasonable leads disagree about tier 2 in particular: some treat any change of host as a change of supplier that needs the route owner's consent. What they should not disagree about is that every substitution is recorded and that fallback share, not error rate, is what tells you a provider is in trouble.

  • Why is a green application error rate misleading while the gateway is failing over?
    Good failover converts provider failures into successful answers from other targets, so the error rate stays low by design. The incident shows up instead as a rising share of calls served by fallback entries, and possibly as drift in quality or cost. A dashboard that only watches errors reports health exactly when a vendor is down.
  • Should a regulated workflow ever allow a different-model fallback?
    Only if the substitute has been reviewed for that workflow like any model change: evaluated on its cases, cleared for the data it would see, and accepted by the owner. Many regulated routes reasonably choose a clear error instead, because an unreviewed answer is worse than no answer. It is the route owner's call, recorded in the route's policy.

  • If the user got an answer, which model wrote it does not matter.
  • Error rate is the right alert for provider incidents behind failover.
  • Every single fallback event should page the on-call engineer.
  • Feature teams never need to know that their route fell back.
  • Allow every substitution silently, since availability matters most.