Skip to content
HomeHomePathsPathsLibraryLibraryNewsNews
Engineering ContextAgent Engineer
HomeHomePathsPathsLibraryLibraryNewsNews

0 of 196 articlesMap

1Foundations
How LLMs Work0/8
Large Language ModelsTokens and Next-Token PredictionLLM API Requests and ResponsesTemperature and SamplingNon-Determinism in LLM OutputPretraining and Post-TrainingTransformers and AttentionReasoning Models and Test-Time Compute
Prompting & Structured Outputs0/8
Writing Clear InstructionsInstruction HierarchyFew-Shot ExamplesJSON Schemas for Model OutputStructured Outputs and Constrained DecodingValidating and Repairing Structured OutputPrompt Templates and VersioningSplitting System Prompts
Context Engineering0/10
Model Context and Conversation StatePrompt Engineering and Context EngineeringContext BudgetsContext RotJust-in-Time ContextSkills and Progressive DisclosureContext CompactionExact Facts and Authoritative StateContext Selection, Prioritization and AssemblyMultimodal Context
Evaluation Fundamentals0/12
Evals and Unit TestsEval DatasetsEval GradersRubrics and Scoring ScalesPrecision, Recall and the Confusion MatrixLLM-as-a-JudgeRepeated Trials and VarianceEval Slices and Error AnalysisBoundary and Perturbation CasesOffline and Online EvaluationRegression Cases from Production FailuresRegression Gates for AI Systems
Models, Latency & Cost0/7
Model SelectionInference Cost per TaskLLM LatencyPrompt CachingPareto Frontiers and Service ModesModel RoutingModel Fallbacks
Overview
Topic overview
2Retrieval
RAG Fundamentals0/5
Retrieval-Augmented GenerationThe RAG PipelineRetrieval and Generation FailuresLong Context and RAGRetrieval Methods for RAG
Grounded Generation0/3
Evidence Blocks and ProvenanceClaim-Level GroundingAbstention and Partial Answers
3Building agents
Agent vs Workflow0/6
AI AgentsWorkflows and AgentsModel Call, Workflow or AgentThe Autonomy SpectrumAgentic Steps in Deterministic WorkflowsPlacing the Agentic Boundary
The Agent Loop & Runtime0/6
The Agent LoopThe Agent RuntimeStopping ConditionsStep, Token, Time and Dollar BudgetsTool Result ValidationRecovering from Failed Actions
Tool Use & Tool Design0/6
Function Calling from First PrinciplesDesigning a Good Tool SchemaTool DescriptionsStructured Tool ErrorsWorkflow-Shaped ToolsProgressive Tool Discovery
Agentic Workflow Patterns0/7
Prompt ChainingWorkflow RoutingParallelizationOrchestrator-WorkerEvaluator-OptimizerPlanner-ExecutorChoosing a Workflow Pattern
Multi-Agent Design Fundamentals0/6
Single-Agent or Multi-Agent DesignValid Reasons to Introduce SubagentsHandoffs and Agents as ToolsSupervisor-Worker ArchitectureContext Transfer Between AgentsMulti-Agent Topologies
State, Session & Memory0/8
Context, State, Memory and KnowledgeSession StateShort-Term and Long-Term MemoryMemory Write PolicyMemory Provenance, TTL and ConfidenceContradictory and Stale MemoriesMemory PoisoningMemory Retrieval and RAG
Durable Agent Execution Fundamentals0/6
Checkpointing Agent RunsAction Records and ReconciliationIdempotency Keys for Agent ActionsPausing and Resuming Agent RunsRetries and Replanning After ResumeProduction Agent Runtime Architecture
Human-in-the-Loop0/5
Risk-Based Approval PoliciesApproval Gates for Consequential ActionsBinding Approval to the Exact ActionEscalation and Timeout PoliciesApproval Review Cards
4Evaluate, secure and connect
Agent Evaluation0/9
Agent Success CriteriaTask-Level and Step-Level EvaluationFinal-State Grading for AgentsTool-Use EvaluationEvaluating Agent TrajectoriesAgent Capability TasksPartial Credit and Composite Agent ScoresFailure-Case Regression SuitesTesting Agent Graders
Agent Security Fundamentals0/9
Direct and Indirect Prompt InjectionPrompt Defences and Security BoundariesTool PoisoningLeast-Privilege ToolsSecrets and Credential IsolationNetwork Egress ControlsPolicy Enforcement Outside the ModelThreat Modeling Agent SystemsIndirect Prompt Injection in RAG
MCP Fundamentals & Production Integration0/8
Model Context Protocol (MCP)MCP Tools, Resources and PromptsMCP and Function CallingHost, Client, Server and Trust BoundariesMCP Transports and Stateless RequestsWrapping REST APIs with MCPMCP Authentication and AuthorizationMCP Server Trust and Threats
Agent Observability0/7
Anatomy of an Agent TraceTrace Context PropagationTrace Redaction and SamplingProduction Error TaxonomiesOperational Metrics and SLOs for AgentsTrace-Based DebuggingEval Fixtures from Traces
Agent Sandboxing Fundamentals0/7
Code Execution SandboxesFilesystem IsolationNetwork IsolationResource LimitsPackage Installation PolicySandbox Credential IsolationEphemeral and Persistent Workspaces
Agent UX0/7
Showing Agent ProgressInterruptible AgentsCommunicating UncertaintyPresenting Tool Actions to UsersStale Approvals in the UIConfirmation TiersAction Receipts and Recovery States
Computer & Browser Use Agents0/6
API, RPA or Computer UseThe Computer-Use LoopAccessibility Trees and ScreenshotsBrowser Sessions and File HandoffsSensitive Actions in Computer UseEvaluating Computer-Use Agents
5Production
Agent Contracts & Testing Fundamentals0/5
Typed Tool ContractsSchema Validation Between AgentsUntrusted Text as DataContract VersioningMocks and Real-Model Tests
Agent Reliability Fundamentals0/6
Timeouts, Retries and BackoffCircuit Breakers for Agent ToolsQueues, Leases and Worker RecoveryIdempotent Consumers and OutboxesRate Limits and BackpressureRunaway-Agent Detection
Agent Identity & Delegation Fundamentals0/4
Agent Identity and AttributionDelegating User Permissions to an AgentAudience-Bound Short-Lived TokensBlast Radius of a Leaked Token
Agent Performance & Cost Fundamentals0/5
Agent Latency and the Critical PathContext Reduction for Cost and LatencySafe Parallel CallsCaching StrategiesDeterministic Code Instead of Model Calls
AI Software Development Lifecycle0/8
Prototype, Pilot and ProductionEval-Driven DevelopmentVersioning AI ReleasesCI Quality Gates for AICanary and Shadow ReleasesRollback and Fallback PlansProduction Feedback LoopsTraining Data Design, Leakage and Versioning
Agent Governance Fundamentals0/6
AI Audit LogsPII and Sensitive Data BoundariesRetention and DeletionModel and Data ProvenanceRisk-Tiered Human ApprovalAI Risk Classification and Control Mapping
Production Agent Design & Capstone0/6
Design an Enterprise RAG AssistantDesign a Customer Support AgentDesign a Secure Email AgentDesign a Long-Running Research AgentDesign a Multi-Agent Research SystemProduction Agent Capstone
Agent EngineerStage 1, FoundationsModels, Latency & Cost

Model Fallbacks

Production10 min readVerified 11 Nov 2026 · 5 sourcesSign in to read

In this article

  • Decide from the kind of failure whether to retry the same model or stop and look for a replacement.
  • Write a capability contract for a route and test a candidate replacement against every item of it.
  • Choose between a full switch, an announced degraded mode and failing closed, and say what the user sees in each.
  • Explain why a replacement that answers every request can still be the wrong one for a route that takes an action.
  • Terms defined here: model fallback, degraded mode, fail closed.

Overview

The model your product runs on stops answering: an outage, a limit, a retired version. The easy reaction is "send it to some other model", and it causes the worst incidents, because the other model answers while doing a different job.

In an invented example, Brightline, a home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. It handles three kinds of request, each with its own model setup, called a route. Two routes run on one model, orbit-flash-3, and that model has stopped answering. You will decide when to retry, when to switch, when to run a reduced service on purpose, and when to stop and hand the work to a person.

Sign in to keep reading

The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.

Still to read in this article

  1. When the model is out of reach
  2. Retry or switch
  3. The capability contract
  4. Two candidates
  5. Four failures, four answers
  6. Fallback lists in real tools
  7. Common mistakes
  8. In production
  9. Sources
  10. Check yourself, 13 questions