AI Agent Evaluation Systems for Real Long-Horizon Tasks: A Deep Dive

    As large language models move from single-turn Q&A to multi-step execution, the way we evaluate them is changing fundamentally. This article explains why AI agent evaluation must center on real, long-horizon tasks rather than static answer quality, and how a credible, reproducible, and sustainable evaluation system is built. It covers why short tasks miss systemic flaws, the value of real conversation samples, tiered leaderboards and blind testing, granular metrics such as command-line reliability and self-correction, and the net improvement rate for tracking version iteration. It also lays out how enterprises can build their own internal evaluation system with a business-aligned task suite, a reproducible execution environment, multi-layered metrics, a mix of automated and human review, and release gates, plus the cloud engineering infrastructure needed to run evaluation at scale.

    AI Agent Evaluation Systems for Real Long-Horizon Tasks: A Deep Dive

    Introduction: Agent Evaluation Is Shifting from “Answer Quality” to “Task Completion”

    As large language models move from single-turn Q&A toward multi-step execution, the way we evaluate them is changing fundamentally. In the past, judging whether a model was good usually meant looking at whether it could produce a correct, coherent, and well-structured answer. In agent scenarios, however, the model is no longer just “generating content.” It has to complete a series of sustained actions in a real or simulated environment: understanding the goal, decomposing the task, calling tools, reading feedback, handling exceptions, adjusting its strategy, and finally delivering a usable result.

    These tasks are rarely finished in one or two sentences. They may span multiple turns, multiple tool calls, and multiple changes in environment state. As a result, agent evaluation cannot rely solely on static question banks or single-shot accuracy. It needs real long-horizon task sessions, blind testing, fine-grained process metrics, and a version-comparison system. Recent public agent evaluation cases show that some open-weight models attract attention not just because of strong single-point capabilities, but because they maintain stable performance in real task environments and deliver high task-completion quality across diverse scenarios such as work, coding, and chat.

    This trend signals that the core of agent competition has shifted from “can it answer” to “can it reliably get things done.” For developers, enterprise technical leaders, and platform architects, building a scientific, reproducible, and continuously operated agent evaluation system is becoming a key foundation for model selection, product iteration, and engineering optimization.


    1. Why Agent Evaluation Must Focus on Real Long-Horizon Tasks

    Short tasks fail to expose systemic flaws

    In traditional language model evaluation, common tasks are usually single-turn Q&A, text summarization, simple classification, or local code completion. These tasks are easy to automate but fail to reflect the complex behavior of an agent in a real environment.

    For example, a model may perform well on static Q&A yet expose the following problems in multi-step tasks:

    • It fails to maintain long-term goal consistency;
    • It lacks awareness of errors in intermediate steps;
    • It cannot recover effectively after a tool call fails;
    • It lacks a sense of security boundaries when facing permission restrictions;
    • It cannot re-plan when the user adds conditions mid-task;
    • It suffers information loss or goal drift as long context accumulates.

    These flaws are often not fully revealed in short tasks, but they are amplified in long-horizon, multi-tool, multi-feedback agent tasks.

    Real conversation samples improve evaluation credibility

    In some public agent evaluation systems, rankings are based not only on lab-constructed questions but also on a large volume of real user task sessions. For instance, one type of evaluation case notes that its ranking is grounded in more than 17,500 real long-horizon agent task sessions from users worldwide. This kind of data has several clear benefits:

    First, the task distribution is closer to real usage. Developers, office workers, programmers, and content creators have different needs for agents, and real sessions cover a more diverse range of goal types.

    Second, the failure modes are richer. Real tasks often contain ambiguous requirements, incomplete input, permission restrictions, environment noise, and unexpected interruptions—all of which help test an agent’s robustness.

    Third, the results carry more ecosystem-level reference value. If evaluation draws only from a small annotated set, it easily falls into the trap of “optimizing for the benchmark”; real session samples help reduce this bias.

    Long-horizon tasks are closer to enterprise deployment

    In enterprise scenarios, an agent usually does more than answer a single question. It often takes on fuller business workflows, such as:

    • Data organization and report generation;
    • Code repository understanding and defect fixing;
    • Troubleshooting operational issues and suggesting actions;
    • Document retrieval and knowledge Q&A;
    • Multi-step process automation;
    • User intent clarification and task routing.

    These tasks often require the agent to switch back and forth across multiple tools, systems, and states. So if an enterprise wants to assess whether an agent is genuinely usable, it must include long-horizon task completion as a core part of evaluation.


    2. Tiered Leaderboards and Blind Testing: Making Evaluation Fairer and More Explainable

    Why tiered evaluation matters

    Agent capability is not a single dimension. A model may converse naturally in open-ended chat but be unstable in code fixing or terminal operations; an open-weight model may lead on certain tasks yet still lag behind across the full set of participating models. A single overall leaderboard tends to mask real differences.

    A more sensible evaluation system usually adopts a tiered approach:

    • By model openness: for example, an open-weight model leaderboard versus an all-models leaderboard;
    • By task type: for example, work, coding, and chat categories;
    • By capability dimension: for example, task completion rate, execution reliability, correction ability, and interaction satisfaction;
    • By risk level: for example, high-risk operations, low-privilege operations, and read-only analysis tasks.

    This tiered structure helps teams understand where a model’s advantages actually come from and makes it easier to select models for different business scenarios.

    Why blind testing matters

    If agent evaluation relies only on automated scoring, it can be misled by surface fluency. An answer may look complete, but during execution it may contain wrong assumptions, overreach, or ineffective steps. That is why real-time blind testing is valuable.

    The core principle of blind testing is to hide the model’s identity and let reviewers judge based on the task process, the output, and the interaction experience. This reduces interference from brand recognition, subjective preference, and preconceived impressions. For enterprise users, blind test results are often closer to the real usage experience than a bare leaderboard ranking.

    Rankings are a diagnostic entry point, not the endpoint

    It is worth emphasizing that ranking itself is not the goal. Whether it is an open-weight ranking, an all-model ranking, or a task-category ranking, what really matters is the capability structure behind the ranking.

    For example, an open-weight model may lead within the open-weight camp and hold a high position across work, coding, and chat tasks, but that does not mean it is naturally suited to every enterprise scenario. Teams still need to analyze further:

    • Is it stable on long tasks?
    • Can it recover when tool calls fail?
    • Is it prone to misunderstanding the user’s true intent?
    • Can it accept mid-task correction from the user?
    • Does it have adequate safety controls for high-risk operations?

    So an evaluation leaderboard should be treated as a capability diagnosis tool, not a simple procurement conclusion.


    3. Key Granular Metrics for Agent Evaluation

    Agent evaluation cannot look only at “whether the task was completed.” It also needs to observe “how the task was completed.” A task with a correct result is not desirable in real business if the process is full of dangerous operations, ineffective attempts, or inexplicable steps.

    Command-line execution reliability

    In scenarios like programming, operations, and automation, an agent frequently needs to generate or suggest terminal commands. When assessing this capability, it is not enough to check whether the command runs. A comprehensive assessment should also cover:

    • Whether the command syntax is correct;
    • Whether it can recognize constraints in the current environment;
    • Whether it proactively stops when permissions are restricted;
    • Whether it can explain the purpose of the command;
    • Whether it can read error information after a failure;
    • Whether it can retry or roll back reasonably;
    • Whether it will execute irreversible, high-risk operations.

    The following illustrative logic expresses the concerns of such an evaluation:

    1. def evaluate_command_step(step, environment):
    2. if not is_safe(step, environment):
    3. return block("unsafe command")
    4. result = execute_in_sandbox(step, environment)
    5. if result.success:
    6. return pass_with_trace(result)
    7. diagnosis = explain_error(result.stderr)
    8. if can_recover(diagnosis):
    9. return retry_with_correction(diagnosis)
    10. return escalate_to_human(diagnosis)

    This sample code is not a concrete interface. It conveys an evaluation idea: command execution capability should be judged not only by “success or failure,” but also by “security boundaries, error explanation, recovery strategy, and escalation mechanisms.”

    Course correction and self-correction capability

    In real tasks, user requirements often change. For example, a user may first ask for a report and then add data sources, formatting requirements, and compliance constraints partway through. At this point, the agent should not mechanically continue the original plan. It needs to recognize the deviation promptly and re-plan.

    Course correction capability can be assessed across the following dimensions:

    • Can it recognize newly added user constraints?
    • Can it judge whether the current path has drifted from the goal?
    • Can it proactively explain the reason for the deviation?
    • Can it propose alternatives?
    • Can it correct course without destroying existing work?
    • Can it avoid repeating the same type of mistake?

    In practice, test cases that “change the task midway” can be designed. For example:

    1. Initial task: Compile a product description.
    2. Mid-task addition: Remove all unconfirmed performance claims.
    3. Observation point: Does the agent stop generating unverified content and re-check existing materials?

    This kind of test reflects an agent’s controllability better than plain Q&A.

    Differentiated evaluation of work, coding, and chat tasks

    Although work, coding, and chat all depend on model capability, their evaluation priorities differ.

    Work tasks

    Work tasks typically emphasize process completeness, usability of deliverables, and compliance. Evaluation focuses on:

    • Whether it understands the business process;
    • Whether it can handle multi-source information;
    • Whether it produces structured results;
    • Whether it respects permission and privacy boundaries;
    • Whether it can offer alternatives under exceptional conditions.

    Coding tasks

    Coding tasks place more emphasis on logical correctness and verifiability. Evaluation focuses on:

    • Whether the code meets the task requirements;
    • Whether it can locate the root cause of an error;
    • Whether it can verify a fix through tests;
    • Whether it introduces unrelated dependencies or high-risk changes;
    • Whether it can explain the reason for the modification.

    Chat tasks

    Chat tasks place more emphasis on context understanding, intent clarification, and naturalness of interaction. Evaluation focuses on:

    • Whether it understands the user’s underlying needs;
    • Whether it can ask reasonable follow-up questions when information is insufficient;
    • Whether it maintains context consistency;
    • Whether it avoids answering off-topic;
    • Whether it stays restrained when risk-related content is involved.

    4. Net Improvement Rate: A Key Metric for Measuring Version Iteration Efficiency

    Amid rapid agent model iteration, teams often need to judge: is the new version really better than the old one? Looking only at the overall score easily overlooks changes in stability, usability, and process quality.

    The net improvement rate offers a more comprehensive way to observe this. Rather than simply comparing a single score, it combines multiple dimensions such as task completion, stability, correction ability, and user satisfaction to form a relative change between versions.

    For example, in one public evaluation case, a new-generation open-weight model improved its overall net improvement rate from about +0.9% to about +5.1% compared with the previous generation—an increase of 4.2 percentage points. This kind of data suggests that the new-generation model may not have achieved a single-point breakthrough, but rather improved across multiple task dimensions at the same time.

    However, the net improvement rate also needs careful interpretation:

    • If the overall score rises but high-risk errors increase, it is still unacceptable;
    • If coding ability improves but chat experience declines, it may hurt the user experience;
    • If an open-weight model improves markedly while closed-source general models also iterate quickly, one cannot simply conclude an absolute lead;
    • If the evaluation set is inconsistent with the business scenario, even a high metric may not translate directly into practice.

    Therefore, the net improvement rate is better suited for judging version trends than for being the sole procurement basis.


    5. How Enterprises Can Build an Internal Agent Evaluation System

    For enterprises, relying on external leaderboards only reveals the industry landscape. To truly safeguard business deployment, they also need to build their own evaluation system. A fairly complete internal evaluation system usually includes the following parts.

    Build a task set close to the business

    The task set should not pursue quantity alone. It should cover high-frequency scenarios, high-risk scenarios, and long-tail scenarios in real business. It can be tiered as follows:

    • High-frequency standard tasks: covering the most common user intents;
    • Long-horizon tasks: requiring multiple tool calls and state retention;
    • Ambiguous tasks: where user requirements are incomplete and need clarification;
    • Exceptional tasks: tool failures, insufficient permissions, missing data;
    • High-risk tasks: involving sensitive operations such as deletion, publishing, payment, or permission changes;
    • Cross-scenario tasks: requiring simultaneous handling of documents, data, code, or workflows.

    Establish a reproducible execution environment

    Agent evaluation must take place in a controlled environment. Common practices include:

    • Using a sandbox to isolate execution;
    • Desensitizing real data;
    • Restricting permissions for high-risk tools;
    • Recording every tool call and its returned result;
    • Supporting task replay and failure reproduction.

    If the evaluation environment is not reproducible, it is hard to later determine whether fluctuations in results stem from a change in the model, a change in the prompt, or a change in the environment.

    Define a multi-dimensional metrics system

    It is recommended to divide metrics into three layers.

    Result layer

    Focus on whether the final deliverable is usable, such as:

    • Task completion rate;
    • First-attempt success rate;
    • Deliverable pass rate;
    • User acceptance rate.

    Process layer

    Focus on whether the execution path is healthy, such as:

    • Average number of tool calls;
    • Tool failure rate;
    • Command execution success rate;
    • Correction success rate;
    • Exception recovery rate.

    Experience layer

    Focus on user perception, such as:

    • Whether the answer is clear;
    • Whether the user has to repeatedly add information;
    • Whether there are obvious misunderstandings;
    • Whether the interaction is natural;
    • Whether necessary safety prompts are provided.

    Combine automated evaluation with human review

    Fully automated evaluation is well suited to high-frequency regression, but it cannot replace human judgment. A more reasonable approach is:

    • Automated metrics handle batch screening and trend monitoring;
    • Human review judges the real usability of complex tasks;
    • Blind testing review reduces subjective bias;
    • Business experts confirm compliance for high-risk scenarios.

    An evaluation flow like the following can be designed:

    1. def run_agent_evaluation(agent, task_suite):
    2. report = []
    3. for task in task_suite:
    4. trajectory = agent.execute(task)
    5. metrics = evaluate_trajectory(trajectory, task)
    6. if task.requires_human_review:
    7. metrics["human_score"] = human_review(trajectory)
    8. report.append(metrics)
    9. summary = summarize(report)
    10. regression = compare_with_baseline(summary)
    11. return summary, regression

    Establish version regression and release gates

    An agent system is not done after a single delivery; it keeps iterating. Every change to the model version, prompt, toolset, or workflow should trigger a regression evaluation. Common gate conditions include:

    • The overall task completion rate must not fall below the baseline;
    • The high-risk task failure rate must not rise;
    • The tool-call anomaly rate must not worsen noticeably;
    • Key business scenarios must reach a minimum satisfaction level;
    • The new version’s advantage must pass a significance check.

    Only then can you avoid the situation of “it looks like an upgrade, but the experience actually got worse.”


    6. Cloud Engineering: Infrastructure to Support Large-Scale Evaluation

    Agent evaluation typically involves large volumes of session data, trajectory logs, task results, user feedback, and model call records. Without suitable engineering infrastructure, evaluation is hard to sustain.

    In a general cloud architecture, the following combination of capabilities can be considered.

    Object storage: store sessions and evaluation artifacts

    The evaluation process produces large amounts of structured and unstructured data, such as task input, execution trajectories, tool returns, final deliverables, and review records. Storing them uniformly in object storage makes them easy to trace, replay, and analyze over the long term.

    Logging service: collect runtime processes and exception information

    An agent’s execution chain is long, so every key action must be recorded. Logs can be used to analyze:

    • Which step most often fails;
    • Which type of tool call throws the most exceptions;
    • Which type of user request most easily times out;
    • Which model version performs worse in a specific scenario.

    Monitoring and alerting: catch evaluation anomalies promptly

    The evaluation system itself also needs monitoring. Issues such as task queue backlogs, insufficient environment resources, abnormal model service responses, and lagging review progress should all be detected in time through monitoring and alerts.

    Container platform: host evaluation task runs

    Evaluation tasks usually need isolated execution, especially in scenarios involving code execution, file processing, and command simulation, where a containerized environment ensures safety and reproducibility. A container platform can quickly spin up evaluation instances, limit resource usage, and run regression tasks in batches.

    Message queue: decouple the task flow from the result flow

    In large-scale evaluation, there may be speed differences among task generation, agent execution, result scoring, and human review. A message queue can be used for task distribution, asynchronous processing, and result aggregation, improving overall throughput.

    In practices related to Baidu AI Cloud, evaluation capabilities can likewise be organized along these lines: by combining general-purpose cloud storage, logging, monitoring, containers, and messaging, one can build a sustainable agent evaluation platform. The point is not to depend on any single feature, but to form a complete loop from data collection and task execution to metric analysis and feedback-driven optimization.


    7. Common Pitfalls and Directions for Improvement

    Pitfall 1: Looking only at the overall leaderboard ranking

    An overall ranking only provides an overview; it cannot explain how well a model fits a specific business. Enterprise selection should combine task type, risk level, and evaluation process metrics.

    Pitfall 2: Testing only short tasks

    Short tasks are easy to score well on but do not represent long-horizon reliability. An agent’s true value often shows up in complex tasks with multiple steps, multiple tools, and multiple feedback signals.

    Pitfall 3: Pursuing only automated metrics

    Automated metrics are efficient but tend to overlook experience details. For high-value business scenarios, human review and expert validation should be retained.

    Pitfall 4: Ignoring evaluation data contamination

    If evaluation tasks are over-distributed, models may optimize specifically for the evaluation set, distorting the results. The task set should be refreshed regularly, and a private business evaluation set should be kept.

    Pitfall 5: Treating evaluation as a one-off project

    Agent capability keeps changing along with the model, prompts, toolchains, and business scenarios. Evaluation must become a continuously operated mechanism, not a one-time report.


    8. Conclusion: Building an Agent Evaluation Loop Centered on Real Tasks

    The focus of agent evaluation is shifting from “model expression capability” to “task completion capability.” In real long-horizon tasks, what users truly care about is not whether the model can produce a polished sentence, but whether it can understand the goal, call tools, handle exceptions, accept corrections, and reliably deliver results in a complex environment.

    Public evaluation cases show that real session scale, task tiering, blind testing, and granular metrics are becoming important methods for measuring agent capability. Whether it is an open-weight ranking, an all-model ranking, or performance across categories such as work, coding, and chat, everything ultimately needs to be validated in specific scenarios.

    For enterprise teams building an internal evaluation system, the key points to focus on are:

    1. Build the evaluation set on the basis of real business tasks;
    2. Include long-horizon tasks and high-risk tasks in the core scope;
    3. Assess result quality, process stability, and user experience together;
    4. Track version evolution with metrics such as the net improvement rate;
    5. Use cloud engineering capabilities to achieve scalable, automated, and sustainable evaluation.

    Only by upgrading evaluation from a “leaderboard reference” to a “continuously operated loop” can agents truly move from demos to production, and from usable to trustworthy.