By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: HoneyHivePublished July 27, 2026

TL;DR: Compound AI systems need component-level tracing because final-output checks can hide retrieval, ranking, and generation failures, according to HoneyHive’s guide on evaluating multi-step AI workflows. For AI and platform teams, the governance problem is no longer whether outputs look right, but whether each span, metric, and dependency is actually behaving as intended.


At a glance

What this is: This guide shows why multi-step AI systems need tracing and component-level metrics to evaluate retrieval, ranking, and generation separately.

Why it matters: It matters because AI teams, security leads, and governance owners need evidence that failures are visible at the step level before they become unreliable or unsafe downstream decisions.

👉 Read HoneyHive's guide to evaluating compound AI systems and RAG pipelines


Context

Compound AI systems create a governance gap because a single answer can depend on multiple chained steps, and a pass at the end of the workflow does not prove the pipeline was sound. In retrieval-augmented generation and multi-agent designs, early errors can be masked by fluent outputs, which makes step-level visibility a control requirement rather than a nice-to-have. That is the core issue for AI governance, observability, and model risk teams.

Tracing addresses that gap by exposing spans, session metrics, and component-specific evaluators across the workflow. For identity and access practitioners, the intersection is indirect but real: as AI systems gain tool use, data access, and delegated actions, the same discipline used to govern machine behavior and privilege boundaries becomes relevant to AI operations. The article is primarily about AI evaluation, and that starting point is typical for teams trying to operationalise reliability.


Key questions

Q: How should teams evaluate compound AI systems without relying only on final output checks?

A: Teams should evaluate compound AI systems at the component level, not just by judging the final response. Trace each span, assign metrics to retrieval, ranking, generation, and tool use, then compare those signals against session-level outcomes. That approach reveals where failures begin, which dependencies are weak, and whether a fluent answer is actually grounded in the right evidence.

Q: Why do multi-step LLM workflows need tracing and per-step metrics?

A: Multi-step LLM workflows need tracing because errors can propagate quietly across steps while the final output still appears correct. Per-step metrics expose which component degraded, whether the issue sits in the data layer or the model, and how changes affect the system over time. Without that visibility, teams cannot distinguish a true improvement from a masked failure.

Q: How can security and AI teams know if RAG evaluation is actually working?

A: Evaluation is working when test results change predictably after controlled updates and when failures map to a specific component, such as retrieval, chunking, or the generation layer. If tests only produce a pass or fail without isolating the cause, the programme is measuring noise rather than control quality. The best signal is repeatable detection of regressions before production users do.

Q: How do you know if component-level AI evaluation is actually working?

A: It is working when the metrics let you pinpoint the failing step, reproduce regressions across releases, and explain why a system performed well or poorly on specific cases. If tracing only adds logs without improving diagnosis, comparison, or review decisions, the evaluation programme is not yet useful.


Technical breakdown

Why final-output evaluation misses multi-step failures

In compound AI systems, the final answer is the product of several linked operations, not a single model call. Retrieval can miss the right source, ranking can surface weak context, and generation can still produce a plausible response. If evaluation only checks the last output, the system can appear healthy while hidden defects persist in earlier spans. This is especially true in RAG pipelines, where the answer may look coherent even when the evidence base is weak or irrelevant. Reliable evaluation therefore needs observability at each stage of the workflow, not just a success check at the end.

Practical implication: Measure each stage separately so poor retrieval or ranking does not get hidden by a fluent final answer.

How span-level and session-level metrics work in practice

Tracing breaks a workflow into spans, which represent discrete operations such as retrieval, LLM calls, or tool execution. Span-level metrics capture what happened inside one step, while session-level metrics summarise the end-to-end run. That distinction matters because the same pipeline can need both local and global views: a retrieval relevance score tells you whether context selection worked, while total token count or overall latency tells you whether the whole session behaved efficiently. This layered approach creates a usable audit trail for debugging, comparison, and regression analysis across versions.

Practical implication: Attach metrics at both span and session levels so teams can isolate failures without losing the system-wide picture.

Why component metrics improve RAG governance

RAG systems are only as good as the documents they retrieve and the way those documents are used. A strong answer score can coexist with weak retrieval relevance if the model fills gaps with inference rather than evidence. That creates a governance problem for AI products, because the system can drift away from source truth without triggering an obvious failure. Component-level evaluation helps expose whether the data layer, retrieval step, or generation logic is the bottleneck. For regulated or decision-support use cases, that separation is essential to prove that outputs are grounded rather than merely plausible.

Practical implication: Use retrieval and response metrics together so grounding failures are visible before they become business risk.


NHI Mgmt Group analysis

Compound AI governance debt is now an observability problem, not just a model-quality problem. The article shows how quickly a multi-step system outgrows final-output testing once retrieval, ranking, and generation each contribute to the result. That shift matters because AI risk is increasingly distributed across pipeline stages, not concentrated in one model call. For practitioners, the implication is that governance has to follow the workflow, not the headline metric.

Tracing creates the evidence layer that AI assurance has been missing. Span-level metrics, session summaries, and evaluator outputs turn opaque pipelines into inspectable systems. That is the operational foundation for AI RMF-style governance, because teams cannot manage what they cannot attribute to a specific step. For AI programmes, the priority is to make each dependency measurable before scaling autonomy or tool use.

Retrieval quality is the hidden control point in many enterprise LLM systems. The article’s RAG example makes clear that a system can look accurate while relying on poor or incomplete context. That is a distinct failure mode from prompt tuning, and it is why organisations should treat retrieval as a governed control surface. For teams deploying knowledge-grounded AI, the question is whether the evidence layer is actually fit for decision support.

Multi-agent and tool-using systems will widen the gap between apparent and actual reliability. As workflows become more composite, each additional step increases the number of places where failure can be masked. That pushes AI assurance toward component-level monitoring, evaluation datasets, and human review loops that test the system under realistic conditions. For practitioners, the right response is to treat observability as part of the control plane.

LLM evaluation needs to mature from benchmark thinking to operational governance. Benchmarks matter, but they are not enough when production systems change data, tools, and user behaviour continuously. The article reinforces a named concept worth tracking: evaluation blind spots, where healthy-looking outputs conceal upstream defects. For teams, the practical conclusion is to align testing, tracing, and human review around the actual execution path.

What this signals

Evaluation blind spots will become a governance failure mode as compound AI systems scale. Teams that rely on end-state scoring will miss upstream defects in retrieval, ranking, and tool execution, especially as workflows start making decisions across more data sources and actions. For AI programme owners, the immediate signal is to move assurance closer to the execution path and anchor it to traceable evidence.

The practical implication for enterprises is that AI observability must be treated like a control system, not a dashboard. As tool-using and multi-agent systems spread, the boundary between AI quality, data integrity, and delegated action becomes harder to see, which raises the value of trace-based review, targeted red-teaming, and documented evaluation criteria tied to NIST AI Risk Management Framework.

The strongest programmes will connect workflow metrics to access and data controls, because AI reliability depends on both the model and the environment it can reach. That means reviewing retrieval sources, tool permissions, and human escalation paths together, not as separate governance silos.


For practitioners

  • Implement span-level tracing for every critical step Instrument retrieval, ranking, generation, and tool calls so each operation emits metrics that can be reviewed independently of the final answer.
  • Separate grounding metrics from output-quality metrics Track retrieval relevance, evidence coverage, and answer consistency as distinct signals so a good response score does not hide weak source selection.
  • Maintain a curated evaluation dataset Keep a stable set of prompts and ground truths that can be rerun after model, prompt, or data changes to detect regressions quickly.
  • Add human review for borderline cases Use domain experts to review examples where automated metrics disagree, especially in knowledge-grounded or decision-support workflows.
  • Review data coverage before tuning prompts Check whether the vector store or knowledge base actually contains enough topic coverage before assuming the model is the root cause of poor results.

Key takeaways

  • Compound AI systems need component-level evaluation because hidden failures in retrieval or ranking can survive a passing final output.
  • Tracing, span metrics, and session metrics create the evidence needed to debug, compare, and govern multi-step AI workflows.
  • For AI teams, the real control question is whether each step in the pipeline is measurable, attributable, and reviewable before decisions depend on it.

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 address the attack and risk surface, while NIST AI RMF, NIST AI 600-1, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST AI RMFMEASUREThe article is about measurable AI evaluation across workflow components.
NIST AI 600-1GenAI governance guidance fits evaluation, provenance, and testing of compound systems.
OWASP Agentic AI Top 10Agentic workflows need component-level evaluation and tool-use visibility.
NIST CSF 2.0DE.CM-1Continuous monitoring aligns with tracing and component observability.
NIST SP 800-53 Rev 5SI-4System monitoring supports detection of anomalous AI pipeline behaviour.

Apply SI-4 to instrument AI workflows and alert on unexpected execution patterns or degraded signals.


Key terms

  • Compound AI system: A compound AI system is a production workflow that uses more than one model, step, or decision point to complete a task. It may route requests, verify outputs, or rewrite results, which means governance must cover the orchestration logic as well as the underlying model calls.
  • Span-Level Metric: A metric attached to one discrete operation inside a traced workflow. It helps teams evaluate a specific step, such as retrieval relevance or tool latency, without mixing that result with the rest of the session.
  • Session-Level Metric: A metric that summarises the behaviour of a complete run or user interaction. It is useful for understanding end-to-end performance, but it does not replace step-level visibility when troubleshooting complex AI pipelines.
  • Retrieval relevance: Retrieval relevance measures whether the documents fetched for a RAG query actually answer the user's question. If relevance is poor, even a well-behaved generator can produce hallucinations because it has the wrong evidence to work from.

What's in the full article

HoneyHive's full guide covers the implementation detail this post intentionally leaves for the source:

  • Cookbook-level code for tracing spans and enriching sessions in a RAG pipeline.
  • Concrete evaluator examples for retrieval relevance, response consistency, and pipeline-level metrics.
  • Step-by-step setup details for MongoDB Atlas search, OpenAI API integration, and HoneyHive evaluation.
  • A worked example of how the experiment output is analysed after the run.

👉 The full HoneyHive post includes the code, evaluation setup, and metric analysis for the RAG case study.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners connect identity control thinking to modern AI and security programmes.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org