AI Agent Benchmarks: Methods and Engineering Practices for Evaluating Real-World Tasks
This article breaks down how task-completion benchmarks for AI agents are built and run, covering corpus sourcing and privacy handling, realistic workspace construction with conflicting information, rubric-based scoring, and multi-framework cross-execution. It then explains how to read the results: a completion-rate ceiling around 60%, stability that lags well behind single-run success, cost differences across model tiers, and safety violations that can hide behind correct answers. A reusable five-step evaluation pipeline and a risk-based routing example are included.
1. Why Traditional Benchmarks Fail to Reflect Real Agent Capability
Model capability has traditionally been measured with standardized Q&A sets and coding problems. Those benchmarks use clean inputs, explicit goals, and very short context. The work an agent actually faces is the opposite: the input is a messy workspace, the goal is a single colloquial request, and the pass criteria are a composite of multiple constraints.
This is why the industry has shifted toward agent benchmarks centered on task completion rate, with evaluation design driven by real interaction data.
Such benchmarks share four characteristics:
- Tasks come from real logs rather than being hand-written.
- The workspace is a real directory at the file-system level.
- Scoring combines many fine-grained criteria.
- Runs are repeated across multiple agent frameworks to remove framework-induced bias.
2. Four Key Stages of Benchmark Construction
2.1 Corpus Sourcing and Privacy Handling
Task seeds are drawn from anonymous interaction records on the order of tens of millions. They go through redaction, de-identification, sampling, and manual rewriting before being fixed into repeatable task descriptions. The key engineering point is to preserve the ambiguity and contextual noise of real tasks while completely severing any link to specific users or organizations.
2.2 Workspace Construction
Each task is paired with a workspace that resembles a real one. The median file count exceeds 180, and file types span email exports, calendar data, spreadsheets, chat logs, receipts, offline web pages, and documents. Complexity does not come from file count alone; it is constructed through information conflict:
- Outdated records: the same fact exists in an old and a new version.
- Similar entities: multiple accounts or contacts with near-identical names.
- Contradictory information: different sources reach inconsistent conclusions.
- Malicious instructions: files carry text that tries to induce the agent into overstepping its authority or leaking data.
These four types of interference map directly to the most frequent failure causes in real office environments, and they are the dividing line between “can call tools” and “can finish the task.”
2.3 Scoring System Design
Out of a hundred tasks, about 90% use itemized rubric scoring, where each criterion is judged independently and a substantial share of criteria are safety-related. The remaining tasks are judged by executable tests. Cumulative scoring runs exceed 50,000, which means the focus has moved from “does the output look right” to “is every single constraint satisfied.”
Itemized criteria have a direct consequence: the completion rate is no longer a single number but a decomposable capability profile. It can be broken down into four dimensions, for example retrieval accuracy, cross-file consistency checking, write-operation correctness, and safety compliance.
2.4 Cross-Framework Execution
The same task is repeatedly executed under multiple agent runtime frameworks, and the results are averaged. This effectively strips out the influence of the framework layer (prompt organization, tool scheduling, context management strategy) and keeps the results focused on how well the model matches the task.
3. Reading the Results: Lead Margin, Stability, and Cost
The evaluation covers a dozen-plus models and five runtime frameworks. After averaging across frameworks, the top model’s completion rate is just above 60%, and the gap between second and third place is within a few tenths of a point to about one point, which falls within what statistical noise can explain. Rankings should not be over-interpreted.
The stability metrics are more worth attention:
- Single-run completion rate: about 62%.
- At least one success in three attempts: about 75%.
- Success on all three attempts: below 50%.
These numbers show that the main bottleneck for agents on real tasks is not whether they can get it right, but whether they can get it right consistently. In engineering terms, retries, result verification, and idempotent design are mandatory; you cannot assume a single call converges.
Cost matters just as much. A single run with a top model costs on the order of one US dollar, mid-tier models cost a few tenths of a dollar, and lightweight models can go as low as a few hundredths of a dollar, with completion rates dropping to around 40%. Open-source and lightweight frameworks have similar average pass rates, clustered between 42% and 45%, a stable but manageable gap behind closed-source options. This points to a pragmatic route: use lightweight models for high-frequency, low-risk tasks and high-capability models for low-frequency, high-risk tasks.
A sketch of such a routing policy:
def route(task):risk = estimate_risk(task) # involves writes, external sending, or permission changes?if risk == "high":return strong_model, max_retry=3, require_verify=Trueif task.files > 200:return mid_model, max_retry=2, require_verify=Truereturn light_model, max_retry=1, require_verify=False
4. The Safety Dimension: The Most Overlooked Weakness
Across all runs, about 15.7% failed at least one safety check. More notably, among the more than 20,000 runs that satisfied every correctness criterion, roughly 2,500 still violated a safety requirement. In other words, nearly 10% of “correct answers” were obtained in a non-compliant way.
This is the most dangerous class of defect in engineering: the result looks perfect, but the process cannot be audited. Practical ways to converge on a fix include:
- Make safety criteria hard constraints evaluated first, so any single failure fails the whole task.
- Isolate instruction-like text inside file contents and forbid it from entering the system-level prompt channel.
- Require secondary confirmation and least privilege for write operations, outbound actions, and permission changes.
- Keep end-to-end auditable logs covering tool call arguments and data flow.
5. A Reusable Evaluation Framework
To reproduce a similar evaluation in your own environment, proceed in five steps:
- Task set: sample from real logs, redact, and fix into a versioned task library.
- Environment: containerized workspaces with resettable file-system state.
- Scoring: dual track of itemized criteria plus executable tests, with safety criteria listed separately.
- Execution: multiple frameworks and repeated runs, recording variance rather than only the mean.
- Reporting: output four metrics together: completion rate, stability, cost per task, and safety violation rate.
On the infrastructure side, object storage can hold workspace snapshots, a container platform can host isolated execution, logging services and monitoring with alerting handle run traceability and anomaly detection, and a message queue can distribute and smooth out large-scale scoring workloads. Baidu AI Cloud provides general-purpose capabilities in these categories for evaluation and execution platforms, which makes it easier for teams to engineer the evaluation pipeline.
6. Conclusion
The value of a real-task benchmark is not a leaderboard. It is exposing three engineering facts: the completion-rate ceiling is still around 60%, stability is significantly lower than single-run success, and safety violations are not equivalent to correctness. The practical advice for developers is to drive development with fine-grained criteria, measure stability with repeated runs, and route models using cost and safety as dual metrics. Only then can agents move from demo to deliverable.
