DetourBench: Trajectory-Level Evaluation of Interactive Agents with Exact Minimum-Action BoundsDetourBench: Trajectory-Level Evaluation of Interactive Agents with Exact Minimum-Action Bounds
The authors propose DetourBench, which evaluates agent trajectories using the exact minimum number of actions and the remaining workload; across 375 episodes, success rate and conditional attainment give different model rankings.
- An agent evaluation that looks only at final success cannot distinguish direct paths from detours, nor can it distinguish being one step short of completion from an irreversible error. Human-written reference solutions can usually only show that a task is solvable, not that no shorter path exists.
- DetourBench restricts tasks to finite, partially observable transition systems, uses exhaustive search to compute the exact minimum number of visits Lo and the remaining work RT to a recoverable endpoint, and separately reports success rate, conditional attainment, remaining progress, NDR and repeated-visit metrics.
- The experiments include 40 controlled cue-sentence intervention pairs and 25 integrated tasks. Across the 375 episodes of the integrated suite, success rates range from 58.7% to 96.0%, and conditional attainment on successful episodes ranges from 0.803 to 0.890; the two metrics rank models differently. Failures can also be decomposed into near-completion, budget exhaustion, and irreversible commitment.
- The authors note that task screening referenced model behavior, that three repetitions limit randomness analysis, that the omniscient oracle does not deduct the lookalike-candidate selection advantage, and that only four tasks underwent a content counterfactual audit. Future directions include pre-registered held-out suites, human baselines, and informed reference policies.
- Evaluated models
- claude-opus-5deepseek-v4-proqwen3.6-plusglm-5.2kimi-k3deepseek-v3.2claude-opus-4-8HY4-Preview
- Benchmarks
- DetourBench Controlled Mechanism SuiteDetourBench Integrated Workflow Suite
- Metrics
- Success rateConditional attainmentResidual progressNormalized detour (NDR)RSRPass@1Pass3
DetourBench uses constrained environments to make the minimum number of actions computable, evaluating LLM agents' success, attainment and detours separately, beyond endpoint-only scoring. Each task is modeled as a finite, partially observable transition system, where visits are charged at unit cost and resources become globally addressable once discovered; exhaustive search yields the full-information minimum action count L_0 and a replayable witness, and the exact remaining work R_T is obtained from graph-recoverable terminal states, while irreversible wrong commitments are recorded as having no finite remaining distance. Across five model endpoints, 25 integrated tasks and three repetitions, totaling 375 scored episodes, success rates range from 58.7% to 96.0%, conditional attainment ranges from 0.803 to 0.890 and ranks models differently from success rate; among recoverable failures, remaining work distinguishes near-complete trajectories, costly incompletion and irreversible commitments. Instances, oracle witnesses and the evaluation framework are open-sourced at https://github.com/DatagridsAI/DetourBench.
Paper analysis
What problem does this paper attempt to solve?
Endpoint scoring cannot distinguish path cost from failure progress; the authors use tasks whose shortest paths can be computed exactly to supplement these two types of measurement.
The core problem is: agent benchmarks only look at the final state, so they cannot measure how much detour a successful trajectory took, nor can they distinguish different types of failure.
- Endpoint scoring loses process information: the authors argue that direct success and success after traversing a large amount of the environment receive the same score; both a failure that never found evidence and a failure that was one visit short of completion are recorded as zero (Figure 1).
- Human reference paths cannot provide minimality: the authors point out that authored solutions usually only prove that a task is solvable, not that no shorter route exists; evaluation weighted by tool prices also requires assumptions about relative costs.
- Core design assumptions: tasks are constrained to finite, partially observable transition systems, all environment visits use unit cost, and resource identifiers can be called globally and directly once discovered, so that the complete state graph can be exhaustively searched and exact lower bounds computed.
- Proposes DetourBench: uses the full-information minimum number of visits Lo, a replayable shortest witness, and the remaining work RT of recoverable failures to separately report success, conditional attainment, remaining progress and normalized detour; irreversible errors are not assigned a finite remaining distance.
- Evaluation positioning: the authors position it as a controlled diagnostic probe with exact graph-theoretic bounds, used to isolate unnecessary and missing evidence visits, rather than a representative sample of natural workflows; it includes a controlled mechanism suite and an integrated workflow suite.
What related research exists?
Related work covers trajectory evaluation, path efficiency and benchmark validity; the authors use search-derived exact minima to distinguish their approach from human reference paths.
Agent and trajectory evaluation
- AgentBoard (Ma et al., 2024): measures multi-turn agent progress via human-annotated subgoals.
- CORE (Michelakis et al., 2025): encodes tasks as deterministic automata and evaluates correctness, ordering, prefix criticality, harmful calls and efficiency over a set of human-verified acceptable tool paths.
- AgentRewardBench (Lù et al., 2025): studies the reliability of automatic trajectory evaluators. The authors argue that the reference paths of AgentBoard and CORE are human-written and prove that a route is acceptable, whereas DetourBench's references are derived by search and prove that no shorter route exists.
Interaction and path efficiency
- SPL (Anderson et al., 2018): weights successful trajectories by the instance shortest path in embodied navigation. The authors point out that SPL records failures as zero, cannot distinguish being one step short of completion from not finding evidence, and has no representation of irreversible error commitments; its shortest path is defined in a metric space, whereas this paper defines it over composite states containing visited resources, credentials and outcome flags.
- CORE efficiency and CostBench: the authors point out that CORE uses the longest acceptable path not exceeding the agent's own length as the reference, so the reference value varies with the evaluated trajectory, and efficiency is undefined when the agent is shorter than all acceptable paths; this paper uses a fixed instance minimum. CostBench (Liu et al., 2026) studies planning under heterogeneous tool prices and dynamic failures, while Wang et al. (2025) directly optimize the model to reduce unnecessary calls.
Partial observability and benchmark validity
- Online search and POMDP: the authors connect the comparison of observed trajectories with full-information optima to Papadimitriou and Yannakakis (1991) and Kaelbling et al. (1998); information scent from Pirolli and Card (1999) motivates the controlled cue intervention.
- Benchmark auditing: Zhu et al. (2025), Shao et al. (2026), Tian et al. (2026) and OpenAI (2024) are used to show that task underspecification and scoring shortcuts threaten validity; DetourBench uses replayable witnesses, provenance records, pair diffs and encrypted manifests.
Positioning of this paper: the authors emphasize a unified visit cost, measuring only the number of structural interactions, not latency, token consumption or economic cost. The experiments set no separate external method baseline; the comparison objects are the trajectory metrics of each model on the same frozen tasks.
How does the paper address this problem?
DetourBench computes exact Lo and RT on a unit-cost state graph, then separately computes success, efficiency, progress and redundancy metrics.
The overall idea is to freeze each task as a finite transition system that can be exhaustively enumerated, and to use the same search to produce the shortest successful path and the remaining distance after failure. DetourBench's reference is a full-information offline optimum, not the cost of an optimal policy under partial observability.
Transition semantics and billing
- A state is written as st=(Vt,Kt,zt), where V_t is the set of visited resources, K_t is the set of obtained credentials, and z_t takes active, success, or wrong; seed resources belong to V0.
- Actions have source, resource preconditions, and credential preconditions; while a task is active, V_t and K_t grow monotonically, enabled actions remain available, and discovered identifiers can be called directly, with no navigation or backtracking cost.
- Each round, the agent may submit an ordered batch of visits, which the environment executes in order until the batch ends, the visit budget is exhausted, or a terminal state is reached. All visits that reach the dispatcher are billed, including disabled, invalid, and duplicate visits; pure model replies that dispatch no visits are not billed.
- An episode ends on success, an absorbing wrong commitment, the visit budget, the model round limit, or an explicit final submission. Text submissions are not billed when provided, but all completions in this suite occur through billed terminal actions.
Exact oracle and remaining workload
- Exhaustive breadth-first search is performed over the finite reachable state space, defining Lo=minτ:s0→ GCτ, i.e., the minimum number of billed visits to reach the success state set G; all included instances satisfy Lo ≥ 1.
- The search's predecessor map produces the shortest successful trajectory, which is replayed under the same transition function used by the model; the graph, success conditions, oracle length, and witness are frozen together.
- For episodes terminating in an active state, RT is the minimum number of additional billed visits required for success. On success RT=0; an absorbing wrong commitment is not assigned a finite RT.
- Because resources and credentials are monotonic and one-shot actions leave the active state, the authors state that every active terminal snapshot is graph-recoverable; this does not mean the remaining budget suffices to execute the remaining path.
Trajectory metrics and budget
- Conditional attainment Aτ is defined only on success as Lo/Cτ, takes values in (0,1], and is reported jointly with success rate, not as a standalone model score.
- For successful or recoverable active endpoints, Pτ=1−RT/Lo denotes normalized remaining-distance reduction, and NDRτ=(Cτ+RT−Lo)/Lo denotes the additional billed interactions relative to the offline optimum; for wrong-terminal episodes, RT, Pτ, and NDR are all undefined.
- RSR is defined on successful episodes as the sum of invalid visits and repeat visits that leave the state completely unchanged divided by Cτ, with lower being fewer; it is undefined on failure, to avoid a low ratio caused by early termination.
- The budget is B=⌈m max(Lo,Li)⌉, with m fixed at 1.5 before the main evaluation; in the released suite Li=Lo for each task, so in practice B=⌈mLo⌉, and the budget is not raised during a run.
Task construction and validation
- The Controlled Mechanism Suite constructs paired instances across six mechanisms, but §5 reports only the 40 Currency pairs that passed the equivalence audit and are usable for controlled comparison; the Integrated Workflow Suite contains 25 longer human-written tasks, each with one frozen instance.
- Controlled pairs keep the source records, topology, actions, goals, answers, and oracle bounds unchanged, changing only one declared cue sentence; a pair is excluded if the canonical diff finds any other textual or structural difference.
- Construction starts from source records and generates graphs, preconditions, termination conditions, and scenario facts; source content links to supporting spans, and authored overlays are labeled separately.
- The four admission gates are mechanical, construct, generation, and artifact validity, including schema checks, witness replay, source and removal audits, answer-degeneration checks, pair integrity, and graph and oracle hashes. Analysis fails closed when versions or hashes mismatch, run budgets change, or the model–task–repetition cells are incomplete.
Boundaries of metric interpretation
The authors state that every annotated evidence node in the evaluated suite lies on the shortest successful path; what the oracle preserves is the advantage of preferentially choosing the correct lookalike candidate. NDR is therefore the excess interactions relative to hindsight-optimal selection, and does not assert that any particular visit was unreasonable; distinguishing justified uncertainty resolution from avoidable exploration requires an informed reference policy that the released suite does not have.
What experiments did the paper conduct?
Controlled interventions and 375 integrated-task episodes show that success rate, cost of successful paths, and progress on failures provide different ranking information.
Experimental setup
- Integrated suite models: claude-opus-5, deepseek-v4-pro, qwen3.6-plus, glm-5.2, kimi-k3, abbreviated in Table 2 as Claude, DeepSeek, Qwen, GLM, Kimi respectively.
- Controlled intervention models: qwen3.6-plus, deepseek-v3.2, glm-5.2, claude-opus-4-8; 40 pairs of Currency problems, three repetitions per arm, totaling 4×40×3×2=960 episodes, 120 per model per arm.
- Integrated tasks and samples: 25 Integrated Workflow Suite tasks, each of five models run three times, totaling 375 episodes; tasks are the unit of comparison, and repetitions characterize within-task variation, not 75 independent samples.
- Metrics: Success rate; conditional attainment and RSR on successful episodes; Progress and NDR on recoverable failures; the controlled experiments additionally report Query, Waste, Pass@1, Pass3. Answers are normalized via structured output and compared semantically; the paper reports no LLM judging or human scoring.
- Run conditions: shared scaffold, budget fixed and not unlockable at runtime; the harness sets no temperature or top-p, uses provider defaults, stops after 60 model turns, with an actual maximum of 24 turns.
- Additional endpoint: HY4-Preview was run three times on tasks 1–24, totaling 72 episodes, all using the later prompt version, did not run task 25, and the authors do not rank it directly against the main table.
Main results
According to Table 2, 25 integrated tasks total 375 episodes; attainment and RSR are averaged only over each model's own successful episodes.
Swipe horizontally to read the table
Model Successes/episodes Success rate Conditional attainment Successful RSR Claude 72/75 96.0% 0.890 0.026 Kimi 69/75 92.0% 0.861 0.023 DeepSeek 46/75 61.3% 0.803 0.023 Qwen 45/75 60.0% 0.806 0.040 GLM 44/75 58.7% 0.836 0.034 - Rankings are not fully consistent: the authors state that Claude and Kimi have the highest success rates and conditional attainment; GLM has the lowest success rate but higher conditional attainment than DeepSeek and Qwen. This is a descriptive ranking reversal based on different success subsets.
- Aggregation affects middle ranks: when averaged by task, GLM is 0.811, Qwen 0.793, DeepSeek 0.789; restricted to the 13 tasks solved by all models, they are 0.851, 0.829, 0.824 respectively. Qwen and DeepSeek differ by at most 0.005 and swap on the 19 tasks with the original prompt, so the authors do not rank the two.
- RSR is another dimension: successful RSR ranges from 0.023 to 0.040 (Table 2), and its ranking differs from success rate and attainment because it isolates only ineffective and repeated visits.
Controlled cue intervention
- Single-sentence intervention: the two arms differ only by a seed sentence pointing to the point-in-time view, and the endpoint is always available. Among 160 model–problem pairs, removing the sentence lowered view use by 63 percentage points and success rate by 41 percentage points, and increased out-of-scope reads per episode by 2.9 (§5.1).
- Per-model results: qwen3.6-plus's Query goes from 100% to 5%, Pass@1 from 98% to 42%; deepseek-v3.2 from 96% to 68%, 69% to 38%; glm-5.2 from 87% to 32%, 71% to 37%; claude-opus-4-8 from 77% to 2%, 85% to 42% (Table 1).
- Same-success paired analysis: across 31 problems and n=176 model–problem–repetition pairs where both arms succeeded, conditional attainment drops from 0.763 to 0.637, ∆=−0.126; 95% problem-cluster bootstrap interval [−0.156,−0.099], 20,000 resamples, and out-of-scope reads rise from 0.91 to 2.72. Averaged by problem, 23 of 31 decrease, t30=−6.1.
- Repetition stability: in the unsignposted arm, deepseek-v3.2 has Pass@1 of 38% and Pass3 of 8%; the authors accordingly state that it occasionally answers correctly but unstably, whereas claude-opus-4-8's Pass3 drops less, and its failures look more like a stable per-problem property.
Cost differences on all-success tasks
- Eight all-success tasks: tasks 2, 3, 4, 5, 6, 14, 19, 25 were solved by all five models in all three repetitions, with an attainment spread between models of 0.074–0.190 (§5.4, Table 6); the authors emphasize that this proves cost differences exist, not how prevalent they are, because separability is the screening criterion.
- Task 3 case: Lo=15, mean billed visits range from 17.0 for Claude to 21.7 for GLM, with attainment 0.882 and 0.693 respectively; both have RSR 0.000, and attainment differs by 0.189 (Table 4). The authors state that the extra cost comes from valid but unnecessary exploration, not repeated or ineffective calls.
Failure decomposition and additional endpoint
- 99 failures: 95 exhausted the visit budget, 2 stopped at a recoverable state, 2 entered an absorbing wrong state; Table 5 computes Progress and NDR only for the 97 active, recoverable failures, with overall means of 0.770 and 0.737 respectively.
- Failures cannot be ranked directly: the five models fail on largely non-overlapping task sets, involving 1, 4, 13, 14, 16 instances for Claude, Kimi, DeepSeek, GLM, Qwen respectively; no instance produced recoverable failures for all five models, so the authors explicitly do not treat Table 5 as a model comparison.
- Task 18 counterexample-style decomposition: Lo=20, budget 30, six failures are identical under binary scoring; two are one required visit short, three exhausted the budget at Progress 0.85–0.95, and one is an irreversible commitment with no finite remaining distance (Appendix F).
- HY4-Preview: 52 successes among 72 episodes, success rate 72.2%, conditional attainment 0.821, successful RSR 0.025; all 20 failures exhausted the budget and are recoverable, Progress 0.819, NDR 0.696 (Table 7). Because the prompt version differs, the authors report it separately.
Other ablations and analyses
- Budget-exhaustion failures: the median remaining visits for the 95 is 3, mean RT=3.02, mean Progress=0.766, and 47 are within two visits of the goal; repeated and ineffective visits account for 7.6% of their billed steps (§3.5).
- Structural necessity: among the 314 nodes on the oracle routes of the 25 tasks, deleting 309 makes the goal unreachable, and the remaining 5 have alternatives (Appendix C).
- Content counterfactuals: tasks 21–24 each executed four types of edits, all yielding the expected results, and an independent reference implementation agrees on the baseline and all edits; the other 21 tasks did not undergo such content counterfactuals (Appendix C).
- Exact search cost: recomputed bounds on the 25 frozen graphs all equal Lo; runtime median 0.85 ms, maximum 273.4 ms, maximum search states 13,541 (Table 8).
What are some points that can be further explored?
The authors list four limitations—screening, number of repetitions, omniscient reference and semantic auditing—and propose future directions such as held-out evaluation.
Limitations and future directions noted by the authors
- Model-informed screening: §6 notes that the screening reflects properties of the released suite rather than overall prevalence; §5.6 states that the 20-task manifest was determined after observing model behavior, and that the 8/17 cost/outcome split is not a prevalence estimate.
- Number of repetitions: §6 notes that three repetitions limit randomness analysis, and that future work should expand repeat and model coverage.
- Omniscient oracle: §6 notes that the oracle does not deduct the lookalike selection advantage; future work should develop informed reference policies that distinguish discovery from planning error.
- Semantic necessity: §6 notes that exactness holds only under authored semantics, and that semantic necessity was verified for only four tasks; Appendix C states that the remaining 21 depend on authored scenarios.
- Future evaluation: §6 proposes evaluating pre-registered held-out suites and adding human baselines.
- Budget sensitivity: §3.5 states that the budget multiplier m was not changed, leaving budget sensitivity as future work.
Experimental coverage
- The main integrated experiment comprises five endpoints, 25 tasks, and three repetitions per task, for 375 episodes in total; the controlled experiment comprises four models, 40 question pairs, and three repetitions per arm, for 960 episodes in total (§5.1, §5.2).
- The additional HY4-Preview run covers only tasks 1–24, for 72 episodes in total, and all use the later prompt version; the main runs for tasks 17, 20, and 21–24 also use the later prompt version (§5.2, Appendix H).
- The integrated tasks cover software, clinical, financial, banking, logistics, regulatory, legal, corporate-registry, transit, customs, and security records (§4.1).
- The public release includes frozen graphs, the oracle, artifact hashes, and the evaluation harness, but does not include recorded model trajectories; the authors state that they open-source instances, oracle witnesses, and the harness (abstract, Appendix G).
- The paper does not report human baselines, LLM judging, or human agreement; sampling uses provider defaults, with no temperature or top-p set (Appendix G).
Summarize the main content of the paper
DetourBench uses exact graph search to report an agent's outcome, path cost, and remaining distance after failure separately.
DetourBench is a trajectory-level agent evaluation framework addressing the problem that endpoint scoring conflates direct and detouring paths, near-completion and ineffective exploration, and recoverable failures and irreversible errors.
- Core method: tasks are constrained to finite, partially observable transition systems with unit visit cost; exhaustive search gives the full-information minimum number of visits Lo and a replayable witness, and computes the exact remaining work RT for recoverable failures.
- Separate metric reporting: beyond success rate, successful trajectories report conditional attainment Lo/Cτ and the ineffective and repeated visit ratio RSR; recoverable trajectories report Progress and NDR, and wrong commitment is not assigned a finite remaining distance.
- Overall main results: among 375 episodes of five models on 25 tasks, 276 succeeded; Claude has a success rate of 96.0% and conditional attainment 0.890, GLM has a success rate of 58.7% and conditional attainment 0.836, higher than DeepSeek's 0.803 and Qwen's 0.806 (Table 2). The authors state that the results and the efficiency ranking are not the same.
- Same success, different cost: eight tasks were solved by all models in all repetitions, yet the attainment spread between models is still 0.074–0.190; in Task 3, Claude and GLM both have RSR 0.000, but their attainment differs by 0.189 (Table 4).
- Controlled intervention: on 176 pairs where both arms succeeded, removing one prompt sentence pointing to the existing view lowered conditional attainment from 0.763 to 0.637 and raised out-of-scope reads from 0.91 to 2.72 (§5.1).
- Failure information: among 99 integrated-task failures, the 97 recoverable failures have a mean Progress of 0.770 and NDR of 0.737; the six binary-tied failures in Task 18 are decomposed into one visit short, budget exhausted, and irreversible commitment (Table 5, Appendix F).
The authors argue that these results show that exact trajectory measurement has practical diagnostic value; they also emphasize that model participation in screening, three repetitions, the omniscient reference, and content counterfactual auditing executed on only four tasks constitute the boundaries of the conclusions.