How Eval Coverage Must Encode Agent Intent Before Scoring Any Execution Step
Scoring agents on per-step correctness misses failed user goals.

Intent-aware auditing for AI agents evaluates what an agent did against what it was supposed to accomplish. Eval coverage must encode that purpose before it scores execution, then check the full sequence of decisions, tool calls, and results against it. Per-step correctness alone cannot establish that the agent fulfilled the user’s request.
Why per-step metrics produce a false sense of coverage for agents that fail their users
The nine-day incident exposes the gap between a healthy service and a successful agent. The agent returned HTTP 200, fluent English, and the wrong answer. Conventional monitoring recorded signals consistent with successful execution while the user’s task remained unfulfilled. Nothing in a successful HTTP response establishes that the answer serves the request. Fluency offers no such guarantee either.
This is an architectural mismatch. Agents plan, select tools, call APIs, read results, and act again. Each decision changes the context for the next, so quality depends on more than the relationship between an initial input and a final response. A single-turn rubric cannot capture that dependency. Latency and token counts remain useful operational measurements, but they cannot diagnose whether the sequence accomplished the user’s task.
A reasoning step can look sound in isolation even when it leads to the wrong tool, and a plausible final answer can conceal that mistake. Testing those parts on their own leaves the links between them untested. The missing reference is the purpose that should govern the whole sequence.
What “agent intent” means architecturally, and how to audit what an agent was supposed to do
Agent intent is the goal an agent is pursuing at a given moment, shaped by its instructions, available tools, and operational constraints. It specifies what the agent is trying to accomplish, for whom, under which constraints, and through what sequence of tool use. It belongs at the top of the eval stack because it determines what counts as successful execution below.
A trajectory is the ordered sequence through which the agent pursues that goal. Intent gives the sequence its governing purpose, while the trajectory supplies the evidence of whether the agent followed it. Encoding intent therefore means writing the rubric around the goal the agent must fulfill, rather than around the mechanical correctness of individual steps. Scoring begins only after that contract is explicit.
This distinction explains the nine-day failure. Without an evaluation layer expressing what the agent was supposed to accomplish, fluent output and successful execution could stand in for completion. An intent-anchored rubric instead relates intermediate decisions to the requested outcome. Correct reasoning cannot make up for choosing the wrong tool. Nor can a response that seems right make up for a failure along the way that left the task unfinished.
How aggregate scores hide the failure modes that actually reach users
A single aggregate score can hide a failure even when the eval checks several things that matter. High tool-selection scores can bury failing argument-extraction scores, allowing a ship gate to pass an agent that chooses the right operation but supplies the wrong inputs. The average hides the defective dimension. Production then exposes the weakness that the release decision discounted.
Trying to improve metrics makes that blind spot worse when the rubric has no goal to guide it. A customer support agent can get a high resolution rate by sending every unresolved ticket to human handoff, meeting the metric but failing the business goal. The rubric rewards a proxy for success. Without intent, a better score on that proxy may leave users with no better service.
Tool-call fidelity makes the distinction concrete. A coherent response can follow the wrong tool, incorrect arguments, or tools called in the wrong order. Partial-match scoring distinguishes the right tool with wrong arguments from the wrong tool entirely, but that distinction requires an encoded expectation for tool use. Order also changes the consequences of an error. A misalignment at the first step can propagate through later steps, making end-to-end reliability worse than isolated success rates suggest.
The six drift modes that make a correctly encoded intent stale over time
An eval set frozen at launch encodes assumptions about user intent, tool behavior, prompt content, and retrieval results. Those assumptions start to go out of date as soon as the agent ships. Encoding intent correctly once is therefore insufficient. Six drift modes explain why coverage must track production behavior rather than remain attached to a launch-day snapshot.
The first mode is dataset drift, in which users bring intents absent from the original eval set. The second is tool-API drift, in which a vendor changes schemas, error codes, or rate limits while the CI mock still returns the old payload. These failures attack different assumptions. One changes what the agent must handle, while the other changes the environment in which it acts.
The third mode is prompt drift, where a rubric written for an earlier prompt grades the agent against a contract it no longer holds. The fourth is retrieval-corpus drift, where an expanded or re-ranked index changes the top-k chunks returned for the same query. Both can invalidate an apparently stable test. The input may be unchanged while the instructions or evidence governing the answer have moved.
The fifth mode is user-distribution drift, where real traffic differs from hand-authored test inputs. The sixth is agent-step compounding, a structural weakness that single-turn rubrics cannot catch regardless of dataset size. The timescales differ. Dataset and user-distribution drift occur in user intents and traffic over weeks, while tool-API and prompt drift can occur in tool behavior and prompt content overnight. Retrieval score distribution shifts and embedding-age checks can signal retrieval-corpus drift before a re-index, but compounding exists from the start.
What a four-dimensional trace score looks like when intent anchors every dimension
A four-dimensional trace score replaces the single aggregate with separate judgments about execution against the agent’s stated purpose. The essential change is that success in one dimension cannot erase failure in another. Tool selection and argument extraction remain distinguishable. A release decision can then respond to the defective part of the trajectory that an average obscures.
Optimal plan execution evaluates the execution sequence against the intended plan. It exposes agent-step compounding and tool-API drift on the call graph, where a locally plausible action can disrupt later work. Argument fidelity evaluates whether tool inputs match what the task requires. It addresses particularly silent failures. The agent can choose the right tool and still give it the wrong arguments.
Tool selection and final-output evaluation also need the same intent anchor. The former asks whether the operation fits the task, while the latter assesses the response against the requested outcome as well as its fluency. These judgments must draw on the evidence from the steps along the way. Otherwise, the final response becomes another proxy that can conceal a broken sequence.
The same rubric definition should run against a versioned dataset in CI and against live spans as span-attached scores. CI provides the regression floor. Production scoring shows what is happening live that the dataset could not predict. Thresholds for each dimension must be stricter for transactional tasks, including sending emails, updating records, and making purchases, than for informational tasks where human review of flagged cases is a viable backstop.
How production traces become the living source of truth that keeps intent encoding current
The feedback pipeline begins when the rubric scores live OpenTelemetry spans and attaches its judgments to them. Failures from individual traces are clustered into recurring issues for review. The hardest failures then enter the versioned eval dataset with version tags, so future PRs can be tested against them. Production supplies the next regression case.
Rubric versioning must move with prompt versioning. When a prompt changes the agent’s intended behavior, the rubric changes in the same PR, and the next CI run re-grades the dataset under that contract. Otherwise, the evaluation itself becomes stale. A result can be correct under yesterday’s instructions and wrong under today’s, so the score needs the contract that gave it meaning.
Decagon Duet Autopilot, introduced June 2026, illustrates the diagnosis-and-test portion of this loop. It analyzes production conversations, traces failures to the agent’s operating procedures, and proposes fixes. Testing precedes human review. The proposed change is tested against the original conversation, regression tests, and a curated golden set representing real customer personas and intents.
LangSmith Engine shows how to find and fix failures on a schedule, including wrong answers that produce no error. It diagnoses failures against traces and connected code, writes a fix, and replays up to five traces against a preview deployment. That capability is beta and LangSmith Cloud only. It opens PRs to GitHub or GitLab but never merges autonomously. W&B Weave addresses another handoff in the loop by scoring production traces and exposing them over MCP, allowing coding agents to use eval scores as structured context for targeted fixes.
Instrumenting the frameworks teams already use to get traces that carry intent
To implement this architecture, teams need traces that capture every model call, tool execution with arguments and return values, and reasoning step as structured spans. Argument fidelity cannot be computed from the final response alone. Optimal plan execution also needs evidence of the steps the agent took. Missing spans leave gaps that a more elaborate rubric cannot repair.
Vercel AI SDK is a TypeScript toolkit for Next.js, React, Svelte, Vue, Angular, and Node.js. AI SDK 6, released in December 2025, added a proper Agent interface, full MCP support, and a DevTools panel. The required trace still has to expose the model and tool activity on which the rubric depends.
OpenAI Agents SDK has tracing enabled by default and sends traces to OpenAI. Its latest Python release in the October 2026 framework coverage is 0.23.1, while the TypeScript release is 0.22.0. Default tracing is a starting point for evidence of what the agent did. Intent-aware scoring still requires the rubric that relates that evidence to the original instructions and constraints.
Mastra is an open-source TypeScript framework for agents, workflows, memory, and evals. AgentController went GA on October 6, 2026, and ACP runs coding-agent processes such as Claude Code, Cline, or OpenCode as Mastra tools or subagents. LangChain and LangGraph support multi-step execution. Their eval design thus needs multi-step traces that show more than single-turn text scoring can.
Across these frameworks, silent tool-call failures are the decisive instrumentation test. A model can continue after a broken tool response without an exception, crash, or alert, allowing contaminated context to propagate downstream. Every tool input and output is necessary evidence. Without it, an auditor cannot reliably distinguish a completed task from a coherent account built on a failed operation.
Turning production failures into eval coverage without hand-writing assertions
Hand-writing assertions for every new failure mode treats the eval set as a static artifact that humans must continually extend. The intent-first architecture instead promotes real failures into coverage. A span that falls below threshold on any dimension is grouped with similar failures into a recurring issue. That issue includes the trace context, rubric score, and violated intent encoding. A coding agent reading it over MCP can use that evidence to write a targeted fix, which is verified by replaying the promoted traces before merge.
Agnost AI Auto Improve illustrates one implementation. It judges every conversation against plain-language rules with no sampling and identifies intents, frustration, and tool errors. Its repair process includes root-cause analysis in the PR and replay of affected conversations. Follow-up extends beyond the merge. The system re-checks the alert roughly an hour afterward, connecting the proposed repair back to the production signal that prompted it.
PayFlow AI illustrates the opposite gap between offline confidence and production behavior. The agent topped its internal evaluation at high accuracy before production failures exposed what that result had not certified. Offline success was not production assurance. An eval can only reject the failures its coverage and rubric make visible.
Each promoted trace becomes a regression case that future PRs must satisfy, while recurring production issues reveal where the launch-day assumptions no longer fit.


