Measure Then Revise: Budgeted Compute Routers From a Harness Self-Improvement Loop
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 2times 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.
