Degrade gracefully: designing AI features that keep working when the model doesn't
AI features that have quietly become part of engineers' workflows need designed fallbacks for both outright model outages and silent quality regressions. Model failover is harder than database failover. Prompts are tuned per model, legal and subprocessor constraints limit rerouting, fallback granularity is a design tradeoff, and unexercised fallbacks go stale. Skyscanner tames some of this with an LLM gateway and model tiers. Recommended principles: give every AI feature a deterministic or manual floor, compose features so failure is partial, keep models off the critical path, avoid models where determinism is required, exercise fallbacks with real traffic, and detect quality drops via LLM-as-judge metrics and user feedback signals.
Related posts
- Is AI just another third-party dependency? Yes, right up until it isn't
incident.io easyNoviceAI model providers can mostly be managed like any third-party dependency, with SLAs, SLOs, an LLM gateway, failover and observability, and they count toward dependency availability ceilings (three 99.99% components cap you near 99.97%). The analogy breaks on defining "healthy": a model can be up but worse, so teams at incident.io and Skyscanner monitor quality with LLM-as-judge grading, user feedback and evals. Debugging non-deterministic, multi-provider AI stacks is also a distinct skill. The contrarian takeaway is that if you are forcing a model to be fully deterministic, that part should probably be plain code, with deterministic fallbacks when the model fails.
- The GPT-5 Launch Broke the AI Internet (And Not in a Good Way)
Docker easyNoviceOpenAI's abrupt deprecation of older APIs alongside the GPT-5 launch broke many AI apps overnight, exposing how tightly prompt stacks and RAG pipelines couple to a single model's behavior. The proposed answer is an "AI High Availability" posture: parallel prompt libraries and RAG pipelines per model family, cloud APIs with containerized local fallbacks, caching of embeddings and intermediate states, and monitoring for behavioral drift. A checklist covers abstracting the API layer, config-driven model swaps with feature flags and rollback, fail-soft fallback chains, multi-vendor integrations, deprecation monitoring and cross-model contract tests.
- Tooling ≠ Glue: Why changing AI workflows still feels like duct tape
Docker easyNoviceAI pipelines built from LangChain, vector stores, embedding models and LLM providers look modular but are tightly coupled through undocumented assumptions about tokenization, prompt formats, retries and latency, so swapping one component breaks others. Leaky abstractions and the lack of interoperability standards are the cause, since MCP is still early, and notebook glue fails in production. The recommended fixes are formal interface contracts (OpenAPI, Protobuf, JSON Schema) instead of SDK lock-in, explicit error types with native retries and fallbacks, observability from the start, and declarative pipelines that let steps be swapped without rewrites.
- IBM and UC Berkeley Diagnose Why Enterprise Agents Fail Using IT-Bench and MAST
Hugging Face mediumAdeptApplying the MAST failure taxonomy to 310 annotated ITBench SRE agent traces shows that frontier models fail in isolated ways (Gemini-3-Flash averages 2.6 failure modes per failed trace). Open models fail through cascading errors (Kimi-K2 4.7, GPT-OSS-120B 5.3), where an early reasoning-action mismatch poisons context and leads to derailment. Incorrect verification is the strongest predictor of failure overall: agents declare success without checking ground truth. Kimi-K2 struggles mainly with termination, and GPT-OSS-120B loses conversation history in 24% of traces. The recommended fixes are architectural rather than prompt tweaks: external tool-based verification gates, termination and loop control via state machines outside the model, explicit clarify-or-read-only branches, and aggressive context hygiene.
- AI Changed How Spotify Builds. What We Learned (and Fixed) About Quality at Higher Velocity
Spotify Engineering easyNoviceSpotify's quality regressions during its AI ramp-up came not from AI-authored code but from change volume outpacing verification, plus AI-driven compute scarcity that made regional failovers visible to users. Fixes include end-to-end monitoring and scheduler/priority changes for content processing, stronger safeguards and working-hours scheduling for automated fleet updates, doubled reserved edge capacity with tiered failover, and broader long-term quality signals for mobile releases. Internal data shows merged PRs doubling (8,100 to 17,000) with quality work rising from 27% to 31% and no rise in a rebuilt, age-weighted rework rate, though growing PR size and complexity remain open warning signals.