TL;DR: Agent traces are too large, too variable, and too costly to inspect with standard NLP pipelines, according to Braintrust, so it uses summarize-then-embed clustering to make continuous trace intelligence practical at scale. The architectural shift matters because it turns observability from manual triage into queryable, always-on classification for production AI systems.
At a glance
What this is: This is Braintrust's analysis of how continuous trace intelligence can classify massive agent traces by summarising them first, then embedding and clustering the summaries.
Why it matters: It matters because teams running AI agents need observability that scales without forcing raw-trace inspection, and identity teams should notice the access and governance implications of tool-using systems.
👉 Read Braintrust's engineering post on continuous trace intelligence at scale
Context
AI observability fails when trace volume, token length, and changing trace structure outgrow the assumptions built into standard analytics pipelines. For agent workloads, the problem is not only visibility but classification at scale, because the traces themselves can contain tool calls, intermediate reasoning, and serialized state that do not fit cleanly into conventional embedding or clustering workflows. That creates a governance gap for teams trying to understand what their agents are doing in production.
The identity angle is real even though this is not an IAM article. Production AI agents are software entities that can invoke tools, touch data, and create audit-relevant events, so trace intelligence becomes part of the control stack around agent behaviour, delegated access, and operational accountability. That makes the topic relevant to NHI governance, agentic AI oversight, and security teams responsible for proving what an autonomous system actually did.
Braintrust's approach is typical of the broader industry problem: teams have outgrown manual review, but most observability pipelines still treat AI traces as if they were ordinary logs. The interesting shift is not the UI, but the move toward a reusable intelligence layer over traces themselves.
Key questions
Q: How should security teams classify AI agent traces without overloading their observability stack?
A: Teams should summarise each trace into a bounded facet first, then embed and cluster the summary instead of the raw trace. That keeps the expensive interpretation step isolated, reduces context-window pressure, and makes the downstream pipeline reusable across different analysis dimensions. The result is scalable classification without forcing every trace through a heavyweight model at query time.
Q: Why do AI agent pipelines create new governance problems for identity teams?
A: Because agent pipelines often combine model calls, tool execution, and delegated access in one runtime path. That means secrets, APIs, and downstream systems can be touched within the same session, so identity governance must follow the runtime path, not just the infrastructure boundary. The control issue is who or what was allowed to act, and when.
Q: What do teams get wrong when they rely on sampled logs for agent monitoring?
A: Sampling often hides the long tail, and the long tail is where unusual failures, policy breaches, and prompt-driven behaviour shifts show up. Teams then overfit to the traces they happened to inspect and miss the patterns that matter most. Continuous classification gives a far better view of behavioural drift than sporadic manual review.
Q: How can organisations tell whether trace intelligence is actually useful?
A: It is useful when it shortens triage, supports repeatable investigation, and produces labels that can be queried directly in analytics workflows. If teams cannot use the output to filter incidents, compare periods, or connect trace patterns to control decisions, the system is producing noise rather than governance value.
Technical breakdown
Why agent traces break standard embedding pipelines
Agent traces are structurally different from documents or short chat transcripts. A single trace can span millions of tokens across conversation history, tool calls, reasoning, and state updates, while embedding models have fixed context windows and clustering assumes reasonably uniform inputs. If teams embed the raw trace, they cluster on superficial features such as length or tool frequency instead of actual behaviour. If they summarise first with a model, they risk cost blowouts and sampling blind spots. The core challenge is preserving meaning while reducing volume enough for downstream analysis.
Practical implication: classify a reduced representation of each trace, not the raw trace itself, or the observability stack will fail at scale.
How summarize-then-embed creates a reusable intelligence layer
The architectural shift is to ask an LLM to produce a short facet summary, then embed that summary and cluster the embeddings. That separates expensive interpretation from cheap classification and makes the downstream stages agnostic to whether the input came from task analysis, sentiment, issues, or a custom facet. Because the model sees each trace once, the same pipeline can support continuous monitoring, ad hoc clustering, and queryable labels without redesign. This pattern is especially useful when the data shape is messy and evolving, as it is for production AI systems.
Practical implication: standardise on one summarisation pass per trace, then reuse the resulting facets across multiple analysis dimensions.
Why clustering and naming must be treated as different problems
Clustering is about stable grouping, while naming is about human readability. Braintrust's design treats the cluster as the persistent identity and accepts that generated names may drift between runs. That matters because dashboards, alerts, and SQL queries need stable identifiers even if the descriptive label changes. Using density-based clustering also helps because it can leave outliers as noise instead of forcing every trace into a topic. For agent telemetry, that is closer to reality, since most traffic follows recurring patterns but the long tail often contains the most interesting anomalies.
Practical implication: anchor reporting and automation on stable cluster IDs, not on the natural-language labels that describe them.
NHI Mgmt Group analysis
Trace intelligence is becoming a governance layer for agentic systems. Once AI agents can select tools, move through workflows, and update state, observability is no longer just an SRE concern. It becomes evidence for access accountability, delegated action review, and post-incident reconstruction. That is why trace intelligence should be read alongside NHI governance and agentic AI controls, not as a separate analytics category. Practitioners should treat trace classification as part of the control plane for software entities that act independently at runtime.
Summarise-then-embed is the right pattern for messy AI telemetry. Traditional pipelines assume bounded documents or predictable log lines, but agent traces are neither. Summaries compress the signal before classification, which is the only practical way to preserve scale without sacrificing semantic relevance. The wider lesson is that AI operations need purpose-built reduction layers before they can support durable monitoring. Practitioners should expect trace analytics architectures to converge on this pattern.
Stable topic identity matters more than perfect topic labels. If the name changes but the cluster identity persists, dashboards and investigations remain usable across regeneration cycles. That is a useful design principle for any dynamic AI system where the descriptive layer may drift while the underlying behaviour stays comparable. Topic identity drift: when labels are regenerated but the operational object stays stable, the programme can preserve continuity without over-trusting wording. Practitioners should separate the machine identity of a topic from the name humans read.
Continuous classification changes the economics of oversight. A pipeline that can classify 100% of traffic at low marginal cost makes always-on review realistic instead of aspirational. That matters because partial sampling is where long-tail failures hide, especially in AI systems whose unusual behaviour often appears only after product, prompt, or tool changes. Teams should move from sampled inspection to continuous categorisation wherever the business risk justifies it.
AI trace analytics should be evaluated against control outcomes, not just search convenience. Being able to filter by topic is useful, but the real test is whether the classification improves incident triage, policy review, and investigation speed. For identity and AI governance teams, the question is whether trace intelligence creates auditable evidence of what the agent did and why it mattered. Practitioners should measure whether the output supports control decisions, not just reporting.
What this signals
AI observability is moving toward an evidence layer for autonomous systems, not just a performance layer. For identity and security teams, that means the important question is no longer only whether an agent responded correctly, but whether its trace history can support accountability when delegated access or tool use goes wrong. The control value sits in trace-to-decision traceability, not in dashboard volume.
Topic identity drift: dynamic labels will always change, but the governance object has to remain stable enough for audit and investigation. Teams should design their telemetry so classification outputs can be compared across days, releases, and prompt changes without depending on human-readable names staying identical.
The practical signal is whether trace analytics feeds incident response, policy review, and exception handling quickly enough to matter. If classification cannot help teams isolate anomalous agent behaviour or tie it back to access patterns, the stack is reporting on AI rather than governing it.
For practitioners
- Map trace facets to governance questions Define which trace dimensions matter for control decisions, such as task intent, issue type, sentiment, or policy breach signals, before you build the pipeline. This keeps summarisation aligned to monitoring needs rather than to whatever is easiest to classify.
- Use stable cluster IDs for reporting Treat cluster names as presentation labels and build dashboards, alerts, and saved queries around persistent cluster identities. That avoids breaking analytics when regenerated topic names drift between runs.
- Separate raw-trace review from continuous classification Reserve manual review for edge cases and investigations, while letting the automated pipeline categorise the full trace stream. That prevents the long tail from disappearing behind sampling decisions.
- Require a no-match path for uncertain traces Do not force low-confidence traces into a topic category. A no_match outcome is more honest than a misleading label and helps keep downstream alerts and reports reliable.
Key takeaways
- Agent traces are too large and too variable for standard log analytics assumptions, so classification must start with summarisation.
- Stable cluster identity matters more than catchy labels when AI telemetry needs to survive regeneration and support investigations.
- For identity and security teams, trace intelligence is only useful if it produces evidence that supports accountability and control decisions.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | MEASURE | The article centres on measuring and classifying AI system behaviour at scale. |
| NIST CSF 2.0 | DE.CM-1 | Continuous trace intelligence supports ongoing monitoring of AI system behaviour. |
| OWASP Agentic AI Top 10 | Agent traces and tool use intersect with agentic AI risks and behavioural governance. | |
| MITRE ATLAS | TA0007 | Trace analytics helps detect discovery and behavioural patterns in AI-enabled attack or misuse paths. |
Use the trace layer to support detection of suspicious AI behaviour, then investigate outlier clusters.
Key terms
- Facet: A facet is a structured field used to filter, group, or aggregate telemetry data efficiently. Instead of searching raw log text, analysts query indexed attributes such as service name, region, or status code, which reduces read operations and speeds investigation.
- Topic Map: A topic map is the persisted clustering output that groups similar facets into reusable categories over time. It gives trace intelligence a stable operational structure so teams can compare behaviour across runs, even when human-readable topic names drift.
- No Match: No match is the outcome used when a new trace does not fall within the configured distance threshold of any saved cluster. It is a governance-friendly rejection state that avoids forcing weak evidence into a misleading category.
- Observability: Observability is the ability to understand the internal state of a system from the data it produces. In security and operations, that means combining logs, metrics, and traces so teams can explain why something happened, not just confirm that something changed.
What's in the full article
Braintrust's full engineering post covers the implementation detail this analysis intentionally leaves aside:
- The exact six-stage pipeline from preprocessing through classification, including where each LLM call occurs.
- The batching and cost-shaping choices behind facet extraction, embedding, clustering, and naming.
- The state machine used for topic automation and backfill, including regeneration thresholds.
- The SQL query patterns and data model details for using topic labels as structured trace columns.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, machine identity security, and secrets management. It is designed for practitioners who need to connect identity control to modern AI and access patterns.
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org