Designing Agent Evaluation Benchmarks for Real-World Work Scenarios

    Evaluating the real-world capabilities of LLM-driven agents presents a significant challenge as they integrate into development and office workflows. This article explores the design and engineering practices of a recently released agent evaluation benchmark. It details the methodologies for building anti-contamination datasets, implementing unified sandbox-based protocols, and applying domain-specific scoring systems across code, web, office, and security tasks. These practices offer valuable, reusable insights for teams aiming to build reliable evaluation frameworks for their own agent solutions.

    Designing Agent Evaluation Benchmarks for Real-World Work Scenarios: Methodologies and Engineering Practices

    1. Why We Need Real-World Scenario Evaluation

    As Large Language Model (LLM)-driven agents gradually integrate into software development and office workflows, objectively measuring their real-world capabilities has become a common industry challenge. Traditional evaluation datasets mostly focus on single tasks—such as fixing a specific bug or completing a segment of code—creating a noticeable disconnect from the complexity of real-world work. Authentic engineering tasks often involve collaborative modifications across files and modules, requiring models to understand repository-level context, grasp business intent, and complete a closed loop from localization and modification to validation.

    Simultaneously, another increasingly prominent issue is data contamination. Many public evaluation tasks originate from historical issues in open-source repositories. Models may have already “seen” these questions and their answers during the pre-training phase, leading to artificially inflated scores and a loss of evaluation discriminability.

    Addressing these pain points, a recently released agent evaluation benchmark provides a highly valuable design approach. Anchored in real-world work scenarios, it covers four major task domains—Code, Web, Office, and Security—with approximately 260 tasks. Through anti-contamination construction, a unified evaluation protocol, and domain-specific scoring methods, it strives to accurately reflect an agent’s true working proficiency. This article breaks down its design methodologies and summarizes reusable engineering experiences.

    2. Dataset Construction: Balancing Anti-Contamination and Coverage

    2.1 Anti-Contamination Design

    One of the most inspiring practices of this benchmark is the colloquial rewriting of task descriptions. Even if original tasks are sourced from public repositories, rewriting ensures their surface-level expression significantly differs from versions circulating online, thereby drastically reducing the likelihood of models “memorizing answers.” This approach can be generalized as a standard principle for dataset construction:

    • Semantic preservation with surface transformation: The substantive requirements of the task remain unchanged, but descriptive styles, contextual presentation, and file naming are decoupled from the original source.
    • Hidden validation logic: The test cases and validation rules used for scoring are invisible to the model, preventing targeted overfitting.
    • Incremental construction: Some tasks are originally designed by the evaluators rather than relying entirely on public corpora.

    2.2 Coverage Design

    The benchmark does not limit itself to the narrow scope of “bug fixing.” Instead, it emphasizes complex engineering requirements across files and modules, expanding coverage from two dimensions: task types and initiating roles:

    • Task types: Covers over a dozen categories, including bug fixing, feature development, test writing, algorithm implementation, and data analysis.
    • Initiating roles: Simulates work requests from different professional roles such as development engineers, algorithm engineers, product managers, QA engineers, and operations engineers, making task descriptions closer to real collaboration contexts.

    This design philosophy is worth emulating: the discriminability of an evaluation depends not only on task difficulty but also on whether the task distribution closely mirrors real-world workloads.

    3. Unified Evaluation Protocol: Harbor-Style Task Directories and Sandboxes

    Although the four task domains differ vastly in content, the evaluation process is unified into a single format: each task is organized in a standardized task directory structure, containing elements like task instructions, initial environments, and validation scripts, and is executed in an isolated sandbox environment.

    The unified protocol brings significant benefits:

    1. Reproducibility: All models answer under completely identical environments and protocols, allowing for horizontal comparison of results.
    2. Scalability: Adding new task domains requires no framework modifications; teams only need to add task packages according to the directory specifications.
    3. Security: Code generated by agents may contain dangerous operations, making sandbox isolation an engineering necessity.

    For teams looking to build their own evaluation systems, the combination of “containerized sandbox + declarative task description + automated validation scripts” is a widely recognized implementation path. Leveraging general cloud infrastructure such as container platforms and object storage enables the rapid deployment of elastic, isolated evaluation environments.

    4. Domain-Specific Scoring Systems

    The criteria for “correctness” vary greatly across different task domains, and forcing a single scoring method would introduce significant noise. The benchmark’s approach is to unify the execution method while differentiating the scoring models.

    4.1 Code Domain: Primarily Hidden Unit Tests

    The Code subset comprises about 80 tasks, evaluating repository-level software engineering capabilities—cross-module localization, modification, and validation. Scoring is anchored on the pass rate of hidden unit tests as the core metric, which is objective, deterministic, and repeatable. An LLM Judge is also introduced as a diagnostic reference for analyzing failure causes and assessing code style, but it does not contribute to the final score. This division of labor—using deterministic metrics for scoring and model review for qualitative analysis—prevents the instability of LLM judges from contaminating the primary metrics.

    4.2 Web Domain: Three-Layer Scoring

    The Web subset comprises about 70 tasks, covering the full lifecycle of front-end and graphical interfaces: building from scratch, bug fixing, feature extension, code review, test generation, and document conversion. The difficulty lies in the fact that “whether a page is good” is hard to assert with a single test. Therefore, a three-layer scoring system is adopted:

    • Rule checks: Deterministic constraint checks, such as whether the page contains specified elements or whether the API returns the expected structure.
    • LLM/VLM Judge: Utilizing language and vision models to evaluate semantic correctness and visual effects.
    • Agent Judge: An evaluation agent actually operates the page to verify interaction flows, state changes, and complete workflows.

    The third layer is particularly critical—many interaction defects can only be exposed through “real usage,” which static checks cannot reach.

    4.3 Office Domain: Dual-Track Rules and Semantics

    The Office subset comprises about 50 tasks, simulating real office business flows: processing mixed formats like spreadsheets, documents, PDFs, and JSON; maintaining data consistency across multiple files; updating statuses; and delivering usable results. Scoring adopts a dual-track system:

    • Deterministic rule checks: Verifying objective facts such as numerical values, fields, and file structures.
    • Evidence-grounded LLM Judge: Reviewing semantic quality while requiring the judge to provide evidence, thereby reducing hallucinated scoring.

    The two sets of results are fused into a final score based on preset task weights, balancing objectivity and flexibility.

    4.4 Security Domain: Pure Deterministic Scoring and Anti-Cheating

    The Security subset comprises about 60 tasks, covering red and blue team scenarios: vulnerability discovery and exploitation validation, malware analysis, security operations research, and assessing the agent’s own safety. This domain entirely avoids using an LLM judge; all scoring is completed by deterministic scripts, such as verifying the success of PoC (Proof of Concept) code, matching extracted IoCs (Indicators of Compromise), and multi-classification metrics and ranking consistency metrics for rule detection results. Additionally, a five-layer anti-cheating mechanism is established to prevent models from taking “shortcuts” by guessing answers or tampering with validation scripts.

    This design serves as a reminder that in high-risk, highly adversarial evaluation scenarios, deterministic validation and anti-cheating mechanisms are the baseline for trustworthy results.

    5. Evaluation Results and Observations

    On this benchmark, several leading domestic and international LLMs were compared horizontally. Overall results indicate that a relatively clear tier has formed among top models: leading models have distinct advantages in the Code and Web domains. The performance of several models from Chinese developers is particularly noteworthy, with some surpassing widely used strong baseline models in total scores, showing a rapid catching-up trend.

    However, several points require a sober perspective:

    1. It is essentially a coding agent evaluation. Among the four subsets, Code and Web account for the majority, and Office and Security tasks also heavily rely on code understanding and generation capabilities. Therefore, a more accurate positioning for this benchmark is an “evaluation of coding agent capabilities in real-world work scenarios,” rather than a comprehensive evaluation of general agents.
    2. Variance introduced by LLM judges cannot be ignored. The subjective scoring items in the Web and Office domains are influenced by the judge model, which may cause fluctuations during reproduction.
    3. Scores do not equal engineering deployment capabilities. There is still a gap between task completion rates in a sandbox and the stability, security, and maintainability in actual production environments.

    6. Practical Insights for Teams

    Incorporating the design experiences of this benchmark, enterprises or teams can follow these paths when evaluating and selecting agent solutions:

    • Build private evaluation datasets: Extract tasks from internal real-world tickets and historical commits, perform desensitization and rewriting to avoid public dataset contamination.
    • Prioritize deterministic validation: If a problem can be solved with test assertions, do not delegate it to a model judge; model judges should only be used for semantic metrics and must provide evidence.
    • Standardize sandbox protocols: Standardize and containerize the evaluation runtime environment to ensure reproducible and comparable results.
    • Interpret results by layer: Focus on the sub-scores across different capability dimensions rather than just the total score, matching the scenarios your business values most.

    At the infrastructure level, general cloud capabilities like elastic container platforms, object storage, and logging and monitoring can provide a reliable foundation for large-scale automated evaluation. For instance, on Baidu AI Cloud, teams can leverage container and storage services to quickly build isolated evaluation environments, supporting continuous model capability tracking.

    7. Conclusion

    The value of this benchmark lies not just in providing a model capability leaderboard, but in demonstrating a reusable methodology: defining tasks through real-world work scenarios, ensuring fairness through anti-contamination measures, ensuring reproducibility through unified protocols, and ensuring scientific validity through differentiated scoring. For any team looking to seriously evaluate agent capabilities, this framework is more worthy of emulation than any single evaluation result. In the future, with the continuous expansion of task domains and the iteration of scoring methods, agent evaluation will gradually transition from an “exam” to a “work probation period,” truly becoming a reliable basis for engineering selection.