· Piotr Gregorczyk · Engineering · 12 min read
Design for the day the model is down
AI features fail in two ways: loudly, when the provider is unreachable, and quietly, when the model changes underneath you. Not every process needs a manual path, but every process needs a decision about what happens without the model. Six design decisions to make before go-live, in any industry.
An AI provider is a component. Components fail. The workflow should not fail with them.
An AI feature inside a business process can fail in two ways.
It can fail loudly. The provider has a regional incident, a quota runs out, or a credential rotation goes wrong, and every call returns an error. Everyone notices within minutes.
It can fail quietly. The provider ships a new revision, someone edits a prompt, or the retrieval corpus is refreshed, and the outputs shift with no deploy and no incident. Nobody notices until two batches of results stop looking alike.
We already plan for databases, networks and identity providers failing. The model call is the dependency people still treat as magic. Both kinds of failure need a design decision before go-live. This post walks through six of them, one section each.
None of this is specific to one industry. If you work in a regulated one, the companion post, AI in GxP: where the rules are heading, maps the same decisions onto GMP, GCP and the EU AI Act. If you want to see the plumbing, a local LLM gateway with a fallback that actually answers shows one small implementation.
Decide what the process needs when the model is gone
The easy rule is “every process must work without AI”. It is also wrong, or at least too blunt.
Some features assist a task that exists without them: drafting a summary, suggesting a classification, pre-filling a form. The task was done by people before, and can be again. For these the rule holds: the process continues on the manual path when the model is down.
Other features enable a task that is not realistically possible without them at the required scale or speed. Examples are screening a large document corpus, continuous review of a data stream, or volume translation. A “manual path” for these exists only on paper. Writing one into the procedure does not create continuity.
So the question for each AI feature is not “is there a manual path?” but “what happens, and how fast, when the model is unavailable?” Three factors decide the answer:
- Impact. What is at stake if the step does not happen or happens wrongly: customer harm, money, safety, data integrity?
- Time-criticality. How long can the step wait? A weekly report can wait two days. A step with a regulatory or contractual deadline measured in hours or days cannot sit behind a provider outage of unknown length.
- Detectability. If the step fails silently, would anyone notice?
An AI-only process is acceptable when the risk assessment says it can tolerate the outage for a defined time, or when a degraded mode exists: queue and defer, reduce scope, process the highest-priority items first. That decision is written down, the recovery time is stated, and the plan is tested.
An AI-only process is not acceptable when the step is high-impact, time-critical and has no contingency. That combination needs a manual or alternative path, however rarely it is used.
Define the fallback
Once you know what the process needs, the fallback follows. In order of preference:
- The manual path, where one realistically exists. People know it, and it is already part of how the process works.
- A pre-qualified alternative. In general software engineering, “route to another model” is a reflex. But a different model is a different system, with different behaviour, different failure modes and possibly a different processing location. It is acceptable only if it was assessed for the same use, against the same acceptance criteria, before the outage. Its output is labelled as coming from the alternative, and its route respects any data residency constraints.
- A safe state. Stop, queue the work, and say so. A degraded answer that looks like a normal one is worse than no answer, because the reviewer has no reason to look harder.
Whatever the fallback, every AI feature needs its own kill switch. It is switched per feature, not per platform, it can be operated without a deployment, and its off state is designed: the screen says the feature is unavailable and what to do instead. Nobody waits on a spinner.
features:
drafting_assist: off # manual path available
document_screen: queue # AI-dependent: defer within the agreed recovery timeThe kill switch is also the first response to a quiet failure. A bad prompt or a misbehaving model revision gets the same treatment: switch off, fall back, fix under change control, switch on when the acceptance checks pass.
Two architectural choices make this easier. Route every model call through one gateway, so routing, fallback, pinning and logging live in one place and not in a dozen feature codebases. And treat the model provider as a supplier: ask what happens when they are unreachable, how you are notified of incidents and changes, where data is processed, how much notice you get before a version is retired, and how you would leave.
Contain the output
Keeping a feature available does not make its output a decision.
Oversight has to be meaningful, not symbolic. Human oversight is the broad objective: a qualified person can understand, challenge, override, reject or escalate. “Human in the loop”, where the process waits for a human action, is one way to implement it. It is one control, not a default for every use. And a reviewer who accepts every suggestion is not a control. Watch acceptance rates and train people on the failure modes, as you would for any other manual check. Automation bias is a known effect, not a character flaw.
The human action is attributable. Where a person decides, accept, edit or reject is recorded against a named user. Storing model text as if the accountable person had written it skips the control.
AI output is labelled and sourced. If the feature cannot attach sources, it says so before anyone is asked to rely on the output.
The audit trail is specific. For each AI-assisted action it records the model and exact version, the prompt version, the corpus version, the route (including any fallback), the user and the action. A provider usage log is not an audit trail. It tells you what was paid for, not what was decided.
A model change is a change
The loud failure is the easy one. The quiet one is where processes get hurt.
Four things are configuration items under change control: the model, the prompt, the retrieval corpus and the route. Changing any of them changes the output, so a change to any of them is evaluated against acceptance criteria before it reaches production.
Pin exact versions. A model family name is not a version. The integration calls a dated or versioned model identifier, and the audit trail stores that same identifier. Floating aliases such as “latest” belong in a sandbox. Because all calls go through one gateway, the pin lives in one place.
Get change visibility from the supplier. The responsibility for your process stays with you, even when the model is a third-party API. Supplier agreements should cover version retirement notice, change notification and access to the evidence you need to show the feature still works.
Expect forced changes. Providers retire model versions on their own schedule. A pinned version will eventually stop being available, so re-qualification is a planned, recurring activity, not a surprise. Track deprecation dates as you would any supplier end-of-life notice.
Name the acceptance checks. Required fields are present, sources are attached, refusal behaviour is intact, and nothing reaches the record without the defined human action. If a check can’t be named, the feature is not ready. Moving to a new version is then routine: run the checks, record the result, move the pin. The provider does not get to move it for you.
Treat the corpus like the weights. Different documents give different outputs, just as different weights do. Corpus updates go in the same change record as the model and the prompt. Otherwise the model is pinned and the knowledge base still floats.
Explain the output, then keep watching it
Pinning and change control stop the changes you know about. Two more controls deal with the rest: knowing why the model produced an output, and checking over time that it still behaves as it did when it was approved.
Explainability that fits the model
For predictive models (classifiers and scorers with defined input features) there are established tools:
- SHAP (Shapley Additive Explanations) assigns each input feature a contribution to a given prediction, based on Shapley values from game theory. It answers: how much did this feature push this output up or down?
- LIME (Local Interpretable Model-Agnostic Explanations) fits a simple, interpretable model around one prediction to approximate how the complex model behaves near that point. It answers: what would change this particular decision?
Attribution alone is not the control. Someone has to review, before go-live, that the model decides on relevant features. A visual inspection model that rejects items because of the lighting in one corner of the image has passed a test for the wrong reason. Attribution is how you catch that.
For generative models, these techniques fit poorly. Token-level attributions over a long prompt say little about whether a summary is correct. The practical equivalents are answers bound to retrieved sources with citations, structured outputs that can be checked against rules, and uncertainty or self-consistency scores. My working rule: if a feature cannot show what its output was based on, a person has to be able to check it against the source within the review step. If neither is possible, the feature does not belong on a path that produces decisions.
Confidence and the right to abstain
Log a confidence score per output where the model gives one, and apply a threshold. Below it, the feature flags the outcome as “undecided” and routes it to a person rather than guessing. This is the same safe-state idea as the fallback above, applied to a single output instead of the whole service. Abstaining is a designed outcome, not a failure.
Watching it over time
A model that passed its acceptance tests has been shown to work once, on one test set. For a hosted model behind a pinned version, I would run:
- A golden set on a schedule. A fixed, versioned set of representative inputs with approved expected outputs, re-run weekly and after every relevant change. A pinned version identifier says the model should not have changed. The golden set shows whether it actually hasn’t, including changes in the serving stack you cannot see.
- Input drift checks. New document types, a new market, a new language or a change in length distribution all mean the model is working outside what was tested.
- Human decision rates as a signal. Accept, edit and reject rates per feature, over time. A rising edit rate means quality has dropped. An accept rate near 100% can point to automation bias rather than a perfect model.
- Control limits with consequences. Put thresholds on these metrics, using ordinary statistical process control (CUSUM or EWMA charts work well). Crossing a limit triggers a defined action: review, rollback to the last approved version, or the kill switch.
Drift is not a new idea. Measuring instruments drift too, which is why calibration intervals exist. AI needs the same discipline, applied to model behaviour.
This is what connects the loud and the quiet failure. An outage trips the kill switch because calls fail. A quiet change trips it because a monitored metric crossed its limit. Either way, the process falls back to a known state.
Test the failure, not only the feature
Testing usually covers the feature working. The design only holds if the failures are tested too, on a schedule and after relevant changes:
- Kill switch drill. Switch the feature off. Confirm the process completes on the manual path, or queues correctly within the agreed recovery time, and that the screen says the right thing.
- Outage drill. Make the provider unreachable. Confirm the feature fails into its defined state, or that a pre-qualified alternative answers and is labelled as such. A timeout or a hang is a failed drill.
- Change drill. Run the acceptance checks on a candidate model or prompt version before moving the pin, and keep the evidence.
- Drift drill. Feed the monitoring a known-bad input set, such as out-of-scope documents or a degraded golden set. Confirm that the control limits trip and the defined action actually happens.
A drill that passed once, months ago, says little about today.
Checklist
- For each AI feature, is it classified as assisting or enabling, with a written decision on what happens without the model?
- For AI-dependent steps, is there a stated recovery time and a tested degraded mode or contingency?
- Does each feature have its own kill switch, operable without a deployment, with a designed off state?
- Do all model calls go through one gateway, where routing, pinning and logging live?
- Is any alternative model pre-qualified for the same use, labelled in output and compliant with data residency?
- Is human oversight defined per use case, with automation bias monitored?
- Is every human decision attributable and retained?
- Does the audit trail store model version, prompt version, corpus version, route, user and action?
- Are the model, prompt, corpus and route pinned and under change control, with supplier change visibility in the agreement?
- For predictive models, were feature attributions recorded and reviewed before go-live? For generative features, is every output bound to checkable sources?
- Is there a confidence threshold with an “undecided” outcome, instead of a forced answer?
- Are a golden set, input drift and human decision rates monitored, with control limits that trigger review, rollback or the kill switch?
- Have the kill switch, outage, change and drift drills been run recently?
The fault stays local
Single components fail. That is as true in medicine as in computer science, and Zero Adverse Stack is the decision not to pretend otherwise.
Not every process needs to run without AI. Every process needs a decision, made in advance and tested, about what happens when the AI is not there. On the day the model is down, the process either continues on another path or waits in a known state for a known time. On the day the model changes, nothing changes in the output until the change has been checked and approved.
If your process is regulated, the same decisions have names in your rulebook. The companion post, AI in GxP: where the rules are heading, shows where each one lands.
Author
Piotr Gregorczyk
I'm a strategic technology executive with 15+ years in CTO and CIO roles, after a foundational decade at Accenture.
An engineer at heart and a successful manager for years, I hold an MSc in Computer Engineering from Warsaw University of Technology and a recent Executive MBA.
I turn technology modernization into real business value, with experience across clinical research, insurance, banking, real estate, software and consulting.
The opinions on this site are my own and do not represent any company I work or have worked for.

