TL;DR
Static benchmarks are too rigid for the fast-moving world of enterprise software. This paper introduces a "continuous benchmark generation" pipeline that uses developer-authored knowledge bases and LLMs to automatically turn real-world code changes into evolving evaluation datasets, ensuring AI agents stay reliable even as infrastructure and requirements shift.
What Problem Does This Paper Address?
Large Language Model (LLM) agents are increasingly tasked with "enterprise-scale" work: managing CI/CD pipelines, triaging incidents, and migrating massive services between platforms. However, evaluating these agents is a nightmare.
Standard benchmarks like SWE-bench are static—they target a fixed set of problems. In a large enterprise, requirements evolve daily. A migration script that worked yesterday might fail today because a library was deprecated or a security policy changed. Furthermore, defining "ground truth" for these tasks is labor-intensive; enterprise codebases are a heterogeneous mess of source code, deployment manifests, and configuration files. Manually creating benchmarks for every new requirement is a recurring maintenance burden that most teams can't afford.
Methods
The authors propose a pipeline that decouples what to test from how to test it. The system relies on two main inputs:
- Developer-authored Knowledge Bases (KBs): Instead of writing test cases, developers write semi-structured documents describing high-level intents (e.g., "Update logging libraries for Linux compatibility"). These KBs act as the "source of truth" for requirements.
- Migrated Repositories: The pipeline looks at real-world Pull Request (PR) diffs from services that have already been migrated or updated by humans.
The "Magic" Step: The pipeline uses LLMs and regex/keyword analysis to map specific "hunks" (segments) of code from these PRs to the corresponding tasks in the KB. If a code change matches the patterns or keywords described in a KB task, it is extracted as a "gold standard" example. This results in a benchmark consisting of the pre-migration state of the service, the specific task description, and the expected "oracle" patch.
Datasets
The researchers grounded their work in a massive real-world use case: Service Migration at Microsoft. * The Task: Transitioning services from Windows-based infrastructure to Linux-based platforms. * The Data: They initially looked at 11 manually migrated services (taking 20-25 weeks of human effort and 350+ PRs). * The Benchmark: For the final evaluation, they used 137 KB documents across 4 major service repositories. They compared their automatically generated benchmarks against a set of benchmarks manually curated by developers.
Key Insights and Ideas
- Intent-Based Design: By anchoring the benchmark in natural language "Knowledge Bases," the evaluation framework becomes "durable." When a platform requirement changes, a developer just updates the KB document, and the pipeline can potentially re-generate or update the benchmark automatically.
- Automated Benchmarks can be "Cleaner" than Manual Ones: In a surprising finding, the authors noted that manually written benchmarks often included "idiosyncratic" or "obsolete" files that weren't actually relevant to the task. Because the automated pipeline strictly maps code changes to documented KB requirements, it produced more focused and accurate ground-truth sets.
- Fine-Grained Evaluation: Instead of a pass/fail for an entire migration, this approach allows for "Per-KB" metrics. You can see exactly which types of tasks an agent is failing (e.g., "it's great at Dockerfiles but fails at updating C# library dependencies").
Key Results
The authors evaluated the alignment between their generated benchmarks and human-designed ones:
- Precision: The pipeline achieved a Precision of 1.0 across all four test repositories, meaning every "ground truth" example it generated was indeed relevant to the migration tasks.
- Recall: Recall scores ranged from 0.25 to 0.667 (with F1 scores between 0.4 and 0.8). While the pipeline didn't catch every single migration-related change, the changes it did catch were high-quality and reliable.
- Reliability: The automated benchmarks proved more reliable for longitudinal evaluation because they automatically excluded service-specific "noise" (like unrelated bug fixes) that often creeps into manual PRs.
Limitations and Future Work
- The "Evaluator" Problem: A key challenge remains: how do we verify the accuracy of the generated benchmarks themselves without falling back into a loop of manual verification?
- Recall Gaps: The current mapping logic (regex and keywords) missed some relevant changes. Improving the LLM’s ability to reason about complex code dependencies could boost recall.
- Closing the Loop: The authors suggest using the benchmark results as a feedback loop—automatically updating the agent's prompts or "Knowledge Base" when it performs poorly on specific task types.
- Scope: While highly effective for service migration, the approach needs to be tested on other enterprise workflows like automated troubleshooting or security patching.
Summary updated