iRaven

Paper · Agents and tools · Version v1

Measure Then Revise: Budgeted Compute Routers From a Harness Self-Improvement Loop

First published: arXiv, . Original

Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.

This page holds the text of the paper, converted to HTML; figures may be left out.

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 $τ$-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.

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 τ-bench conversations using unseen tasks and a 2× 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±2.9 percentage points versus 5.4±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

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

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 Δship=Δall⋆−Lcap−Lsel 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 τ-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× 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θ with frozen weights that interacts with a stochastic environment through a candidate harness h∈ℋ. Each episode τ, executed on task i with seed s, produces a binary reward r(τ)∈{0,1} and an executor output token count c(τ)∈ℕ.

Before running the experiments, we divide the tasks into two non-overlapping sets: a search split 𝒮, used to develop and rank candidate harnesses, and a held-out split 𝒯, used to evaluate generalization.

Evaluating a harness on 𝒮 produces its search score R^𝒮(h) and mean token cost C^𝒮(h). Evaluating it on 𝒯 produces its held-out score R𝒯(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 τ-bench retail.

ComponentConfiguration
Executor & Serving
Executoropenai/gpt-oss-120b, frozen weights (temp 0)
Customer simulatoropenai/gpt-oss-120b (temp 1.0)
Serving stackvLLM, 1× NVIDIA H100 80 GB GPU
Evaluation Splits
Search split (𝒮)50 retail tasks (seed 4321)
Held-out split (𝒯)65 unseen retail tasks (𝒮∩𝒯=∅)
Rollouts per task3 (150 search +195 held-out =345 eps/harness)
Search Loop
Search schedule4 search rounds ×3 candidates (12 new candidates)
Evaluated per seed13 harnesses (1 root +12 candidates; 4,485 eps)
Independent seeds3 per setting; GLM-5.3 comparison uses 6
Budget & Calibration
Mean token budget (B)2.0× root mean output tokens per episode
Fast-screen trigger100% of budget (1.00B after Rollout 1, 50 eps)
Full-search trigger95% of budget (0.95B across 150 search eps)
Revision target85% of budget (0.85B), max K=3 revisions

In the main experiments, each independent loop starts from a root harness h0, 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:

𝒜={h0,…,h12}.

We impose a token budget of twice the root harness’s mean output token count (β=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:

ℰ𝒮={h∈𝒜:C^𝒮(h)≤2C^𝒮(h0)},

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

h⋆=argmaxh∈ℰ𝒮R^𝒮(h).

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

ℰ={h∈𝒜:C(h)≤2C(h0)},

replacing ℰ𝒮 with ℰ 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 ℰ′∈{ℰ𝒮,ℰ} and h0∈ℰ′⊆𝒜.

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

Δall⋆≔maxh∈𝒜(R𝒯(h)−R𝒯(h0)).

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

Δelig⋆≔maxh∈ℰ′(R𝒯(h)−R𝒯(h0)).

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

Δship≔R𝒯(h⋆)−R𝒯(h0).

Because h⋆∈ℰ′⊆𝒜, 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, Δcand⋆, to quantify this regression.

Finally, we report two additional metrics: ρstart, the proportion of generated candidates that outperform the root on held-out tasks, and τ¯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 τ-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 (ttask) 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

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×.

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 𝒮. 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 τ-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 τ-bench retail tasks.

Method / ProposerBudget HandlingGain Δship (pp)ttaskCostρstartOver CapElig. Oracle Δelig⋆ (pp)
A. Within-Budget Reference (No Loop)
Uniform mediumFixed effort tier9.1±2.13.231.64×–––
B. Open-Loop Router Search
GPT-OSS-120B (self)No cap control3.4±6.41.861.65×28/3627/365.6±4.5
GPT-OSS-120B (self)History + discard4.8±1.32.051.88×20/368/365.3±2.1
Gemini 4 ArgonHistory + discard7.7±6.03.331.89×34/3621/3611.1±4.3
Gemini 3.8 FlashHistory + discard9.1±5.63.881.93×36/3626/3612.5±1.2
DeepSeek V4.1 Flash (Vertex)History + discard7.9±2.42.831.79×36/3621/3610.9±4.6
GLM-5.2History + discard9.2±6.23.391.86×34/3619/3612.3±3.6
GLM-5.3 (search cap⋆)History + discard5.4±6.43.101.89×63/7238/729.7±3.5
GLM-5.3 (combined cap)History + discard6.3±7.13.691.86×63/7243/729.0±4.1
C. Measure-Then-Revise (Ours)
GLM-5.3 (search cap⋆)History + revise11.6±2.95.741.79×68/722/7211.7±2.8
GLM-5.3 (combined cap)History + revise11.6±2.95.741.79×68/724/7211.7±2.8
DeepSeek V4.1 Flash† (3 seeds)History + revise7.4±3.62.701.59×28/360/3611.8±5.4
D. Start-From-Medium Negative Controls‡
Equal absolute cap (1.2× med.)History + discard−1.2±2.1−1.041.01×2/3612/360.0±0.0
Loose cap (2.0× med.)History + discard−5.0±7.8−2.671.43×6/360/360.9±1.5

Mean ± SD across seeds (3 seeds by default, 6 for GLM-5.3); ttask is task-paired over n=65 held-out retail tasks; Cost is all-episode output tokens vs. root. ⋆Search-only eligibility (C^𝒮≤2C^𝒮(h0)); 3-seed rows and “combined cap” rows use retrospective C(h)≤2C(h0). †Tinker API configuration (Table 5). ‡Candidate-only Δcand⋆: −4.3±1.6 pp (1.2×) and −1.0±3.9 pp (2.0×).

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±2.7 pp over the 35.9% low-effort baseline at 1.68× output tokens, while uniform high effort gains 9.6±1.9 pp at 4.4× tokens. On the 65 held-out tasks, uniform medium achieves 9.1±2.1 pp at 1.64× 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±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× 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±6.4 pp, with three seeds between −2.6 and 1.5 pp (6.3±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

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

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× clipped).

5.4 Closed-Loop Calibration With Measure-Then-Revise

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

MetricS0S1S2S3S4S5Mean / Tot
Root acc. (%)36.939.039.039.037.436.938.0
Shipped gain (pp)11.86.712.311.315.911.811.6±2.9
Shipped cost1.93×1.89×1.74×1.77×1.66×1.74×1.79±0.10×
Beat root (ρstart)12/1211/1210/1211/1212/1212/1268/72 (94.4%)
Over search cap (ℰ𝒮)0/121/120/121/120/120/122/72 (2.8%)
Over combined cap (ℰ)0/121/120/122/120/121/124/72 (5.6%)
Over-cap drafts16191710132196 total
Elig. oracle (pp)11.87.212.311.315.911.811.7±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× 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× 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 ℰ𝒮 and ℰ, achieving 11.6±2.9 pp versus 5.4±6.4 pp under discard-and-resample with search-only selection (6.3±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±2.9 pp while consuming 1.79× 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 ttask=3.03 (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; ttask=2.73, 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±2.6%, compared with 44.2±4.1% under discard-and-resample (45.1±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±3.6 pp at 1.59× 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

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

Figure 6: Held-out gain vs. inference cost across loop methods, turn-level learned allocators, and references. Points and error bars show seed means ±1 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× the baseline token consumption. On GLM-5.3, the method achieves a mean improvement of 11.6±2.9 pp at 1.79× tokens. Uniform medium effort achieves 9.1±2.1 pp at 1.64× 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%, ttask=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.)S0S1S2Gain (pp)Cost>2×
Confidence-Turn (q=0.20)2.60.54.62.6±2.11.31×0/3
Confidence-Turn (q=0.425, post hoc)9.22.17.76.3±3.81.81×0/3
BAAR-Turn (ModernBERT)5.17.2†7.26.5±1.21.83×1/3
CPO-RL-Turn (primal-dual)11.86.22.66.8±4.71.37×0/3

Gains in pp over each seed’s all-low root (65 held-out tasks ×3 rollouts). q=0.425 bisected on search after viewing q=0.20 held-out results. †Seed 1 spent 1.74× on search and 2.04× 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±2.1 pp at 1.31× tokens on its predefined grid (q=0.20) and 6.3±3.8 pp at 1.81× 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±1.2 pp at 1.83× tokens, with modest validation AUC (0.58–0.60) and one seed exceeding cap on held-out tasks (2.04×). 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±4.7 pp at 1.37× 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 τ-bench airline reproduces both the held-out accuracy gains (34/36 beat root; 5.2±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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • He (2026) R. He Does Failure Feedback Direct Agent Self-Modification?. arXiv preprint arXiv:2610.14662. Link
  • 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
  • Hu et al. (2025) S. Hu, C. Lu, and J. Clune Automated Design of Agentic Systems. In International Conference on Learning Representations (ICLR), Link
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • Miller (2024) E. Miller Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations. arXiv preprint arXiv:2411.00640. Link
  • 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
  • Robeyns et al. (2025) M. Robeyns, M. Szummer, and L. Aitchison A Self-Improving Coding Agent. arXiv preprint arXiv:2504.15228. Link
  • 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
  • Sengupta and Wang (2026) B. Sengupta and J. Wang HARBOR: Automated Harness Optimization. arXiv preprint arXiv:2604.20938. Link
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • Yao et al. (2025) S. Yao, N. Shinn, P. Razavi, and K. Narasimhan τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains. In International Conference on Learning Representations (ICLR), Link
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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

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× the root harness’s prompt tokens and 1.04–1.35× its total tokens, with a mean total-token multiplier of 1.21×. 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 LabelExact Model IdentifierServing PathEffortmax_tokensSeedsToken / Runtime Accounting
GPT-OSS-120B (self)openai/gpt-oss-120bH100 (vLLM)medium12,0003∼11–15 loop wall-clock h/seed
Gemini 4 Argongoogle/gemini-4-argonVertex AIdefault12,0003standard completion accounting
Gemini 3.8 Flashgoogle/gemini-3.8-flashVertex AIdefault32,0003∼17.9k thinking tok/call
DeepSeek V4.1 Flash (Vertex)deepseek-ai/deepseek-v4.1-flash-maasVertex AIdefault12,000336 >150-line drafts resampled
GLM-5.2zai-org/glm-5.2-maasVertex AIdefault65,5363reasoning included in completion tok
GLM-5.3 (discard)zai-org/GLM-5.3:peft:262144Tinkerhigh12,00062.27M in / 2.95M out (eval+rej)
GLM-5.3 (revise)zai-org/GLM-5.3:peft:262144Tinkerhigh12,00061.34M in / 1.90M out (eval incl. rev)
DeepSeek V4.1 Flash (revise)deepseek-ai/DeepSeek-V4.1-Flash:peft:262144Tinkerlow40,0003386,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:

MethodAdditional 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, ttask, uses 65 paired tasks for retail, 30 for airline, and 115 for the original train-to-test experiments. The pooled statistic, tpool, 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 ℰ𝒮, whereas multi-proposer sweeps store aggregate episode token means and evaluate archive eligibility under ℰ; during online search, intermediate parent selection also referenced the aggregate ℰ flag, with all 24/24 intermediate parent choices and all 6/6 final selections on GLM-5.3 measure-then-revise matching between ℰ𝒮 and ℰ (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×13+9×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 LabelResults File (experiments/results/)SplitSeedsΔshipttasktpoolρstartOver CapΔall⋆ / Δelig⋆
400w prose / transcript§prose_400w_transcript.mdtrain→test3 (9)−0.006±0.006−0.44−0.506/330/330.003 / 0.003
150w prose / transcript§prose_150w_transcript.mdtrain→test3 (6)−0.030±0.004−1.57−1.803/360/360.013 / 0.013
150w prose / diffsprose_150w_diff_train_test.mdtrain→test3−0.003±0.011−0.15−0.1614/360/360.036 / 0.036
Prose + guard / diffsprose_guard_diff.mdtrain→test3−0.007±0.021−0.53−0.553/360/360.003 / 0.003
150w prose / diffs (50/65)prose_150w_diff_retail.md50/65 test30.000±0.0490.000.0010/360/360.024 / 0.024
150w prose / contrastprose_150w_contrast.md50/65 test30.002±0.0160.110.0918/360/360.060 / 0.060
GPT-OSS-120B; no cap controlgpt_oss_no_cap.md50/65 test30.034±0.0641.861.9428/3627/360.096 / 0.056
GPT-OSS-120B; history + discardgpt_oss_discard.md50/65 test30.048±0.0132.052.3420/368/360.070 / 0.053
Gemini 4 Argongemini4_argon_discard.md50/65 test30.077±0.0603.333.3234/3621/360.125 / 0.111
Gemini 3.8 Flashgemini38_flash_discard.md50/65 test30.091±0.0563.884.2536/3626/360.161 / 0.125
DeepSeek V4.1 Flashdeepseek_v41_discard.md50/65 test30.079±0.0242.833.7136/3621/360.138 / 0.109
GLM-5.2; history + discardglm52_discard.md50/65 test30.092±0.0623.393.6734/3619/360.138 / 0.123
GLM-5.2; history onlyglm52_history_only.md50/65 test30.046±0.0401.661.9234/3629/360.137 / 0.075
GLM-5.2; discard onlyglm52_discard_only.md50/65 test30.055±0.0312.192.5736/3627/360.132 / 0.070
GLM-5.2; airlineglm52_airline_discard.md20/30 air.30.052±0.0511.231.6234/3627/360.152 / 0.081
GLM-5.3; discard (search cap⋆)glm53_discard.md50/65 test60.054±0.0643.103.5963/7238/720.113 / 0.097
GLM-5.3; discard (combined cap)glm53_discard.md50/65 test60.063±0.0713.694.2763/7243/720.113 / 0.090
GLM-5.3; revise (search cap⋆)glm53_revise.md50/65 test60.116±0.0295.747.5968/722/720.123 / 0.117
GLM-5.3; revise (combined cap)glm53_revise.md50/65 test60.116±0.0295.747.5968/724/720.123 / 0.117
DeepSeek V4.1 Flash; history + revisedeepseek_v41_revise.md50/65 test30.074±0.0362.703.1828/360/360.118 / 0.118
Uniform medium referenceuniform_medium.md65 held-out30.091±0.0213.234.00–––
From medium; 1.2× capmedium_cap_1p2x.md50/65 test3−0.012±0.021−1.04−1.042/3612/360.031 / 0.000
From medium; 2.0× capmedium_cap_2x.md50/65 test3−0.050±0.078−2.67−2.616/360/360.009 / 0.009
Confidence-Turn (q=0.20)learned_allocators.md50/65 test30.026±0.021–––0/3–
Confidence-Turn (q=0.425, post hoc)learned_allocators.md50/65 test30.063±0.038–––0/3–
BAAR-Turn (ModernBERT)learned_allocators.md50/65 test30.065±0.012–––1/3–
CPO-RL-Turn (primal-dual)learned_allocators.md50/65 test30.068±0.047–––0/3–

Gains and root-inclusive oracles in decimal reward units. ⋆Search-only eligibility (C^𝒮≤2C^𝒮(h0)); GLM-5.3 “combined cap” rows evaluate the same 6 seeds retrospectively under C(h)≤2C(h0). §Cohort totals in parentheses include reward-agnostic/blind control seeds (9×12=108 harnesses in runs_idea1; 6×13=78 in runs_idea1b; 75 loop runs and 966 harnesses overall). ttask: task-paired (n=65 retail, 30 airline, 115 train→test); tpool: task×seed pairs (195 for 3 seeds, 390 for 6 seeds). For from-medium controls, candidate-only Δcand⋆ is 0.024/−0.043 (1.2×) and −0.010/−0.010 (2.0×).

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).

ComponentSpecification
Effort tiersreasoning_effort \in\{\texttt{low},\texttt{medium},\texttt{high}\} per call (temp 0, max_tokens 4,096). Root runs all-low (∼1.65k mean output tokens/episode; uniform medium 1.64×, uniform high 4.4×).
turn stageInvoked 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 stageInvoked 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≤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× 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× 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 TurnsMed TurnsHigh TurnsTokMTokHRegen / ConvMean Out Tok
All-low root (3)13.10.00.0000.001,673
Revise: initial drafts (33)5.36.72.71,4541,8211.104,019
Revise: revised routers (33)6.56.80.81,4795410.632,915
Discard: survivors (14)9.23.81.58419771.313,028
Discard: over-cap (22)5.96.32.11,3321,5000.863,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 TagRoot (All-low)Shipped (Candidates 12, 5, 10)
Success rate0.383 (38.3%)0.485 (48.5%)
Failed conversations (of 585)361301
Unneeded hand-off to a human13563
No write at all (one required)13374
Right tool, wrong arguments117109
Missing a required write8285
Extra write7570
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

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× token budget.

Figure

Figure 8: Progress across search rounds and cap survival (±1 SE across seeds). (a) Shipped held-out gain across Rounds 0–4. (b) Share of candidates within the 2× 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±4.8 pp. The 21 candidates that satisfy the budget on their first attempt achieve 7.1±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, γ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∈{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× combined-cost budget: applying γtrig=0.95B reduces post-search budget drift from 11.9% (γ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 γ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 γtrig across all 144 evaluated GLM-5.3 routers Trigger Threshold γtrig Search-Passing Routers All-Episode Drift (>2×) γtrig=0.90 (≤1.80× root) 53/144 0/53 (0.0%) γtrig=0.95 (≤1.90×, ours) 90/144 3/90 (3.3%) γtrig=0.98 (≤1.96× root) 96/144 4/96 (4.2%) γtrig=1.00 (≤2.00×, unbuffered) 109/144 13/109 (11.9%) In (a), counterfactual stopping at K<ntrims 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× the root harness’s output-token consumption during calibration, with an admissible search cost of at most 1.84×. Held-out rollout seeds are defined as s×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∈{0.20,0.35,0.50,0.65,0.80}.

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

Under the predefined calibration rule, q=0.20 is selected, achieving a held-out gain of 2.6±2.1 pp at 1.31× 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× tokens and a held-out gain of 6.3±3.8 pp at 1.81× 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:

argmax[P(success)−λ⋅kTokens].

The penalty coefficient λ is calibrated toward the 1.80× token target using at most six search evaluations per seed.

One seed consumes 1.74× the baseline tokens during search but increases to 2.04× 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×.

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× 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× tokens.
  • Seed 2 selects an almost entirely low-effort policy, achieving 2.6 pp at 1.01× 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× tokens.

At C=1.0, it assigns medium effort to 41 tasks and achieves 5.5 pp at 1.40× tokens. At C=10.0, it assigns medium effort to 39 tasks and achieves 5.5 pp at 1.39× 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× 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 PolicyHeld-OutGain vs. Low (pp)CostMed. Tasks
All-low (roots)0.3910.01.00×0/65
Learned logistic (C=1.0)0.4465.51.40×41/65
Learned logistic (C=0.1)0.4829.11.63×64/65
All-medium (roots)0.4829.11.65×65/65
In-sample task oracle0.51612.51.23×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±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× the low-effort token consumption.

Early-turn reasoning. Restricting medium reasoning effort to early turns achieves 37.4% accuracy at 1.15× 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

Figure 9: Selection noise and rollout scaling. (a) Original vs. fresh search scores across eligible routers. (b) Held-out gain (±1 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±2.9 pp versus 11.7±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 MechanismShipped Gain (pp)Over CapρstartElig. Oracle (pp)
History + discard9.2±6.219/3634/3612.3±3.6
History only4.6±4.029/3634/367.5±1.9
Discard only5.5±3.127/3636/367.0±3.3

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

Edit Space / FeedbackSplitShipped Δship (pp)τ¯step (pp)
400w prose / failed transcriptstrain → test−0.6±0.6−3.6
150w prose / failed transcriptstrain → test−3.0±0.4−1.7
150w prose / write-action diffstrain → test−0.3±1.10.0
150w prose + guard / diffstrain → test−0.7±2.1−4.4
150w prose / write-action diffsmatched 50/650.0±4.9−1.6
150w prose / contrastive pairsmatched 50/650.2±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 ± SD Original 3 rollouts 0.118 0.067 0.123 0.103±0.031 3 fresh rollouts only 0.118 0.067 0.123 0.103±0.031 Combined 6 rollouts 0.118 0.067 0.123 0.103±0.031 Eligible oracle (held-out) 0.118 0.072 0.123 0.104±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 τ-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 τ-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 (Δall⋆=15.2 pp), while 27 of 36 exceed the 2× token budget (Δelig⋆=8.1 pp). The selected routers achieve a mean held-out improvement of 5.2±5.1 pp (ttask=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).

ModelServing PathEffortSuccess (Split)vs. Low (Paired)Out Tok/Ep (Mult.)Probe Notes
Qwen/Qwen3.8-27BHosted Tinkerlow0.569 (65 held-out)–2,730 (1.00×)0 errors
Qwen/Qwen3.8-27BHosted Tinkermedium0.610 (65 held-out)0.041 (SE 0.040, ttask=1.02)2,869 (1.05×)20/15/30 up/down/tie
Qwen/Qwen3.8-27BHosted Tinkerxhigh (high)0.579 (65 held-out)0.010 (SE 0.033, ttask=0.31)3,834 (1.40×)14/14/37 up/down/tie
Inkling 2 SmallHosted Tinkerlow0.626 (65 held-out)–1,647 (1.00×)0/195 errors
Inkling 2 SmallHosted Tinkermedium0.605 (65 held-out)−0.021 (SE 0.040, ttask=−0.51)2,305 (1.40×)16/15/34 up/down/tie
gpt-oss-20bA100low0.058 (115 test)–1,600 (1.00×)108/115 always-fail, max_tokens 4,096
gpt-oss-20bA100high0.052 (115 test)not controlled52,500 (32.4×)108/115 always-fail, max_tokens 8,192

Hosted Tinker probes (65 tasks ×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 (ttask=1.02). Increasing reasoning effort further to xhigh achieves 57.9% accuracy at 1.40× 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 τ-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

Figure 10: Exact task-index partitions and rollout seed offsets. Disjoint search (𝒮) and held-out (𝒯) task indices for τ-bench retail (115 tasks) and airline (50 tasks).