Three days before launch, someone from security asks a fair question. If a document your agent reads told it to email a customer list outside the company, would you know?

The room usually splits into two answers. One person says the model would never fall for that, and another says there are logs. Neither is an answer, and everybody can tell.

The uncomfortable part is that the answer cannot be changed in three days. Whether that event is visible was decided when tracing was written or skipped, whether the retrieval path was isolated from the tool credentials, whether anyone owns the system by name. All of that was settled months earlier by people not thinking about readiness at all.

I spent the final six days of a sixty-day series on this, and the argument that came out is narrower than "be careful in production": the things that make an AI system operable are properties you buy cheaply before launch or expensively and partially afterwards, and every one exists so the system can account for itself.

You cannot investigate a system that wrote nothing down

A user reports a bad outcome from yesterday and someone asks what the system actually did. If the honest answer is that you have the final response and a timestamp, the investigation is over before it starts.

The distinction that matters is between logging and tracing. Logging the answer tells you what came out. A trace connects the whole causal chain for one request under one identifier: the input, the retrieval queries and which sources ranked, the prompt the model actually saw, the tool calls and their arguments, what passed between agents, who owned the decision.

Without that, incidents get described in adjectives, like "the model hallucinated" or "it went off the rails". With it, the same incident has a location. The 2024 policy entered context at step three because the freshness filter never applied to that source. That description points to a different owner and a different fix.

There is a real tension to resolve, because traces are useful in proportion to their detail and prompts are full of personal data. Redact, store references rather than payloads where you can, and set retention that satisfies both debugging and privacy. Deciding this late usually means deciding it badly in one direction or the other.

Every component can pass while the system fails

The characteristic failure of a multi-component AI system is that every part is green and the user is still unhappy. The retriever found correct facts and the writer produced clean prose, but the handoff between them dropped the one constraint that made the answer usable. That failure belongs to neither component, so it appears on neither scorecard, by construction rather than oversight.

Component metrics tell you where a fault is. System metrics tell you whether there is one. When evaluation grows one component at a time, only the first kind gets built, because it is easier to attribute. The ones worth adding above it are task success against the outcome the user needed, grounding of claims in gathered evidence, coordination quality across handoffs, efficiency per completed task rather than per call, policy adherence, and human intervention rate.

Intervention rate deserves its own dashboard. If the rate at which humans rescue runs holds steady over time, the system is running but not improving. A rising rate on a stable workload is also the earliest drift signal you will get, usually moving before any quality metric. A falling rate needs checking as well, because it also falls when reviewers stop looking; sample the runs nobody touched.

And a correct answer can still be a failure. An accurate, well-grounded response that took ninety seconds when the user needed five did not do the job.

The documents your agent reads were written by strangers

Somewhere in the corpus your system retrieves from today, someone may have written an instruction aimed at your agent rather than a reader.

This is not exotic. Every document an agent reads is input somebody else controls, whether a web page, an emailed PDF, a wiki anyone can edit or a support ticket a customer typed. Reading the world is the normal operating condition, which makes this the normal attack surface.

It is architectural rather than a prompt bug, because to the model everything in the context window is tokens. Your system instructions and an attacker's sentence inside a retrieved page arrive with the same standing. A successful injection looks like the system helpfully following instructions, which happen to be the wrong ones.

The defence people reach for first is detection, and detection is exactly the capability the attacker is targeting. It is a useful layer and a poor foundation. What holds regardless of what the model believes are the controls that shrink blast radius: least privilege, so an injected instruction reaches only what the agent's credentials reach; approval gates on irreversible actions, so the intruder can request but never approve; isolation, so the component reading arbitrary documents is not the one holding write credentials.

Then go and test it. Plant a hostile instruction in a document your system will retrieve and watch. It takes fifteen minutes, and until someone has done it every control above is an assumption. If the agent obeys the planted instruction, you have found the gap before an attacker did.

Governance decomposes into engineering artefacts

Ask who owns an AI system you have in production. The answer should be the person who answers when it misbehaves, rather than a team. If the room goes quiet, that is an architecture gap that appears on no diagram.

Governance sounds like paperwork and decomposes into engineering artefacts: policy, written before the incident that needed it; approval on the record, or nobody can say who decided it was ready; audit, which is a data-retention choice made up front or not at all; privacy, meaning whose data flows through and how it exits on request; and incident response, meaning who gets paged and what gets switched off.

The failure mode worth naming is a policy sentence that no technical control enforces. "The system must not access customer data without consent" stays a sentence until something enforces it, and if the enforcement is the prompt asking nicely, you have documentation. The governed version is a policy enforcement point on the data path that checks consent before the record reaches the model. The two look identical until an audit or an incident, which is exactly when the difference gets expensive.

Each of those artefacts costs far more to add after launch than before, and the retrofitted version is usually partial in ways nobody notices until a real request tests it.

Inventory the components a live system runs

Inventory what a live system actually runs and the model turns out to be one item among many: model routing with fallbacks, retrieval with permissions and freshness enforced at query time, tools with scoped credentials and logged calls, memory with retention rules, tracing on every step, injection defence at every boundary where outside content enters, evaluation gates in front of every change, budgets with enforced ceilings, and named humans holding the keys.

None of it is exotic, which is why the gap between a demo and a production system keeps surprising anyone who judges readiness from the demo. The demo exercises the happy path through three components. Production exercises every path through twelve.

The diagnostic takes an hour. Trace one real request end to end and ask, at each layer, who owns it, what monitors it and what happens if it fails. The layer with no answer is your weakest, and it is rarely the model. Usually it is retrieval freshness, tool permissions, or evaluation, most often evaluation, because its absence produces no symptom until something else breaks.

Ask the readiness question of every layer, early

Intimidating architectures talk people out of starting, but nobody builds all of this at once. Every control in a mature system got added because a failure taught the team why it existed. The teams that suffer least simply let staging teach the lesson instead of production.

So treat readiness as a question you can ask of any layer at any time, rather than a phase you enter three days before launch. For each layer, ask what behaviour the model is responsible for, whether the system can find current, authorised evidence, which actions are allowed, logged and reversible, where autonomy is bounded, how you would know it is improving, and who owns the risk.

Answer those for the architecture you have now, which should be the smallest one you can operate safely, and add layers when the workflow earns them. The mistake is treating the answers as a shopping list. Retrieval, tools, memory, agents and evaluation bolted on as separate initiatives produce components nobody coordinates and an outcome nobody owns.

What the six add up to

Taken together, they argue that an AI system is production-ready when it can account for itself, and every property that makes that true has to be designed in while it is still cheap.

Tracing is the system explaining what it did. System-level evaluation is it demonstrating whether it works. Injection defence is it keeping straight which inputs may give it orders. Governance is a named human able to answer for it. These are four disciplines on the org chart and one requirement seen from four angles, which is why teams that skip one usually turn out to have skipped all of them.

It is also why this is the last chapter rather than an appendix. The earlier ones are about making an AI system capable. This one is about making it operable, and capability without operability works impressively right up until the first time you have to explain it.

So ask yourself the opening question before security does, and answer it by doing rather than asserting. Plant that document in staging, then produce the trace showing what the agent did, the control that stopped the email, and the name of the person who owns the result. Each one you cannot produce is a property you can still buy at pre-launch prices.

Read the chapter in full

Each is a short standalone post in the journal, with the specifics and what to actually do:

They are the closing chapter, Production AI Readiness, of 60 Days of Production AI Systems, a series on building AI that survives real users. Arriving at the end first is a reasonable way in, because it tells you what everything earlier was building towards. The series page lays out all sixty in ten chapters.

About this deep dive

Format
Deep dive
Level
Practitioner
Read
7 min read
Published
Oct 4, 2026

Long-form engineering, further than a blog post goes.

Architecture pattern · · 1 min read

Pattern: the outbox for agent actions

Agents that write to systems of record need the same transactional outbox that event-driven services use. This entry covers the shape and the trade-offs.