Because agents operate across a trajectory, and the same result can emerge from very different behaviour. Tool calls, state changes, retries, and external system responses all affect the outcome. Without those details, teams cannot tell whether the agent improved, the harness changed, or the judge rewarded the wrong path.
Why evals need trajectory evidence, not just final outcomes
Agent evaluation has to distinguish what the agent actually did from the fact that it eventually reached a result. Two agents can produce the same answer while following very different paths, one safe and repeatable, the other brittle, expensive, or dependent on hidden retries. Tracking tool calls and environment state exposes the path, not just the destination.
That matters because an eval score without trajectory detail can reward luck. A model may pass by using the wrong tool, recovering only after several failures, or benefiting from a permissive harness that masked a bad decision. If you only inspect the final output, you cannot tell whether the behavior generalised or whether the environment accidentally made success easy.
Tool-call logs and state snapshots also let teams separate model quality from harness effects. A changed prompt, a different API response, a stale cache, or a modified sandbox can all change the result without changing the underlying agent policy. Recording those steps makes regressions diagnosable and makes comparisons between model versions much more trustworthy.
What tool-call and state tracking reveals about agent quality
Tool calls show whether the agent is selecting the right capability at the right time, or merely stumbling into a usable answer. Environment state shows whether the agent understood what had changed, respected prior outputs, and used the system consistently across turns. In practice, those two signals are the difference between “it worked once” and “it can be trusted to work again.”
This is especially important for actions that can alter external systems, because a single successful final outcome may hide unsafe intermediate behavior. An agent might delete and recreate resources, overwrite data, or retry in a way that causes duplicate side effects, yet still end with a superficially correct response. Destructive action during execution is only visible if the eval captures the sequence, not just the last state.
State tracking also matters when the environment is part of the task. If the agent is supposed to remember a prior tool result, preserve a workflow checkpoint, or avoid reusing stale context, then the eval must observe whether it did so. Otherwise, the system can appear competent while silently depending on state corruption, accidental resets, or hidden assistance from the test harness.
How to evaluate agents so the score reflects real behavior
The right unit of measurement is the full trajectory: inputs, tool invocations, state transitions, retries, external responses, and final output. That does not mean every eval needs maximal logging, but it does mean the logged data must be sufficient to explain why the outcome happened. For agents with delegated access, that evidence should also show whether the agent stayed within the intended authority boundary. Per-action authorization makes far more sense when each decision can be traced to an observed step.
Good eval design usually separates correctness from process quality. You can score task completion, but you also need secondary checks for tool efficiency, unnecessary retries, unsafe side effects, state consistency, and whether the agent used the same path when the environment varied slightly. That combination is what tells you whether a model improved or merely found a fragile shortcut.
For teams building production agents, observability should be treated as part of the evaluation contract, not an optional debugging aid. If you cannot reconstruct the sequence of actions after a failure, you cannot do reliable incident analysis, regression triage, or root-cause comparison across model versions. Agent logs and attribution are the evidence that turns an eval from a scoreboard into an engineering control.
Risk and Threat Considerations
When evals ignore tool calls and environment state, they create a blind spot that adversarial or simply unreliable agents can exploit. A system can look successful while taking unsafe actions, abusing overly broad tools, or depending on manipulated state that would fail in a real deployment. That makes false confidence one of the biggest risks in agent evaluation.
Failure mechanism: The eval rewards the final answer while missing intermediate misuse, so the agent can pass by exploiting a permissive harness, hidden retries, or state contamination rather than by behaving safely and consistently.
Impact: Teams ship agents that appear validated but fail under real conditions, leading to broken controls, hidden side effects, poor reproducibility, and a much harder incident investigation when the same behavior occurs in production.
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 addresses the attack and risk surface, while NIST AI RMF sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Tool calls and state changes affect agent authority and unsafe access paths. |
| ASI02 — Tool Misuse | Evals must catch harmful or incorrect tool selection and execution paths. | |
| ASI08 — Cascading Failures | Hidden retries and state drift can compound into larger agent failures. | |
| Recommendation — Enforce per-action authorization and review tool use paths for privilege abuse. Track tool calls and reject runs that rely on unsafe or unintended tool use. Assess retry chains and state transitions for compounding failure patterns. | ||
| NIST AI RMF | GOVERN — Govern | Agent evaluation needs governance over measurement, accountability and oversight. |
| MEASURE — Measure | Trajectory logging is needed to measure agent behavior, not just outcomes. | |
| Recommendation — Define oversight, roles, and accountability for agent evaluation evidence. Instrument evaluations so process metrics and outcome metrics are both captured. | ||
Practitioner Guidance
What to verify: Keep enough trajectory detail to reconstruct every material tool invocation, state mutation, retry, and external response that could have changed the outcome. If the agent touched a system of record, the eval should show the exact sequence that produced that state.
Common mistake: Treating a green pass as proof of good behavior when the agent may have used the wrong path. If two runs can reach the same answer through different levels of risk, the eval needs to measure both outcome and process.
Practitioner takeaway: The goal is not to log everything indiscriminately, but to preserve the evidence needed to explain why the agent succeeded, because without that, improvement, safety, and regression analysis all become ambiguous.
Related resources from NHI Mgmt Group
- How should teams govern AI agent tool calls in real time?
- How should security teams govern AI agent tool calls without exposing credentials?
- Why do AI agent tool calls increase supply-chain risk for secrets exposure?
- How should security teams implement authorization controls for AI agent tool calls in production environments?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org