AI Agent Benchmarking: From Task Completion Rate to Security and Cost
This article explains why evaluating AI agents requires more than checking whether a single task succeeds. It covers how to define task completion, how repeated runs reveal reliability, how the runtime framework shapes execution, how to calculate cost per effective completion, why security checks must be separate from correctness checks, and how to build a reproducible evaluation pipeline that leads to production readiness. Readers will learn to interpret benchmark numbers as signals of capability, stability, safety boundaries, and cost efficiency rather than as a simple ranking.
1. Evaluating Agents Takes More Than a Single Successful Task
The key difference between an agent and a traditional question-answering system is that an agent does not only generate text. It may read files, execute commands, modify configuration, call external services, and keep making decisions based on tool feedback. The outcome of a task is usually determined jointly by the model’s reasoning ability, the runtime framework, the tool interfaces, the environment state, and the permission boundaries.
For this reason, agent benchmarking cannot answer only “does the model know how to do this.” It also needs to answer three questions that are closer to engineering reality: can the agent carry the task through to completion, is it reliable when the same task is run repeatedly, and does it respect security requirements during execution.
In the given evaluation material, after averaging across different runtime frameworks, the highest task completion rate was 62.5%, with two other high results at 61.9% and 61.4%. This means that even the best-performing configuration in this evaluation still left a substantial share of tasks unfinished. More importantly, the top three results differ by only 1.1 percentage points. Without information on task composition, sampling method, and statistical uncertainty, this gap alone is not enough to claim that one approach has a clear advantage in real business use.
The value of these numbers should not be read as a simple ranking table. It should be the starting point for building an agent evaluation system.
2. Define “Completion” Before Discussing Completion Rate
Task completion rate looks intuitive, but it actually depends on a strict acceptance standard. For example, “fixing a fault” may involve modifying files, passing tests, preserving existing behavior, and submitting a reviewable result. If the evaluation only checks whether the final output contains a certain sentence, it may mark a run as successful even though the problem was not truly solved.
In engineering evaluation, it is recommended to break acceptance conditions into three layers.
The first layer is result correctness. Check whether the target state is reached: whether the output file exists, whether the computed result meets requirements, and whether the modified program passes the specified tests. Wherever deterministic checks are possible, subjective judgment should be minimized.
The second layer is constraint satisfaction. A task may require modifying only a specified directory, keeping the original interface unchanged, not accessing the network, or not deleting existing data. These constraints should be formal acceptance conditions, not auxiliary notes written in the prompt.
The third layer is process compliance. Even when the result is correct, the execution process may involve unauthorized access, exposure of sensitive information, or dangerous operations. Process compliance must be judged using execution logs, tool-call records, and permission audits; it cannot be assessed by checking only the final artifact.
In addition, “failure” should be distinguished from “undetermined.” Environment startup failure, missing dependencies, and test-runner exceptions are different problems from agent reasoning errors. If they are all lumped into a single failure category, teams may mistake infrastructure problems for insufficient model capability, or the reverse.
3. Repeated Runs Reveal Reliability, Not Just the Average
In the given material, one high-completion configuration succeeded at least once across three attempts on 75.1% of tasks, but succeeded on all three attempts for only 48.8%. The gap between these two metrics shows that some tasks can be solved but not solved consistently.
“At least one success in three attempts” reflects the coverage gained from multiple attempts and is suitable for analyzing whether a retry strategy is worthwhile. “Success on all three attempts” is closer to a consistency requirement and is suitable for assessing whether unattended execution is feasible. The two cannot substitute for each other.
Developers should pay particular attention to the common characteristics of unstable tasks:
- Whether they depend on a long tool-call chain, causing early errors to amplify step by step;
- Whether they require selecting key information from a large number of files or logs;
- Whether there are multiple seemingly reasonable execution paths, only a few of which satisfy the constraints;
- Whether they are easily affected by timeouts, service state, or leftover files from previous runs;
- Whether there is a clear recovery strategy after an execution failure.
Retries are not unconditionally effective either. For tasks involving payments, message sending, data deletion, or state changes, repeated execution may produce duplicate side effects. Production systems should first establish idempotency, pre-execution checks, and state confirmation, and only then decide whether to allow automatic retries.
It should also be noted that a single-run completion rate cannot be used to directly infer the probability of multiple successes, unless the independence assumptions across runs have been verified. Multiple failures of the same task often share a common cause, and a simple probability formula may overestimate the benefit of retries.
4. The Runtime Framework Determines How Capability Becomes Execution
In the given material, the average pass rate across different runtime frameworks ranged from about 42.87% to 45.23%, with many results clustered around 45%. This indicates that, under these evaluation conditions, the average gap between frameworks is relatively limited, but it does not mean they are fully interchangeable.
The runtime framework organizes the interaction between the model and the environment, and its influence is mainly seen in the following areas:
Whether tool descriptions are accurate. If a tool’s purpose, input requirements, output format, and error messages are unclear, the model is more likely to misuse the tool.
Whether the context retains key state. Long tasks generate large amounts of logs and intermediate results, so the framework must control context size while preserving the task goal, completed steps, and important constraints.
Whether errors can be recovered from. After a failure, the framework should return locatable information, so the agent does not repeatedly attempt the same operation without understanding why it failed.
Whether resources are constrained. Limits on maximum execution time, number of tool calls, and output size can prevent infinite loops and also affect the ability to complete complex tasks.
Whether permission boundaries are enforceable. Security requirements cannot rely on prompt constraints alone; they must be implemented as file-access restrictions, network-access controls, and approval for sensitive operations.
Therefore, when comparing frameworks, the task set, environment, model configuration, and resource budget should be held fixed. If these conditions differ, the final completion rate can hardly be attributed to the framework alone. Per-task performance should also be examined: approaches with similar averages may show different strengths and weaknesses in file handling, fault diagnosis, and multi-step execution.
5. Calculate Cost by “Effective Completion,” Not Just Single-Run Price
In the given material, the estimated single-run cost ranged from about $0.05 to $1.10, a clear difference. But a cheap single run does not necessarily mean a low business delivery cost.
A simplified metric can be used first:
Estimated cost per correct completion = average single-run cost ÷ task completion rate
For example, using the $1.10 single-run cost and 62.5% completion rate of one configuration in the material, this metric is about $1.76. Another configuration with a $0.19 single-run cost and 61.4% completion rate corresponds to about $0.31. A configuration with a 39.7% completion rate and a single-run cost of about $0.05 corresponds to about $0.13.
These calculations are only a rough way to compare input and output under the current data, and they do not represent real production pricing. They also exclude manual review, compute environment, failure recovery, and business loss. Nor can they prove that a lower-cost configuration is suitable for all tasks.
A more reasonable business metric is:
Effective delivery cost = total execution and review cost ÷ number of tasks that meet both correctness and security requirements
For low-risk tasks that are easy to verify automatically, a lower-cost configuration can be tried, with escalation on failure. For tasks involving production data or high-loss operations, the cost of manual approval and strict verification usually cannot be omitted. Cost optimization should follow risk boundaries, not come at the expense of fewer checks.
6. Security Checks and Correctness Checks Must Be Set Separately
The given material records 53,100 runs, of which 15.7% failed at least one security check. Among the 26,151 runs that met all correctness standards, 2,589 still failed a security requirement, about 9.9% of that subset.
This data shows that a correct result and a safe process are not the same thing. An agent may complete a task through a disallowed path, for example by reading an unrelated sensitive file, bypassing a required check, or making changes beyond the scope authorized for the task.
However, because the material does not provide the security-check items or their severity, not every failure should be understood as having caused an actual security incident. A rigorous evaluation should further distinguish risk type, scope of impact, and whether real side effects occurred.
Enterprises can break security controls into three stages:
Before execution, define the authorization scope, restrict accessible directories, callable services, and usable credentials, and set approval conditions for high-risk actions.
During execution, run in an isolated environment, enforce permission checks on tool calls, log key operations, and stop abnormal behavior promptly.
After execution, check the target result, file differences, external side effects, and handling of sensitive information together, ensuring the goal was not achieved through a non-compliant method.
Permission control should be enforced by the runtime environment and the tool layer. “Please do not perform dangerous operations” should not be the primary security measure.
7. Build a Reproducible, Diagnosable Evaluation Process
A practical process can be built from five stages: task definition, isolated execution, result verification, risk checking, and statistical analysis.
First, build a representative task set. Tasks should cover common operations, long-chain tasks, exception recovery, and scenarios with permission boundaries. The task description, initial environment, and acceptance conditions must be fixed, so evaluators do not change the success criteria after a run.
Second, restore the environment before each run. The working directory, test data, and external service state should be kept as consistent as possible, so that artifacts from a previous run do not affect later results. Tasks involving real sensitive data should be verified with anonymized or synthetic data.
Third, schedule multiple runs for the same task, and record the configuration version, resource consumption, tool-call trace, and termination reason. In addition to the average completion rate, report the stable completion ratio, latency distribution, security pass rate, and the share of each failure type.
Fourth, attribute failures. It is recommended to distinguish at least comprehension errors, planning errors, tool misuse, environment faults, budget overruns, and security blocks. The purpose of classification is not to make excuses for failures, but to find the engineering areas that can be improved.
Finally, incorporate evaluation into the iteration process. After changing prompts, tool descriptions, context strategies, or permission rules, the fixed task set should be rerun, and newly discovered failure cases added. Only continuous regression testing can confirm that an optimization has not introduced regressions in other tasks.
8. From Benchmark Scores to Production Admission
Benchmark evaluation is used to discover capability boundaries, while production admission requires thresholds set according to business risk. For low-risk tasks that are reversible and automatically verifiable, automatic execution can be gradually opened in an isolated environment. For tasks involving important configuration, sensitive data, or irreversible operations, manual approval and traceable records should be retained.
Evaluation should not stop after launch. The real task distribution, tool state, and input complexity will keep changing, so failure rate, retry count, manual takeover ratio, security blocks, and effective delivery cost per unit should be monitored. Once an anomaly appears, it should be possible to pause execution, reduce permissions, or fall back to manual handling.
The ultimate goal of agent evaluation is not to pick the configuration that looks strongest, but to build an engineering system that can explain results, control risk, and improve continuously. Completion rate provides a capability signal, repeated runs reveal stability, security checks constrain execution boundaries, and cost metrics measure input and output. Only by putting these dimensions together can one judge whether an agent is suitable for a specific business process.
