Every production failure starts with a fix that was not wrong, just not enough.
In the demo, an agent looks like magic. In production, it meets flaky tools, silent drift, runaway retries, and bills that triple while the dashboard says it has never been better. So the team reaches for a fix: a retry cap, a stricter prompt, a bigger model. Each one treats the symptom while the structural flaw waits for the next Saturday night. You cannot prompt your way out of an architecture problem.
Agentic AI System Design: Production Scenarios Under Pressure is a flight simulator for that moment. Each scenario drops you into a production incident at a realistic company, with real numbers, real stakes, and a deadline. You stop and think before you read on. You ask the questions a Staff engineer would ask, dismantle the tempting fixes, trace every symptom to its structural cause, and design the architecture that holds, then find out where even that design breaks.
📖 Inside Every Scenario
- Setup & Tipping Point: a three-panel story, the system as it stands, the evidence, and the moment it can't wait.
- Digest & Disarm: a Pause Point to think first, the questions worth asking, and the instinctive fixes labeled honestly: wrong, or not enough.
- The Pro Architecture: a root-cause map, numbered decisions, an architecture diagram tracing each one, and the napkin math behind them.
- Beyond: how answers are graded at Mid, Senior, and Staff+, and curveballs that test whether the design holds.
🗺️ Six Chapters, Two Parts
Part I: The Building Blocks
- Inference: Decoding, Structured Outputs & Serving. Why an output that reads perfectly breaks the program that receives it, and why a response is slow for reasons that have nothing to do with how hard the question was.
- Adapting Models: Prompting, Fine-Tuning, Distillation & Alignment. Where to change a model, from the words around it to its weights, and what each change can and cannot reach.
- Retrieval & Perception: Embeddings, Search & Vision. Why a system that finds similar things is not a system that finds the right one, and why seeing an image is not understanding it.
Part II: Agents in Production
- Agent Architecture: Control Flow, Tools & Memory. Who decides what happens next, what each step can see, and what the system remembers.
- Agent Security & Blast Radius. How far a plausible mistake can travel through an agent system, and what stands in its way.
- Agent Economics & Evaluation. What a finished task really costs, how often it is really right, and how a dashboard can improve while the system gets worse.
👤 Who This Book Is For
Two readers who turn out to need the same thing:
- Practitioners shipping LLMs and agents to production. If you already build these systems, the scenarios give you patterns for reliability, cost, evaluation, and containment, without vendor fluff or framework lock-in.
- Engineers preparing for AI system design interviews. Interviews have moved past "design a chatbot" to "here is a system losing money and misleading customers; what do you do?" Every scenario trains what interviewers score: clarifying the problem, diagnosing before drawing boxes, pricing decisions out loud, and reasoning at the Staff+ level.
💡 Why This Book
Most system design material falls into one of two traps: classic playbooks built for deterministic services, which say nothing about probabilistic failure, or framework tutorials that break the moment inputs leave the happy path. This book trains the judgment in between.
If The Agentic AI Book taught how these systems work, this book puts them under pressure.
Instructions are behavioral. Architecture is structural.
📚 Three Ways to Read
- Web Edition (free online): three complete scenarios.
- Core Edition (free with your email): the full "How to Think Under Pressure" framework (the Eight Pressures, the Pressure Loop, and the Napkin Math cheat sheet), all six chapter primers, and six complete scenarios, one from every chapter.
- Complete Edition (in progress, $12.99 today): the full book, written and released as it grows, from today's 40% to 100% in four installments, complete by February 2027. Buy now to lock in the lowest price it will ever have: every installment, and every update after that, is yours at no extra cost.