Evaluating Long-Horizon Agents and the Unit-Success Cost Tradeoff

    Long-horizon agents plan, use tools, check results, and recover across many steps until a job is done. This article separates capability boundaries, evaluation setup, unit cost of a successful task, and deployment practice so teams do not treat a composite intelligence score, a coding-agent score, and cost per success as the same signal.

    Long-horizon agent capability is becoming a core issue in software engineering and operations automation. Unlike single-turn question answering, these systems must keep planning, calling tools, checking results, and correcting themselves across many steps until a job is finished. A leaderboard “top score” often covers only one task distribution. Mixing a general intelligence index, a coding-agent index, and cost per successful task makes it easy to choose the wrong model. This article splits the problem into capability boundaries, evaluation criteria, a cost model, and deployment guidance, and offers a reusable way to judge them.

    Why a third-place overall score can still lead on long workflows

    Composite intelligence indexes usually blend knowledge, reasoning, math, code snippets, and multimodal understanding. Even with a very high reasoning effort setting, a score can stay near the front without being the best. That is not mysterious: long-horizon work depends more on state management, following tool protocols, error recovery, and timeout policy than on how impressive a single reasoning pass looks. A coding-agent index is closer to real workflows: repository search, terminal actions, test-driven edits, and cross-file consistency checks. A model can lead on most items in a controlled exam and still lose ground on a terminal benchmark or a frontier coding benchmark. That “specialist” pattern is real: it can carry a long chain through to completion without scoring perfectly on every subject.

    For enterprise users, this maps to two common misuses. One is substituting a general intelligence score for role fit. The other is substituting a single-point benchmark for an end-to-end closed loop. The better approach is to define a task family first—for example, repository-level changes with tests, or multi-service debugging—then look at success rate, average step count, and how often a human has to step in on that family.

    Evaluation must mean “getting one job done”

    A long-horizon evaluation should lock down at least four things. First, the environment: container image, dependency versions, and network and permission boundaries, so environment drift is not counted as model ability. Second, the tool surface: which commands are allowed, which files are writable, and whether web retrieval is allowed. Third, the definition of success: all tests green, interface contracts met, or compile-only. Fourth, the budget: maximum steps, maximum wall-clock time, and maximum tokens. If any of these is missing, scores across organizations are not comparable.

    Common biases include lining up results from different reasoning-effort settings, counting trajectories that included human hints as fully automatic success, and treating partial passes as a full score. A more reliable report gives success rate, conditional success (nearly passed), median step count, and a distribution of failure modes—planning errors, tool misuse, hallucinated paths, and timeouts. Only when failure modes can be reproduced can engineering decide whether to add guards or change models.

    Cost is throughput: price per successful task

    When agents do work, the key metric is not “how cheap one call is,” but “how much it costs to finish one job.” Unit cost of success can be written as:

    Unit success cost = (total inference cost + tool and environment cost + human review, converted to cost) / number of successful tasks

    Do not leave out tokens already spent on failed tasks. A system with a high failure rate can look cheaper per call and still cost more once the spend is spread across successful samples. The denominator must use the same success definition. Otherwise you get the illusion that a higher score is more expensive, or that a slightly lower score delivers more throughput. A comparison pattern often repeated in public accounts is that one long-horizon model’s cost per successful task is clearly lower than another high-scoring option, while the task score is also slightly higher. The point of that comparison is cost-effectiveness, not a marketing line. When selecting a model, rerun a fixed task pack and compute a confidence interval instead of citing a single evaluation screenshot.

    Also watch reasoning-effort settings and concurrency. A high reasoning setting lengthens latency and raises cost. That may be unacceptable for interactive debugging and reasonable for overnight batch jobs. Too much concurrency can hurt context consistency—shared repository locks and test resources—and create false failures. The cost model should include queueing and lock contention.

    Engineering rollout: put the specialist in a pipeline, not a chat box

    To turn long-horizon ability into throughput, deploy with a narrow entry point, hard checks, and rollback.

    Narrow entry: open only the repository paths, secret scopes, and command allowlists that the task needs. The agent should not have production write access by default. Hard checks: every submission must pass static checks, unit tests, and contract tests; on failure, roll the workspace back automatically. Rollback: work in branches or snapshots, and do not keep trial-and-error commits on the main branch.

    For prompts and memory, prefer a structured task card—goal, constraints, acceptance commands, and forbidden actions—over prose chat. Cross-step state should be written to disk as machine-readable progress: files changed, tests run, and open assumptions. That reduces context rot. For terminal tasks, wrap frequently failing commands in scripts so parameters are less often assembled incorrectly.

    Beyond latency and spend, monitoring should record tool-call sequences, the test pass-rate curve, and points where a human takes over. Those logs support cost allocation and the next round of prompt and policy changes. On the cloud side, object storage can keep trajectories, a message queue can decouple long jobs, a container platform can isolate environments, and logging plus alerting can watch timeouts and abnormal exits. These are general capabilities and do not depend on any one vendor’s proprietary interface names.

    How to avoid being steered by a vendor’s own exam

    “Leading on most comparison items” in a vendor model card is not the same as winning across the board. The question distribution, prompt templates, and tool wrappers can all lean toward the shape of the training data. If an independent index ranks general intelligence more conservatively, treat that as a calibration signal: strength on long workflows is not the same as strength as a generalist. A buying checklist should keep three columns in parallel: generalist intelligence (for planning and documents), coding-agent performance (for changing code), and unit success cost (for budget). Enter a pilot only when all three clear their thresholds. If any column is clearly weak, limit where the model is used.

    Pilot tasks should come from a real backlog: defects with reproduction steps, dependency upgrades, and missing tests. Score different models and effort settings with the same scripts. Do not tune a demo repository on its own. Expand permissions and task complexity only after that bar is cleared, not the other way around.

    Summary

    A long-horizon agent is a specialist: it can lead on coding and terminal closed loops without a perfect score on every intelligence item. Evaluation should align environment, tools, success definition, and budget. The operating metric should be unit success cost, including spend on failures. In production, permissions, tests, and rollback keep that capability inside a pipeline. Read the leaderboard, do the accounting, and ship that way, and one top rank—or one third-place overall score—will not pull the decision off course.