---
title: "Token-efficient analysis of production traces"
date: 2026-10-23
description: "NeMo Compass is an early-stage project for finding useful signals in large volumes of agent traces without spending a model token on every trace."
subtitle: "Finding better signals in agent traces."
agent_markdown: true
authors:
  - nico-tonozzi
  - jeremy-silva
  - aditya-pandey
  - dan-haggerty
project: nemo-compass
tags:
  - trace-analysis
  - observability
hero_image: ../../assets/2026-10-23-token-efficient-analysis-of-production-traces/trace-analysis-jobs.png
hero_image_alt: "Four trace-analysis jobs form a two-by-two grid: Describe tasks, paths, tool use, and cost; Detect known failures and unexpected patterns; Diagnose failing steps and possible causes; and Prioritize scope, impact, and fixability. A final row says to test a change against offline evals and later production traces, then repeat."
hero_caption: "Trace analysis supports a loop: describe, detect, diagnose, prioritize, then test a change and return to the traces."
---

<!-- dev-note:header:start -->

<!-- Generated by scripts/render-dev-notes.py; edit front matter and authors.json. -->

<div class="dev-note-header" markdown="1">

# Token-efficient analysis of production traces

<p class="dev-note-deck">Finding better signals in agent traces.</p>

<figure class="dev-note-figure dev-note-figure--hero">
  <a href="../../assets/2026-10-23-token-efficient-analysis-of-production-traces/trace-analysis-jobs.png" aria-label="View full-size image: Four trace-analysis jobs form a two-by-two grid: Describe tasks, paths, tool use, and cost; Detect known failures and unexpected patterns; Diagnose failing steps and possible causes; and Prioritize scope, impact, and fixability. A final row says to test a change against offline evals and later production traces, then repeat."><img src="../../assets/2026-10-23-token-efficient-analysis-of-production-traces/trace-analysis-jobs.png" alt="Four trace-analysis jobs form a two-by-two grid: Describe tasks, paths, tool use, and cost; Detect known failures and unexpected patterns; Diagnose failing steps and possible causes; and Prioritize scope, impact, and fixability. A final row says to test a change against offline evals and later production traces, then repeat." loading="eager" fetchpriority="high"></a>
  <figcaption>Trace analysis supports a loop: describe, detect, diagnose, prioritize, then test a change and return to the traces.</figcaption>
</figure>

</div>

<!-- dev-note:byline:start -->
<!-- Generated by scripts/render-dev-notes.py; edit front matter and authors.json. -->
<div class="dev-note-byline">
  <div class="dev-note-byline__authors" aria-label="Authors: Nico Tonozzi, Jeremy Silva, Aditya Pandey and Dan Haggerty">
    <a class="dev-note-byline__author" href="https://www.linkedin.com/in/nico-tonozzi/" rel="author">
      <img src="../../assets/authors/nico-tonozzi.webp" alt="" loading="lazy">
      <span class="dev-note-byline__copy">
        <strong>Nico Tonozzi</strong>
      </span>
    </a>
    <a class="dev-note-byline__author" href="https://www.linkedin.com/in/jeremyevansilva/" rel="author">
      <img src="../../assets/authors/jeremy-silva.webp" alt="" loading="lazy">
      <span class="dev-note-byline__copy">
        <strong>Jeremy Silva</strong>
      </span>
    </a>
    <a class="dev-note-byline__author" href="https://www.linkedin.com/in/aditya-pandey/" rel="author">
      <img src="../../assets/authors/aditya-pandey.webp" alt="" loading="lazy">
      <span class="dev-note-byline__copy">
        <strong>Aditya Pandey</strong>
      </span>
    </a>
    <a class="dev-note-byline__author" href="https://www.linkedin.com/in/haggertydan/" rel="author">
      <img src="../../assets/authors/dan-haggerty.webp" alt="" loading="lazy">
      <span class="dev-note-byline__copy">
        <strong>Dan Haggerty</strong>
      </span>
    </a>
  </div>
  <p class="dev-note-byline__label">
    <time datetime="2026-10-23">October 23, 2026</time>
  </p>
</div>
<!-- dev-note:byline:end -->

<!-- dev-note:header:end -->

## Why NeMo Compass?

One of the most valuable ways to improve an agent is to learn from its
production behavior. As the volume of agent data and the complexity of
potential issues increase, it gets harder to analyze production traces
effectively and affordably.

How can developers analyze large volumes of traces across a wide range of
dimensions without spending a model token on every trace? How can they use that
analysis to improve an agent's cost, quality, and safety? We're treating those
as research questions worth solving. We're introducing [NeMo Compass](https://github.com/NVIDIA-NeMo/nemo-compass)
as an early-stage project where we can test those questions and share methods
others can use in their products and pipelines.

Below, we explain how we see the problem, how we're approaching it, and where
we expect to go next.

### The value of automated trace analysis

Few agents accomplish every task perfectly, safely, and as cheaply as possible.
There's nearly always an opportunity to improve.

Evals are a proven path to improving an agent quantitatively, but they have
limits. Offline evals tell you how an agent handles the cases in a test set.
Once an agent is live, production brings different tasks and new failure modes.
A strong offline eval score can give false confidence about live performance.

Production traces let you check what users actually asked the agent to do, how
it responded, and where things went wrong.

The hard part is making sense of that data at scale. A single run might have
dozens of model calls, tool results, retries, and user corrections. Reading a
few traces by hand is useful, but reading hundreds of thousands or millions is
not an option. Which issues are common? Which are worth fixing? How do you find
important improvement opportunities outside the sample you happened to review?

There is a growing list of products that help with trace analysis, and many
developers use coding agents to investigate their agent runs. We think there
is room to study the underlying techniques more rigorously. Which analyses
have the greatest impact on improving an agent? Which methods reliably find
useful issues without sending every trace to a frontier model? How do you
check whether a finding holds up and leads to a better agent?

## Breaking down trace analysis

When someone says they want to “analyze traces,” it helps to ask what decision
they need to make. We see at least four related jobs:

- **Describe behavior.** What are users asking for? Which tools does the agent
  call? How do task mix, paths through the agent, latency, and cost change
  across versions or customer cohorts? These questions may or may not point to
  failures, but they're often useful to answer.
- **Detect issues.** Did a tool call fail, and how often? Did the agent violate
  a requirement or receive negative feedback? You can check for these if you
  know what to look for. You also need ways to find repeated mistakes or
  unusual behavior that no one specified in advance.
- **Diagnose failures.** Where did a run first go off track, and what caused
  it? A trace might show a failed call without showing whether the cause was
  the agent, a tool contract, or missing state. A useful diagnosis makes it
  easier for developers and their coding agents to implement a fix.
- **Prioritize improvement.** A common problem is not necessarily the one to
  fix first. Teams need to weigh its impact, including how many users it
  affects and how costly it is, against whether they can change the agent to
  address it. A finding might lead to a tool fix, a prompt change, or an
  updated eval to catch regressions.


These jobs connect directly to testing an agent. If production traces reveal
a valuable task missing from an eval set, add it. If an eval score changes,
inspect the runs behind it. If you diagnose a production failure, turn it into
a regression test. Then keep watching live traffic: the next set of traces may
expose something new.

## Finding signal at production scale

Developers can give a coding agent a batch of traces and ask what went wrong.
That can be a useful start, but context windows and model costs usually force
a sampling approach. A rare failure can get lost in traces you never review.
Prompting an agent to review traces also biases it toward the issues you
already thought to ask about. That helps with known problems and makes it
easier to miss unknown ones.

Different questions need different tools. Deterministic code can check every
recorded tool call for invalid arguments or missing results. Embeddings and
compact features can help select conversations or outliers for closer
inspection. Existing eval scores can point to failures worth investigating.
An LLM can interpret context that a rule cannot. Each method has limits: an
outlier is not automatically a bug, a low score does not explain its cause,
and a missing trace field may make a question impossible to answer.

Our approach is to scan broadly where cheap checks work, spend model tokens
where context matters, and verify a candidate against its source traces before
calling it a finding worth attention. We want to know how many distinct,
useful issues a method finds for a given goal and review budget, and what it
misses.

## What we're testing with NeMo Compass

The first Compass release focuses on finding recurring issues in agent traces.
[Loaders](https://github.com/NVIDIA-NeMo/nemo-compass#start-here) normalize traces from common data stores
and file formats, including ATIF. Five independent
[Compass Signals](https://github.com/NVIDIA-NeMo/nemo-compass/blob/main/docs/compass-signals.md) look for different kinds of evidence
and return candidate issues with supporting trace IDs. You can choose the
signals that address problems you care about and fit your data. For example,
you can omit user sentiment if your agent has no human users.

- **Tool Issues** checks for invalid arguments, failed calls, missing results,
  and unproductive retries.
- **User Sentiment** uses embeddings to select traces with complaints for
  closer review.
- **Grader Failures** starts with recorded eval scores and feedback, then
  looks at the related runs.
- **Ethos Divergence** compares agent behavior with written business
  requirements from an [ETHOS.md](https://github.com/NVIDIA/skills/blob/main/skills/ethos-orchestrate/README.md#ethosmd)
  file.
- **Anomalies and Patterns** looks for statistical outliers, repeated
  trajectories, and failure signatures that a predefined issue list might
  miss.

<figure class="dev-note-figure" markdown="1">
![Normalized traces, optionally with scores, feedback, and written requirements, feed five Compass Signals: Tool Issues, User Sentiment, Grader Failures, Ethos Divergence, and Anomalies and Patterns. Their candidate issues are reviewed, merged, and ranked as insights with trace references. Cost Efficiency and Safety are marked as future signals.](../../assets/2026-10-23-token-efficient-analysis-of-production-traces/compass-signals.png)
<figcaption>The first five Compass Signals use different methods to find candidate issues. Future signals could examine cost efficiency and safety.</figcaption>
</figure>

Why split them up? Checking a tool contract calls for a different method than
interpreting a user complaint. Grouping unusual trajectories can surface
anomalies worth investigation, but it does not prove those runs failed.

Compass reviews candidate issues against their original traces, combines
related ones, and ranks findings with trace references. Optional read-only
checks against the agent's code can help improve signals from Compass. Model
judgment is still involved, so developers need to inspect the findings.

We want developers to be able to try these methods and, when useful,
incorporate them into existing trace-analysis products or internal workflows.
Compass can currently load traces from common stores and files. At this point
it is meant to be an applied research project, not a standalone observability
product.

## How will we know if it helps?

For a known failure, you can label examples and measure precision, recall,
coverage, and cost. Discovery is harder because you don't know every issue in
a fresh dataset ahead of time. We also need to review the distinct issue
families a method surfaces, inspect its evidence, and look deliberately for
important misses. A plausible root cause needs its own check. The real test
is whether acting on a finding improves the agent without introducing
regressions.

We start by seeding a large synthetic trace dataset with known issues, then
measuring precision and recall for those issues. That lets us compare methods
on the same traces with the same goals and budgets. We care about verified
issues found, important issues missed, duplicate or unsupported findings,
tokens and dollars spent, and time to a finding a developer can act on. Later,
we plan to ask whether a change prompted by a finding improves held-out evals
or a production cohort. We don't yet have a benchmark that answers all of
this, but building credible comparisons is part of the work.

## Try it and tell us what you find

Compass is early. Its APIs and output formats may change, and it is not yet
intended for production use. We know it's already generating useful results,
and we're eager to get feedback from interested developers and researchers.

The easiest way to try it is on traces you already have. See the
[Getting Started instructions](https://github.com/NVIDIA-NeMo/nemo-compass#start-here). You can also
test with [example traces](https://github.com/NVIDIA-NeMo/nemo-compass/tree/main/examples).

If an NVIDIA contact shared the preview, send feedback through that contact.
Otherwise, use the [NVIDIA Developer contact form](https://developer.nvidia.com/contact)
with **NeMo Compass research preview feedback** in the subject. Please do not
send raw traces, prompts, credentials, or user data in an initial message.

<!-- dev-note:project:start -->
<!-- Generated by scripts/render-dev-notes.py; edit the project front matter and projects.json. -->

## Related code

<aside class="dev-note-project" aria-label="Related code">
  <div class="dev-note-project__copy">
    <p class="dev-note-project__name"><svg class="dev-note-project__icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path d="M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656"/></svg><strong>NeMo Compass</strong> <span>NVIDIA-NeMo/nemo-compass</span></p>
    <p class="dev-note-project__description">Research preview: Tools to efficiently find signals in large sets of agent traces and inform agent improvements.</p>
  </div>
  <a class="dev-note-project__action" href="https://github.com/NVIDIA-NeMo/nemo-compass">View on GitHub</a>
</aside>
<!-- dev-note:project:end -->
