All writing
  • Agentic AI
  • Observability
  • Reliability

Observability for Agents: You Can't Debug What You Can't Trace

A non-deterministic agent fails once and never the same way twice — and a log file can't explain a failure you can't reproduce. The 2026 answer is observability built for agents: capture the full execution trace, correlate what the agent intended (its prompts) with what it actually did (its system calls), and represent that trace as structured data rather than plain text. One framework bridges the intent-vs-action gap with eBPF boundary tracing at under 3% overhead; another shows that how you format a trace can cut analysis cost by half to two-thirds. Observability is becoming the floor under everything else you do with agents — evaluation, debugging, and security all sit on top of it.

A traditional program fails the same way every time you give it the same input, so a log file and a stack trace are usually enough to find the bug. An agent doesn’t work like that. Give it the same task twice and it may take two different paths, succeed once and fail once, and leave you a log that explains neither. When a non-deterministic system fails in a way you can’t reproduce, the after-the-fact log is close to useless — what you need is a faithful record of what the agent actually did, step by step, the first time. That record is a trace, and building the discipline to capture and read it — observability — is quietly becoming the floor under everything else you do with agents.

It’s worth understanding what the 2026 research says this actually requires, because “add logging” badly undersells it. Agent observability has three hard parts, and each one is a distinct problem.

The semantic gap: intent versus action

The first problem is that an agent does two kinds of things, and your tools usually only see one. There’s what the agent intended — visible in its prompts and reasoning — and what it did — visible in its system calls, file writes, and network traffic. A framework called AgentSight (arXiv 2508.02736) names the trap precisely: “existing tools observe either an agent’s high-level intent (via LLM prompts) or its low-level actions (e.g., system calls), but cannot correlate these two views. This blindness makes it difficult to distinguish between benign operations, malicious attacks, and costly failures.”

That’s the crux. A file deletion is fine if the agent intended a cleanup and catastrophic if a prompt injection told it to — and you cannot tell which from the syscall alone, or from the prompt alone. You need them correlated. Picture the incident review: your monitoring shows the agent made an outbound network call to an unfamiliar host at 3am. Is that a data exfiltration from a hijacked agent, or the agent legitimately fetching a dependency it reasoned it needed? The syscall log can’t say. Only by lining that network event up against the reasoning that preceded it — did the agent decide to do this, and why? — can you classify it. An observability tool that shows you one half of that picture isn’t giving you half an answer; it’s giving you no answer, because the whole meaning is in the correlation. AgentSight’s approach, “boundary tracing,” watches the agent “from outside their application code at stable system interfaces using eBPF” — intercepting the encrypted LLM traffic for intent, the kernel events for effect, and stitching the two together. The payoff is that this correlated view “detects prompt injection attacks, identifies resource-wasting reasoning loops, and reveals hidden coordination bottlenecks in multi-agent systems” — three failure modes invisible to either stream alone. And it does so instrumentation-free, framework-agnostic, and at “less than 3% performance overhead,” which matters because an observability layer you have to bolt into every agent, and that taxes every run, won’t survive contact with production.

The trace is structured — and how you represent it is infrastructure

The second problem surfaces once you have the trace: an agent trace is not a chat log, and treating it like one degrades everything downstream. A 2026 paper on the View-oriented Conversation Compiler (VCC) (arXiv 2603.29678) makes the point sharply: modern agent conversations “contain deeply structured content, including nested tool calls and results, chain-of-thought reasoning blocks, sub-agent invocations, context-window compaction boundaries, and harness-injected system directives, whose complexity far exceeds that of simple user-assistant exchanges. Feeding such traces to a reflector or other analytical mechanism in plain text, JSON, YAML, or via grep can materially degrade analysis quality.”

The fix — compiling raw trace logs into purpose-built structured views — produces a concrete, measurable win. In their experiment, “replacing only the reflector’s input format, from raw JSONL to VCC-compiled views, leads to higher pass rates across all three model configurations tested, while cutting reflector token consumption by half to two-thirds.” Change nothing but how the trace is represented, and analysis gets both better and dramatically cheaper. Their conclusion is the one to internalize: “message format functions as infrastructure for context engineering, not as an incidental implementation choice.” Observability isn’t just capturing the trace; it’s representing it so something can actually reason over it — which is the same context-engineering discipline pointed inward at your own logs.

The discipline is young — the integration problem is open

The third thing to know is that nobody has the full stack solved yet, so calibrate your expectations. A 2026 survey of AI observability frames the scope: monitoring that spans “the full stack — from model internals to GPU kernels,” organized into a five-layer taxonomy across model-internal probes, chain-of-thought monitorability, infrastructure tracing, and more. Its honest verdict is that while “individual monitoring layers have matured rapidly, the integration challenge — connecting model-level confidence signals with infrastructure-level anomalies into coherent operational intelligence — remains the defining open problem for the field.”

In other words: there are good tools for individual layers, and no turnkey product that ties them into one coherent picture. That’s a gap to plan around — you’ll be assembling observability from parts for a while yet — but it’s also exactly the kind of open problem where careful engineering, not capital, decides who builds something good.

Observability is the floor under everything else

Step back and notice that observability isn’t one more agent concern alongside evaluation, debugging, and security — it’s the substrate all three stand on. You cannot evaluate an agent’s trajectory if you can’t see the trajectory; we argued in the leaderboard lies about your agent that you should read the traces, not the pass/fail column — and that’s only possible if the traces exist and are legible. You cannot debug a degradation you can’t reconstruct. You cannot confirm a sandbox contained an incident, or that a prompt injection was caught, without the correlated record of intent and action. Every other discipline in the agentic stack assumes you can see what the agent did. Observability is the assumption made real.

That’s why it’s becoming a precondition for production, not a nice-to-have. An agent you can’t trace is an agent you can’t trust at scale, because its first unexplained failure is also its last clue.

There’s a maturity arc here worth naming. The first thing teams instrument is cost — token spend per run — because it shows up on a bill. The second is latency. But the trace is the thing that actually answers why, and it’s the one most teams add only after an incident they couldn’t explain forces them to. The shift the research is pushing is to treat the correlated, well-formatted trace as first-class from day one — the same way mature software teams treat distributed tracing as table stakes rather than a post-mortem scramble. Agents raise the stakes on that lesson, because the gap between “it worked in the demo” and “it did something inexplicable in production” is wider and arrives faster than with deterministic software.

Why this favors Southeast Asia

Here’s the part that matters for this region, and it’s the now-familiar shape with one extra gift. Building observability for agents — capturing correlated traces, compiling them into legible views, wiring the layers into something an on-call engineer can actually use — is tooling and judgment, not capital. It runs on engineering discipline, not a GPU cluster, and it’s the unglamorous skill that separates teams who can operate agents in production from teams who can only demo them.

The extra gift is in the instrumentation-free approaches like boundary tracing: because they observe an agent from the outside, at system interfaces, you can monitor agents you didn’t build and frameworks you don’t control, and your tooling survives the next breaking API change. For a region building on open models and third-party agents rather than proprietary in-house stacks, that’s exactly the right shape — observe at the boundary, own the operational layer, and don’t depend on any vendor to instrument their code for you. The teams that win trust with production agents won’t be the ones with the flashiest demo. They’ll be the ones who can answer, precisely and after the fact, the question that decides every incident: what did the agent actually do?