Evaluation · Field guide

Trial by Trace asks where an agent workflow first goes wrong

Trial by Trace investigates where an agent workflow begins to fail. Inspecting intermediate actions can distinguish a model mistake from a problem in the surrounding system.

In this article
A three-dimensional network of branching trajectories.

An incorrect final answer can be the last link in a chain that first went wrong much earlier. Trial by Trace examines the intermediate decisions of an agent and the harness that supports it. To identify a useful correction, a reviewer needs to locate the earliest consequential mistake and distinguish it from downstream actions that merely inherited a bad state.

The initial obstacle was clear: standard benchmarks treat the model and its environment as a single unit. When an agent fails, it’s hard to determine whether the failure stems from poor reasoning, flawed tool use, or a breakdown in the harness itself—such as improper context retention, incorrect tool routing, or unmonitored state changes. Without explicit evidence of what each component did during execution, failures remain ambiguous and untraceable. Worse, the same model running through different harnesses can behave differently due to variations in how information is passed, actions are authorized, or sessions are managed—yet these differences go unnoticed in traditional evaluations.

To address this, the team designed TraceTrial-Bench as a mechanism-oriented benchmark that isolates the behavior of agent harnesses. Instead of relying on final outcomes alone, it tracks every step of an agent’s execution through detailed traces. Each task is built to test specific responsibilities within the harness—such as whether context was preserved across turns, whether tool calls were properly routed, or whether lifecycle controls prevented unauthorized long-running operations. The evaluation runs the same model and tasks across four different harnesses, allowing direct comparison of how each system handles these mechanisms.

At the core of the design is a two-layer framework: one layer assesses whether the agent completed required actions and produced expected artifacts—what traditional benchmarks measure. The second layer evaluates whether the harness fulfilled its defined obligations during execution. This distinction allows researchers to see when a failure occurs at the level of information flow or control enforcement—rather than just at the outcome.

To support this analysis, the team developed a Trajectory Tracing (TT) module that records every message exchange, tool call, file modification, and state transition during execution. These traces form the foundation for auditing each step. Additionally, they introduced a Multi-source Evidence Acquisition (MEA) module to gather data from multiple sources: the agent’s internal messages, the harness logs, and external environment changes.

A key innovation lies in the Failure Attribution (FA) module. When both the agent and the harness fail during a run, the system checks whether the agent’s failure can be traced back to a predeclared mechanism chain from a harness-level error. For example, if a tool call is missing due to context truncation, the system verifies that this truncation was caused by a known harness behavior—like message compaction or session state loss—rather than an internal model decision. This enables precise attribution: it answers not just did something go wrong, but what part of the harness failed and how.

The evaluation spans 95 expert-level tasks, each designed to trigger specific harness behaviors. These tasks cover seven core dimensions: context management, execution control, governance policies, lifecycle handling, observability, tool access, and verification checks. Each task includes clear behavioral requirements and ground truth—either executable commands or observable state changes—that allow for objective comparison across harnesses.

This architecture shifts the focus from performance to reliability. It does not assume that a successful outcome means all mechanisms worked correctly. Instead, it forces each system to be tested on whether its internal rules were followed. For instance, if a task requires a file to be created and then read back, the evaluation checks whether the file was actually written (action), whether the file path was preserved in context (context), and whether the tool call that reads it was authorized (governance).

The design also respects the boundaries between what belongs to the agent and what belongs to the harness. The system accounts for this by using native session records and environment states as independent sources of truth. This prevents errors where a failure in one domain is incorrectly blamed on another.

Ultimately, TraceTrial-Bench provides a way to see failures not as black boxes but as traceable events with identifiable causes. It does not claim superiority of any single harness or model—but it offers a framework for diagnosing where and why agent systems break down, enabling more robust design and debugging in real-world applications.

Passing the task does not clear every intermediate check

The TraceTrial-Bench authors report that 31.1 percent of runs achieved task success while failing at least one harness criterion. A result can be correct despite a missing intermediate check or an unreliable operation that happened to work in that instance. The discrepancy is useful because it identifies risks in the surrounding workflow that an outcome-only evaluation would leave invisible. It also has a precise denominator: runs in the study. It does not say that the same fraction of future tasks will fail in a deployed application.

How TraceTrial-Bench Captures Harness Failures in Workflow Execution

TraceTrial-Bench does not evaluate AI agent outcomes in isolation. Instead, it records every step of an agent’s execution—what messages are sent, how tools are invoked, what session states are updated—and cross-references those actions against explicit rules defined for each harness component. The system captures native execution traces from the agent’s internal state and the environment, including session logs, tool invocations, and workspace changes. These traces serve as evidence of whether the harness fulfilled its defined obligations—such as maintaining message order or preventing unauthorized actions—regardless of whether the final task outcome was successful.

A key innovation is the separation between agent performance and harness reliability. While traditional benchmarks judge success by whether a goal is achieved, TraceTrial-Bench assesses whether each component of the harness functioned correctly during execution. If it does not, and the agent proceeds with unvalidated input, that failure is recorded as a violation of the governance mechanism, even if the final result appears correct. This allows researchers to see where failures originate—not just in the model’s reasoning, but in how the harness manages information flow, tool access, or session continuity.

Comparing Four Harnesses Across 95 Tasks

The experiment evaluates four native agent harnesses under identical conditions: nine different model configurations and a fixed set of 95 mechanism-oriented tasks. Each task is designed to test one or more specific reliability components—such as context retention, tool routing, or lifecycle management. For every model-harness combination, the system runs the same prompt sequence with the same initial workspace, budget, and allowed tools. Each run is archived with both agent-level success metrics and a detailed evaluation of whether each of the seven reliability components (context, execution, governance, lifecycle, observability, tools, verification) was satisfied.

The experiment does not assume that model performance or task completion correlates directly with harness reliability. Instead, it measures whether each harness correctly implements its internal mechanisms when faced with specific workflow demands. For example, a task may require that an agent maintain a persistent workspace state across multiple steps. If the harness fails to preserve this state—such as by truncating session history or discarding intermediate files—the system flags this as a failure in the lifecycle component. Similarly, if a tool is invoked without proper parameter validation, that reflects a governance failure. These failures are not dismissed simply because the agent eventually completes the task; they are recorded as violations of defined harness obligations.

Failure Attribution in Outcome Layers

The results present two distinct layers of evaluation: one for agent success and another for harness reliability. Each run produces a binary verdict vector indicating whether each criterion in both layers was met. For instance, an agent may complete a task successfully (agent success), but fail to preserve context across steps (harness failure).

To interpret these results, one must distinguish between what the agent does and how it does it. A successful outcome may mask failures such as lost context, incorrect tool usage, or unrecorded state changes. The failure attribution module identifies whether an observed agent-side error can be traced back to a specific harness mechanism—such as a missing validation step or improper session management. When both the agent and harness fail on the same criterion, and predeclared activation conditions are met, the system automatically links the two failures.

The scope of observation is limited to the 95 tasks designed to test explicit harness mechanisms. Not every possible workflow is included, and some failures may not be detectable if they occur outside the defined task structure. These findings do not claim superiority of any single harness but instead provide a detailed map of where and how each one falls short. The data enables developers to target specific reliability weaknesses without relying on high-level outcome metrics alone.

The Boundary Between Harness Defects and Measurement Limitations

A key distinction in TraceTrial-Bench lies in how it separates failures that originate within the harness from those that arise due to limitations in the measurement apparatus. A harness defect is defined as a failure to uphold a predeclared mechanism—such as improper context preservation or incorrect tool invocation ordering—while an apparatus failure refers to a situation where the evaluation system cannot reliably detect or record a behavior, regardless of whether the harness itself functions correctly. For instance, if a trace logging module fails to capture a file modification during execution, this does not imply that the agent’s workflow misbehaved; rather, it reflects a limitation in the evidence collection process. In contrast, apparatus failure is acknowledged as a measurement boundary and does not trigger a failure attribution for the harness layer.

To determine whether an event is due to a harness defect or a measurement limitation, the benchmark evaluates whether intermediate states—such as file content changes, tool output logs, or state transitions—are observable and verifiable. The evaluation protocol demands that any assertion about a harness mechanism being violated must be supported by both a clear behavioral deviation from expectations and independent confirmation through external state checks. For example, if an agent is expected to write a configuration file at step three of a workflow but no such file exists in the environment, this could point to either a failure in execution or a failure in logging.

This boundary prevents false attribution of failures to the harness when the root cause lies in the evaluation infrastructure.

How Competing Explanations Are Distinguished in Failure Attribution

When an agent fails to complete a task, multiple explanations may appear plausible: the model might have made an incorrect decision, the harness could have mismanaged context, or the workflow might have been interrupted by an external event. TraceTrial-Bench addresses this ambiguity by requiring that failure attribution follow a layered validation process. Second, it checks whether the harness preserved required context and executed actions in accordance with predeclared mechanisms. Third, it evaluates whether any observed failure aligns with a mechanism that was explicitly declared for that task.

To distinguish between competing explanations, the benchmark requires more than just a mismatch between expected and actual outcomes. For example, if an agent fails to invoke a tool at step two of a workflow, this could be due to a model decision error or a harness-level failure in tool selection logic. The system must verify whether the tool invocation was suppressed by the harness (e.g., due to a safety policy) or simply omitted because the model did not generate it. This distinction is made possible through the use of explicit mechanism chains—predefined sequences of actions and checks that define what constitutes valid behavior in each component. A failure to invoke a tool only counts as a harness defect if both (1) the harness’s mechanism for tool selection was active, and (2) the execution trace shows that the tool was not invoked despite being available and required.

Further validation requires observable intermediate distortions—such as a state change or log entry—that indicate a deviation from expected behavior. For instance, if a context management failure is suspected, the system must show that the agent’s memory state diverged from the initial prompt at a point where it should have remained consistent. Without such evidence, the claim of a mechanism violation remains speculative. Competing explanations are thus evaluated not just on outcome, but on the presence and nature of intermediate events that support or contradict each hypothesis.

Can Harness Failures Be Predicted Before Execution?

Despite the detailed mechanisms for failure attribution, TraceTrial-Bench does not currently offer a way to predict whether a harness will fail before execution begins. While it can identify failures after they occur through trace analysis and mechanism validation, it lacks tools or models that infer potential points of failure based on task design or system configuration. This gap leaves open the question of whether harness reliability can be proactively assessed through pre-execution analysis.

It cannot assess whether a specific mechanism—such as context truncation or unauthorized tool access—is likely to be violated in advance, even if such violations are known to exist in the task design. This limitation suggests that future work may need to develop models that analyze workflow structure and harness configuration to flag high-risk mechanisms before execution begins. Until then, the system can only diagnose what went wrong after it has happened—providing a clear picture of failure patterns but not offering insight into their likelihood or preventability.