---
title: "Measure Then Revise: Budgeted Compute Routers From a Harness Self-Improvement Loop"
authors: ["Tanmay Sah", "Dolly Sah", "Harshul Jain", "Tanya Sah", "Saroj Pradhan"]
date: "2026-11-29"
version: "v1"
address: "https://iraven.io/papers/measure-then-revise-budgeted-compute-2611-39968"
source: "https://arxiv.org/abs/2611.39968"
venue: "arXiv"
licence: "Creative Commons Attribution 4.0 International"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
---

## Abstract

Automated harness self-improvement modifies the prompts and code surrounding a frozen language model. However, reported improvements often overlook generalization, inference costs, and evaluation noise. We investigate these limitations across 75 full-loop runs, 966 harnesses, and over 445,000 $\tau$-bench conversations using unseen tasks and a $2\times$ executor output-token budget. Prompt guidelines and execution guards produce little improvement on unseen tasks ($-3.0$ to $0.2$ percentage points). In contrast, Python-based compute routers that dynamically allocate reasoning effort generalize across five proposer models, with $95.6\%$ ($172/180$) outperforming their initial harness. However, $60.6\%$ ($109/180$) exceed the token budget. We introduce *measure-then-revise*, a method that uses measured token consumption at each reasoning level to revise expensive routers rather than discard them. Across six GLM-5.3 seeds per method under search-only selection, budget violations decrease from $38/72$ to $2/72$, and wasted search episodes decrease by $53\%$. All six revised seeds achieve positive held-out gains, averaging $11.6\pm 2.9$ percentage points versus $5.4\pm 6.4$ under discard-and-resample. Comparisons with uniform-effort baselines and three reimplemented compute allocators show that automated harness evolution can reach performance comparable to uniform medium effort without weight training.

**Code Availability:** [https://github.com/tradertanmay/measure-then-revise](https://github.com/tradertanmay/measure-then-revise)

**Keywords:**

Agent Harness, Recursive Self-Improvement, Test-Time Compute, Evaluation Methodology, Tau-Bench

## 1 Introduction

An agent harness is the set of prompts and code that controls how a language model operates without changing its weights. It manages system instructions, execution checks, retry logic, and inference settings. Recent studies have explored automating harness design by using a proposer model to analyze execution traces, modify the harness, and retain variants that perform better \[Hu et al., 2025, Zhang et al., 2025, Robeyns et al., 2025, Zhang et al., 2026c, Wang et al., 2026a, Lee et al., 2026\].

Although these methods report substantial improvements, three limitations make their results difficult to interpret. First, candidate harnesses are often evaluated on the same tasks used to optimize them \[Wang et al., 2026b\]. Second, higher accuracy can come at the cost of increased token consumption, which is not always measured \[Kapoor et al., 2024, Ding et al., 2026b\]. Third, only $22\%$ of recursive self-improvement studies audit multiple independent runs of the full optimization loop \[Chen et al., 2026\]. To address these limitations, we separate search tasks from held-out evaluation tasks and repeat our experiments across multiple independent seeds (Figure 1). We also impose a token budget that limits the mean executor output tokens per episode to twice that of the initial harness.

![Figure](figures/f1-fig-overview.svg)

Figure 1: Closed-loop budget calibration and three-stage gain decomposition. (a) Search-split architecture showing runtime cost gating, per-tier telemetry feedback, candidate selection, and unseen held-out evaluation. (b) Additive decomposition $\Delta_{\mathrm{ship}}=\Delta_{\mathrm{all}}^{\star}-L_{\mathrm{cap}}-L_{\mathrm{sel}}$ under search-only eligibility on GLM-5.3 and combined-cost accounting on DeepSeek†.

We research whether automated harness evolution can improve agent performance by changing how reasoning effort is allocated rather than changing what the prompts say. Instead of assigning the same reasoning effort to every turn, a compute router can determine when additional reasoning is needed. Existing methods address this problem by training compute allocation policies \[Yang et al., 2026, Zhang et al., 2026b, Jali et al., 2026\]. In contrast, we study whether a harness evolution loop can discover and refine such routing strategies through executable code, without weight training.

Using a fixed open-weight executor (`gpt-oss-120b`), task splits, and token budget on $\tau$-bench \[Yao et al., 2025\], we make four contributions:

1. **Measure-then-revise (Sections 4.2 and 5.4).** Instead of discarding expensive routers, we provide the proposer with measured token consumption at each reasoning level to revise existing routers, reducing search-budget violations from $38/72$ to $2/72$ and wasted search episodes by $53\%$ while achieving held-out gains across all GLM-5.3 runs.
2. **Two-stage compute routers vs. prompt and guard edits (Sections 4, 5.1 and 5.3).** Whereas prompt instructions and pre-write guards cause regressions on previously successful tasks ($-3.0$ to $0.2$ pp), two-stage Python routers that dynamically allocate reasoning effort before generation and before tool execution generalize across all five proposer models ($95.6\%$ outperform the initial harness).
3. **Three-stage gain decomposition and the budget bottleneck (Sections 3 and 5.3).** We separate candidate quality, budget-related losses, and candidate selection losses under held-out evaluation, showing that $60.6\%$ of open-loop routers exceed the $2\times$ token budget without runtime cost feedback.
4. **Comparisons with uniform effort and learned allocators (Section 6).** Through uniform-effort baselines, three reimplemented compute allocators, and supplementary selection, domain-transfer, and executor analyses (Appendices C.4 and D), we show that harness evolution can autonomously reach performance comparable to uniform medium effort without weight training.

## 2 Related Work

### 2\.1 Self-Improving Agents and Harness Search

Prior work has explored evolving agent code scaffolds \[Zelikman et al., 2024, Yin et al., 2025, Robeyns et al., 2025, Zhang et al., 2026c, Wang et al., 2026a, Zhang et al., 2026d\], optimizing workflows around frozen language models \[Hu et al., 2025, Zhang et al., 2025, Lee et al., 2026, Shang et al., 2026, Jiang et al., 2026, Sengupta and Wang, 2026, Hong et al., 2026, Ling et al., 2026, Zhang et al., 2026e, Wei et al., 2026\], jointly evolving model weights and harnesses \[Luo et al., 2026\], and using programmatic scaffolds to keep individual model calls within their expected input distribution \[Zhang et al., 2026a\]. Other approaches use execution feedback to revise prompt instructions \[Yang et al., 2024, Guo et al., 2024, Fernando et al., 2024, Khattab et al., 2024, Opsahl-Ong et al., 2024, Yuksekgonul et al., 2025, Cheng et al., 2024, Agrawal et al., 2026\].

Rather than introducing a new evolutionary loop, we research how the choice of harness modifications and computational constraints affects generalization with frozen models. Modifying prompt instructions can cause regressions on previously successful tasks, whereas per-turn effort routing adjusts reasoning compute without altering the prompt.

### 2\.2 Evaluation Pitfalls in Agent Optimization

Previous studies identify several challenges in evaluating agent optimization, including task leakage and unmeasured increases in inference compute \[Kapoor et al., 2024, Chen et al., 2026, Wang et al., 2026b, Ding et al., 2026b, Ding et al., 2026a\]. Modifications intended to correct specific failures can also introduce new failures in previously successful tasks \[He, 2026\]. Limited evaluation sets can lead to benchmark saturation and favor candidates that perform well by chance \[Song et al., 2025, Huang et al., 2025, Tian et al., 2026, Xie et al., 2026\].

We evaluate candidates using paired task-level comparisons \[Miller, 2024\] and introduce a three-stage gain decomposition that distinguishes the best observed candidate performance, the improvement lost due to budget constraints, and the improvement lost during candidate selection.

### 2\.3 Adaptive Test-Time Compute

Increasing inference compute can improve reasoning performance \[Brown et al., 2024, Snell et al., 2025\], although excessive reasoning can sometimes reduce accuracy \[Gema et al., 2025, Lee and Choi, 2026\]. Existing approaches train compute allocation policies through reinforcement learning, boundary supervision, or dual optimization \[Yang et al., 2026, Zhang et al., 2026b, Jali et al., 2026, Zhai et al., 2026, Kassenaar et al., 2026\]. Other methods allocate compute based on model confidence, the consequences of errors, or resource constraints \[He et al., 2026, Sah et al., 2026, Madiraju and Madiraju, 2026\].

Our work researches an alternative approach in which a proposer model generates executable compute routers within an automated harness evolution loop. Rather than training router weights, we use measured token consumption to revise routing code and improve budget compliance.

## 3 Problem Setup and Evaluation Design

### 3\.1 Budget-Constrained Harness Self-Improvement

We consider an executor $M_{\theta}$ with frozen weights that interacts with a stochastic environment through a candidate harness $h\in\mathcal{H}$. Each episode $\tau$, executed on task $i$ with seed $s$, produces a binary reward $r(\tau)\in\{0,1\}$ and an executor output token count $c(\tau)\in\mathbb{N}$.

Before running the experiments, we divide the tasks into two non-overlapping sets: a search split $\mathcal{S}$, used to develop and rank candidate harnesses, and a held-out split $\mathcal{T}$, used to evaluate generalization.

Evaluating a harness on $\mathcal{S}$ produces its search score $\hat{R}_{\mathcal{S}}(h)$ and mean token cost $\hat{C}_{\mathcal{S}}(h)$. Evaluating it on $\mathcal{T}$ produces its held-out score $R_{\mathcal{T}}(h)$. We denote the mean output token count across both splits by $C(h)$. Neither the proposer nor the candidate selection process has access to held-out rewards.

Table 1: Experimental setup on $\tau$-bench retail.

| Component | Configuration |
|---|---|
| *Executor \& Serving* |  |
| Executor | `openai/gpt-oss-120b, frozen weights (temp 0)` |
| Customer simulator | `openai/gpt-oss-120b (temp 1.0)` |
| Serving stack | vLLM, $1\times$ NVIDIA H100 80 GB GPU |
| *Evaluation Splits* |  |
| Search split ($\mathcal{S}$) | $50$ retail tasks (seed 4321) |
| Held-out split ($\mathcal{T}$) | $65$ unseen retail tasks ($\mathcal{S}\cap\mathcal{T}=\emptyset$) |
| Rollouts per task | $3$ ($150$ search $+195$ held-out $=345$ eps/harness) |
| *Search Loop* |  |
| Search schedule | $4$ search rounds $\times 3$ candidates ($12$ new candidates) |
| Evaluated per seed | $13$ harnesses ($1$ root $+12$ candidates; $4{,}485$ eps) |
| Independent seeds | $3$ per setting; GLM-5.3 comparison uses $6$ |
| *Budget \& Calibration* |  |
| Mean token budget ($B$) | $2.0\times$ root mean output tokens per episode |
| Fast-screen trigger | $100\%$ of budget ($1.00B$ after Rollout 1, $50$ eps) |
| Full-search trigger | $95\%$ of budget ($0.95B$ across $150$ search eps) |
| Revision target | $85\%$ of budget ($0.85B$), max $K=3$ revisions |

In the main experiments, each independent loop starts from a root harness $h_{0}$, which uses low reasoning effort and no additional instructions (Table 1). The loop runs four search rounds, generating three candidates per round from the highest-scoring eligible harness found so far. Including the root, a complete loop evaluates 13 harnesses:

$$
\mathcal{A}=\{h_{0},\ldots,h_{12}\}.
$$

We impose a token budget of twice the root harness’s mean output token count ($\beta=2.0$). All online checks for discarding or revising candidates use only search episodes.

We define two budget eligibility rules. Our primary rule, used in our six-seed comparisons, determines eligibility exclusively from search episodes:

$$
\mathcal{E}_{\mathcal{S}}=\{h\in\mathcal{A}:\hat{C}_{\mathcal{S}}(h)\leq 2\hat{C}_{\mathcal{S}}(h_{0})\},
$$

and selects the final harness without access to held-out rewards or held-out token counts:

$$
h^{\star}=\arg\max_{h\in\mathcal{E}_{\mathcal{S}}}\hat{R}_{\mathcal{S}}(h).
$$

For our three-seed multi-proposer sweeps and retrospective comparisons, we also evaluate combined-cost eligibility across both search and held-out episodes:

$$
\mathcal{E}=\{h\in\mathcal{A}:C(h)\leq 2C(h_{0})\},
$$

replacing $\mathcal{E}_{\mathcal{S}}$ with $\mathcal{E}$ during archive selection (accounting details in Appendix A).

### 3\.2 Three-Stage Gain Decomposition

A harness self-improvement loop may fail to achieve its full potential for three reasons: the proposer generates weak candidates, strong candidates exceed the token budget, or the selection process fails to identify the best eligible candidate.

To distinguish these factors, we define two oracle gains over the evaluated archive, where $\mathcal{E}^{\prime}\in\{\mathcal{E}_{\mathcal{S}},\mathcal{E}\}$ and $h_{0}\in\mathcal{E}^{\prime}\subseteq\mathcal{A}$.

The unconstrained oracle measures the largest held-out improvement among all evaluated harnesses, regardless of token consumption:

$$
\Delta^{\star}_{\mathrm{all}}\coloneqq\max_{h\in\mathcal{A}}\left(R_{\mathcal{T}}(h)-R_{\mathcal{T}}(h_{0})\right).
$$

The eligible oracle measures the largest held-out improvement among harnesses that satisfy the token budget:

$$
\Delta^{\star}_{\mathrm{elig}}\coloneqq\max_{h\in\mathcal{E}^{\prime}}\left(R_{\mathcal{T}}(h)-R_{\mathcal{T}}(h_{0})\right).
$$

The shipped gain is the held-out improvement achieved by the selected harness:

$$
\Delta_{\mathrm{ship}}\coloneqq R_{\mathcal{T}}(h^{\star})-R_{\mathcal{T}}(h_{0}).
$$

Because $h^{\star}\in\mathcal{E}^{\prime}\subseteq\mathcal{A}$, we decompose the shipped gain as:

```
\Delta_{\mathrm{ship}}=\underbrace{\Delta^{\star}_{\mathrm{all}}}_{\text{Ceiling}}-\underbrace{(\Delta^{\star}_{\mathrm{all}}-\Delta^{\star}_{\mathrm{elig}})}_{\text{Cap loss }L_{\mathrm{cap}}\geq 0}-\underbrace{(\Delta^{\star}_{\mathrm{elig}}-\Delta_{\mathrm{ship}})}_{\text{Selection loss }L_{\mathrm{sel}}\geq 0}.
```

Cap loss measures the potential improvement lost because candidates exceed the token budget. Selection loss measures the difference between the best eligible harness and the harness selected using search performance.

Both oracles represent the best observed performance among the evaluated candidates, rather than theoretical upper bounds. Including the root harness ensures that both oracle gains are non-negative. In negative controls where all generated candidates perform worse than the root, we also report the candidate-only maximum gain, $\Delta^{\star}_{\mathrm{cand}}$, to quantify this regression.

Finally, we report two additional metrics: $\rho_{\mathrm{start}}$, the proportion of generated candidates that outperform the root on held-out tasks, and $\bar{\tau}_{\mathrm{step}}$, the mean held-out performance difference between candidates and their respective parent harnesses.

### 3\.3 Experimental Configuration and Outcome Variance

Multi-turn customer simulations introduce variability in task outcomes, even when the harness remains unchanged. Across 12 runs of the identical all-`low` root harness on $\tau$-bench retail \[Yao et al., 2025\], $63\%$ of tasks produce both successful and unsuccessful outcomes across rollouts.

Differences in task difficulty account for $69\%$ of episode-level variance, while rollout noise accounts for the remaining $31\%$. The held-out standard error for a single seed is approximately $3.5$ percentage points.

To account for this variability, we report the mean and standard deviation of performance across independent loop seeds, together with task-paired $t$-statistics ($t_{\mathrm{task}}$) computed over the $n=65$ held-out retail tasks ($n=30$ for airline domain transfer and $n=115$ for train-to-test settings; Appendix A). Table 1 summarizes the experimental configuration.

## 4 Edit Spaces and Measure-Then-Revise

### 4\.1 From Textual Guidelines to Two-Stage Compute Routers

Existing harness improvement methods often modify system prompts or introduce checks before executing write operations. We evaluate three types of modifications: concise guidelines (up to 150 words), extended guidelines (up to 400 words), and Python-based pre-write guards implemented through `check(tool, args, ctx)`. Depending on the experimental setting, the proposer receives failed execution traces, differences in write actions, or pairs of successful and unsuccessful trajectories.

![Figure](figures/f2-fig-router-exec.svg)

Figure 2: Two-stage compute router execution flow. Stage 1 (`stage="turn"`) assigns pre-generation reasoning effort; Stage 2 (`stage="call"`) inspects proposed tool calls from `low`/`medium` turns and optionally escalates once before execution (full rules in Table 7).

Instead of modifying prompt instructions, we introduce a Python-based compute router, `route(stage, info, ctx)`, that controls the reasoning effort of the executor at two stages (Figure 2).

**Turn stage.** Before the executor generates a response, the router examines the current conversation state, including the step count, recent messages, previous tool calls, completed write operations, and encountered errors. Based on this information, it assigns low, medium, or high reasoning effort.

**Call stage.** When a response generated at low or medium effort contains a tool call, the router examines the proposed tool name and arguments. If additional reasoning is considered necessary, the router can regenerate the response once at a higher effort level before executing the tool call. Output tokens from both the original and regenerated responses count toward the episode’s token consumption.

The router therefore controls how much reasoning effort the executor uses without directly modifying prompt instructions or executing tools.

All routers are limited to 150 lines of Python code and are checked for valid Python syntax and function signature before evaluation. They cannot directly access environment state, tool implementations, domain policies, or evaluation results. The complete router interface and validation rules are provided in Appendix B.

**Algorithm 1** Two-Stage Measure-Then-Revise Gate

```
              1:
              
              
             Input: Draft h, cap B{=}2\hat{C}_{\mathcal{S}}(h_{0}), search split \mathcal{S}, seeds (s_{1},s_{2},s_{3}), proposer P, max revisions K{=}3, \gamma_{\mathrm{trig}}{=}0.95, \gamma_{\mathrm{targ}}{=}0.85



              2:
              
              
             for k=0,\dots,K do





              3:
              
              
               E_{1}\leftarrow\textsc{Eval}(h,\mathcal{S},\{s_{1}\});   \hat{c}_{1}\leftarrow\textsc{MeanOutTok}(E_{1})



              4:
              
              
               if \hat{c}_{1}\leq B then





              5:
              
              
                E\leftarrow E_{1}\cup\textsc{Eval}(h,\mathcal{S},\{s_{2},s_{3}\});   \hat{c}_{3}\leftarrow\textsc{MeanOutTok}(E)



              6:
              
              
                if \hat{c}_{3}\leq\gamma_{\mathrm{trig}}B then

 


              7:
              
              
                 break 


              8:
              
              
                end if


              9:
              
              
               else




              10:
              
              
                E\leftarrow E_{1} \triangleright Fast screen saves 2/3 search cost



              11:
              
              
               end if


              12:
              
              
               if k=K then

 


              13:
              
              
                break 


              14:
              
              
               end if


              15:
              
              
               h^{\prime}\leftarrow P\bigl(h,\,\textsc{CostTelemetry}(E),\,\text{target }\gamma_{\mathrm{targ}}B\bigr)



              16:
              
              
               if h^{\prime} invalid then

 


              17:
              
              
                break 


              18:
              
              
               end if;   h\leftarrow h^{\prime}



              19:
              
              
             end for


              20:
              
              
             if |E|<3|\mathcal{S}| then

 


              21:
              
              
               E\leftarrow E\cup\textsc{Eval}(h,\mathcal{S},\{s_{2},s_{3}\}) 


              22:
              
              
             end if


              23:
              
              
             Evaluate h on held-out \mathcal{T}; record \hat{C}_{\mathcal{S}}(h) and C(h)
```

### 4\.2 Measure-Then-Revise Calibration Gate

Generating a compute router that satisfies a token budget is challenging because its actual cost depends on how frequently its routing rules are triggered during execution. Static execution traces and the costs of previously evaluated candidates provide limited information about the runtime cost of a newly generated router.

The cost difference between reasoning levels is also substantial. In our experiments, high-effort turns consume approximately 673 output tokens, compared with 255 for medium-effort turns, a difference of approximately $2.6\times$.

Our discard-and-resample baseline rejects over-budget drafts and allows up to two replacement attempts, without providing detailed feedback about which routing decisions contributed to the excessive cost. Moreover, routers that operate close to the budget on search tasks may exceed it on unseen tasks.

We introduce *measure-then-revise* (Algorithm 1), which allows the proposer to revise a router using its measured runtime cost rather than discard it. All calibration decisions use only the search split $\mathcal{S}$. The token budget $B$ is defined as twice the root harness’s mean output token consumption on search tasks.

The method consists of three steps:

1. **Initial cost screening.** We evaluate the router on one rollout of each of the 50 search tasks. If its mean output token consumption exceeds $B$, we trigger revision without completing the remaining two rollouts. This avoids two-thirds of the search evaluation episodes for that draft.
2. **Full search evaluation.** If the router passes the initial screen, we complete the remaining rollouts, producing 150 search episodes in total. Revision is triggered if mean token consumption exceeds $0.95B$. This threshold provides a $5\%$ safety margin to reduce the risk of exceeding the budget on unseen tasks.
3. **Measurement-guided revision.** When either threshold is exceeded, the proposer receives the router code, measured output token consumption at each reasoning level, the number of turns assigned to each level, and the frequency of regenerations. It then revises the router toward a target of $0.85B$ while attempting to preserve its original reasoning strategy. We allow a maximum of three revisions.

After the revision process ends, the final router completes the search evaluation if necessary and is evaluated on held-out tasks. Held-out observations are not used to revise the router.

Unlike discard-and-resample, measure-then-revise provides the proposer with information about the actual computational behavior of its router, allowing it to make targeted modifications to reduce token consumption. Appendix B provides the revision prompt and an example of a router before and after calibration.

## 5 Experiments

### 5\.1 Textual Guidelines and Guards Fail to Generalize

Across the six experimental settings involving prompt guidelines and pre-write guards, the selected harnesses achieve little or no improvement on held-out tasks, with gains ranging from $-3.0$ to $0.2$ percentage points (pp). On average, candidates do not improve upon their parent harnesses, and the best observed held-out gains are comparable to those obtained without modifying the harness (Appendix C, Table 13).

An analysis of 1,380 root episodes identifies three factors behind these results. First, the original $\tau$-bench retail training tasks always include order IDs and contain no conditional requests, whereas $9\%$ of test tasks omit order IDs and $40\%$ include conditional requests. Second, even on the matched $50/65$ split, rules designed to correct failures improve previously unsuccessful tasks by only $2.3$–$3.3$ pp while reducing accuracy on previously successful tasks by $26$ pp. Third, pre-write guards intervene only when the agent attempts a database operation, often after forming and communicating an incorrect plan, and degrade guarded-task performance in 32 of 36 candidates, limiting generalization.

Table 2: Main results on held-out $\tau$-bench retail tasks.

| Method / Proposer | Budget Handling | Gain $\Delta_{\mathrm{ship}}$ (pp) | $t_{\mathrm{task}}$ | Cost | $\rho_{\mathrm{start}}$ | Over Cap | Elig. Oracle $\Delta_{\mathrm{elig}}^{\star}$ (pp) |
|---|---|---|---|---|---|---|---|
| *A. Within-Budget Reference (No Loop)* |  |  |  |  |  |  |  |
| Uniform `medium` | Fixed effort tier | $9.1\pm 2.1$ | $3.23$ | $1.64\times$ | – | – | – |
| *B. Open-Loop Router Search* |  |  |  |  |  |  |  |
| GPT-OSS-120B (self) | No cap control | $3.4\pm 6.4$ | $1.86$ | $1.65\times$ | $28/36$ | $27/36$ | $5.6\pm 4.5$ |
| GPT-OSS-120B (self) | History + discard | $4.8\pm 1.3$ | $2.05$ | $1.88\times$ | $20/36$ | $8/36$ | $5.3\pm 2.1$ |
| Gemini 4 Argon | History + discard | $7.7\pm 6.0$ | $3.33$ | $1.89\times$ | $34/36$ | $21/36$ | $11.1\pm 4.3$ |
| Gemini 3.8 Flash | History + discard | $9.1\pm 5.6$ | $3.88$ | $1.93\times$ | $36/36$ | $26/36$ | $12.5\pm 1.2$ |
| DeepSeek V4.1 Flash (Vertex) | History + discard | $7.9\pm 2.4$ | $2.83$ | $1.79\times$ | $36/36$ | $21/36$ | $10.9\pm 4.6$ |
| GLM-5.2 | History + discard | $9.2\pm 6.2$ | $3.39$ | $1.86\times$ | $34/36$ | $19/36$ | $12.3\pm 3.6$ |
| GLM-5.3 (search cap⋆) | History + discard | $5.4\pm 6.4$ | $3.10$ | $1.89\times$ | $63/72$ | $38/72$ | $9.7\pm 3.5$ |
| GLM-5.3 (combined cap) | History + discard | $6.3\pm 7.1$ | $3.69$ | $1.86\times$ | $63/72$ | $43/72$ | $9.0\pm 4.1$ |
| *C. Measure-Then-Revise (Ours)* |  |  |  |  |  |  |  |
| GLM-5.3 (search cap⋆) | History + revise | $11.6\pm 2.9$ | $5.74$ | $1.79\times$ | $68/72$ | $2/72$ | $11.7\pm 2.8$ |
| GLM-5.3 (combined cap) | History + revise | $11.6\pm 2.9$ | $5.74$ | $1.79\times$ | $68/72$ | $4/72$ | $11.7\pm 2.8$ |
| DeepSeek V4.1 Flash† (3 seeds) | History + revise | $7.4\pm 3.6$ | $2.70$ | $1.59\times$ | $28/36$ | $0/36$ | $11.8\pm 5.4$ |
| *D. Start-From-Medium Negative Controls‡* |  |  |  |  |  |  |  |
| Equal absolute cap ($1.2\times$ med.) | History + discard | $-1.2\pm 2.1$ | $-1.04$ | $1.01\times$ | $2/36$ | $12/36$ | $0.0\pm 0.0$ |
| Loose cap ($2.0\times$ med.) | History + discard | $-5.0\pm 7.8$ | $-2.67$ | $1.43\times$ | $6/36$ | $0/36$ | $0.9\pm 1.5$ |

Mean $\pm$ SD across seeds ($3$ seeds by default, $6$ for GLM-5.3); $t_{\mathrm{task}}$ is task-paired over $n=65$ held-out retail tasks; Cost is all-episode output tokens vs. root. ⋆Search-only eligibility ($\hat{C}_{\mathcal{S}}\leq 2\hat{C}_{\mathcal{S}}(h_{0})$); 3-seed rows and “combined cap” rows use retrospective $C(h)\leq 2C(h_{0})$. †Tinker API configuration (Table 5). ‡Candidate-only $\Delta_{\mathrm{cand}}^{\star}$: $-4.3\pm 1.6$ pp ($1.2\times$) and $-1.0\pm 3.9$ pp ($2.0\times$).

### 5\.2 Uniform Reasoning Effort and Event Routers

As a baseline, we evaluate how fixed reasoning effort levels affect `gpt-oss-120b`. Across all 115 retail test tasks, moving from low to medium effort improves accuracy by $6.7\pm 2.7$ pp over the $35.9\%$ low-effort baseline at $1.68\times$ output tokens, while uniform high effort gains $9.6\pm 1.9$ pp at $4.4\times$ tokens. On the 65 held-out tasks, uniform medium achieves $9.1\pm 2.1$ pp at $1.64\times$ tokens and serves as our within-budget reference (Panel A, Table 2). Five event routers targeting write operations, errors, conditional requests, catalog reads, or user turns gain at most $1.0\pm 1.8$ pp, as escalating isolated triggers misses multi-step order lookups and unnecessary transfers to a human agent (Appendix C).

### 5\.3 Open-Loop Compute Routers Improve Accuracy but Exceed the Budget

Replacing prompt and guard modifications with executable compute routing produces improvements on held-out tasks, even when the executor itself serves as the proposer (Panel B, Table 2). Across five proposers (Gemini 4 Argon, Gemini 3.8 Flash, DeepSeek V4.1 Flash, GLM-5.2, and GLM-5.3), two patterns emerge (Figure 4c). First, $95.6\%$ ($172/180$) of generated routers outperform their root harness on held-out tasks, with unconstrained ceilings of $12.0$ to $16.1$ pp. Second, $60.6\%$ ($109/180$) exceed the $2\times$ token budget despite discarding 49–60 over-budget search drafts per proposer, with within-budget survival falling from $50\%$ in Round 1 to $25\%$ in Round 4 (Figure 8b).

The GLM-5.3 comparison further illustrates this bottleneck: although 63 of 72 candidates beat their root harness, 38 exceed the search token cap under the search-only rule ($47.2\%$ eligible; $43/72$ over cap, or $40.3\%$ eligible, under retrospective combined-cost accounting). Under search-only selection, shipped routers average $5.4\pm 6.4$ pp, with three seeds between $-2.6$ and $1.5$ pp ($6.3\pm 7.1$ pp under combined-cost accounting). Removing candidate cost history or discard filtering on GLM-5.2 further degrades selected gains without reducing unconstrained ceilings (Appendix C.4, Table 12), showing that retaining effective routers within budget is as critical as generating them.

![Figure](figures/f3-fig-budget-grid.svg)

Figure 3: Search-only budget eligibility and search overhead on GLM-5.3 (72 candidates per method). Each square represents one evaluated candidate router under discard-and-resample (top; $38/72$ over search cap, $43/72$ combined) versus measure-then-revise (bottom; $2/72$ over search cap, $4/72$ combined).

![Figure](figures/f4-fig-trim-mechanism.svg)

Figure 4: Candidate router distributions across calibration modes and proposers. (a) Draft-to-revision token compression across all 72 GLM-5.3 revision candidates. (b) Held-out gain vs. token multiplier across all 144 GLM-5.3 routers. (c) Balanced 3-seed open-loop slice across five proposers (180 routers; multipliers above $3.35\times$ clipped).

### 5\.4 Closed-Loop Calibration With Measure-Then-Revise

Table 3: Per-seed results of *measure-then-revise* on GLM-5.3.

| Metric | S0 | S1 | S2 | S3 | S4 | S5 | Mean / Tot |
|---|---|---|---|---|---|---|---|
| Root acc. (%) | $36.9$ | $39.0$ | $39.0$ | $39.0$ | $37.4$ | $36.9$ | $38.0$ |
| Shipped gain (pp) | $11.8$ | $6.7$ | $12.3$ | $11.3$ | $15.9$ | $11.8$ | $11.6\pm 2.9$ |
| Shipped cost | $1.93\times$ | $1.89\times$ | $1.74\times$ | $1.77\times$ | $1.66\times$ | $1.74\times$ | $1.79\pm 0.10\times$ |
| Beat root ($\rho_{\mathrm{start}}$) | $12/12$ | $11/12$ | $10/12$ | $11/12$ | $12/12$ | $12/12$ | $68/72$ ($94.4\%$) |
| Over search cap ($\mathcal{E}_{\mathcal{S}}$) | $0/12$ | $1/12$ | $0/12$ | $1/12$ | $0/12$ | $0/12$ | $2/72$ ($2.8\%$) |
| Over combined cap ($\mathcal{E}$) | $0/12$ | $1/12$ | $0/12$ | $2/12$ | $0/12$ | $1/12$ | $4/72$ ($5.6\%$) |
| Over-cap drafts | $16$ | $19$ | $17$ | $10$ | $13$ | $21$ | $96$ total |
| Elig. oracle (pp) | $11.8$ | $7.2$ | $12.3$ | $11.3$ | $15.9$ | $11.8$ | $11.7\pm 2.8$ |

#### 5\.4.1 Budget Compliance and Search Efficiency

Measure-then-revise substantially improves budget compliance in the GLM-5.3 experiments. Under the search-only rule, the number of candidates exceeding the $2\times$ token budget decreases from $38/72$ ($52.8\%$) under discard-and-resample to $2/72$ ($2.8\%$) under measure-then-revise (Figure 3, Table 3). Under the retrospective combined-cost rule across all 345 episodes, violations decrease from $43/72$ ($59.7\%$) to $4/72$ ($5.6\%$).

Although 64 of 72 initial drafts trigger revision, with token consumption reaching up to $3.44\times$ that of the root harness, search-only eligibility remains between $94\%$ and $100\%$ across all four search rounds ($89\%$ to $100\%$ under combined-cost accounting).

The method also reduces search overhead. Screening expensive drafts after the first rollout reduces search episodes spent on over-budget drafts by $53\%$, from $13{,}500$ to $6{,}300$ (Appendix A).

Measure-then-revise selects the same 24 parent harnesses and all six final routers under both $\mathcal{E}_{\mathcal{S}}$ and $\mathcal{E}$, achieving $11.6\pm 2.9$ pp versus $5.4\pm 6.4$ pp under discard-and-resample with search-only selection ($6.3\pm 7.1$ pp under combined-cost accounting; Table 2).

These results demonstrate that measure-then-revise improves budget compliance and reduces search overhead without relying on held-out information for calibration or selection.

#### 5\.4.2 Held-Out Accuracy Across Seeds

All GLM-5.3 measure-then-revise runs produce positive held-out improvements, ranging from $6.7$ to $15.9$ pp. The selected routers achieve a mean gain of $11.6\pm 2.9$ pp while consuming $1.79\times$ the baseline output tokens (Table 3).

In five of the six runs, the selected router matches the best observed held-out performance among all budget-eligible candidates. The mean selection loss is approximately $0.1$ pp.

Compared with discard-and-resample under the search-only rule, measure-then-revise also produces more consistent outcomes across seeds. The standard deviation of held-out gains decreases from $6.4$ to $2.9$ pp ($7.1$ to $2.9$ pp under combined-cost accounting), while the mean number of search-budget violations per seed decreases from $6.3$ to $0.3$ out of 12 candidates ($7.2$ to $0.7$ across all episodes).

The mean improvement over discard-and-resample under the search-only rule is $6.2$ pp; the seed-level $95\%$ confidence interval ranges from $-0.6$ to $13.0$ pp, while the task-paired comparison yields $t_{\mathrm{task}}=3.03$ ($\text{SE}=2.1$ pp). Under the retrospective combined-cost rule, the mean difference is $5.3$ pp (seed-level interval $-2.2$ to $12.8$ pp; $t_{\mathrm{task}}=2.73$, $\text{SE}=1.9$ pp).

Because baseline accuracy varies across seeds, we also compare absolute held-out accuracy. Under the search-only rule, measure-then-revise achieves $49.7\pm 2.6$%, compared with $44.2\pm 4.1$% under discard-and-resample ($45.1\pm 4.4$% under the retrospective combined-cost rule).

The results favor measure-then-revise in both mean performance and consistency.

#### 5\.4.3 Cross-Proposer Replication and Gate Sensitivity

To examine whether measure-then-revise extends beyond GLM-5.3, we conduct three additional runs using DeepSeek V4.1 Flash.

Across these runs, none of the 36 evaluated candidates exceeds the token budget. All three selected routers improve upon their root harnesses, achieving a mean held-out gain of $7.4\pm 3.6$ pp at $1.59\times$ the baseline output tokens.

Because these experiments use a different API provider and decoding configuration than the open-loop DeepSeek experiments (Table 5), we treat them as a standalone replication rather than a controlled comparison between budget handling methods.

Sensitivity analyses in Appendix C.2 (Table 10) show that allowing up to $K=3$ revisions lowers GLM-5.3 combined-cost violations from $86.1\%$ ($K=0$) to $5.6\%$ ($0\%$ on DeepSeek), the $0.95B$ full-search trigger cuts post-search budget drift from $11.9\%$ to $3.3\%$, and the single-rollout screen achieves $92.7\%$ precision ($38/41$).

![Figure](figures/f5-fig-allocation.svg)

Figure 5: Per-conversation search effort allocation (GLM-5.3, seeds 0–2). Mean turns per tier and total output tokens across root, initial drafts, revised routers, and discard survivors (Table 8).

#### 5\.4.4 Why Measure-Then-Revise Works

The best observed unconstrained gains are similar under measure-then-revise and discard-and-resample ($12.3$ versus $11.3$ pp), confirming that the $6.2$ pp shipped improvement comes from retaining effective routing strategies within budget. Across the first three GLM-5.3 seeds (Figure 5), revision cuts mean high-effort turns by $71\%$ ($2.7$ to $0.8$ per conversation) and regenerations by $43\%$, while preserving medium-effort turns ($6.7$ to $6.8$ versus $3.8$ among discard-and-resample survivors). Across 585 held-out conversations per group, the shipped revised routers reduce unnecessary human hand-offs from 135 to 63 and omitted write operations from 133 to 74, whereas simpler single-rule controls underperform uniform medium effort (Appendix C, Figures 7 and 9).

## 6 Comparison with Uniform-Effort and Learned Compute Allocators

![Figure](figures/f6-fig-frontier.svg)

Figure 6: Held-out gain vs. inference cost across loop methods, turn-level learned allocators, and references. Points and error bars show seed means $\pm 1\text{ SE}$ relative to each setting’s all-`low` root; the dashed line connects root and uniform `medium`.

We compare held-out performance against output token consumption to determine whether harness evolution improves computational efficiency or primarily provides a mechanism for automated budget calibration (Figure 6).

Individual routers discovered through measure-then-revise achieve improvements of up to $15.9$ pp at $1.66\times$ the baseline token consumption. On GLM-5.3, the method achieves a mean improvement of $11.6\pm 2.9$ pp at $1.79\times$ tokens. Uniform medium effort achieves $9.1\pm 2.1$ pp at $1.64\times$ tokens.

A paired comparison across the 65 held-out tasks does not establish a statistically significant difference in absolute accuracy between the two approaches ($49.7\%$ versus $48.2\%$, $t_{\mathrm{task}}=0.80$). Across search rounds, stronger proposers achieve most of their accuracy improvements in the first round, while subsequent rounds primarily improve budget compliance (Appendix C.2, Figure 8).

Table 4: Turn-level learned allocator re-implementations on held-out retail tasks (3 seeds each).

| Allocator (Re-Impl.) | S0 | S1 | S2 | Gain (pp) | Cost | $>2\times$ |
|---|---|---|---|---|---|---|
| Confidence-Turn ($q{=}0.20$) | $2.6$ | $0.5$ | $4.6$ | $2.6\pm 2.1$ | $1.31\times$ | $0/3$ |
| Confidence-Turn ($q{=}0.425$, post hoc) | $9.2$ | $2.1$ | $7.7$ | $6.3\pm 3.8$ | $1.81\times$ | $0/3$ |
| BAAR-Turn (ModernBERT) | $5.1$ | $7.2^{\dagger}$ | $7.2$ | $6.5\pm 1.2$ | $1.83\times$ | $1/3$ |
| CPO-RL-Turn (primal-dual) | $11.8$ | $6.2$ | $2.6$ | $6.8\pm 4.7$ | $1.37\times$ | $0/3$ |

Gains in pp over each seed’s all-`low` root ($65$ held-out tasks $\times 3$ rollouts). $q{=}0.425$ bisected on search after viewing $q{=}0.20$ held-out results. †Seed 1 spent $1.74\times$ on search and $2.04\times$ on held-out.

We also compare against three reimplemented turn-level compute allocators calibrated on the same 50 search tasks (Table 4; Appendix C). Confidence-Turn uses token log probabilities, gaining $2.6\pm 2.1$ pp at $1.31\times$ tokens on its predefined grid ($q=0.20$) and $6.3\pm 3.8$ pp at $1.81\times$ under post hoc exploratory calibration ($q=0.425$). BAAR-Turn \[Jali et al., 2026, Zhang et al., 2026b\] trains ModernBERT on $2{,}400$ search episodes ($31{,}948$ turns) and gains $6.5\pm 1.2$ pp at $1.83\times$ tokens, with modest validation AUC ($0.58$–$0.60$) and one seed exceeding cap on held-out tasks ($2.04\times$). CPO-RL-Turn \[Yang et al., 2026, Zhai et al., 2026\] trains a primal-dual policy on $2{,}400$ search episodes per seed and gains $6.8\pm 4.7$ pp at $1.37\times$ tokens, though its three seeds collapse toward uniform medium, the initial policy, and uniform low rather than consistent state-dependent routing.

Two additional controls highlight the limits of automated routing: starting evolution from uniform medium effort degrades accuracy under both tested caps (Panel D, Table 2), and an offline TF-IDF opening-message classifier tracks the same cost–accuracy trend as uniform medium (Figure 6; Table 11). Thus, the main benefit of harness evolution in our setting is autonomously discovering and calibrating effective effort allocation without weight training, rather than surpassing uniform medium efficiency.

Additional analyses of candidate selection, domain transfer, and executor scope are reported in Appendices C.4 and D. Re-scoring eligible routers with $12$ rather than three search rollouts recovers $22\%$ of the remaining selection gap (Figures 9 and 14), while open-loop router search on $\tau$-bench airline reproduces both the held-out accuracy gains ($34/36$ beat root; $5.2\pm 5.1$ pp shipped) and budget violations ($27/36$ over cap) observed in retail. Uniform-effort probes on three additional executors (`Qwen3.8-27B`, `Inkling 2 Small`, and `gpt-oss-20b`; Table 15) show no statistically significant improvements from higher uniform effort, suggesting that adaptive effort routing requires an executor whose accuracy responds to increased reasoning compute.

## 7 Conclusion

Evaluating harness self-improvement on unseen tasks under a fixed token budget shows that both the choice of harness modifications and runtime cost control are decisive. Unlike prompt and guard edits, executable compute routers generalize across proposer models, yet open-loop generation routinely exceeds the budget. *Measure-then-revise* addresses this bottleneck by feeding per-tier token measurements back into revision, eliminating nearly all budget violations, halving wasted search evaluations, and yielding consistent held-out gains across seeds. Because evolved routers match rather than surpass uniform medium effort, harness evolution here acts primarily as automated, training-free compute calibration, motivating extensions to multi-model routing and stronger test-time-scaling executors.

## References

- Agrawal et al. (2026) L. A. Agrawal, S. Tan, D. Soylu, N. Ziems, R. Khare, K. Opsahl-Ong, A. Singhvi, H. Shandilya, M. J. Ryan, M. Jiang, et al. GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2507.19457)
- Brown et al. (2024) B. Brown, J. Juravsky, R. Ehrlich, R. Clark, Q. V. Le, C. Ré, and A. Mirhoseini Large Language Monkeys: Scaling Inference Compute with Repeated Sampling. arXiv preprint arXiv:2407.21787. [Link](https://arxiv.org/abs/2407.21787)
- Chen et al. (2026) Z. Chen, D. Zhu, and L. N. Zheng Auditing the Product, Not the Recursion: The Evaluation Evidence Behind Recursive Self-Improvement Claims. arXiv preprint arXiv:2610.27610. [Link](https://arxiv.org/abs/2610.27610)
- Cheng et al. (2024) C. Cheng, A. Nie, and A. Swaminathan Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMs. In Advances in Neural Information Processing Systems (NeurIPS), [Link](https://arxiv.org/abs/2406.16218)
- Ding et al. (2026a) T. Ding, Y. Tong, M. Yang, F. Jiang, L. Yang, and B. Yu Re-executing Coding-Agent Evaluations: Unchanged Decisions and Unresolved Policy Risk. arXiv preprint arXiv:2610.14460. [Link](https://arxiv.org/abs/2610.14460)
- Ding et al. (2026b) W. Ding, Q. Lu, C. Yu, S. Li, S. Jin, X. Liu, Z. Shi, and G. Durrett Harness-Delta Attribution: Dissecting Gains From Harness Evolution. arXiv preprint arXiv:2610.22466. [Link](https://arxiv.org/abs/2610.22466)
- Fernando et al. (2024) C. Fernando, D. Banarse, H. Michalewski, S. Osindero, and T. Rocktäschel Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolution. In International Conference on Machine Learning (ICML), [Link](https://arxiv.org/abs/2309.16797)
- Gema et al. (2025) A. P. Gema, A. Hägele, R. Chen, A. Arditi, J. Goldman-Wetzler, K. Fraser-Taliente, H. Sleight, L. Petrini, J. Michael, B. Alex, P. Minervini, Y. Chen, J. Benton, and E. Perez Inverse Scaling in Test-Time Compute. arXiv preprint arXiv:2507.14417. [Link](https://arxiv.org/abs/2507.14417)
- Guo et al. (2024) Q. Guo, R. Wang, J. Guo, B. Li, K. Song, X. Tan, G. Liu, J. Bian, and Y. Yang EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizers. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2309.08532)
- He et al. (2026) L. He, J. Wen, H. Wang, Z. He, Y. Chen, K. Cui, and X. Wang Not All Errors Are Equal: Consequence-Aware Reasoning Compute Allocation. arXiv preprint arXiv:2606.04402. [Link](https://arxiv.org/abs/2606.04402)
- He (2026) R. He Does Failure Feedback Direct Agent Self-Modification?. arXiv preprint arXiv:2610.14662. [Link](https://arxiv.org/abs/2610.14662)
- Hong et al. (2026) Z. Hong, Q. Wang, H. Wei, A. Wu, D. Ying, M. Kong, B. Liu, and C. Luo HarnessFlow: MCTS-Guided Harness Optimization for LLM Agents. arXiv preprint arXiv:2611.06254. [Link](https://arxiv.org/abs/2611.06254)
- Hu et al. (2025) S. Hu, C. Lu, and J. Clune Automated Design of Agentic Systems. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2408.08435)
- Huang et al. (2025) A. Huang, A. Block, D. J. Foster, D. Rohatgi, C. Zhang, M. Simchowitz, J. T. Ash, and A. Krishnamurthy Self-Improvement in Language Models: The Sharpening Mechanism. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2412.01951)
- Jali et al. (2026) N. Jali, A. Nayak, and G. Joshi Not All Turns Are Equally Hard: Adaptive Thinking Budgets For Efficient Multi-Turn Reasoning in Agents. arXiv preprint arXiv:2604.05164. [Link](https://arxiv.org/abs/2604.05164)
- Jiang et al. (2026) Y. Jiang, C. Xu, F. Gao, and L. Zhao HarnessMM: Recursive Self-Improvement for Harness Token Efficiency. arXiv preprint arXiv:2610.32813. [Link](https://arxiv.org/abs/2610.32813)
- Kapoor et al. (2024) S. Kapoor, B. Stroebl, Z. S. Siegel, N. Nadgir, and A. Narayanan AI Agents That Matter. Transactions on Machine Learning Research (TMLR). [Link](https://arxiv.org/abs/2407.01502)
- Kassenaar et al. (2026) G. Kassenaar, Z. Yang, and V. François-Lavet Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation. arXiv preprint arXiv:2608.20256. [Link](https://arxiv.org/abs/2608.20256)
- Khattab et al. (2024) O. Khattab, A. Singhvi, P. Maheshwari, Z. Zhang, K. Santhanam, S. Vardhamanan, S. Haq, A. Sharma, T. T. Joshi, H. Moazam, et al. DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2310.03714)
- Lee and Choi (2026) W. Lee and J. Choi Rethinking Inference-Time Scaling in Local Computer-Use Agents: Failure Modes and Compute Tradeoffs. arXiv preprint arXiv:2607.28573. [Link](https://arxiv.org/abs/2607.28573)
- Lee et al. (2026) Y. Lee, R. Nair, Q. Zhang, K. Lee, O. Khattab, and C. Finn Meta-Harness: End-to-End Optimization of Model Harnesses. arXiv preprint arXiv:2603.28052. [Link](https://arxiv.org/abs/2603.28052)
- Ling et al. (2026) C. Ling, P. Chen, A. Guan, J. Qu, S. A. Akbar, M. Gopinathan, and E. Cornejo PACE: Two-Timescale Self-Evolution for Small Language Model Agents. arXiv preprint arXiv:2605.23019. [Link](https://arxiv.org/abs/2605.23019)
- Luo et al. (2026) H. Luo, Y. Huang, S. Luo, F. Liu, L. Li, Z. Hu, J. Feng, and Q. Liu Harness-Aware Self-Evolving: Co-Evolving Model Weights, Harness, and Task Solutions. arXiv preprint arXiv:2607.03935. [Link](https://arxiv.org/abs/2607.03935)
- Madiraju and Madiraju (2026) M. B. Madiraju and M. S. P. Madiraju AgentSLABench: Evaluating and Benchmarking Agentic Systems Under Resource Constraints. arXiv preprint arXiv:2608.00805. [Link](https://arxiv.org/abs/2608.00805)
- Miller (2024) E. Miller Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations. arXiv preprint arXiv:2411.00640. [Link](https://arxiv.org/abs/2411.00640)
- Opsahl-Ong et al. (2024) K. Opsahl-Ong, M. J. Ryan, J. Purtell, D. Broman, C. Potts, M. Zaharia, and O. Khattab Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programs. In Conference on Empirical Methods in Natural Language Processing (EMNLP), [Link](https://arxiv.org/abs/2406.11695)
- Robeyns et al. (2025) M. Robeyns, M. Szummer, and L. Aitchison A Self-Improving Coding Agent. arXiv preprint arXiv:2504.15228. [Link](https://arxiv.org/abs/2504.15228)
- Sah et al. (2026) C. K. Sah, L. Zhang, and X. Lian Beyond Self-Knowledge: Propagating Uncertainty Across Reasoning and Retrieval in LLMs. arXiv preprint arXiv:2607.25600. [Link](https://arxiv.org/abs/2607.25600)
- Sengupta and Wang (2026) B. Sengupta and J. Wang HARBOR: Automated Harness Optimization. arXiv preprint arXiv:2604.20938. [Link](https://arxiv.org/abs/2604.20938)
- Shang et al. (2026) Z. Shang, Y. Huo, M. Gong, A. Yan, Z. Qu, J. Dong, B. K. H. Low, C. Wu, and Z. Dai MESH-Harness: Self-Improving Agent Harnesses via Bandit-Guided Compositional Evolution. arXiv preprint arXiv:2610.05300. [Link](https://arxiv.org/abs/2610.05300)
- Snell et al. (2025) C. Snell, J. Lee, K. Xu, and A. Kumar Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2408.03314)
- Song et al. (2025) Y. Song, H. Zhang, C. Eisenach, S. Kakade, D. Foster, and U. Ghai Mind the Gap: Examining the Self-Improvement Capabilities of Large Language Models. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2412.02674)
- Tian et al. (2026) Y. Tian, B. Hu, H. Wang, B. Lu, and F. Wu Harness Evolution Hits a Ceiling: When Weight Training Should Begin. arXiv preprint arXiv:2610.11655. [Link](https://arxiv.org/abs/2610.11655)
- Wang et al. (2026a) W. Wang, P. Piekos, L. Nanbo, F. Laakom, Y. Chen, M. Ostaszewski, M. Zhuge, and J. Schmidhuber Huxley-Gödel Machine: Human-Level Coding Agent Development by an Approximation of the Optimal Self-Improving Machine. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2510.21614)
- Wang et al. (2026b) Y. Wang, H. Zhu, Z. Hu, Y. Yuan, Z. Chen, S. Senthil, H. Hajishirzi, Y. Tsvetkov, N. A. Smith, P. Dasigi, and T. Xiao Rethinking the Evaluation of Harness Evolution for Agents. arXiv preprint arXiv:2607.12227. [Link](https://arxiv.org/abs/2607.12227)
- Wei et al. (2026) C. Wei, H. Guan, M. Zhu, K. Zhou, J. He, X. Zhou, H. Chen, and Y. Shen Self-Evolving Agent Harness. arXiv preprint arXiv:2610.18813. [Link](https://arxiv.org/abs/2610.18813)
- Xie et al. (2026) Z. Xie, C. Xu, Y. Jiang, and L. Zhao Predict Before You Modify: Learning Improvement Dynamics for Self-Evolving Agents. arXiv preprint arXiv:2610.13991. [Link](https://arxiv.org/abs/2610.13991)
- Yang et al. (2024) C. Yang, X. Wang, Y. Lu, H. Liu, Q. V. Le, D. Zhou, and X. Chen Large Language Models as Optimizers. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2309.03409)
- Yang et al. (2026) J. Yang, B. Hou, W. Wei, Y. Bao, and S. Chang Ares: Adaptive Reasoning Effort Selection for Efficient LLM Agents. arXiv preprint arXiv:2603.07915. [Link](https://arxiv.org/abs/2603.07915)
- Yao et al. (2025) S. Yao, N. Shinn, P. Razavi, and K. Narasimhan $\tau$-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2406.12045)
- Yin et al. (2025) X. Yin, X. Wang, L. Pan, L. Lin, X. Wan, and W. Y. Wang Gödel Agent: A Self-Referential Agent Framework for Recursive Self-Improvement. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), [Link](https://arxiv.org/abs/2410.04444)
- Yuksekgonul et al. (2025) M. Yuksekgonul, F. Bianchi, J. Boen, S. Liu, P. Lu, Z. Huang, C. Guestrin, and J. Zou Optimizing generative AI by backpropagating language model feedback. Nature 639, pp. 609–616. [Link](https://arxiv.org/abs/2406.07496)
- Zelikman et al. (2024) E. Zelikman, E. Lorch, L. Mackey, and A. T. Kalai Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generation. In First Conference on Language Modeling (COLM), [Link](https://arxiv.org/abs/2310.02304)
- Zhai et al. (2026) Z. Zhai, B. Li, B. Xiao, M. Li, and X. Wang Adaptive Test-Time Compute Allocation for Reasoning LLMs via Constrained Policy Optimization. arXiv preprint arXiv:2604.14853. [Link](https://arxiv.org/abs/2604.14853)
- Zhang et al. (2026a) A. L. Zhang, S. Chakraborty, and O. Khattab Language Model Harnesses Can Be Compositional Generalizers. arXiv preprint arXiv:2611.28298. [Link](https://arxiv.org/abs/2611.28298)
- Zhang et al. (2026b) C. Zhang, M. Xia, X. Zhang, D. Madrigal, A. Mallick, S. Kessler, V. Ruehle, and S. Rajmohan Budget-Aware Agentic Routing via Boundary-Guided Training. arXiv preprint arXiv:2602.21227. [Link](https://arxiv.org/abs/2602.21227)
- Zhang et al. (2026c) J. Zhang, S. Hu, C. Lu, R. Lange, and J. Clune Darwin Gödel Machine: Open-Ended Evolution of Self-Improving Agents. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2505.22954)
- Zhang et al. (2026d) J. Zhang, B. Zhao, W. Yang, J. Foerster, J. Clune, M. Jiang, S. Devlin, and T. Shavrina Hyperagents. arXiv preprint arXiv:2603.19461. [Link](https://arxiv.org/abs/2603.19461)
- Zhang et al. (2025) J. Zhang, J. Xiang, Z. Yu, F. Teng, X. Chen, J. Chen, M. Zhuge, X. Cheng, S. Hong, J. Wang, et al. AFlow: Automating Agentic Workflow Generation. In International Conference on Learning Representations (ICLR), [Link](https://arxiv.org/abs/2410.10762)
- Zhang et al. (2026e) J. Zhang, S. Liu, H. Wang, T. Lin, Y. Li, and D. Tao Causal Improvement Graph for Agentic Harness Optimization. arXiv preprint arXiv:2610.05039. [Link](https://arxiv.org/abs/2610.05039)

## Appendix A Experimental Setup, Infrastructure, and Complete Experiment Ledger

### A.1 Serving Infrastructure, Search Configuration, and Validity Checks

In the main experiments, both the executor and the customer simulator use the open-weight model `openai/gpt-oss-120b`, served via vLLM on a single NVIDIA H100 80 GB GPU.

We launch vLLM using the following configuration:

We set `VLLM_USE_DEEP_GEMM=0` and `VLLM_USE_FLASHINFER_SAMPLER=0`, with concurrency ranging from 24 to 32.

Our execution wrapper specifies the reasoning effort for each executor call. The executor uses a temperature of $0.0$ and a maximum of $4{,}096$ output tokens per turn. The customer simulator uses a temperature of $1.0$.

In the standard retail configuration, each independent loop starts from a root harness and runs four search rounds, generating three candidates per round. Including the root, a complete loop evaluates 13 harnesses.

Each harness is evaluated on 150 search episodes and 195 held-out episodes, resulting in 345 conversations per harness and $4{,}485$ conversations per complete loop. These counts exclude additional search episodes used to evaluate rejected or replaced drafts.

We perform four automated validity checks on all runs:

1. Verify that each evaluated harness contains the expected number of search and held-out episodes.
2. Confirm that search and held-out task IDs do not overlap.
3. Check for unhandled Python exceptions.
4. Verify that evaluated, rejected, and revised routers are archived together with their per-episode token counts.

Across the GLM-5.3 measure-then-revise runs, the numbers of episode errors are $0,0,1,0,1$, and $0$, respectively. No router exceptions occur. Across all three DeepSeek measure-then-revise runs, we observe neither episode errors nor router exceptions. Transient HTTP 500 harmony-parser responses from `gpt-oss-120b` are retried automatically; any unhandled episode exception is retained in the fixed evaluation denominator ($150$ search or $195$ held-out episodes) with reward $0.0$ rather than discarded or redrawn.

#### A.1.1 Search Overhead, Evaluation Reuse, and Token Accounting

Across the 72 GLM-5.3 measure-then-revise candidates, 64 initial drafts trigger budget revision. In total, 96 draft evaluations trigger revision: 81 during the initial single-rollout screen and 15 during the full-search evaluation at the $0.95B$ threshold.

Of these revision attempts, 94 produce valid revisions across 63 candidates. In the remaining two cases, the proposer does not return a valid revision, and the previously evaluated router is retained.

Measure-then-revise uses $6{,}300$ search episodes to evaluate drafts that trigger revision, compared with $13{,}500$ under discard-and-resample, a reduction of $53\%$. Of these $6{,}300$ episodes, 100 are reused in subsequent evaluation. Excluding reused episodes increases the reduction to $54\%$.

Across GLM-5.3 seeds, the wall-clock time spent evaluating over-budget drafts decreases from $23.6$ to $13.7$ hours, a reduction of $42\%$.

In the three DeepSeek V4.1 Flash measure-then-revise runs, the method performs 43 revisions, including 34 triggered by the initial screen and nine triggered by the full-search threshold. These evaluations consume $3{,}050$ search episodes. All 36 final candidates satisfy the budget, and 28 outperform their root harnesses.

Although our computational budget is defined using executor output tokens, we also examine prompt tokens and total token consumption. The selected routers generated by stronger proposers consume $1.03$–$1.33\times$ the root harness’s prompt tokens and $1.04$–$1.35\times$ its total tokens, with a mean total-token multiplier of $1.21\times$. The relative method rankings remain unchanged under this alternative accounting.

### A.2 Proposer Models and Reproduction Instructions

Table 5 reports the exact proposer model identifiers, serving providers, reasoning-effort configurations, maximum output token limits, number of independent seeds, and token accounting notes. All proposer models use a temperature of $1.0$.

Table 5: Summary of proposer endpoints, serving paths, decoding overrides (all temp $1.0$), and token accounting across settings.

| Proposer Label | Exact Model Identifier | Serving Path | Effort | `max_tokens` | Seeds | Token / Runtime Accounting |
|---|---|---|---|---|---|---|
| GPT-OSS-120B (self) | `openai/gpt-oss-120b` | H100 (vLLM) | `medium` | $12{,}000$ | $3$ | $\sim\!11$–$15$ loop wall-clock h/seed |
| Gemini 4 Argon | `google/gemini-4-argon` | Vertex AI | default | $12{,}000$ | $3$ | standard completion accounting |
| Gemini 3.8 Flash | `google/gemini-3.8-flash` | Vertex AI | default | $32{,}000$ | $3$ | $\sim\!17.9\text{k}$ thinking tok/call |
| DeepSeek V4.1 Flash (Vertex) | `deepseek-ai/deepseek-v4.1-flash-maas` | Vertex AI | default | $12{,}000$ | $3$ | $36$ $>150$-line drafts resampled |
| GLM-5.2 | `zai-org/glm-5.2-maas` | Vertex AI | default | $65{,}536$ | $3$ | reasoning included in completion tok |
| GLM-5.3 (discard) | `zai-org/GLM-5.3:peft:262144` | Tinker | `high` | $12{,}000$ | $6$ | $2.27\text{M}$ in / $2.95\text{M}$ out (eval+rej) |
| GLM-5.3 (revise) | `zai-org/GLM-5.3:peft:262144` | Tinker | `high` | $12{,}000$ | $6$ | $1.34\text{M}$ in / $1.90\text{M}$ out (eval incl. rev) |
| DeepSeek V4.1 Flash (revise) | `deepseek-ai/DeepSeek-V4.1-Flash:peft:262144` | Tinker | `low` | $40{,}000$ | $3$ | $386{,}637$ in / $777{,}758$ out (eval) |

#### A.2.1 Reproducing the GLM-5.3 Comparison

This comparison evaluates discard-and-resample and measure-then-revise using six independent loop seeds per method, with the executor, task splits, search configuration, and output-token budget held fixed.

**Step 1. Initialize the execution environment.**

Launch the executor and customer simulator using the vLLM configuration described in Appendix A.1 (endpoint , with ).

Configure the proposer environment:

**Step 2. Execute the independent search loops.**

Run both methods across six independent seeds, using the following shared configuration:

Append the appropriate argument for each budget handling method:

| Method | Additional argument |
|---|---|
| Discard-and-resample |  |
| Measure-then-revise |  |

**Step 3. Aggregate results and verify experimental accounting.**

After completing all runs, execute the following scripts to reproduce the aggregate results, task-paired comparisons, and search-overhead measurements:

### A.3 Complete Experiment Ledger

Table 6 summarizes all reported experimental settings, including the corresponding result files, evaluation splits, number of seeds, selected harness gains, task-paired statistics, candidate improvement rates, budget violations, and oracle gains.

Gains and oracle values are reported in decimal reward units. The task-paired statistic, $t_{\mathrm{task}}$, uses 65 paired tasks for retail, 30 for airline, and 115 for the original train-to-test experiments. The pooled statistic, $t_{\mathrm{pool}}$, treats task–seed combinations as paired observations.

Our analysis reports task-paired statistics alongside performance variability across independent loop seeds. GLM-5.3 archives store per-episode split logs enabling search-only eligibility $\mathcal{E}_{\mathcal{S}}$, whereas multi-proposer sweeps store aggregate episode token means and evaluate archive eligibility under $\mathcal{E}$; during online search, intermediate parent selection also referenced the aggregate $\mathcal{E}$ flag, with all $24/24$ intermediate parent choices and all $6/6$ final selections on GLM-5.3 measure-then-revise matching between $\mathcal{E}_{\mathcal{S}}$ and $\mathcal{E}$ ($20/24$ intermediate parents match under discard-and-resample).

Across the 75 full-loop runs, 66 evaluate 13 harnesses and the nine 400-word prose runs evaluate 12 ($66\times 13+9\times 12=966$ harnesses; $492{,}143$ conversations total including draft screening, allocator baselines, and re-scoring).

Table 6: Complete experiment ledger across all evaluated settings.

| Paper Label | Results File (`experiments/results/`) | Split | Seeds | $\Delta_{\mathrm{ship}}$ | $t_{\mathrm{task}}$ | $t_{\mathrm{pool}}$ | $\rho_{\mathrm{start}}$ | Over Cap | $\Delta_{\mathrm{all}}^{\star}$ / $\Delta_{\mathrm{elig}}^{\star}$ |
|---|---|---|---|---|---|---|---|---|---|
| 400w prose / transcript§ | `prose_400w_transcript.md` | train$\to$test | 3 (9) | $-0.006\pm 0.006$ | $-0.44$ | $-0.50$ | $6/33$ | $0/33$ | $0.003$ / $0.003$ |
| 150w prose / transcript§ | `prose_150w_transcript.md` | train$\to$test | 3 (6) | $-0.030\pm 0.004$ | $-1.57$ | $-1.80$ | $3/36$ | $0/36$ | $0.013$ / $0.013$ |
| 150w prose / diffs | `prose_150w_diff_train_test.md` | train$\to$test | 3 | $-0.003\pm 0.011$ | $-0.15$ | $-0.16$ | $14/36$ | $0/36$ | $0.036$ / $0.036$ |
| Prose + guard / diffs | `prose_guard_diff.md` | train$\to$test | 3 | $-0.007\pm 0.021$ | $-0.53$ | $-0.55$ | $3/36$ | $0/36$ | $0.003$ / $0.003$ |
| 150w prose / diffs ($50/65$) | `prose_150w_diff_retail.md` | $50/65$ test | 3 | $0.000\pm 0.049$ | $0.00$ | $0.00$ | $10/36$ | $0/36$ | $0.024$ / $0.024$ |
| 150w prose / contrast | `prose_150w_contrast.md` | $50/65$ test | 3 | $0.002\pm 0.016$ | $0.11$ | $0.09$ | $18/36$ | $0/36$ | $0.060$ / $0.060$ |
| GPT-OSS-120B; no cap control | `gpt_oss_no_cap.md` | $50/65$ test | 3 | $0.034\pm 0.064$ | $1.86$ | $1.94$ | $28/36$ | $27/36$ | $0.096$ / $0.056$ |
| GPT-OSS-120B; history + discard | `gpt_oss_discard.md` | $50/65$ test | 3 | $0.048\pm 0.013$ | $2.05$ | $2.34$ | $20/36$ | $8/36$ | $0.070$ / $0.053$ |
| Gemini 4 Argon | `gemini4_argon_discard.md` | $50/65$ test | 3 | $0.077\pm 0.060$ | $3.33$ | $3.32$ | $34/36$ | $21/36$ | $0.125$ / $0.111$ |
| Gemini 3.8 Flash | `gemini38_flash_discard.md` | $50/65$ test | 3 | $0.091\pm 0.056$ | $3.88$ | $4.25$ | $36/36$ | $26/36$ | $0.161$ / $0.125$ |
| DeepSeek V4.1 Flash | `deepseek_v41_discard.md` | $50/65$ test | 3 | $0.079\pm 0.024$ | $2.83$ | $3.71$ | $36/36$ | $21/36$ | $0.138$ / $0.109$ |
| GLM-5.2; history + discard | `glm52_discard.md` | $50/65$ test | 3 | $0.092\pm 0.062$ | $3.39$ | $3.67$ | $34/36$ | $19/36$ | $0.138$ / $0.123$ |
| GLM-5.2; history only | `glm52_history_only.md` | $50/65$ test | 3 | $0.046\pm 0.040$ | $1.66$ | $1.92$ | $34/36$ | $29/36$ | $0.137$ / $0.075$ |
| GLM-5.2; discard only | `glm52_discard_only.md` | $50/65$ test | 3 | $0.055\pm 0.031$ | $2.19$ | $2.57$ | $36/36$ | $27/36$ | $0.132$ / $0.070$ |
| GLM-5.2; airline | `glm52_airline_discard.md` | $20/30$ air. | 3 | $0.052\pm 0.051$ | $1.23$ | $1.62$ | $34/36$ | $27/36$ | $0.152$ / $0.081$ |
| GLM-5.3; discard (search cap⋆) | `glm53_discard.md` | $50/65$ test | 6 | $0.054\pm 0.064$ | $3.10$ | $3.59$ | $63/72$ | $38/72$ | $0.113$ / $0.097$ |
| GLM-5.3; discard (combined cap) | `glm53_discard.md` | $50/65$ test | 6 | $0.063\pm 0.071$ | $3.69$ | $4.27$ | $63/72$ | $43/72$ | $0.113$ / $0.090$ |
| GLM-5.3; revise (search cap⋆) | `glm53_revise.md` | $50/65$ test | 6 | $0.116\pm 0.029$ | $5.74$ | $7.59$ | $68/72$ | $2/72$ | $0.123$ / $0.117$ |
| GLM-5.3; revise (combined cap) | `glm53_revise.md` | $50/65$ test | 6 | $0.116\pm 0.029$ | $5.74$ | $7.59$ | $68/72$ | $4/72$ | $0.123$ / $0.117$ |
| DeepSeek V4.1 Flash; history + revise | `deepseek_v41_revise.md` | $50/65$ test | 3 | $0.074\pm 0.036$ | $2.70$ | $3.18$ | $28/36$ | $0/36$ | $0.118$ / $0.118$ |
| Uniform `medium` reference | `uniform_medium.md` | $65$ held-out | 3 | $0.091\pm 0.021$ | $3.23$ | $4.00$ | – | – | – |
| From `medium`; $1.2\times$ cap | `medium_cap_1p2x.md` | $50/65$ test | 3 | $-0.012\pm 0.021$ | $-1.04$ | $-1.04$ | $2/36$ | $12/36$ | $0.031$ / $0.000$ |
| From `medium`; $2.0\times$ cap | `medium_cap_2x.md` | $50/65$ test | 3 | $-0.050\pm 0.078$ | $-2.67$ | $-2.61$ | $6/36$ | $0/36$ | $0.009$ / $0.009$ |
| Confidence-Turn ($q{=}0.20$) | `learned_allocators.md` | $50/65$ test | 3 | $0.026\pm 0.021$ | – | – | – | $0/3$ | – |
| Confidence-Turn ($q{=}0.425$, post hoc) | `learned_allocators.md` | $50/65$ test | 3 | $0.063\pm 0.038$ | – | – | – | $0/3$ | – |
| BAAR-Turn (ModernBERT) | `learned_allocators.md` | $50/65$ test | 3 | $0.065\pm 0.012$ | – | – | – | $1/3$ | – |
| CPO-RL-Turn (primal-dual) | `learned_allocators.md` | $50/65$ test | 3 | $0.068\pm 0.047$ | – | – | – | $0/3$ | – |

Gains and root-inclusive oracles in decimal reward units. ⋆Search-only eligibility ($\hat{C}_{\mathcal{S}}\leq 2\hat{C}_{\mathcal{S}}(h_{0})$); GLM-5.3 “combined cap” rows evaluate the same 6 seeds retrospectively under $C(h)\leq 2C(h_{0})$. §Cohort totals in parentheses include reward-agnostic/blind control seeds ($9\times 12=108$ harnesses in `runs_idea1`; $6\times 13=78$ in `runs_idea1b`; $75$ loop runs and $966$ harnesses overall). $t_{\mathrm{task}}$: task-paired ($n{=}65$ retail, $30$ airline, $115$ train$\to$test); $t_{\mathrm{pool}}$: task$\times$seed pairs ($195$ for 3 seeds, $390$ for 6 seeds). For from-`medium` controls, candidate-only $\Delta_{\mathrm{cand}}^{\star}$ is $0.024/-0.043$ ($1.2\times$) and $-0.010/-0.010$ ($2.0\times$).

## Appendix B Router Interface, Revision Prompt, and Case Study

This appendix describes the compute router interface, the revision prompt used during budget calibration, and a representative example of how measure-then-revise modifies an expensive router while preserving its reasoning strategy.

### B.1 Compute Router Interface

The compute router controls the reasoning effort of the executor at two stages: before response generation and before tool execution. Table 7 summarizes the available reasoning levels, router inputs, return values, and validation requirements.

Table 7: Complete two-stage compute router interface, call-stage eligibility rules, and static AST validation on `gpt-oss-120b` (vLLM).

| Component | Specification |
|---|---|
| Effort tiers | `reasoning_effort` `\in\{\texttt{low},\texttt{medium},\texttt{high}\}` per call (temp $0$, `max_tokens` $4{,}096$). Root runs all-`low` ($\sim\!1.65\text{k}$ mean output tokens/episode; uniform `medium` $1.64\times$, uniform `high` $4.4\times$). |
| `turn stage` | Invoked before generation with `info` (`step`, `last_role`, `last_tool`, `last_content[:2000]`, `writes_done`, `errors_seen`, `n_tool_calls`) and mutable dict `ctx`; returns a tier string or `None` (keeping current default). |
| `call stage` | Invoked only when a `low` or `medium` turn emits a tool call (`name`, `args`, `effort` in `info`). Returning a strictly higher tier regenerates the turn once before tool execution; *both* the discarded attempt and the regenerated call count toward episode output tokens. |
| Validation | $\leq 150$ lines, valid Python AST and `route(stage, info, ctx)` signature; runtime exceptions fall back to the active tier. Routers have zero access to environment state, tool implementations, domain policy text, or evaluators. |

At the turn stage, the router receives information about the current conversation and assigns low, medium, or high reasoning effort. At the call stage, the router can request one higher-effort regeneration when a low- or medium-effort response contains a tool call.

Both the original and regenerated responses contribute to the episode’s output-token consumption. Router code is limited to 150 lines and is checked for valid Python syntax and function signature before evaluation. If a router raises an exception during execution, the executor retains its current reasoning effort.

### B.2 Exact Revision Prompt

When a candidate router exceeds the token budget after the first rollout (50 search episodes), or exceeds $95\%$ of the budget after full search evaluation (150 episodes), the loop constructs a revision prompt using measured costs from search episodes only.

The prompt includes the current router code, mean output tokens per conversation, token consumption and turn counts at each reasoning level, and the number of higher-effort regenerations.

The proposer is instructed to reduce token consumption toward $85\%$ of the budget while preserving the router’s original reasoning strategy.

The exact prompt used in our experiments is shown below.

> `You wrote the compute router below for a customer-service agent. It was just measured and it is OVER the token budget, so it cannot be selected. Revise it so that it fits the budget while keeping as much of its benefit as possible. {ROUTE_SPEC} # Your router {guard} # Measured cost of this router ({n_eps} conversations) - output tokens per conversation: {tok:.0f} = {ratio:.2f}x the budget of {cap:.0f}. Target: at most {target:.0f} tokens per conversation (0.85x the budget, to leave a margin). - per conversation, by effort: low: {turns_low} turns, {tok_low} tokens; medium: {turns_med} turns, {tok_med} tokens; high: {turns_high} turns, {tok_high} tokens - turns regenerated at a higher effort by the "call" stage (the cheaper attempt is paid for and discarded): {regen:.1f} per conversation Cut cost where it buys least: fewer turns at "high" (use "medium"), fewer regenerations, effort only on the turn types your router targets. Keep the idea of the router; do not fall back to all-low.`

### B.3 Case Study: Revising an Over-Budget Router

We illustrate the measure-then-revise process using Candidate 10 from GLM-5.3 Seed 2, which was ultimately selected by the harness evolution loop and achieved a held-out improvement of $12.3$ pp.

During the initial screening of 50 search conversations, the router consumes an average of $4{,}543$ output tokens per conversation, or $2.76\times$ the root harness’s mean of $1{,}645$ tokens. This exceeds the budget of $3{,}289$ tokens.

After receiving measured token consumption at each reasoning level, the proposer revises the router in a single attempt. The revised router makes four principal changes:

1. It replaces high-effort regeneration of write operations with medium-effort regeneration, and only regenerates responses initially produced at low effort.
2. It reserves high reasoning effort for requests involving three or more distinct actions, rather than using high effort for all multi-part requests.
3. It reduces reasoning effort after routine tool responses, including successful write operations and product catalog listings.
4. It preserves medium reasoning effort when interpreting order details, comparing product variants, and responding to tool errors.

Across its 345 evaluated conversations, the revised router consumes an average of $2{,}866$ output tokens per conversation, corresponding to $1.74\times$ the root harness’s mean token consumption. Its execution includes $2{,}597$ low-effort turns, $2{,}395$ medium-effort turns, $80$ high-effort turns, and $294$ regenerations.

The revised router satisfies the token budget and achieves a held-out gain of $12.3$ pp over the root harness.

The following unified diff shows the modifications between the initial draft and the revised router.

This example illustrates how measured runtime costs can guide targeted changes to an existing compute router. Rather than uniformly reducing reasoning effort, the revised router preserves medium-effort reasoning for selected operations while restricting more expensive high-effort generations.

## Appendix C Additional Experimental Results and Controls

Tables 8 and 9 provide the numerical results underlying Figures 5 and 7. Table 8 reports reasoning effort allocation, token consumption, and regeneration frequency across different router groups. Table 9 reports the frequency of different failure types on held-out tasks.

These analyses are descriptive and are based on the first three GLM-5.3 seeds.

Table 8: Per-conversation search effort allocation across GLM-5.3 router groups (seeds 0–2).

| Router Group ($n$) | Low Turns | Med Turns | High Turns | Tok*M* | Tok*H* | Regen / Conv | Mean Out Tok |
|---|---|---|---|---|---|---|---|
| All-low root ($3$) | $13.1$ | $0.0$ | $0.0$ | $0$ | $0$ | $0.00$ | $1{,}673$ |
| Revise: initial drafts ($33$) | $5.3$ | $6.7$ | $2.7$ | $1{,}454$ | $1{,}821$ | $1.10$ | $4{,}019$ |
| Revise: revised routers ($33$) | $6.5$ | $6.8$ | $0.8$ | $1{,}479$ | $541$ | $0.63$ | $2{,}915$ |
| Discard: survivors ($14$) | $9.2$ | $3.8$ | $1.5$ | $841$ | $977$ | $1.31$ | $3{,}028$ |
| Discard: over-cap ($22$) | $5.9$ | $6.3$ | $2.1$ | $1{,}332$ | $1{,}500$ | $0.86$ | $3{,}651$ |

Underlying values for Figure 5 ($50$ search episodes for Rollout-1 drafts, $150$ for full-search drafts and final candidates; descriptive). Per-tier tokens omit small unattributed overhead included in total output tokens.

Table 9: Automatic failure-tag counts on GLM-5.3 held-out episodes (seeds 0–2, $585$ conversations/group).

| Held-Out Outcome / Failure Tag | Root (All-`low`) | Shipped (Candidates 12, 5, 10) |
|---|---|---|
| Success rate | $0.383$ ($38.3\%$) | $0.485$ ($48.5\%$) |
| Failed conversations (of $585$) | $361$ | $301$ |
| Unneeded hand-off to a human | $135$ | $63$ |
| No write at all (one required) | $133$ | $74$ |
| Right tool, wrong arguments | $117$ | $109$ |
| Missing a required write | $82$ | $85$ |
| Extra write | $75$ | $70$ |
| Conversations without `get_user_details` (success rate there) | $150$ ($0.240$) | $95$ ($0.389$) |

Underlying values for Figure 7. Multi-label ground-truth write comparisons (descriptive; H100 runs only).

![Figure](figures/f7-fig-failures.svg)

Figure 7: Failure-tag counts on held-out tasks (GLM-5.3, seeds 0–2, 585 conversations/group). Multi-label comparison between all-`low` roots and shipped revised routers (Table 9).

### C.1 Alternative Candidate Selection Rules

We evaluate six alternative candidate ranking rules using the recorded search episodes from 12 independent runs across four proposer models. Each candidate is evaluated using 150 search episodes.

The standard selection rule ranks candidates by their mean search performance and achieves a held-out gain of $8.5$ pp. Combining candidate and parent scores, with weights of $0.7$ and $0.3$ respectively, reduces the gain to $8.1$ pp. Ranking candidates using a task-paired lower confidence bound achieves $8.5$ pp, while ranking by the minimum performance across three rollouts achieves $7.8$ pp.

Two alternative selection rules produce higher observed gains. Penalizing candidates by $0.05$ for each unit of the root-normalized token multiplier achieves $9.2$ pp. Ranking candidates by the median of their three rollout scores achieves $10.0$ pp and selects the best eligible router in three runs: Gemini 4 Argon Seed 0, Gemini 3.8 Flash Seed 0, and GLM-5.2 Seed 0.

These results suggest that alternative ranking rules may improve candidate selection. However, because the analysis is conducted retrospectively using existing evaluation records, further independent experiments are needed to establish whether these improvements generalize.

### C.2 Candidate Recovery, Search-Round Dynamics, and Gate Sensitivity

Figure 8 tracks shipped held-out gain and within-budget candidate survival across Rounds 0–4, illustrating how stronger proposers capture most held-out accuracy gains in Round 1 while subsequent rounds determine whether candidates remain within the $2\times$ token budget.

![Figure](figures/f8-fig-generations.svg)

Figure 8: Progress across search rounds and cap survival ($\pm 1\text{ SE}$ across seeds). (a) Shipped held-out gain across Rounds 0–4. (b) Share of candidates within the $2\times$ cap per round.

We analyze the generation and evaluation history of 144 candidates across the four Vertex AI open-loop proposer settings.

Only 22 of 144 initial drafts ($15.3\%$) satisfy the search token budget. Of these, 18 remain within the budget after full evaluation. Discard-and-resample recovers an additional 39 candidates, increasing the total number of budget-eligible candidates to 57 of 144 ($39.6\%$).

Nine of the 12 selected routers originate from replacement drafts. Including these candidates increases the selected harnesses’ mean held-out gain from $5.0$ to $8.5$ pp.

Across all 66 budget-eligible retail candidates included in the repair-bias analysis, the 45 candidates recovered through replacement achieve a mean held-out gain of $7.5\pm 4.8$ pp. The 21 candidates that satisfy the budget on their first attempt achieve $7.1\pm 3.3$ pp. The correlations between search and held-out performance are $0.10$ and $-0.25$, respectively.

The observed mean gains are similar, suggesting that recovering initially expensive candidates does not necessarily reduce their held-out performance.

Table 10 presents a retrospective sensitivity analysis of two measure-then-revise parameters: the maximum number of revision attempts, $K$, and the full-search revision threshold, $\gamma_{\mathrm{trig}}$.

For the revision-limit analysis, we examine recorded draft histories and determine what the budget violation rate would have been if the revision process had stopped earlier; on GLM-5.3, combined-cost violations decrease from $86.1\%$ ($K=0$) to $31.9\%$, $9.7\%$, and $5.6\%$ across $K\in\{1,2,3\}$ ($83.3\%$ to $0.0\%$ on DeepSeek). For intermediate drafts without held-out evaluations, budget status is determined using measured search costs.

For the revision-threshold analysis, we examine all 144 evaluated GLM-5.3 routers and measure how frequently candidates that satisfy a given search threshold subsequently exceed the $2\times$ combined-cost budget: applying $\gamma_{\mathrm{trig}}=0.95B$ reduces post-search budget drift from $11.9\%$ ($\gamma_{\mathrm{trig}}=1.00B$) to $3.3\%$, while the single-rollout screen achieves $92.7\%$ precision ($38/41$) relative to the full-search trigger.

These analyses quantify the trade-off between revision overhead, candidate eligibility, and the risk of exceeding the budget during full evaluation.

Table 10: Measure-then-revise gate sensitivity across (a) revision limit $K$ and (b) full-search trigger $\gamma_{\mathrm{trig}}$.

**(a) Revision limit $K$ across recorded draft chains Revision Limit $K$ GLM-5.3 Over Cap DeepSeek Over Cap GLM-5.3 Revision Eps $K=0$ (no revision) $62/72$ ($86.1\%$) $30/36$ ($83.3\%$) $50$ $K=1$ $23/72$ ($31.9\%$) $6/36$ ($16.7\%$) $3{,}950$ $K=2$ $7/72$ ($9.7\%$) $1/36$ ($2.8\%$) $6{,}000$ $K=3$ (default) $4/72$ ($5.6\%$) $0/36$ ($0.0\%$) $6{,}300$**

**(b) Full-search trigger $\gamma_{\mathrm{trig}}$ across all $144$ evaluated GLM-5.3 routers Trigger Threshold $\gamma_{\mathrm{trig}}$ Search-Passing Routers All-Episode Drift ($>2\times$) $\gamma_{\mathrm{trig}}=0.90$ ($\leq 1.80\times$ root) $53/144$ $0/53$ ($0.0\%$) $\gamma_{\mathrm{trig}}=0.95$ ($\leq 1.90\times$, ours) $90/144$ $3/90$ ($3.3\%$) $\gamma_{\mathrm{trig}}=0.98$ ($\leq 1.96\times$ root) $96/144$ $4/96$ ($4.2\%$) $\gamma_{\mathrm{trig}}=1.00$ ($\leq 2.00\times$, unbuffered) $109/144$ $13/109$ ($11.9\%$)** In (a), counterfactual stopping at $K<n_{\mathrm{trims}}$ evaluates cap status from draft $K$’s measured search cost; at $K=0$, $50$ episodes reflects one draft retained when revision returned empty. In (b), post-search drift pools all $144$ evaluated GLM-5.3 routers across discard-and-resample and measure-then-revise.

### C.3 Turn-Level Compute Allocators and Additional Controls

All three turn-level allocator reimplementations use the same H100 vLLM executor, `gpt-oss-120b`, and the same $50/65$ retail task partition generated using seed 4321.

Each allocator targets $1.80\times$ the root harness’s output-token consumption during calibration, with an admissible search cost of at most $1.84\times$. Held-out rollout seeds are defined as $s\times 100{,}000+\{1,2,3\}$, and evaluations are paired with the corresponding all-low root harness.

No conversation errors or router exceptions occur during these held-out evaluations. All executor computation runs on the self-hosted vLLM server.

#### C.3.1 Confidence-Based Turn-Level Routing

The Confidence-Turn-style allocator estimates uncertainty using the mean negative token log probability of each low-effort generation. When the uncertainty score exceeds a calibrated threshold, the response is regenerated once at medium effort. Both generations contribute to the episode’s token consumption.

We evaluate five predefined search quantiles: $q\in\{0.20,0.35,0.50,0.65,0.80\}$.

Their corresponding search accuracy and token multipliers are $0.327/1.24\times$, $0.313/1.68\times$, $0.393/1.90\times$, $0.367/2.16\times$, and $0.353/2.34\times$.

Under the predefined calibration rule, $q=0.20$ is selected, achieving a held-out gain of $2.6\pm 2.1$ pp at $1.31\times$ the baseline output-token consumption.

After observing the initial held-out results, we conduct an additional exploratory search calibration between $q=0.35$ and $q=0.50$. The resulting threshold, $q=0.425$, achieves search accuracy of $0.327$ at $1.79\times$ tokens and a held-out gain of $6.3\pm 3.8$ pp at $1.81\times$ tokens.

We report this additional result separately because the calibration procedure was motivated by the initial held-out observations.

#### C.3.2 Boundary-Aware Turn-Level Routing

The BAAR-Turn-style allocator fine-tunes `ModernBERT-base` using $2{,}400$ search episodes with randomly assigned reasoning levels, comprising $31{,}948$ turns.

Ten of the 50 search tasks are reserved for validation. Across three seeds, the success prediction model achieves validation AUC values of $0.595$, $0.579$, and $0.589$. The corresponding token prediction mean absolute errors are $820$, $800$, and $800$ tokens.

The allocator selects reasoning levels by maximizing predicted task success minus a token cost penalty:

$$
\arg\max\left[P(\mathrm{success})-\lambda\cdot\mathrm{kTokens}\right].
$$

The penalty coefficient $\lambda$ is calibrated toward the $1.80\times$ token target using at most six search evaluations per seed.

One seed consumes $1.74\times$ the baseline tokens during search but increases to $2.04\times$ on held-out tasks. The other two seeds remain eligible and achieve held-out gains of $5.1$ and $7.2$ pp.

#### C.3.3 Reinforcement Learning-Based Compute Allocation

The CPO-RL-Turn-style allocator uses a $768$–$64$–$3$ multilayer perceptron over frozen `ModernBERT-base` embeddings. The policy is trained using primal-dual REINFORCE, with a standardized episode-return baseline and a token constraint of $1.80\times$.

Each seed uses $2{,}400$ search episodes, organized into 16 batches of 150 episodes.

The three seeds produce different allocation strategies:

- Seed 0 assigns approximately $96\%$ of turns to medium effort and achieves a held-out gain of $11.8$ pp at $1.56\times$ tokens.
- Seed 1 converges toward lower reasoning effort, but the selected policy is the initial untrained policy. It achieves $6.2$ pp at $1.54\times$ tokens.
- Seed 2 selects an almost entirely low-effort policy, achieving $2.6$ pp at $1.01\times$ tokens.

The improvement observed in Seed 2 is consistent with variability between repeated executions of the all-low baseline rather than a substantial change in reasoning allocation.

These results indicate that the learned policies do not consistently discover state-dependent reasoning strategies under the evaluated training configuration.

#### C.3.4 Offline Task-Level Routing

We evaluate whether reasoning effort can be allocated at the task level using only the customer’s opening message.

Across nine root rollouts per task, uniform low effort achieves an accuracy of $39.1\%$, while uniform medium effort achieves $48.2\%$. Medium effort outperforms low effort on 26 of the 50 search tasks.

Using these task-level outcomes, we train an L2-regularized logistic regression classifier on TF-IDF features extracted from opening messages.

With regularization parameter $C=0.1$, the classifier assigns medium effort to 64 of 65 held-out tasks, achieving $9.1$ pp at $1.63\times$ tokens.

At $C=1.0$, it assigns medium effort to 41 tasks and achieves $5.5$ pp at $1.40\times$ tokens. At $C=10.0$, it assigns medium effort to 39 tasks and achieves $5.5$ pp at $1.39\times$ tokens.

For comparison, an oracle constructed using observed outcomes on the same 65 evaluation tasks assigns medium effort to 27 tasks, achieving $12.5$ pp at $1.23\times$ tokens (Table 11).

This oracle represents a retrospective reference rather than a deployable task-level routing policy.

Table 11: Offline task-level routing on the 65 held-out tasks (trained on opening user messages across 50 search tasks; 9 root rollouts/tier).

| Task-Level Policy | Held-Out | Gain vs. Low (pp) | Cost | Med. Tasks |
|---|---|---|---|---|
| All-`low` (roots) | $0.391$ | $0.0$ | $1.00\times$ | $0/65$ |
| Learned logistic ($C{=}1.0$) | $0.446$ | $5.5$ | $1.40\times$ | $41/65$ |
| Learned logistic ($C{=}0.1$) | $0.482$ | $9.1$ | $1.63\times$ | $64/65$ |
| All-`medium` (roots) | $0.482$ | $9.1$ | $1.65\times$ | $65/65$ |
| In-sample task oracle | $0.516$ | $12.5$ | $1.23\times$ | $27/65$ |

#### C.3.5 Additional Mechanism Controls

We conduct additional experiments to determine whether simpler modifications can reproduce the improvements achieved by compute routing.

**Event routers.** Five Python routers escalate reasoning effort upon write operations, tool errors, conditional user requests, catalog reads, or user turns. None yields substantial held-out gains (the strongest achieves $1.0\pm 1.8$ pp), as escalating isolated triggers misses multi-step order lookups and unnecessary transfers to a human agent.

**Human hand-off interception.** Across 345 test episodes, blocking `transfer_to_human_agents` up to three times reduces accuracy from $35.1\%$ to $31.6\%$. Among the 61 affected tasks, accuracy decreases from $28.4\%$ to $21.3\%$. Inspection of root trajectories shows that 70 of 86 transfers follow explicit customer escalation requests.

**Fixed information retrieval.** In a separate evaluation using 195 held-out episodes per setting, uniform low effort achieves $39.5\%$ accuracy at $1{,}542$ output tokens per episode, while uniform medium achieves $48.7\%$ at $2{,}806$ tokens. Prefetching customer details achieves $42.1\%$ accuracy at $1.10\times$ the low-effort token consumption.

**Early-turn reasoning.** Restricting medium reasoning effort to early turns achieves $37.4\%$ accuracy at $1.15\times$ tokens.

Additional search-stage variants that prefetch user or order information achieve accuracies of $30.7\%$ and $28.7\%$, respectively.

These controls do not reproduce the performance of uniform medium effort and suggest that the observed routing improvements cannot be explained solely by these individual modifications.

### C.4 Additional Ablations and Rollout-Scaling Selection Analysis

Table 12 reports the individual effects of candidate cost history and discard filtering in GLM-5.2 experiments, and Table 13 summarizes the prompt-guideline and guard experiments.

Accurately ranking candidate harnesses remains challenging because of variability in task outcomes. Among budget-eligible routers, search scores obtained from 150 episodes show low correlation with scores obtained from independent search rollouts ($r=0.14$; Figure 9a).

![Figure](figures/f9-fig-selection.svg)

Figure 9: Selection noise and rollout scaling. (a) Original vs. fresh search scores across eligible routers. (b) Held-out gain ($\pm 1\text{ SE}$ across seeds) under $3$ vs. $12$ search rollouts alongside eligible oracles.

To examine whether additional rollouts improve candidate selection, we reevaluate 57 budget-eligible routers from four proposer settings using nine independent search rollouts per task (Figure 9b, Table 14). Combining the original three rollouts with nine additional rollouts (12 rollouts total) increases the mean selected held-out gain from $8.5$ to $9.2$ pp, compared with an eligible oracle of $11.7$ pp, closing approximately $22\%$ of the selection gap. Ranking candidates using only the nine additional rollouts achieves $9.5$ pp.

In a separate comparison, GLM-5.3 measure-then-revise selects routers whose mean performance across six seeds is within $0.1$ pp of the eligible oracle ($11.6\pm 2.9$ pp versus $11.7\pm 2.8$ pp). Reevaluating 35 eligible routers from the first three seeds using three additional search rollouts per task leaves the selected routers unchanged whether ranking uses the original rollouts, the additional rollouts, or all six rollouts (Table 14); the remaining three seeds contain no ties at the highest search score and are not included in this re-scoring experiment. Given that differences in task difficulty account for $69\%$ of episode-level variance, increasing the number of distinct search tasks may be more beneficial than repeatedly evaluating the same tasks, though further experiments are required to establish this.

Table 12: Single-mechanism ablations (GLM-5.2, 3 seeds each).

| Budget Mechanism | Shipped Gain (pp) | Over Cap | $\rho_{\mathrm{start}}$ | Elig. Oracle (pp) |
|---|---|---|---|---|
| History + discard | $9.2\pm 6.2$ | $19/36$ | $34/36$ | $12.3\pm 3.6$ |
| History only | $4.6\pm 4.0$ | $29/36$ | $34/36$ | $7.5\pm 1.9$ |
| Discard only | $5.5\pm 3.1$ | $27/36$ | $36/36$ | $7.0\pm 3.3$ |

Table 13: Prose guideline and blocking-guard settings on $\tau$-bench retail (`gpt-oss-120b`; 3 seeds each). None yields positive transfer.

| Edit Space / Feedback | Split | Shipped $\Delta_{\mathrm{ship}}$ (pp) | $\bar{\tau}_{\mathrm{step}}$ (pp) |
|---|---|---|---|
| 400w prose / failed transcripts | train $\to$ test | $-0.6\pm 0.6$ | $-3.6$ |
| 150w prose / failed transcripts | train $\to$ test | $-3.0\pm 0.4$ | $-1.7$ |
| 150w prose / write-action diffs | train $\to$ test | $-0.3\pm 1.1$ | $0.0$ |
| 150w prose + guard / diffs | train $\to$ test | $-0.7\pm 2.1$ | $-4.4$ |
| 150w prose / write-action diffs | matched $50/65$ | $0.0\pm 4.9$ | $-1.6$ |
| 150w prose / contrastive pairs | matched $50/65$ | $0.2\pm 1.6$ | $-0.8$ |

Table 14: Search re-score checks across eligible routers (decimal reward units).

**(a) Open-loop discard-and-resample across four proposers ($57$ within-cap routers) Selection Rule GLM-5.2 DeepSeek V4.1 Gemini 3.8 Gemini 4 Argon Mean Original 3 rollouts $0.092$ $0.079$ $0.091$ $0.077$ $0.085$ 9 fresh rollouts only $0.123$ $0.101$ $0.068$ $0.089$ $0.095$ Combined 12 rollouts $0.106$ $0.104$ $0.068$ $0.089$ $0.092$ Eligible oracle (held-out) $0.123$ $0.109$ $0.125$ $0.111$ $0.117$**

**(b) GLM-5.3 measure-then-revise ($35$ within-cap routers, Seeds 0–2) Selection Rule Seed 0 Seed 1 Seed 2 Mean $\pm$ SD Original 3 rollouts $0.118$ $0.067$ $0.123$ $0.103\pm 0.031$ 3 fresh rollouts only $0.118$ $0.067$ $0.123$ $0.103\pm 0.031$ Combined 6 rollouts $0.118$ $0.067$ $0.123$ $0.103\pm 0.031$ Eligible oracle (held-out) $0.118$ $0.072$ $0.123$ $0.104\pm 0.028$** In (a), $57$ within-cap routers are re-scored on $9$ fresh search rollouts ($450$ episodes per router; Gemini 4 Argon pools both recorded re-score batches, while single-batch scoring yields $0.092$ and $0.093$ mean). In (b), $35$ within-cap GLM-5.3 revise routers (Seeds 0–2) are re-scored on $3$ fresh search rollouts ($5{,}250$ episodes total; Seeds 3–5 had no top search-score ties).

## Appendix D Domain Transfer, Additional Executors, and Task Partitions

### D.1 Domain Transfer to $\tau$-Bench Airline

We evaluate whether the observed behavior of open-loop router evolution generalizes beyond the retail domain using a disjoint $20/30$ search and held-out task split on $\tau$-bench airline (Table 6). Across three independent seeds with GLM-5.2 as the proposer, 34 of 36 generated routers outperform their root harness on held-out tasks ($\Delta_{\mathrm{all}}^{\star}=15.2$ pp), while 27 of 36 exceed the $2\times$ token budget ($\Delta_{\mathrm{elig}}^{\star}=8.1$ pp). The selected routers achieve a mean held-out improvement of $5.2\pm 5.1$ pp ($t_{\mathrm{task}}=1.23$ over $n=30$ held-out airline tasks). These results reproduce both the positive transfer of executable effort routing and the high budget-violation rate observed under open-loop search in retail.

### D.2 Effect of Reasoning Effort Across Executors

To examine whether increasing reasoning effort improves performance across different executors, we evaluate three additional models: `Qwen3.8-27B`, `Inkling 2 Small`, and `gpt-oss-20b`. These experiments use uniform reasoning effort without additional harness instructions or compute routers (Table 15).

Table 15: Uniform effort probes on additional executors (empty harness, no router).

| Model | Serving Path | Effort | Success (Split) | vs. Low (Paired) | Out Tok/Ep (Mult.) | Probe Notes |
|---|---|---|---|---|---|---|
| `Qwen/Qwen3.8-27B` | Hosted Tinker | `low` | $0.569$ ($65$ held-out) | – | $2{,}730$ ($1.00\times$) | $0$ errors |
| `Qwen/Qwen3.8-27B` | Hosted Tinker | `medium` | $0.610$ ($65$ held-out) | $0.041$ ($\text{SE }0.040$, $t_{\mathrm{task}}=1.02$) | $2{,}869$ ($1.05\times$) | $20/15/30$ up/down/tie |
| `Qwen/Qwen3.8-27B` | Hosted Tinker | `xhigh` (`high`) | $0.579$ ($65$ held-out) | $0.010$ ($\text{SE }0.033$, $t_{\mathrm{task}}=0.31$) | $3{,}834$ ($1.40\times$) | $14/14/37$ up/down/tie |
| `Inkling 2 Small` | Hosted Tinker | `low` | $0.626$ ($65$ held-out) | – | $1{,}647$ ($1.00\times$) | $0/195$ errors |
| `Inkling 2 Small` | Hosted Tinker | `medium` | $0.605$ ($65$ held-out) | $-0.021$ ($\text{SE }0.040$, $t_{\mathrm{task}}=-0.51$) | $2{,}305$ ($1.40\times$) | $16/15/34$ up/down/tie |
| `gpt-oss-20b` | A100 | `low` | $0.058$ ($115$ test) | – | $1{,}600$ ($1.00\times$) | $108/115$ always-fail, `max_tokens` $4{,}096$ |
| `gpt-oss-20b` | A100 | `high` | $0.052$ ($115$ test) | not controlled | $52{,}500$ ($32.4\times$) | $108/115$ always-fail, `max_tokens` $8{,}192$ |

Hosted Tinker probes ($65$ tasks $\times 3$ rollouts; harmony tokens stripped on `Qwen3.8-27B`) use hosted simulator calls and are never pooled with H100 vLLM runs. On `gpt-oss-20b`, `max_tokens` changed between `low` and `high`.

For `Qwen3.8-27B`, increasing reasoning effort from low to medium improves accuracy from $56.9\%$ to $61.0\%$, with a $5\%$ increase in output token consumption. However, the improvement is not statistically significant ($t_{\mathrm{task}}=1.02$). Increasing reasoning effort further to `xhigh` achieves $57.9\%$ accuracy at $1.40\times$ the low-effort token consumption.

For `Inkling 2 Small`, increasing reasoning effort from low to medium reduces observed accuracy from $62.6\%$ to $60.5\%$, while increasing output token consumption by $40\%$.

The `gpt-oss-20b` executor (A100) achieves $5.8\%$ accuracy at low effort and $5.2\%$ at high effort. However, the maximum output token limit differs between the two configurations ($4{,}096$ and $8{,}192$ tokens per call, respectively). This experiment therefore does not isolate the effect of reasoning effort.

The `Qwen3.8-27B` and `Inkling 2 Small` experiments use hosted Tinker endpoints and hosted customer-simulator calls. Their results are reported separately from the main experiments conducted on the H100 vLLM setup.

These experiments do not establish consistent improvements from increasing uniform reasoning effort across the additional executors, and we therefore do not perform harness evolution on these models. Together with the retail results on `gpt-oss-120b`, these observations suggest that the benefits of compute routing depend on the executor’s responsiveness to changes in reasoning effort; establishing the applicability of measure-then-revise across additional executors and domains remains an important direction for future work.

### D.3 Task Partitions and Rollout Seeds

Figure 10 provides the exact disjoint task partitions generated with partition seed $4321$ for $\tau$-bench retail ($50$ search and $65$ held-out tasks) and airline ($20$ search and $30$ held-out tasks). Search rollouts use seed offsets $50$ to $52$, held-out rollouts use $1$ to $3$, and additional search re-scoring uses $60$ to $68$.

![Figure](figures/f10-fig-partitions.svg)

Figure 10: Exact task-index partitions and rollout seed offsets. Disjoint search ($\mathcal{S}$) and held-out ($\mathcal{T}$) task indices for $\tau$-bench retail ($115$ tasks) and airline ($50$ tasks).
