Evaluation

A higher candidate score alone does not tell us whether an optimizer understood why a change helped or simply found a good candidate by trying many. Fixing execution errors also need not increase the number of correct solutions. This chapter uses concrete comparisons to examine what harness optimization experiments actually measure.

Reducing Errors Versus Solving Tasks

VeRO is a framework for evaluating a coding agent’s ability to modify another agent’s implementation. It provides an outer harness that manages target-agent versions, evaluation budgets, and execution records, together with VeRO-Bench, which contains multiple tasks. It is an accepted ICML 2026 paper, not a proposal for one particular optimization algorithm (Ursekar, Shanker, Chatrath, et al. 2026).

In Figure 1, the agent making changes is on the left, the target being changed is on the right, and the system managing execution and records is in the middle. The top example tries candidates that add a calculator or verifier. Comparing optimizers requires considering not only their candidate generators’ outputs, but also the execution environment used to measure them.

Figure 1: VeRO’s optimization run and system architecture. The top illustrates changes, while the bottom separates the optimizer, execution infrastructure, and target. From Figure 1 of the original paper. Source: (Ursekar, Shanker, Chatrath, et al. 2026)

The paper reports a case study in which Claude Code with Sonnet 4.5 improves a target agent using Terminus-KIRA and Claude Haiku 4.5. All 89 TerminalBench-2 tasks are used for optimization, and performance is measured on those same 89 tasks. This therefore examines how improvements arise on observed tasks, not generalization to unseen tasks (Ursekar, Shanker, Chatrath, et al. 2026, sec. 4.4, Table 4).

Setting Task-Execution Budget Cap Actual Executions Used Success Rate Crash or Timeout Rate
Initial agent - - 30.3% 46.1%
Read records through dedicated tools 89 89 33.7% 36.0%
Read records from files 178 178 30.3% 30.3%
Read records through dedicated tools 178 129 37.1% 33.7%

These are author-reported numbers. The cap limits executions of target tasks in this case study, not all API calls in general. Even with the same cap of 178, actual usage differs, so the comparison does not match the amount of evaluation consumed (Ursekar, Shanker, Chatrath, et al. 2026, Appendix A.4, Table 15). Unsuccessful runs include both those ending in errors and those completing execution but failing the correctness check.

The file-based setting is particularly informative. Crashes and similar failures decline, but the success rate remains at its initial value. Both this file-based run and the dedicated-tool run with a budget of 89 discover a type-checking bug. The dedicated-tool run with a budget of 178, however, does not adopt that fix and reaches the highest success rate through other changes, including token compression. Across these runs, fixing that bug did not necessarily increase success, and other changes also produced improvement (Ursekar, Shanker, Chatrath, et al. 2026, sec. 5.4).

Moreover, each setting represents one optimization run. This is not a controlled experiment isolating the interface’s effect, and it cannot establish that tools are better than files. What it does show is that success rates and execution errors capture different changes, and that different combinations of edits can lead to the same aggregate score.

Generating Candidates Versus Selecting Them

The entire optimizer’s result depends on more than candidate quality. A good candidate may be discarded because of evaluation noise or a proxy metric. Conversely, even a simple generator can achieve strong results by selecting appropriately from many candidates.

Agentic Predictor predicts performance from representations of code, prompts, interaction graphs, and tasks instead of executing every workflow candidate. This ICLR 2026 paper addresses the use of predictors to reduce expensive evaluations (Trirat et al. 2026).

Figure 4: Predicting performance without execution from multiple views of graphs, code, and prompts. Candidate-selection utility is not the same as actual task success rate. From Figure 2 of the original paper. Source: (Trirat et al. 2026)

Table 3 of the paper separately measures success/failure prediction accuracy and how well the predictor selects the actual top candidates. The latter metric, utility, is the set overlap between the predicted top \(k\) candidates and the true top \(k\) candidates. The overall means of 79.97 and 76.33 describe these different metrics. Neither is the success rate of an agent solving user tasks (Trirat et al. 2026, sec. 4.1, Table 3).

Priority Ranking measures a different object again. It asks optimizers to rank components likely to cause improvement or degradation, measuring judgments about where to edit using 182 human-verified scenarios. The authors report a correlation with actual multistep optimization ability. Good rankings alone, however, do not guarantee correct code or efficient use of a search budget. The authors report acceptance to the NeurIPS 2026 main conference, which is distinguished here from confirmation through an official publication venue (Ong et al. 2026).

The contrast in Figure 5 explains why component ranking diagnoses intermediate judgments without replacing evaluation of the resulting agent.

Priority Ranking contrasts end-improvement evaluation with component ranking and illustrates erroneous updates.
Figure 5: Priority Ranking contrasts end-improvement evaluation with component ranking and illustrates erroneous updates. From Figure 1 of the original paper. Source: (Ong et al. 2026)

HarnessOpt-Bench is a 2026 preprint evaluating optimizers that edit target-agent code, using a separately held hidden test and controlled budgets. Whereas Priority Ranking provides a low-cost diagnosis of intermediate judgments, HarnessOpt-Bench measures the resulting improvement from generation, evaluation, and selection together. Neither replaces the other: overall performance and stage-specific diagnostics answer different questions (Ursekar, Shanker, Maurya, et al. 2026).

Figure 6: HarnessOpt-Bench separates editable target code from development execution records, aggregate validation results, and a private test. Following what is returned to the optimizer from the left clarifies the distinction between search feedback and final measurement. From Figure 1 of the original paper. Source: (Ursekar, Shanker, Maurya, et al. 2026)

Does One Improvement Lead to the Next?

A saved harness working on other inputs or models does not mean that it can be improved repeatedly. When new tasks are added, the questions are whether the first improvement persists and whether a second search adds value.

Do Agent Optimizers Compound? is a technical report comparing GEPA, Meta-Harness, and RELAI-VCL with tasks introduced in two stages on Terminal-Bench 2.0. It reports that all improve in the first stage, but outcomes diverge in transfer to new tasks and the second round of improvement. This is a comparison by RELAI that includes its own method, not a peer-reviewed independent replication or a general ranking. The important distinction is between one-off and continuing improvement as evaluation targets (W. Wang et al. 2026).

The endpoint in Figure 7 measures performance after the second optimization, not transfer before re-optimization, and must be read alongside the staged analysis.

Pass rates on the combined 22-task set after Phase 2 re-optimization.
Figure 7: Pass rates on the combined 22-task set after Phase 2 re-optimization. From Figure 4 of the original paper. Source: (W. Wang et al. 2026)

Harness Updating Is Not Harness Benefit is a preprint that separately evaluates the model producing updates and the model using them to solve tasks. It reports that stronger target models do not necessarily produce better updates or benefit more from them. Distinguishing failure to invoke an updated skill from failure to follow it once invoked reveals differences hidden by a single final score (Lin et al. 2026).

The separate panels in Figure 8 distinguish producing updates from benefiting from them, and the failure diagrams distinguish not loading a harness from executing it incorrectly.

Harness-updating and harness-benefit versus base capability, with activation and adherence failures.
Figure 8: Harness-updating and harness-benefit versus base capability, with activation and adherence failures. From Figure 2 of the original paper. Source: (Lin et al. 2026)

These results illustrate the limits of ranking optimizer ability by model size alone. The optimizer, the generated harness, and the target model using it must be separated. Trends in recent preprints, however, cannot be uniformly generalized to other tasks and implementations.

Measuring Costs and Environmental Changes

Search costs differ from the costs of using the completed harness. Producing a short instruction after hundreds of search trials may add little cost at deployment, but its creation still has a cost. Conversely, a candidate with complex voting or verification requires more calls on every use even after search ends. Equal rollout counts do not imply equal intermediate model calls, tools, or token counts.

Changes in the execution environment can also alter performance despite good instructions. ResiliBench is an ICLR 2026 benchmark controlling stochastic tool failures and errors in workflow instructions across 5,040 tasks modeling 30 APIs. The authors report mean full-success rates of 62.1% with workflow instructions derived from an MDP, 50.8% with Chain-of-Thought instructions, and 54.3% with error-injected workflow instructions (Ao et al. 2026, Tables 2–3).

The ordering error in Figure 9 illustrates recovery from flawed instructions, explaining why execution and replanning matter beyond initial plan quality.

ResiliBench corrects a flawed workflow after a parser–validator ordering error.
Figure 9: ResiliBench corrects a flawed workflow after a parser–validator ordering error. From Figure 1 of the original paper. Source: (Ao et al. 2026)

A Markov decision process (MDP) is a probabilistic model in which the state and action determine the next-state and reward distributions. The comparison here uses a reference configuration with a PPO-trained policy that the authors call MDP-optimal. Its Transformer policy is trained with proximal policy optimization (PPO) and curriculum learning. No proof of global optimality is provided even within the modeled MDP. Read “optimal” as the reference configuration’s name, not as an upper bound for arbitrary real-world tools or harness optimizers (Ao et al. 2026, sec. 3.3). ResiliBench primarily measures the ability to execute and revise workflows, rather than directly comparing every candidate generator.

Input representations and evaluators are also part of the measured environment. Sclar and colleagues analyze performance differences caused by formatting changes that preserve prompt meaning. Panickssery and colleagues report that large language model (LLM) evaluators tend to recognize and prefer their own generations. The possibility of optimization increasingly fitting an evaluator is related to research on reward-model overoptimization, but this connection alone does not establish that a particular harness improvement is invalid (Sclar et al. 2024; Panickssery et al. 2024; Gao et al. 2023).

Success rates do not automatically establish safety either. AgentDojo measures whether malicious instructions in external tool outputs divert an agent from its task. Running code in isolation and resisting prompt injection are different properties. Improving one through a harness change does not guarantee the other (Debenedetti et al. 2024).

Evidence of Improvement and the Added Value of Optimization Mechanisms

There are settings in which evaluation-driven changes to instructions, structures, code, or experience are effective. What an improvement means, however, depends on what informed selection, what was fixed, and what remained unused.

The strongest evidence currently comes from comparisons that change part of a mechanism under otherwise matched conditions, and from execution results tied to specific edits. A completed agent’s high score alone cannot establish that candidate generation, selection, generalization, and continuing improvement are all superior. The research challenge is not to prescribe one deployment procedure, but to isolate which optimization mechanisms add value for which tasks, target models, and budgets.

Figure Credits

References

Ao, Ruicheng, Zeping Min, Tingyu Zhu, Wotao Yin, and Xinshang Wang. 2026. “ResiliBench: Evaluating Agentic Workflow Adaptation in Stochastic Environments.” International Conference on Learning Representations 2026: 91062–103. https://proceedings.iclr.cc/paper_files/paper/2026/hash/93427bc08aef8f9d6d5366d70284f571-Abstract-Conference.html.
Blum, Avrim, and Moritz Hardt. 2015. “The Ladder: A Reliable Leaderboard for Machine Learning Competitions.” Proceedings of the 32nd International Conference on Machine Learning. https://proceedings.mlr.press/v37/blum15.html.
Cawley, Gavin C., and Nicola L. C. Talbot. 2010. “On over-Fitting in Model Selection and Subsequent Selection Bias in Performance Evaluation.” Journal of Machine Learning Research 11: 2079–107. https://jmlr.org/papers/v11/cawley10a.html.
Debenedetti, Edoardo, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer, and Florian Tramèr. 2024. “AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents.” Advances in Neural Information Processing Systems Datasets and Benchmarks Track. https://arxiv.org/abs/2406.13352.
Gao, Leo, John Schulman, and Jacob Hilton. 2023. “Scaling Laws for Reward Model Overoptimization.” Proceedings of the 40th International Conference on Machine Learning. https://proceedings.mlr.press/v202/gao23h.html.
Lin, Minhua, Juncheng Wu, Zijun Wang, et al. 2026. Harness Updating Is Not Harness Benefit: Disentangling Evolution Capabilities in Self-Evolving LLM Agents. https://arxiv.org/abs/2605.30621.
Ong, Kai Tzu-iunn, Minseok Kang, Dongwook Choi, et al. 2026. Towards Direct Evaluation of Harness Optimizers via Priority Ranking. https://arxiv.org/abs/2605.22505.
Panickssery, Arjun, Samuel R. Bowman, and Shi Feng. 2024. “LLM Evaluators Recognize and Favor Their Own Generations.” Advances in Neural Information Processing Systems. https://arxiv.org/abs/2404.13076.
Sclar, Melanie, Yejin Choi, Yulia Tsvetkov, and Alane Suhr. 2024. “Quantifying Language Models’ Sensitivity to Spurious Features in Prompt Design or: How i Learned to Start Worrying about Prompt Formatting.” International Conference on Learning Representations. https://arxiv.org/abs/2310.11324.
Trirat, Patara, Wonyong Jeong, and Sung Ju Hwang. 2026. “Multi-View Encoders for Performance Prediction in LLM-Based Agentic Workflows.” International Conference on Learning Representations 2026: 44047–68. https://proceedings.iclr.cc/paper_files/paper/2026/hash/490a4d70704b54ea28a8e6637a25c849-Abstract-Conference.html.
Ursekar, Varun, Apaar Shanker, Veronica Chatrath, Yuan Xue, and Samuel Marc Denton. 2026. “VeRO: A Harness for Agents to Optimize Agents.” Proceedings of the 43rd International Conference on Machine Learning, Proceedings of machine learning research, vol. 306: 122980–3012. https://proceedings.mlr.press/v306/ursekar26a.html.
Ursekar, Varun, Apaar Shanker, Yash Maurya, et al. 2026. HarnessOpt-Bench: Evaluating LLMs at Harness Optimization. https://arxiv.org/abs/2608.06301.
Wang, Wenxiao, Priyatham Kattakinda, and Soheil Feizi. 2026. Do Agent Optimizers Compound? A Continual-Learning Evaluation on Terminal-Bench 2.0. https://arxiv.org/abs/2607.14004.
Wang, Yike, Huaisheng Zhu, Zhengyu Hu, et al. 2026. Rethinking the Evaluation of Harness Evolution for Agents. https://arxiv.org/abs/2607.12227.