Insights from Traces
NeMo Compass reads an agent’s traces from NeMo Intake, looks for problems that recur across them, and files each one as an Insight: a named, persistent description of a recurring problem, backed by the traces that show it. Review Insights in NeMo Studio Insights, then resolve them as you fix the agent.
Compass is itself an agent in your workspace: a
plugin-managed agent of type
compass.analyst, named compass-analyst. Each analysis is an
execute job of that agent,
whose context names the agent to analyze. Submit one on demand, or opt an agent
in to periodic analysis and let the platform submit them on a daily or weekly
schedule.
Before You Start
You need:
- A running NeMo Helix with the Compass plugin and Intake. The plugin is
installed by default. Analyses run as execute jobs, so the platform also
needs a working
agents.executeruntime. - Traces for the agent in Intake. Compass can only diagnose what it can observe. See Collect Agent Traces.
- A default and fast model pair.
nemo setupstores one, andnemo config set --default-model <workspace/name> --fast-model <workspace/name>changes it. The CLI fills it in on each run; you can also name the models in the run’s context. The fast model reviews traces in each Compass Signal; the default model compiles the findings into Insights. - The workspace’s Compass agent. See Create the Compass Agent below.
NVIDIA Nemotron 3.5 Lightning 30B (nvidia/nemotron-3.5-lightning-30b) has known
tool-calling failures in Compass. Use NVIDIA Nemotron 3.5 Super VL instead
for both the default and fast models.
For PyPI installations, nemo-helix[all] includes Compass on
Python 3.12 and 3.13.
The CLI and Python SDK connect to the deployment in your current CLI context. To connect to a local or remote deployment, see Connect with CLI Contexts.
CLI
Python SDK
These examples use the default workspace. If your current CLI context uses a different workspace, run nemo config set --workspace default first. To check, run nemo config view.
Telemetry Requirement
The analysis selects traces by agent name, so the normalized agent_name on
the agent’s traces must match the agent you name in the run’s context. For
OTLP, set gen_ai.agent.name on every span; Intake also normalizes
llm.agent.name and agent.name. ATIF trajectories map their required
agent.name automatically.
Create the Compass Agent
A workspace has at most one Compass agent, used to analyze any agent traces in the workspace. Create it once:
It is named compass-analyst; pass --name to choose another name. Its config
comes from the installed Compass plugin whenever it runs, so there is nothing to
configure, and it picks up plugin upgrades without being created again.
Creating it requires permission to create agents in the workspace.
nemo compass analysis enable also creates it when the workspace has none. See
Run Analysis on a Schedule.
Give the Agent an Ethos
An Ethos is a Markdown document that describes an agent’s intended
behavior, constraints, and success criteria: context that its traces don’t
contain. With one, Compass’s ethos-divergence Signal looks for behavior that
departs from it. Without one, Compass can only judge the agent against itself.
Compass reads the Ethos from ETHOS.md in the analyzed agent’s Ethos fileset,
<agent>-ethos, in the workspace the analysis runs in. Every analysis reads
it, on demand or scheduled, when its job is submitted.
When you register an agent from a directory with nemo agents register, the
directory’s text files are uploaded to that fileset, so an ETHOS.md beside
agent.yaml is picked up. Otherwise, such as for an agent known only from its
traces, upload it yourself. --exist-ok keeps an existing fileset:
An agent with no ETHOS.md, or a blank one, is analyzed without an Ethos, and
ethos-divergence is skipped. If you are not allowed to read the fileset, the
run is rejected when you submit it, rather than analyzing the agent without
the Ethos you expected it to apply.
How an Analysis Works
- Load traces. The run reads the agent’s traces and their spans from
Intake. The optional
sinceandevaluation_idcontext keys narrow which traces are read. - Collect evidence. Several Compass Signals (evidence streams) examine the traces in parallel. Each stream either reports the problems it found or is skipped with a reason.
- Apply recurrence thresholds. Isolated failures are dropped. Only observations that recur often enough become Insight candidates. See Recurrence Thresholds.
- Compile Insights. The default model turns candidates into Insights and compares them with the agent’s existing unresolved Insights. A new problem becomes a new Insight; more evidence for an existing problem is appended to that Insight’s evidence. Compass does not change the title, description, or status of an existing Insight.
- Save the report. The job’s
compass.save-insightspost-run action files the Insights and saves ananalysis-reportresult that records what the run created, updated, and left out.
Compass Signals
Every stream is skipped with No traces loaded when the run finds no traces.
Recurrence Thresholds
Compass only files an Insight for a problem that recurs:
An independent case is the evaluation test case name of the trace or, when the trace has none, the trace ID. Traces from the same evaluation test case count as one case, even when they come from separate sessions or repeated attempts. For example, three failing traces for one test case count as 1 of 3, and that tool issue is not filed.
The thresholds are fixed; you cannot configure them. A run scoped with since
or evaluation_id, or a run over a low-traffic agent, can see a real problem
that does not yet meet them. The report lists these near misses so you can tell
“nothing is wrong” apart from “not enough evidence yet”. See
Read the Analysis Report.
Import Standalone Compass Findings
If you ran Compass outside Helix, publish its local findings without running another analysis:
Standalone Compass writes insights.yml as a YAML list of findings:
Compass calls a finding’s heading name; the importer copies it to the
persisted Helix Insight’s title. A record can also supply title directly;
if both fields are present, title takes precedence. description is required.
The importer also accepts Helix’s mirrored Insights files, which wrap the list
under an insights: key. Both root forms accept the same record fields and use
the same field mapping, so neither export needs to be edited before importing.
Optional severity and confidence accept low, med, high, or null.
Evidence retains trace IDs, URLs, and spans; legacy trace_refs are accepted
when evidence is absent. Extra Compass metadata is ignored. The command’s
--agent and workspace override any agent/workspace values in the file.
Imports match an existing Insight by the original Compass id, scoped to the
selected workspace and agent. Newly imported IDs are stored as compass_id,
separate from Helix’s generated platform ID, so renaming a finding with the same
ID updates it rather than creating a duplicate. A file using an existing Helix
platform ID can update that Insight only in the same workspace and agent.
Records without an ID match by the exact agent and title; a changed title then
creates a new Insight. Records with an ID do not fall back to title matching.
Ambiguous matches are rejected rather than choosing an arbitrary Insight.
Before writing, the importer also checks planned creates and renames: it rejects
a file whose resulting titles would make its own title-only records ambiguous
on reimport, or make them resolve to a different Insight or no Insight after a
planned rename. Every title-only record must keep the same planned target.
Distinct source IDs may share a title when no title-only record in
the file depends on that title. Order matters when mixing formats: a source-ID
record followed by a title-only record can update the same Insight, but a
title-only record followed by a new source-ID record with the same title would
create two Insights and is rejected before either is saved.
Reimporting updates the title and description and any supplied ratings/date,
while retaining the existing lifecycle status and the union of trace/span
evidence. New Insights default to open, or use the file’s status.
The whole input is validated before API calls. An empty list is a no-op.
The command prints the saved Insights; -f code is not supported.
Import is a sequence of client-side reads and writes, not an atomic server upsert. Avoid concurrent imports or analysis writes for the same agent: racing writers can create duplicates or overwrite newly added evidence. An API failure or interruption can leave earlier records saved. Before retrying, inspect the partially saved Insights and reconcile them if needed: an interrupted multi-record rename plan can make the same file ambiguous on retry, even without concurrent writers. Prevalidation of the complete plan does not guarantee that every committed prefix can be replayed automatically.
Run an Analysis On Demand
Run the workspace’s Compass agent on the agent to analyze:
The CLI fills in the default and fast models from nemo setup when you leave
them out, and says so on stderr. The command prints the created job without
waiting for it. Watch it by its name:
nemo jobs watch streams the job’s logs and exits non-zero unless the job completes.
The command takes these arguments:
From Python, client.compass.analyze(target_agent="my-agent", default_model="default/my-model")
takes the same arguments and returns the created job. The SDK does not read
the models chosen at nemo setup, so pass default_model, and fast_model
if you want one.
nemo compass analyze is a shortcut for the generic execute job of the Compass
agent. This submits the same job, with the context keys above:
The context is checked when you submit the run. An unknown key, or a model that does not exist or uses an unsupported backend, is rejected before the job is created.
To analyze one candidate of an agent, set evaluation_id to its Evaluation
name rather than bounding the run with since. Refer to
Evaluate Agent Candidates.
An on-demand run does not have a minimum trace count. A run that finds no traces
still completes, files nothing, and reports Analyzed 0 traces.
List Analyses
Each Compass job records the agent it analyzed as its spec.subject. To list one
agent’s analyses, on demand and scheduled, newest first:
Drop --filter to list every analysis in the workspace.
Read the Analysis Report
The analysis-report result is the record of what one run did. Insights do not
record which run created them. Download it like any other
job result:
A report has a summary line, then one line per Insight created or updated, then notes about what the run left out:
The summary line appears both in the report and in the job’s Fabric run result. When any observation falls below a threshold, the summary ends with the sentence about minimum recurrence thresholds.
When the report shows a below threshold line, you can:
- Widen the run: drop
sinceor move it back, or dropevaluation_id. - Wait for more traffic and run again. For an evaluation, add test cases that exercise the failing tool; repeating the same test case does not add independent cases.
- Supply the missing input for a skipped stream, such as an Ethos or evaluator results.
Run Analysis on a Schedule
Opt an agent in to periodic analysis:
enable stores the model pair that scheduled runs use: the nemo setup pair,
or the pair from --default-model and --fast-model. Scheduled runs do not read
your CLI configuration, so run enable again after you change the pair.
enable also creates the workspace’s Compass agent when it has none. If you
cannot create agents, the agent is still opted in, but its scheduled runs do
not start until someone
creates the Compass agent.
Scheduled runs are ordinary Compass jobs: they read the agent’s Ethos and show up in its list of analyses like on-demand runs.
A controller checks each opted-in agent every 60 seconds and submits a run when all of the following are true:
- The scheduled time has passed since the agent’s last successful run.
- No Compass job is already active for the agent, whether scheduled or on demand.
- At least 10 new sessions have arrived since the last successful run. The first scheduled run for an agent skips this check.
Scheduled runs are incremental: each analyzes traces starting from the previous successful run’s start time. Late-arriving traces with an earlier start time may be missed. On-demand runs do not affect the schedule.
status shows whether each agent is enabled and which model pair it uses. The
scheduler’s own state for an agent, including the last error, is available from Python:
status is idle, running, or error. The state is error when a scheduled
run cannot start or does not succeed, and last_error says why:
Configure the Schedule
The schedule is a deployment setting that applies to every opted-in agent. Set
it in the compass: section of the platform configuration file:
Review Insights
Open Agent Development > Insights in NeMo Studio to review, resolve, delete, or reopen Insights. See NeMo Studio Insights.
To list Insights from Python:
Each Insight has a title, a description, the agent it is about, a
status (open, resolved, or deleted), and evidence: traces cited to
support the finding, optionally with specific spans:
Each trace or span may also have an optional url supplied by the trace provider.
Without spans, an entry refers to the whole trace. Existing stored Insights using
trace_refs/trace_links and span_refs/span_links are read as this structured
format automatically; no data migration is required.
Insights can also include severity and confidence (low, med, or high)
and updated_date, the timestamp supplied by Compass. These fields are optional.
When a later run adds evidence, Helix merges it by trace and span ID and updates
updated_date, while preserving the existing Insight’s identity, title,
description, status, severity, and confidence. Resolved Insights are excluded
from reconciliation, so a resolved problem that comes back can be filed as a
new Insight.
Troubleshooting
The Run Is Rejected When You Submit It
- The Compass agent does not exist.
nemo compass analyzefails because the workspace has no Compass agent. Create it. - No default model. The CLI had no model pair to fill in. Run
nemo setup, store a pair withnemo config set --default-model <workspace/name> --fast-model <workspace/name>, or pass--default-model(and optionally--fast-model). - A model is unknown or unsupported. Use a Model Entity that exists and that Compass can call. A bare name resolves in the job’s workspace.
- Permission denied. Submitting needs permission to run the Compass agent, and to read the analyzed agent’s Ethos fileset when it has one.
The Run Completes but Files No Insights
Download the analysis-report result and check it:
Analyzed 0 traces: no traces matched. Check that the context’sagentmatches the agent name on the traces (see Telemetry Requirement), that the workspace is correct, and thatsinceandevaluation_idare not too narrow.below thresholdlines: the problem is real but has not recurred enough. See Read the Analysis Report.- Only
skippedlines: no stream that ran found a problem.
Periodic Analysis Does Not Start
- Check that the agent is enabled with
nemo compass analysis status. - Check the scheduler’s
last_errorfor the agent. See Run Analysis on a Schedule. - Check that
compass.analysis.enabledis true. - Check that the scheduled time has passed in the configured
timezone. - After the first scheduled run, a run starts only when at least 10 new sessions have arrived since the last successful run.
- If status shows no model pair, run
nemo compass analysis enableagain with a model pair.