Long-Horizon Agent Evaluation: From Leaderboard Scores to Real-World Cost

    This article explains how to evaluate long-horizon AI agents beyond leaderboard rankings. It breaks down what long-horizon tasks actually test, why aggregate scores can hide capability gaps, why reliability is harder to guarantee across multi-step workflows, and how to measure cost around successfully completed tasks. Readers will learn how to build an internal, business-aligned evaluation system and move from strong test results to production-ready deployment.

    1. Leading the Leaderboard Is Not the Same as Leading Across Your Business

    When an agent can repeatedly retrieve information, operate pages, modify code, and verify results, the focus of model evaluation begins to shift from “is the answer correct?” to “is the task actually completed?” This is the fundamental reason long-horizon evaluation attracts attention: enterprises need not a single satisfying answer, but an execution chain that keeps moving forward, corrects errors in time, and ultimately delivers a result.

    However, leading the overall leaderboard only shows that a system performs well on a specific task set under specific evaluation conditions; it does not directly imply the system is stronger across all business scenarios. A system that excels at page operation and code modification may not be equally good at complex data interpretation; a system with a higher final completion rate may also produce longer wait times and higher costs due to repeated tool calls.

    So understanding long-horizon evaluation requires separating three questions:

    • Can it complete the task?
    • Can it complete the task reliably and in a compliant way?
    • Are the cost and time required to complete the task worthwhile?

    Only when all three questions are answered can leaderboard information be translated into engineering decisions.

    2. What Long-Horizon Tasks Actually Test

    Traditional question answering usually has only two main stages: input and output. A long-horizon agent, by contrast, must make continuous decisions across multiple intermediate states. A typical process can be represented as:

    Understand the task → Make a plan → Call tools → Read feedback → Revise the plan → Verify the result → Submit the deliverable.

    A deviation at any stage can affect the final outcome.

    2.1 Task Decomposition and Constraint Preservation

    Faced with a task like “organize materials and generate an analysis report,” the system must first identify the deliverable, the scope of information, time boundaries, and prohibited actions. It must then break the goal into executable steps and continuously preserve these constraints through subsequent operations.

    A common failure is not that the model completely misunderstands the requirement, but that it gradually drifts from the requirement during execution. For example, the report content may be complete yet omit the time range the user specified; the code change may be effective yet touch a directory that was explicitly forbidden.

    Therefore, evaluation cannot check only the final text; it must also verify whether key constraints hold throughout the entire process.

    2.2 Tool Selection and Feedback Understanding

    Calling a tool does not by itself indicate reliable tool-use ability. The system must also judge when to call, what parameters to pass, whether the returned result is trustworthy, and how to handle failure.

    Page load timeouts, missing files, insufficient permissions, and empty query results should each trigger different follow-up behavior. If the system treats failure information as a normal result and continues, it produces a false success: “the process finished, but the task was not completed.”

    Tool evaluation should cover both the happy path and the error paths, and observe whether the system can adjust its actions based on feedback rather than mechanically repeating the same request.

    2.3 State Management and Result Verification

    Long-horizon tasks generate a large amount of intermediate information. Without clear state management, the system tends to repeat retrievals, forget completed steps, or treat stale results as the latest facts.

    A more reliable approach is to maintain structured task state that records confirmed facts, hypotheses to be verified, completed steps, failure reasons, and next actions. Before final delivery, an independent check should also run—for example, confirming whether the target file was generated, whether key calculations are consistent, and whether citations can support the conclusions.

    True completion should be defined by checkable results, not by the agent’s statement that it is “already done.”

    3. Why Aggregate Scores Hide Capability Differences

    An aggregate score usually rolls up multiple sub-items, but business needs do not necessarily match the weights of those sub-items.

    For a development team, code modification success rate, test pass rate, and change-scope control may matter more; for an operations team, page operation success rate, form-filling accuracy, and error recovery are more valuable; for an analytics team, calculation correctness, data completeness, and traceability of conclusions are the priority.

    This means a system with a higher aggregate score is not necessarily the best choice for a specific business.

    3.1 Check the Evaluation Criteria Before Comparing Scores

    When comparing different evaluation results, at minimum confirm:

    • Whether the task set is the same;
    • Whether the scoring rules are consistent;
    • Whether tool permissions and the runtime environment are consistent;
    • Whether retries are allowed, and whether the retry count is the same;
    • Whether the inference budget, timeout limits, and concurrency conditions are the same;
    • Whether the result comes from a single run or a statistical aggregate of multiple runs.

    After the evaluation version changes, task difficulty, category weights, and judgment criteria may all change. At that point, the aggregate scores from two points in time cannot be used directly to compute the magnitude of capability improvement.

    Even when test conditions are identical, watch both the score gap and result variance. If the lead is small and there is no repeated-run data or uncertainty estimate, the ranking difference should not be interpreted as a stable capability advantage.

    3.2 Also Check Task Coverage

    A high overall completion rate may simply reflect that the test set contains many tasks the system is good at. If the tasks an enterprise actually cares about make up a low proportion, the aggregate score becomes misleading.

    It is advisable to break down results by business type, task length, number of tools, and risk level. In particular, count separately the tasks that require cross-system operation, contain mid-process exceptions, or demand strict output formatting, because these scenarios are closer to the real difficulties of delivery.

    4. Why Long-Horizon Reliability Is Harder to Guarantee

    Long-horizon tasks amplify local errors.

    Suppose a workflow contains ten steps that must each be completed correctly, each with a 95% success probability, and assume for now that the steps are independent. Then the probability that the entire workflow succeeds is approximately:

    0.95 to the tenth power, roughly 59.9%.

    This is only a simplified example to illustrate error accumulation, not a performance prediction for a real system. Actual steps may depend on one another, and checkpoints, retries, and error correction can change the final completion rate. But it reveals a key fact: good single-step performance does not mean the whole chain is reliable.

    4.1 Set Checkpoints Instead of Extending Reasoning Indefinitely

    Checking results at key nodes is usually more valuable than letting the system execute more steps. For example:

    • After downloading data, verify the record count and fields;
    • After modifying files, check the change scope;
    • After running tests, read the actual results;
    • Before submitting a business operation, confirm the target object and permissions.

    Checkpoints limit error propagation and provide a clear basis for later recovery.

    4.2 Establish Boundaries for Retries

    Retries are suited to transient failures, not to solving every problem. Network jitter can be retried; insufficient permissions usually require stopping or handing off; parameter errors should be fixed first rather than resending the same request.

    Operations involving writes, payments, deletions, or submissions also need to consider idempotency. Otherwise, a retry after a lost response can cause duplicate submissions.

    In engineering terms, failures should be clearly divided into three categories: automatically retryable, retryable after adjustment, and requiring manual confirmation.

    5. Cost Evaluation Should Center on “Successful Tasks”

    The per-call price of a model is only part of the cost. A long-horizon agent can incur multiple rounds of reasoning, repeated retrievals, page visits, code execution, environment occupancy, and manual review.

    Therefore, a more meaningful metric is:

    Average cost per successful task = total cost of all tasks during the test period ÷ number of tasks that pass acceptance.

    The numerator must include the resources consumed by failed tasks; otherwise, the true spend is underestimated. Different approaches must also use the same task distribution and acceptance criteria for the cost comparison to be meaningful.

    5.1 Distinguish Call Cost from Full-Process Cost

    Call cost mainly includes input, output, and other usage counted under the service’s rules. Full-process cost may also include:

    • Tool requests and external data retrieval;
    • Execution environment and storage resources;
    • Failed reruns and manual takeover;
    • Result review and error fixing.

    In high-value business, manual review and error fixing may cost more than model calls. Comparing only the unit input/output price easily leads to conclusions that run counter to actual operating results.

    5.2 Do Not Route Every Complex Task to the Same Configuration

    Different tasks need different execution budgets. Formatting, field extraction, and simple classification can use a lighter processing path; tasks involving multi-source verification, complex code changes, or high-risk operations need stronger reasoning and verification mechanisms.

    Reasonable task routing should be based on complexity and risk, not on uniformly using the highest budget. At the same time, you cannot ignore the rework cost from a rising failure rate in order to lower the per-call cost.

    When selecting an approach, you can plot completion rate, cost, and latency together to find a solution that meets the business baseline, rather than simply pursuing the extreme of any single metric.

    6. Building an Internal Evaluation System Close to Your Business

    Public evaluations are good for observing technical trends; internal evaluation is the main basis for launch decisions.

    6.1 Draw Tasks from Real Work

    The test set should cover high-frequency daily tasks, low-frequency high-risk tasks, and tasks that were historically error-prone. Task descriptions, input materials, permission conditions, and acceptance criteria all need to be fixed, to avoid changing the goal during testing.

    For samples containing sensitive information, desensitize them first and run in an isolated environment. Tools with write or delete capabilities should preferentially connect to a test environment.

    6.2 Define the Standard for “Completion” in Advance

    Take data analysis as an example: generating a report does not equal completing the task. You should also check whether the data scope is correct, whether calculations can be recomputed, whether missing-value handling is reasonable, and whether the written conclusions are consistent with the data.

    Take code modification as another example: you need to check the functional requirements, relevant tests, change boundaries, and potential side effects.

    Use rule-based checks, result comparison, and independent tests as much as possible; for parts that cannot be judged automatically, apply a unified manual review standard to reduce subjective scoring differences.

    6.3 Keep Run Traces and Failure Categories

    Beyond the final score, also record the number of calls, cumulative cost, elapsed time, retry count, tool errors, and reasons for manual takeover.

    Failures can be categorized as task-understanding errors, planning errors, tool-parameter errors, environment failures, insufficient verification, and permission issues. Categorized results can guide improvement: some problems require switching models, while others only need better tool wrapping or additional checkpoints.

    This step is very important, because agent performance is the combined result of the model, prompt constraints, tool interfaces, and runtime environment; not all failures can be attributed to model capability.

    7. From Test Excellence to Production Readiness

    Production also has to handle problems that evaluation may not fully cover, including concurrency, permission isolation, data protection, auditing, and rollback.

    It is advisable to first run a pilot on tasks with controllable impact and easily verifiable results, then gradually expand the scope of automation. For irreversible operations, sensitive data access, and important business submissions, keep manual approval or clear permission gates.

    At the same time, continuously monitor task completion rate, cost changes, latency distribution, and exception types. Once the tool interface, business rules, or runtime environment changes, rerun representative tests rather than continuing to rely on historical results.

    The value of a long-horizon agent lies not in the size of its lead on some leaderboard, but in whether it can reliably complete clear business goals at an acceptable cost. For developers and enterprises, the most reliable judgment path is: first check the evaluation criteria, then validate real tasks, and finally place capability, reliability, cost, and risk into a single decision table.