Designing Eval Checks That Fire on Hallucinated and Skipped Steps Before Downstream Damage Compounds
Catch agent failures at each step before errors compound into irreversible downstream damage.

Silent failure detection for AI agents in production requires checks on individual steps alongside checks on final answers and runtime errors. Those checks must catch skipped prerequisites, fabricated tool results, and invalid transitions before downstream actions rely on them. Because each step depends on earlier outputs, reliability compounds multiplicatively across the trace, making early detection the basis of containment.
Why hallucination risk in multi-step agents compounds multiplicatively, not additively
An engineer can see a green dashboard while five steps of reasoning have already gone sideways. The agent has not crashed, and its final response may look plausible. Yet each dependent step has accepted the previous output as input, allowing one error to become the premise for further decisions.
The multiplicative framing concerns the chain of required successes. A valid trajectory needs each step to be correct given the steps before it, so errors in its outputs cannot simply be added up as if those outputs were independent. Once an upstream output is wrong, downstream steps may faithfully process corrupted input. Catching that failure at step two therefore leaves less contaminated state than catching it at step five. Final-answer scoring cannot show where that contamination began or stop actions that have already happened.
Procedural hallucination as a distinct failure class that semantic checks cannot catch
Procedural hallucination occurs when an agent skips, reorders, or fabricates required steps, even though its individual factual statements may be true. An agent might write to a database without first completing authentication, then accurately describe the resulting database state. A correctness rubric focused on that description can pass the answer while missing the invalid operation that produced it.
Another form is “step collapsing,” in which the agent shortcuts to a terminal state without executing required intermediate steps. The final output looks valid. A task-completion check does not resolve this problem if it only verifies that a final state was reached. Completion and procedural validity are separate criteria, because the required path may include constraints that the endpoint alone cannot demonstrate.
Scale AI’s Model or Harness? An Interaction-Centric Taxonomy for Localizing Agent Failures explains why outcome-level labels obscure failures originating between components and can direct repairs toward the wrong component. An LLM-as-judge scoring only the final answer has the same limitation. Detecting procedural hallucination requires evidence of which steps actually occurred, in which order, and whether each transition was permitted.
The failure taxonomy that step-level evals must cover
Control-flow failures originate in how an agent sequences, transitions between, or terminates steps. Premature termination leaves required work unexecuted while presenting an apparent success. Termination miss is the reverse, with execution continuing beyond the natural completion point into unrequested actions. A step loop repeats earlier operations for no good reason, often with similar arguments. These failures require trajectory-level checks, because no isolated output establishes whether the sequence is valid.
Tool-call failures originate at the boundary between the agent and its tools. Tool hallucination means invoking a function absent from the runtime catalog, potentially without an endpoint error because no real endpoint receives the call. Wrong-args means choosing a real tool but giving it arguments that fail its schema. Repeated malformed calls can prolong the failure. Catalog membership, argument validation, and response-status checks test what passes between the agent and its tools.
Reasoning failures require a different check surface. Instruction ignored means a constraint reached the model’s context but the model violated it, whereas a harness failure may have dropped the instruction before the model saw it. The Scale AI taxonomy distinguishes those origins because they require different repairs. Instruction-grounding checks must check both the constraint that applied and what the agent did. One general quality score cannot tell a missing prerequisite from an invalid argument or an ignored instruction.
Why control-flow and tool-call failures are the highest-priority targets for early detection
Control-flow failures can invalidate the structure on which later actions depend. Skipping authentication before a database write is not merely an incorrect sentence that can be revised afterward. The missing prerequisite changes whether the action was valid at all. Detection must precede the consequential transition, rather than wait for a polished account of the result.
Tool-call failures create a similar risk when the agent treats a failed operation as successful. The Scale AI taxonomy calls this model-side failure Tool Feedback Neglect and points to the model as the part to repair. Subsequent steps can then proceed on a result that never existed. Microsoft AI Red Team’s Taxonomy of Failure Modes in Agentic AI Systems, v2.0 documents a further reason for early containment, finding that a single successful memory-poisoning injection can propagate across sessions.
Designing step-level eval checks: what to test at each point in the trace
The practical design rule is to place each check where its failure first becomes detectable. Before dispatch, validate the emitted tool name against the runtime catalog and its arguments against the declared schema. These checks catch nonexistent tools and malformed calls before execution. For bounded task domains, enforce an explicit tool allowlist per task type and flag an out-of-list invocation as a planning anomaly. Existence and permission are distinct tests, because an available tool is not necessarily appropriate for the task.
Tool definitions also need to be checked before they are trusted as inputs. The Microsoft taxonomy describes MCP/plugin abuse through natural-language tool descriptions and calls for supply-chain controls, including scanning registries for hidden instructions and treating those descriptions as code. Argument validation establishes whether a call has an accepted shape.
After each call, check the response status before letting steps that depend on it run. A non-success response must not leave a path for the agent to continue as though the operation succeeded. Then compare the agent’s next statement or action with the actual tool output. Flag a stated result that cannot be matched to the response, including a fabricated success after rejection. This separates execution failure from the model’s subsequent handling of it.
Before accepting a terminal state, compare the steps required across the trajectory with those that ran. Coverage must include order where the task requires a sequence, so authentication appearing after a write does not satisfy the prerequisite. A cycle detector should flag tool invocations with similar arguments when they repeat more often than the configured per-trace threshold allows. A separate termination-condition check should test the explicit completion condition.
Before consequential actions such as approvals, deletions, or external writes, check the proposed action against constraints in the system prompt. That places instruction-grounding evaluation before an irreversible effect. Decision trajectory logging is the minimum supporting evidence. It records which tools were called, their order, and deviations from the expected path, giving evaluators the execution history needed to distinguish a procedural failure from an answer-quality problem.
The cost objection: why running checks on every trace is more practical than it appears
Running a frontier LLM-as-judge on every production step has a real cost. Reading every transcript manually does not scale either. Neither approach is necessary for universal structural checks, because many important failures are detectable without semantic judgment. A tiered architecture reserves expensive analysis for cases that require it.
Tier 1 runs deterministic checks on every trace at a cost close to zero. Catalog validation, schema guards, explicit sequence requirements, and configured repetition thresholds belong here. Tier 2 uses a lightweight model judge on a sampled subset for hallucination and grounding checks that require semantic reasoning. The sampling range in the notes is roughly one in five to one in ten traces for the expensive judge tier. This design does not sample away deterministic coverage, though it cannot promise to catch every semantic failure.
Tier 3 uses human or automated review to read full traces only for sessions that are flagged or fall outside normal trajectory distributions. The Trustworthy Agentic AI lifecycle survey identifies constrained tool use and context isolation as mitigation families that can limit the reach of failures reaching this tier. Evaluation itself remains a possible failure source. The Scale AI taxonomy explicitly recognizes grader failures, so an alert is evidence to diagnose rather than proof that the model is necessarily at fault. Keeping deterministic checks at the base makes their criteria explicit and bounds false-positive risk.
Structuring alerts so damage is contained before it compounds across sessions
A check that fires into an unwatched console cannot provide timely containment. Alert urgency must follow the failure’s consequences. Control-flow failures involving irreversible actions warrant immediate interruption, with execution blocked while the alert remains unacknowledged. A fabricated tool response warrants session-level flagging because downstream steps may already depend on it. Reasoning or instruction-grounding failures without an external action can enter an asynchronous review queue.
“Step 3 failed schema validation” is insufficient without the tool name, failing argument, expected schema, and session ID. Those details let an engineer identify the failure without first navigating elsewhere. Grouping by failure pattern also prevents one repeated defect from appearing as dozens of unrelated problems. The same fabricated call across many traces is one repair target, and its named category can become a regression test.
For sampled online evals, a defined rollback threshold provides a circuit breaker. A trigger such as a 5 percentage point rolling-window drop below baseline on a key check can automatically promote rollback to the last known-good version. The threshold triggers containment when checks worsen, before more sessions run the regressed version.
The Microsoft taxonomy’s memory-poisoning finding means memory-write alerts need session-provenance tracking so an affected write can be traced through the sessions it influenced. A session-only view would miss that scope. Routing alerts into existing workflows, including Slack, CI gates, and coding-agent feedback loops, reduces the need to watch a separate console. The alert’s destination, evidence, and interruption behavior are part of the check’s design.
Connecting step-level checks to CI so regressions do not ship
Runtime checks limit the harm from failures after they appear, while CI gates test candidate builds before they are deployed. Neither replaces the other. Each runtime step-level check should have an offline version that runs against a labeled trace dataset on every pull request. The dataset must expose the same check surfaces, including required sequences, tool calls, returned statuses, and applicable instructions. A final-answer-only test suite would preserve the same blind spot in a different environment.
The lifecycle survey’s TADL framework names evaluation as a development phase with required evidence artefacts and trust gates between phases. An automated scorer implements that principle by blocking promotion when key step-level checks fall below threshold. Localization makes the resulting failure actionable. The Scale AI taxonomy shows why the same visible symptom can require model post-training, harness engineering, environment redesign, or benchmark repair, depending on its origin. A gate that identifies only a bad outcome leaves that repair-assignment problem unresolved.
Aggregate benchmark scores are not substitutes for these tests. The gate needs the trajectory patterns the agent will actually encounter, rather than a general capability score that may conceal procedural weaknesses. Each postmortem should add a named regression case that keeps the specific tool call, step sequence, or instruction violation as a labeled trace. That turns an incident into a pre-deployment test. Because downstream validity depends on upstream correctness, catching a procedural hallucination in CI removes the need to contain its dependent failures in production.
Sources
- Model or Harness? An Interaction-Centric Taxonomy for Localizing Agent Failures
- Bounded Autonomy for Enterprise AI: Typed Action Contracts and Consumer-Side Execution
- Taxonomy of Failure Modes in Agentic AI Systems - v2.0
- Trustworthy Agentic AI: Failure Modes, Mitigation Strategies, and a Lifecycle Framework for Autonomous LLM Systems


