Lesson 3 of 8 · 3 min read
Designing for Failure
A production agent design is judged by what happens when parts fail. Build a failure-mode table per component (model, tools, context, state, people, cost) scored by severity, likelihood and detectability to rank where to invest. Then choose responses: fail safe for consequential actions, degrade gracefully for availability, contain spread with caps and isolation, recover with idempotency and compensation, and detect with alerts. Fault injection turns the table into tested behaviour.
Get full Premium access · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal
Practise it as an interviewer asks it
How do you approach an agentic system design interview? Give the method you would use on any prompt.ReAct, plan-and-execute, or an explicit state graph: pick one for a refund workflow.pass@k or pass^k: which one do you report for a customer-service agent, and why?Design a customer support agent that can issue refunds.Design a shopping agent that can complete purchases while the user is away.Design the harness for an internal coding agent that fixes failing tests across your company's repositories.