Long-Horizon Agent Evaluation › Success Is Not a Scalar

Michael BrenndoerferDecember 1, 20264 min read
Language AI HandbookAll chapters
Part 49 of 67Long-Horizon Agents and Interoperability
Chapter 380Long-Horizon Agent Evaluation › Success Is Not a Scalar
Reading section 4 of 13 · Success Is Not a Scalar · 4 minSection 4 of 13 · 4 min

Section 4 of 13 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

We will build up from the simplest metric to the ones that respect long-horizon structure. At each step we ask what assumptions the metric makes and what it fails to capture. The progression is cumulative: each metric adds a dimension of structure that the previous one discarded, and at the end you can see exactly which information each one recovers.

Functional Success

Define functional success as satisfying the final-state predicate and the task’s safety condition.

Succ(π,τ)={1if Pred(sT)=true and Safe(τ)=true0otherwise\mathrm{Succ}(\pi, \tau) = \begin{cases} 1 & \text{if } \mathrm{Pred}(s_T) = \text{true and } \mathrm{Safe}(\tau) = \text{true} \\ 0 & \text{otherwise} \end{cases}

The predicate reads the environment state. The overall pass flag also checks whether the run broke a designated safety rule. Retain the safety result as a separate field.

Over a task suite of NN tasks with KK seeds each, the estimated functional success rate is

p^=1NK∑i=1N∑k=1KSucc(π,τi,k).\hat{p} = \frac{1}{NK} \sum_{i=1}^{N} \sum_{k=1}^{K} \mathrm{Succ}(\pi, \tau_{i,k}).

Report task results alongside the mean. The same pass rate can come from failures concentrated on one task family or failures scattered across all tasks.

Partial Credit Under a Budget

A long-horizon task usually specifies intermediate milestones that are worth partial credit. The harness defines a milestone pattern {f1,f2,…,fm}\{f_1, f_2, \dots, f_m\} where each fj=fj(sT)f_j = f_j(s_T) is a predicate on the final state indicating whether milestone jj was achieved. A natural partial-credit score is the fraction of milestones completed:

PC(τ)=1m∑j=1mfj(sT).\mathrm{PC}(\tau) = \frac{1}{m} \sum_{j=1}^{m} f_j(s_T).

But this on its own is exploitable: an agent could farm milestones by taking enormous numbers of cheap actions. Budget-aware partial credit gates the reward when simulated cost, steps or time exceed the recorded task limits.

Let c(τ)c(\tau) be total dollar cost, n(τ)n(\tau) total steps, and t(τ)t(\tau) wall clock. Fix per-task budgets C,Nmax⁡,TC, N_{\max}, T. We define budget-respecting credit as

BPC(τ)=PC(τ)⋅I[c(τ)≤C∧n(τ)≤Nmax⁡∧t(τ)≤T].\mathrm{BPC}(\tau) = \mathrm{PC}(\tau) \cdot \mathbb{I}\left[c(\tau) \le C \wedge n(\tau) \le N_{\max} \wedge t(\tau) \le T\right].

Then a second score, credit per unit cost, gives a roughness measure in the "how much progress per dollar" sense:

CPC(τ)=PC(τ)max⁡(c(τ),ϵ).\mathrm{CPC}(\tau) = \frac{\mathrm{PC}(\tau)}{\max(c(\tau), \epsilon)}.

The floor ϵ>0\epsilon>0 is in the same cost units as c(τ)c(\tau). CPC\mathrm{CPC} is not a primary metric; it can be gamed by stopping early. Read it alongside PC\mathrm{PC} (or BPC\mathrm{BPC}), never instead of it. Its value is to distinguish two agents with equal BPC where one costs ten times more. Notice that the budget cap is a hard indicator rather than a smooth function; this is deliberate because it mirrors how real deployment budgets work. An agent does not get partial credit for being slightly over budget. It either stayed inside the envelope or it did not, and the binary gate keeps the metric honest about that boundary.

To compare repeated attempts, distinguish the chance of solving a task at least once from the chance of succeeding on every attempt. τ-bench calls the latter pass-to-the-k and contrasts it with pass-at-k. At a common independent per-run success probability pp, these are pkp^k for every attempt and 1−(1−p)k1-(1-p)^k for at least one. When tasks differ in difficulty, compute each statistic within each task first.

Goal-valued Success

Some milestones are worth more than others. Real tasks have hard and soft goals: "the file exists and is valid" is worth more than "the log line is present." The general scorer can use normalized weights {wj}\{w_j\} with ∑jwj=1\sum_j w_j = 1 and yields

PCw(τ)=∑j=1mwj⋅fj(sT).\mathrm{PC}_w(\tau) = \sum_{j=1}^{m} w_j \cdot f_j(s_T).

Everything else is the same as before, with PC\mathrm{PC} replaced by PCw\mathrm{PC}_w. Weighted partial credit prevents an agent from "cheating" the score by completing many trivial milestones, provided the harness weights make those milestones worth little. The weights express your value judgment about which parts of a task matter, and setting them badly is itself a form of contamination-adjacent error: a score that rewards the wrong milestones will steer development toward the wrong capabilities.

Success Over the Suite, Not Over the Transcript

Stratified success groups tasks by a declared family, difficulty band or budget. Reporting a slice reveals how a policy behaves there. The toy below reports pooled and paired scores, and the task metadata lets you define a budget slice in a follow-up.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy