arXiv:2610.03315cs.AIOct 2026

Manuscript Offprint

arXiv:2610.03315

Lightweight, Rubric-Guided Trajectory Evaluation for Production AI Agents

Linh-An Phan, MingXue Wang, Guangyu Wu, Feng Pan, Zhaoyu Pang, Yanbin Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Linh-An Phan*, MingXue Wang*, Guangyu Wu*, Feng Pan†, Zhaoyu Pang†, Yanbin Zhang†

*Huawei Ireland Research Center, Dublin, Ireland, †Huawei Shenzhen R&D Center, China

{linhanphan, wangmingxue, guangyuwu, panfeng, pangzhaoyu, zhangyanbin}@huawei.com

Abstract—Trajectory evaluation is essential for improving the reliability of LLM-based agents, but production use makes it expensive to run repeatedly. Modern agents generate long traces containing tool calls, observations, retries, and external outputs, while not all raw tokens are equally useful for diagnosis. We present LiteTrajEval, a lightweight architecture for budget-bounded trajectory evaluation. LiteTrajEval derives compact domain-specific rule profiles offline, then preprocesses each trajectory online, marks heuristic failure signals, serializes it under a fixed global budget, and invokes a single rubric-guided LLM judge to produce structured diagnostic reports. Evaluated on public Magentic-One-style and τ\tau -bench-style trajectory datasets, LiteTrajEval improves failure-localization alignment with human annotations by roughly 20–35 percentage points on Magentic-One and up to 23 percentage points on τ\tau -retail compared with AgentRx, while reducing cost by about 6×6\times and evaluation time by more than 8×8\times . This solution has also been deployed in our enterprise agentic platform.

Index Terms—trajectory evaluation, LLM-as-a-Judge, agent observability, failure localization

I. INTRODUCTION

LLM-based agents increasingly perform complex workflows involving planning, tool use, retrieval, code execution, state updates, and multi-step decision making. For such systems, the final answer is only a partial indicator of reliability. A correct answer may hide unsafe tool use, policy violations, unnecessary retries, or poorly grounded intermediate reasoning. Meanwhile, an incorrect answer may be caused by an early misread observation, a failed tool call, missing evidence, or poor recovery after a previous error. The execution trajectory therefore becomes a central artifact for understanding agent behavior and improving agent reliability.

Unlike traditional software logs, however, agent trajectories often contain error messages that are not direct indicators of the true root cause. Agents may recover through retries or alternative tool paths, and early reasoning mistakes may only surface later as downstream tool failures, making purely rule-based diagnosis insufficient. In production agent systems, where traces accumulate continuously and evaluation must run repeatedly across prompt versions, model upgrades, and regression suites, this diagnostic challenge is compounded by a cost and latency constraint that one-off benchmark analysis does not face.

Recent work has moved from final-answer evaluation toward process-level and trajectory-level evaluation. τ\tau -bench [1] shows that agents can fail to follow domain policies and update external state correctly across realistic multi-turn interactions.

TABLE I LLM-CALL PATTERNS IN TRAJECTORY EVALUATION METHODS.

SolutionLLM calls
AgentRx [11]Multiple
Holistic Evaluation [4]Multiple
AgentEval [5]Multiple
TRACE [6]Multiple
LiteTrajEval (our)Single

Multiple-call methods evaluate individual steps before judging trajectory quality; LiteTrajEval uses one judge call per trajectory.

AgentBoard [2] and T-Eval [3] evaluate agents using progress, grounding, and step-level skill signals rather than a single success metric. More directly, trajectory-diagnosis methods such as TRACE [6], AgentRewardBench [7], Agent-as-a-Judge [8], AgentDiagnose [9], and AgentRx [11] demonstrate that analyzing the full task-solving process can reveal failure modes that final-answer grading cannot capture. However, these methods address trajectory quality in isolation and do not account for the cost and latency demands of repeated production evaluation.

In practice, evaluation must run across prompt versions, tool implementations, model upgrades, and failure-analysis batches, so cost and token usage need to be predictable. Long-running agents may generate many reasoning steps, tool calls, observations, retries, logs, stack traces, and large external outputs. Feeding the entire raw trace into a judge is inefficient and can suffer from attention degradation in long contexts [10], yet aggressively truncating it can break the causal chain needed for diagnosis. Redundant tool loops, repeated observations, and verbose logs may consume most of the token budget while contributing little diagnostic signal. The central question is therefore whether a single-call, fixed-budget evaluator can preserve enough of the execution to support reliable failure localization.

Many recent systems address this with multi-call LLM pipelines that evaluate individual steps or spans before aggregating a trajectory-level judgment, as shown in Table I. This can be effective but increases cost and latency, making it difficult to attach to production regression workflows where thousands of trajectories may need to be evaluated.

In this paper, we present LiteTrajEval, a lightweight architecture for budget-bounded trajectory evaluation. It separates reusable offline domain profiling from online per-trajectory diagnosis. At evaluation time, LiteTrajEval normalizes het-erogeneous traces, applies heuristic rules to mark failure-oriented signals, removes or compacts redundant low-value content, preserves the global execution skeleton, and serializes the trajectory under a fixed global budget. A single rubric-guided LLM judge then produces a structured diagnostic report with candidate failure steps, root-cause explanations, failure categories, key observations, and rubric scores.

This paper makes two main contributions:

  1. A fixed-budget, single-call architecture for production trajectory evaluation. We propose LiteTrajEval, an offline-online pipeline that preserves a holistic trajectory view, bounds per-trajectory judge input, and uses one rubric-guided LLM call to produce structured diagnostics. It shows that deterministic preprocessing, status-aware compaction, and budget-aware serialization can make single-call trajectory evaluation viable without a multi-stage diagnosis pipeline.

  2. An empirical comparison against a strong failure-diagnosis baseline. On Magentic-One-style and τ\tau-retail trajectories, LiteTrajEval improves group-level failure-localization alignment with human annotations by roughly 20–35 percentage points on Magentic-One and by up to 23 percentage points on τ\tau-retail compared with AgentRx, while reducing total evaluation cost by about 6×6\times under the same judge model, by about 22×22\times when using DeepSeek-v4-flash, and reduces full evaluation time by more than 8×8\times.

LiteTrajEval is not intended to replace task-specific success metrics, constraint-based checks, or human review. Instead, it provides a deployable middle layer between final-answer evaluation and heavyweight multi-call root-cause analysis, and has been integrated into the evaluation harness of our production agentic platform.