Harness Hub
All papers

Evaluating More with Less: Black-Box Test Selection for AI Agents

Ali Asgari, Mitchell Olsthoorn, Arie van Deursen, Annibale Panichella

Verdict: Incremental

The objective split is real and Random's strength is reported in the tables, but the abstract's cost and error example does not match Table 5, the failure result is paired with the wrong strategy's price, and the motivating harness-change retest is never run.

  • Novelty

    3 out of 5
  • Rigor

    2 out of 5
  • Reproducibility

    2 out of 5
  • Relevance to harnesses

    3 out of 5

TL;DR

Offline comparison of task-subsetting rules on published agent outcomes. Coverage-style selection estimates success rate; difficulty orderings find failures and bias the rate. The abstract's $225-to-$47, 0.8-point example is not in the tables.

Adversarial review by Harness Hub · Nov 28, 2026 · read full text (truncated) · Suggest a correction

Original abstract (authors’ text, select to expand)

Agentic software systems are increasingly used in development, where changes to the model, prompt, scaffold, tools, or execution environment require repeated testing. Test case selection (TCS) can reduce testing costs while providing estimates of agent performance or exposing failures early. Although TCS has been studied for deep neural networks and LLM code models, prior work does not directly address agentic systems and often requires model information unavailable for proprietary agents. We present the first empirical study of black-box TCS for agentic software systems. We treat each benchmark task as a test case and adapt black-box regression-testing techniques using selection criteria based on task descriptions, metadata, code fragments, and embeddings. We also propose strategies that estimate task difficulty using heuristic features or independent LLM-as-judge assessments. Our strategies select tasks without executing the target agent or using past results. We evaluate fourteen selection strategies, including random sampling, plus a historical-data baseline, across ten AI agent benchmarks with 12 to 101 agents per benchmark. We assess Success Rate estimation and early failure detection. No single strategy dominates both objectives. Adapted black-box regression-testing strategies are most effective for Success Rate estimation, with Category Partition obtaining the lowest median error on five benchmarks at the 20% task budget. LLM-as-judge selection is more effective for early failure detection. For GPT 5.2 Codex on SWE-bench Verified, Category Partition selects 100 instead of 500 tasks, reducing execution cost from \$225 to \$47, with a Success Rate estimation error of 0.8 percentage points. At the same budget, LLM-as-judge selection detects nearly twice as many failures as random sampling: 53.0% of selected tasks reveal failures, compared with 27.4% for random sampling.

Filed underscaffoldevaluationcoding-agentsagentsllm

Summary

The paper treats each benchmark task as a test and compares fourteen task-side selection strategies plus a historical mid-range baseline on published pass/fail outcomes from ten agent benchmarks (12 to 101 agents). Strategies use task text, metadata, embeddings, hand-built difficulty features, or an independent LLM judge, and are scored for success-rate estimation error and failures found at 10%, 20%, and 50% budgets, without rerunning agents. At 20%, adapted black-box methods, especially Category Partition, usually estimate success rate better than difficulty orderings, which instead surface more failures and bias the estimate. Random remains a strong estimator and nearly matches the advertised dollar cut. The claim that this cuts retest cost after a harness change is not tested.

Key findings

  • Category Partition has the lowest median success-rate error on five of ten benchmarks at the 20% budget (Section 5.1). On SWE-bench Verified that median is 0.018 versus 0.033 for Random (Table 3).
  • On USACO the same Category Partition median error is 0.138 versus 0.042 for Random; on TAU-bench Airline it is 0.130 versus 0.108 (Table 3).
  • Factor-Based LLM-as-Judge detects a median of 53.0 failures on SWE-bench Verified at 20%, versus 27.4 for Random and 29.0 for Category Partition (Table 4; max findable 100). Its median estimation error there is 0.258 (Table 3).
  • Table 5 prices the SWE-bench Verified suite at $225 and, at 20%, Random at $45 with SccErr 0.033, Category Partition at $47 with SccErr 0.018, and Factor-Based LLM-as-Judge at $80 with SccErr 0.258.
  • Section 5.1 reports that Random significantly outperforms all six difficulty-based methods and Historical Mid-Range on success-rate estimation (Nemenyi CD = 0.61).
  • Section 5.1's named SWE-bench Verified agent error is Claude Opus 4.6 at 1.4 percentage points, not 0.8. The introduction's 0.8 percentage-point case is DeepSeek V3.2 on SWE-bench Multilingual ($114 to $20), which is not Table 5's Multilingual median ($191 suite, Category Partition $31, SccErr 0.033).

The paper at a glance

01Take publishedbenchmark tasks andbinary agentoutcomes02Score tasks fromtext, metadata,code, embeddings,or an LLM judgewithout running the…03Keep a 10%, 20%, or50% prefix04Compare subsetsuccess rate andfailure count tothe full publishedbenchmark
  1. Take published benchmark tasks and binary agent outcomes
  2. Score tasks from text, metadata, code, embeddings, or an LLM judge without running the target agent
  3. Keep a 10%, 20%, or 50% prefix
  4. Compare subset success rate and failure count to the full published benchmark
Fig. 1 — How the paper works, step by step (arXiv:2611.34617).
Random27.4 countCategory Partition29 countRound Robin40.7 countFactor-Based LLM-as-Judge (this paper)53 count
Fig. 2 — Failures detected, higher is better. Source: Table 4, SWE-bench Verified, 20% budget, arXiv:2611.34617.
Data table
Failures detected
Methodcount
Random27.4 count
Category Partition29 count
Round Robin40.7 count
Factor-Based LLM-as-Judge (this paper)53 count

Why it matters

Harness builders who re-run SWE-bench, Terminal-Bench, or TAU-bench after a model, prompt, scaffold, or tool change might hope this paper names which tasks to keep. The tables do show an objective split: at 20% on SWE-bench Verified, Category Partition's median success-rate error is 0.018 versus 0.033 for random (Table 3), while Factor-Based LLM-as-Judge finds a median 53.0 failures versus 27.4 (Table 4) and has median error 0.258. That split is the part worth keeping. It is not a subsetter to drop into an eval loop. Agents are not re-executed, transfer after a harness change is untested, random already costs $45 versus $47 for Category Partition (Table 5), and the abstract's $225 to $47 with a 0.8 percentage-point error for GPT 5.2 Codex is not the figure in Table 5.

Issues (6)

  • High severity

    The abstract attributes to GPT 5.2 Codex on SWE-bench Verified a cut from $225 to $47 with a 0.8 percentage-point success-rate error. Table 5 labels those dollars as medians over 13 agents and gives Category Partition a median SccErr of 0.018 at that 20% budget, not 0.008. The body never reports a GPT 5.2 Codex success-rate error. The only 0.8 percentage-point figure is the introduction's DeepSeek V3.2 case on SWE-bench Multilingual ($114 to $20), and that case is also not Table 5's Multilingual median ($191 suite, Category Partition $31, SccErr 0.033). Section 5.1's named SWE-bench Verified error is Claude Opus 4.6 at 1.4 percentage points.

  • High severity

    The abstract's 'nearly twice as many failures' (53.0% vs 27.4%) sits in the next sentence after the $47 cost example. Section 5.2 and Table 4 assign 53.0 failures to Factor-Based LLM-as-Judge, not to Category Partition. At the same 20% task budget, Table 5 prices that judge strategy at $80 with SccErr 0.258, versus $47 and 0.018 for Category Partition. Category Partition finds only 29.0 median failures versus 27.4 for Random (Table 4). Table 6's $8.088 Sonnet judging cost for SWE-bench Verified is also outside the $47 figure. Same task count is not the same dollar cost, and the failure result is not the cheap estimator.

  • High severity

    Most of the advertised saving is the 20% budget, not the selection rule. On SWE-bench Verified, Table 5 prices Random at $45 and Category Partition at $47 against a $225 suite, with median errors 0.033 and 0.018. Difficulty selection raises cost: Factor-Based LLM-as-Judge is $80 at the same task fraction. A harness builder who samples 100 of 500 tasks at random gets almost the same bill and a still-small estimation error, which the abstract does not say.

  • High severity

    Section 1 motivates selection for repeated testing after model, prompt, scaffold, tool, or environment changes. Section 4.1 scores published leaderboard outcomes and does not rerun agents. The fourteen primary strategies do not fit subsets to past pass/fail labels, but nothing checks whether a task-feature subset still estimates success rate after the harness actually changes. The dollar figures are retrospective accounting of recorded runs.

  • High severity

    The failure-detection headline depends on claude sonnet-5 judgments dated Jun 2026 in Table 6, after every listed benchmark release (through Nov 2025). A post-release judge can rank tasks by memorized hardness even if the prompt withholds leaderboard labels. Section 4.3 says a gpt-4o-mini sensitivity check is discussed in Section 6, but that check is not in Tables 3-5, and the visible text cuts off before any sensitivity numbers.

  • Medium severity

    Friedman tests use 298 benchmark-agent blocks (Section 5.2). Table 2 shows TerminalBench alone contributes 101 agents, so one benchmark can dominate the rank tests. SWE-bench Mini reuses tasks from SWE-bench Verified (Section 4.1) but is still a separate block. Category Partition's five-benchmark win also coexists with large losses to Random, including USACO 0.138 versus 0.042 (Table 3).

Questions for the authors

  • Which agent-level row supports a 0.8 percentage-point Category Partition error for GPT 5.2 Codex, given Table 5's median SccErr of 0.018 and Section 5.1's Claude Opus 4.6 figure of 1.4 percentage points?
  • Why do Table 5 dollar costs differ across strategies at a fixed task count, and should a harness builder expect $47, Random's $45, or Factor-Based LLM-as-Judge's $80?
  • If the scaffold, prompt, or model changes, do task-feature subsets still match full-benchmark success rate, or only the frozen published runs used to score them?
  • What did the gpt-4o-mini judge rerun show relative to Sonnet 5 on both success-rate error and failures found?

Related in the directory

Open-source projects

SWE-bench Verified, Multilingual, Mini, and SWE-Bench Pro supply the tasks and published outcomes being subsetted.
Named in the SWE-Bench Pro example: GPT-5 inside SWE-agent with a 250-turn limit.
TerminalBench 2.0 is one of the ten benchmarks and contributes 101 of the 298 statistical blocks.
TAU-bench Airline is one of the ten benchmarks (50 tasks, 26 agents), and Category Partition loses to Random there on estimation error.

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

A comprehensive benchmark to evaluate LLMs as agents (ICLR'24)
The LLM evaluation framework — pytest for agents.
Open-source layer for agent harnesses: self-improvement, durable execution, and a control plane.
Open-source evals, red teaming and test generation for agentic systems.
Microsoft's RL trainer that optimizes agents while they run inside their real harnesses.
Open-source AI observability and evals from Arize.

Autonomous specification engineering requires coding agents to translate functional requirements into executable tests and use the results to discover and validate defects. However, existing benchmarks evaluate coding agents on explicitly specified test generation tasks, commonly providing an issue description, a designated test entry point, or files to inspect, leaving the ability to determine what to test and where to investigate insufficiently evaluated. Relying on such clues bypasses the challenge of mapping requirements to implementations and proactively uncovering unknown defects. We propose SpecEngineeringBench, comprising 100 instances from 78 open-source Python repositories across 16 application categories, with multiple recorded defects in each instance. Two independent tasks evaluate complementary capabilities: generating test suites and discovering defects through execution analysis. The evaluation combines test validity, defect detection, and coverage with localization precision and recall. Across seven frontier coding agents, results reveal that test validity and coverage decouple from defect exposure: agents achieve a 91.47% Head Pass Rate and 80.48% Change-focused Coverage alongside a 26.36% Fail-to-Pass Rate, while localization recall drops from 78.11% at the file level to 51.29% at the function level. Autonomous test generation improves file, function, and hunk localization recall by 4.99, 2.77, and 2.69 percentage points over relying solely on existing repository test suites.

Xingjian Wang, Shijian Wang +11

Coding agents built to repair software now write, test, and repair programs for robots, laboratories, and industrial controllers. Unlike in software engineering, no test suite comes with the code. Whether a program works must be established by running it on a robot, in a physics simulator, or through the policies it helps to train, and such evidence is costly to obtain and can itself be wrong. As these agents take on more physical tasks, how their programs are judged matters as much as how they are written. This paper examines this emerging area, agentic intelligence for the physical world, by treating the world as the program's test suite. We organize the discussion around three questions: how agents write programs for the physical world, how these programs are tested, and how agents learn from the results. We first trace how language models for robots and software engineering agents came together, ask which software testing practices carry over to physical tests, and describe each program by where it sits relative to the actuator and by what judges it. For writing, we cover programs that act as robot policies and programs that support policy learning by producing rewards, tasks, and training worlds. For testing, we examine what physical trials cost, what traces, learned judges, simulators, and formal checks can establish in their place, and what safety requires beyond task success. For learning, we discuss how tested programs are retained as experience, in skill libraries and in model weights. Finally, we turn to benchmarks and evaluation practice and outline open challenges. Writing programs is becoming cheap, while trustworthy evidence about what they do remains costly. Progress will therefore depend on a physical counterpart of continuous integration: verification cheap enough to run often, reliable enough to trust under search, and maintained alongside the experience it validates.

Kaixin Li, Meng Luo +10

Coding agents are becoming an increasingly important paradigm for automating software engineering tasks. However, existing coding benchmarks primarily evaluate agents at the function or repository level, leaving their capabilities in more complex distributed software systems largely unexplored. In practice, many modern applications adopt microservice architectures, where end-to-end performance emerges from interactions among multiple independently running services, requiring agents to reason beyond local code changes. To study this capability, we introduce MicroPerf-Bench, a benchmark for evaluating coding agents on end-to-end performance optimization in microservice systems. Constructing such a benchmark is challenging because reproducible system-level performance fixes are sparse and difficult to attribute. We address this challenge by injecting empirically grounded performance anti-patterns into real-world open-source systems while preserving functionality and ensuring measurable performance degradation. The resulting benchmark contains 65 optimization instances across seven systems and nine anti-patterns, each with an executable environment, functional tests, and mixed-workload evaluation. Across 1,755 runs covering nine agent-model configurations, the best configuration recovers only 42.0% of the injected performance degradation. The dominant failure is not invalid code, but functionally correct and constraint-compliant changes that fail to improve end-to-end performance, highlighting system-level bottleneck localization as a key challenge for current coding agents. The source code and data are available at https://github.com/zyzcjnb/microperf.

Yanze Zhang, Maggie Yongqi Guan +5

AI coding agents have become one of the most popular applications of large language models. Yet, agentic AI comes at the cost of a tremendous amount of GPU compute resources, which limits its profitability and its viability at scale. In this paper, we investigate whether smaller, cheaper models can cut this cost without sacrificing accuracy. We evaluate 36 popular large and small open-weight models released since 2024 on a software engineering benchmark, and find that recent small models are closing the accuracy gap compared to their large counterparts. We investigate the structure of this gap and find that the gap is highly concentrated around hard tasks that small language models fail to solve while achieving remarkably good accuracy for easy and medium complexity tasks. Following this observation, we show that by utilizing a hybrid inference strategy that tries a small model first and escalates to a large one only when needed, we can achieve up to 33% reduction in total GPU-hour costs and 16.4% on all tasks from SWE-bench Verified, without sacrificing accuracy. Strikingly, this simple cascade nearly matches an oracle-style task router, highlighting a practical path for deploying cost-aware coding agents in production without complex learned task routers and with minimal engineering complexity.

Boxi Zhou, German Sviridov +2

Benchmarks for AI-based coding agents are a staple of the current AI landscape, because they are the leading way to measure the performance of LLMs. Their scores guide business and research decisions. Evaluating coding agents is challenging, since they are able to manipulate their evaluation infrastructure to artificially achieve better scores. Grading an agent's solution often requires running its code, which can then manipulate the evaluation process. BenchJack, an automated benchmark auditor, recently reached near-perfect scores on nine of ten popular agent benchmarks without actually solving their tasks. Agents already do this unprompted, as OpenAI's July 2026 Hugging Face incident showed. Building on secure systems design, we introduce SplitBench, a privilege separation framework for evaluating coding agents and the first in the scientific literature to separate running a task's tests from judging their results. Even an agent whose code takes over the entire test environment cannot forge a pass, because a trusted grader holds the expected answers. We show that real-world benchmarks (e.g., Terminal-Bench, DeepSWE) can be ported to the SplitBench framework with minimal effort and high fidelity: 180 of 202 tasks convert, and SplitBench agrees with the native graders on 98.7% of agent attempts. We attack the converted tasks in the worst case, where adversarial agents can read all the grading code but not the expected answers. SplitBench blocked 75% of their attempts; the rest mostly reveal weaknesses in the original tasks' tests rather than flaws in SplitBench.

Nathan Nour Houlamy, Mattia Favretto +2

Coding agents are beginning to develop the production-grade AI infrastructure that trains and serves large models, yet existing benchmarks cover only single kernels or single-GPU tasks, and grade with tests and prompts that misjudge both correct and incorrect patches. We introduce InfraDev, a benchmark of 36 tasks built from real-world pull requests to Megatron-LM, vLLM, and verl, covering infrastructure development for training, inference, and reinforcement learning. Each task asks an agent to reimplement a real change that spans many files and must run correctly across many GPUs. To grade such changes, we jointly synthesize hidden probes, which enforce the requirements the original tests leave unchecked, and a prompt that states every interface the probes call without revealing the solution. We also design a shared execution environment that reuses dependencies and artifacts across tasks, cutting storage by 52-57% and build time by 13-14% on Megatron-LM and vLLM. Across six frontier models, the best resolves only 38.9% of the tasks; the probes reject 32% of the submissions that pass every official test, and with the original pull request descriptions as prompts, no model resolves a single task. Failure analysis shows that structural and state errors dominate and that agents' own tests rarely check memory, time, or traffic. Turning these findings into an agent skill raises the resolved rate of a frontier model on the Megatron-LM tasks by 10.5%.

Yangshen Deng, Jiaqi Ruan +4

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.