# Day 55: Why observability is not optional for AI systems

Every agent team eventually hits the same moment. A user reports a bad outcome from yesterday, and someone asks: can we see what it did?

The answer to that question was decided months earlier, when tracing either was or was not built.

## Logging the answer is not tracing

A production trace connects the full causal chain for one request, under one ID, navigable end to end.

<table>
  <thead>
    <tr><th>Step</th><th>What to capture</th><th>What it lets you answer</th></tr>
  </thead>
  <tbody>
    <tr><td>Input</td><td>request, user context, request ID</td><td>Can we reproduce it?</td></tr>
    <tr><td>Retrieval</td><td>queries, filters, source IDs, ranks</td><td>Was the evidence there, and did it rank?</td></tr>
    <tr><td>Model call</td><td>prompt, response, tokens, model version</td><td>What did it actually see?</td></tr>
    <tr><td>Tool call</td><td>tool, arguments, result, duration</td><td>What did it do to the world?</td></tr>
    <tr><td>Handoff</td><td>payload passed between agents</td><td>Where did context get lost?</td></tr>
    <tr><td>Decision</td><td>output, confidence, owner</td><td>Who is accountable?</td></tr>
  </tbody>
</table>

## What it converts

**Adjectives into locations.** "The model hallucinated" becomes "the 2024 policy entered context at step 3 because the freshness filter was not applied." Different sentence, different owner, different fix.

**Guesses into attribution.** The step burning 80% of your tokens becomes visible, and it is rarely the one people predicted.

**Apologies into answers.** When compliance asks why the system approved something, you replay it rather than reconstructing it from memory and hope.

## Capture context without capturing everything

The tension nobody mentions: traces are useful in proportion to their detail, and prompts and retrieved documents routinely contain personal data.

Resolve it deliberately, redact or tokenise sensitive fields, store references rather than payloads where you can, and set retention that satisfies both debugging and privacy. This is a design decision, and making it late usually means making it badly, in one direction or the other.

## The retrofit trap

Teams add tracing after the incident that needed it. Which means debugging that incident blind, and instrumenting a system that is now large, live, and load-bearing.

Instrument on day one, while it is small enough that instrumenting is easy.

## Closing thought

You cannot operate what you cannot see, and AI failures are particularly good at looking like normal answers. Observability is the control surface for production AI, not a nice-to-have you add once things get serious. Things being serious is when you need it to already exist.

*Day 55 of 60 Days of Production AI Systems.*

---

**Previous:** [Day 54: Why multi-agent systems need decision rules](https://blog.vamsiannamreddy.com/day-54-why-multi-agent-systems-need-decision-rules)  
**Next:** [Day 56: Why evaluating the model is not enough](https://blog.vamsiannamreddy.com/day-56-why-evaluating-the-model-is-not-enough)  

*Day 55 of 60 · Production AI Readiness (chapter 10 of 10)*
