After this lesson, you will be able to:
- Name the standard failure classes that arrive with real traffic, and the hardening measure that answers each
- Sequence a hardening pass when the calendar will not fit all of it
- Add the LLM-specific production layer: guardrails, cost controls, and drift monitoring
- Sell hardening time to a customer who thinks the demo already works
Your prototype works. A real user would miss it if it vanished, the sponsor has seen it, and the pressure now is to roll it out to everyone, immediately, as is.
This is the most dangerous compliment an FDE receives. The distance between a prototype that works and a system that survives is real, invisible to everyone watching the demo, and entirely your job to defend.
#A day of traffic, simulated
The failures that find production systems are not exotic. They are a short, standard list, and each one has a known, affordable answer. Run the day below a few times: first with nothing enabled, then adding one measure at a time.
Notice what the simulation is claiming. Not that disasters might strike, but that these six arrive on an ordinary day: a rate-limited API, an oversized input, a curious colleague with a URL, a slow dependency, a provider outage, a security scan. None is rare. The only variable is whether each one is an incident or a log line.
The calendar allows two hardening measures before Monday's rollout, not six. Judging by blast radius, which two go first?
#The hardening pass, in order
When the field forces you to sequence, the ordering that survives contact with reality ranks by damage, not by effort.
First, the trust-enders: authentication with scoped tokens, input validation at every boundary, secrets out of code and into a vault. Failures in this tier do not degrade the system, they end the engagement. The security scan that finds a key in a config file freezes deployments; the unauthenticated endpoint becomes a breach disclosure.
Second, the invisibility-enders: monitoring, alerts, and structured logs. Not because observability is noble, but because every other failure class becomes survivable once you learn about it before the customer does. The pilot lesson coming next depends entirely on this tier existing.
Third, the availability tier: retries with backoff, timeouts, and a graceful degradation path. This is where LLM systems differ most from ordinary web apps: your core dependency is an external service with its own bad days, and the difference between an outage and a banner saying results may be delayed is one afternoon of engineering.
#The LLM-specific layer
AI systems add a production layer that classic checklists miss, and it is becoming the thing hiring loops probe hardest.
Guardrails on both ends. Inputs get screened for the things your system must not process: prompt injection attempts, data from categories the contract excludes. Outputs get validated before they act: schema checks on structured output, policy checks on generated text, and a hard rule that anything failing validation degrades to the human path rather than guessing.
Cost controls. A prototype that costs pennies per demo becomes a bill when three hundred operators use it hourly. Per-user and per-day budget caps, alerts on anomalies, and a dashboard the sponsor can see. Few things damage an engagement like a surprise invoice the sponsor has to explain upward.
Drift monitoring. Your eval harness ran at build time; production quality decays silently as inputs shift and providers update models. Sample live traffic, score it against the harness weekly, and alert on movement. This closes the loop the prototyping lesson opened: the same fifty cases that proved the system now stand guard over it.
The degradation path deserves its own sentence: every LLM feature needs an answer to what happens when the model is down, wrong, or too slow, and the answer is designed, not discovered during the outage.
#Selling the hardening pass
The customer watched the demo work. From their side, two more weeks before rollout is cost without visible progress, and the pressure to skip it will come wrapped in a compliment: it already works, just ship it.
Two moves make the case without spending trust. Translate each measure into an incident the customer already fears: auth is the analyst who finds the URL, validation is the Monday morning outage, secrets is the frozen deployment. Abstract robustness bores executives; specific Mondays do not. And ship user-visible slivers alongside the hardening, because a rollout to one more team during the pass keeps momentum visible while the unglamorous work lands underneath.
What you do not do is skip it silently and hope. The FDE owns the outcome. That was the definition in lesson one, and this is the phase where the definition collects.
Why does the trust-ender tier (auth, validation, secrets) outrank availability work in a compressed schedule?
#Key Takeaways
- Six ordinary failures find every deployment. Each is an incident or a log line depending on work done in advance.
- Sequence by damage: trust-enders, then invisibility-enders, then availability.
- LLM systems add guardrails on both ends, cost controls the sponsor can see, and drift monitoring built on the eval harness.
- Every LLM feature needs a designed degradation path before the outage, not during it.
- Sell hardening as specific incidents avoided, shipped alongside visible slivers. Never skip it silently.