An agent's outcome depends on both its model and the execution support around it: instructions, tools, memory, context handling and control rules. A change that fixes one failure can break another task, and a useful rule may become redundant as the model learns. Harness-S keeps multiple specialized variants, uses them to rescue tasks that the base system cannot solve, and trains one shared policy on the resulting experience.

The key test comes after removing those auxiliary variants. On AppWorld with a 4B policy, Harness-S achieves 56.87% average success across three attempts under the original harness, versus 48.98% for ordinary GRPO training and 51.91% for a control that retries failures using the original harness. Routing to a task-specific variant raises that mean to 61.45%, but introduces additional selection computation. Retained policy improvement and inference-time support are different results. Source: §§1 and 4.1–4.2; Table 1, p.7.

Why one accumulated harness can miss complementary strengths

The authors identify three properties. Locality means an edit repairs some failures while causing regressions elsewhere. Complementarity means different variants solve different subsets. Nonstationarity means a variant's usefulness changes as the same policy is trained. Figure 1 demonstrates these patterns on Qwen3.5-4B in AppWorld.

The oracle union of several harnesses can cover more tasks than any individual variant or repeated base-harness sampling. That union is measured after seeing which attempts succeed; a deployed router has to choose before seeing outcomes. It is an upper-bound coverage analysis, not an attainable routing score by itself.

The work sits between harness search, policy reinforcement learning and knowledge transfer. Unlike alternating methods that continue editing the execution system during training, Harness-S freezes the pool's implementations, refreshes evidence about their behavior, and updates one policy. Its self-improvement loop does not recursively redesign the optimizer or verifier. Source: §§1–2, pp.1–4; Figure 1; Appendix H, pp.22–24.

Preserve distinct repairs instead of only the current winner

A harness's utility is the expected verifier-defined task success of a particular policy under that harness: uθ(H,x)=E[Rx(τ)]uθ(H,x) = E[R_x(τ)]. Both the task and policy checkpoint matter. Sibling harnesses share the execution foundation, environment interfaces, verifier and policy parameters.

Directional evolution diagnoses related causes from failed training trajectories and edits a parent toward a limited repair direction. Parent selection maximizes the union of solved validation tasks, rather than simply choosing the highest individual success rate. All executable, protocol-compliant children enter the archive, including those not selected to become parents.

The AppWorld search uses three rounds with proposal budgets of 7, 8 and 8, and four parent slots. A candidate targets two or three related root causes, each supported by at least two failed tasks. Local evaluation includes up to 30 tasks and up to ten successful controls; one revision is allowed. Prompts, skills, context, memory, hooks and tool views are editable. An external editor proposes changes, while the execution host supplies measured results: a candidate's own assessment is not the success criterion. The final routing pool contains the base harness plus 19 auxiliaries. Source: §§3.1–3.2, pp.4–5; Appendices C and F, pp.18,20–21; Equations 1–4.

Build a fixed sibling pool, rescue failed groups and retain the resulting behavior in one policy. Original Figure 2, PDF p.3.
Build a fixed sibling pool, rescue failed groups and retain the resulting behavior in one policy. Original Figure 2, PDF p.3.Some letters appear missing in Figure 2 of the source PDF; the stages and profile updates are also explained in the article text.

Open image to enlarge

Generate new experience only after every base attempt fails

For each training task, the current policy first makes eight attempts under the base harness H0. If any succeeds, that original group is retained. If all fail, the router selects eight distinct auxiliary harnesses. The same current policy starts a fresh attempt from the initial state under each, and the rescue group replaces the failed base group for learning. Rescue does not resume an old trajectory midway, mix historical policy versions indiscriminately or change the task verifier.

GRPO compares rewards within the retained group. For reward R_j, group mean r̄ and standard deviation σ, the relative advantage is aj=Rj−r¯max(σ,ε)a_j = (R_j − r̄) / max(σ, ε). An all-failure group has no within-task reward contrast. A rescue group containing both successes and failures supplies alternatives the optimizer can distinguish.

The shared optimizer applies a clipped policy-ratio objective only to policy-generated tokens. Injected harness instructions and tool observations are excluded from the token loss. Each trajectory retains the harness context that generated it. Appendix B averages valid tokens within each task and then averages tasks, so trajectories of different lengths do not receive equal weight. It also applies a detached rollout/backend probability correction clipped to [0,2], policy-ratio clipping widths 0.20/0.28 and no reference-model KL term. These details distinguish learning from one's own supported execution from simply copying auxiliary instructions into the loss. Source: §3.3, p.5; Algorithm 1, p.6; Appendix B, p.17; Equations 5–7,13–16.

Refresh behavioral evidence while leaving implementations fixed

A behavior profile records when a sibling helps or hinders the current policy and what execution pattern changes. Profiles come from paired validation trajectories with matched tasks, initial states and limits. Their prefer and avoid entries describe observed behavior, rather than treating a harness name as an explanation.

Multiple LLM voters independently rank candidates from the task, profiles, validation success and outcomes on similar tasks. Four ballot positions receive weights 1, 3/4, 1/2 and 1/4; ties use validation success and then harness ID. During training, the base is excluded from rescue selection. Inference ranks the full pool, including H0, before execution and keeps the selected harness across that task's three attempts. A failed inference attempt does not trigger an uncounted new selection.

For AppWorld 4B, profiles are initialized before training, refreshed every ten updates and re-anchored with the final policy. Test outcomes do not enter calibration. The code of the siblings stays fixed throughout; only profiles, allocation and policy parameters change. Source: §§3.4–3.5, pp.5–6; Appendices C–D, pp.18–19; Equations 8–12.

Retained gains under the original harness

Experiments use Qwen3.5-4B and 9B on application APIs, software engineering and database tasks. Training/validation/test counts are 320/150/262 for AppWorld, 240/100/160 for SWE-Gym and 1,600/200/300 for DBBench. Harness editing uses training tasks; validation guides parent selection and profiles; test tasks are reserved for final evaluation.

Pass@3 counts tasks solved at least once in three attempts. Avg@3 averages success across those attempts. Table 1 averages three independently randomized evaluation runs; Harness-S reports their standard deviations. These are across-run evaluation deviations, not evidence of three independent policy-training seeds.

Scroll horizontally to view all columns.

4B policy under H0AppWorld Avg@3SWE-Gym Avg@3DBBench Avg@3
GRPO48.9822.5064.00
GRPO with H0 rescue51.9123.3364.67
Harness-S56.87 ± 1.4728.75 ± 1.7371.00 ± 1.84

For the 9B policy under H0, Harness-S reaches 62.34, 32.50 and 73.44 on the same Avg@3 metrics, versus GRPO's 53.31, 25.63 and 67.00. Routed inference adds further gains, but fixed-harness methods using one selected Hbest and task-specific Hrank1 selection should not be treated as identical inference protocols. Frontier-model rows are references under the specified harness, not a universal model leaderboard. Source: §§4.1–4.2, pp.7–8; Table 1; Appendices A and C, pp.17–18.

Reward contrast and refreshed profiles both matter

On AppWorld 4B, 79.38% of Harness-S's retained groups contain both success and failure, compared with 70.94% for H0 rescue and 64.69% for ordinary GRPO. The share of retained policy tokens belonging to such groups is 80.88%, versus 72.68% for H0 rescue. These are training-signal measurements, not task-success rates. Validation success under H0 finishes at 63.33%, versus 54.00% and 48.00% for the two controls.

Table 2 holds the rescue allocation at eight attempts when comparing eight distinct siblings with four siblings sampled twice, random selection, rule-based selection and fixed versus refreshed profiles. Adaptive Top-8 achieves final Pass@3 of 67.56 and Avg@3 of 56.87; fixed Top-8 reaches 64.50 and 52.16. Refreshing profiles therefore adds 4.71 percentage points of Avg@3 in this setting. Rescue success and final ranking are not interchangeable: rule-based routing has higher Pass@3 than the four-by-two LLM variant, but lower Avg@3.

The diversity analysis studies nine siblings, not the full 20-member pool. Each repairs 11–15 base failures; their oracle union repairs 29 across 149 valid paired validation tasks. Average directed repair overlap is 62.47%. Since each row divides by its own repair set, the matrix is not symmetric. Source: §§4.3–4.4, pp.8–9; Figure 3, Table 2; Appendix E, p.20.

Behavior changes support, but do not prove universal internalization

An LLM labels complete evaluation trajectories. Under H0, schema lookup before first API use rises from GRPO's 38.2% to 67.6%; repeated execute code drops from 30.1% to 9.8%. SWE-Gym switches to agent-written assertions after blocked tests in 48.5% of Harness-S cases versus 13.3% for GRPO. These are behavior frequencies. More checks are not automatically more correct.

Two traced cases connect a successful training rescue to later held-out behavior under H0: preserving a set-intersection constraint on new song instances, and completing account recovery on a different service. They illustrate procedural transfer without establishing its prevalence over all task types. Concrete profile examples include pagination reminders, intersection of conditions and reserving budget for final submission.

Routing dependence also shrinks. Before training, Rank-1 exceeds H0 by 14.21 Pass@3 points; after training the gap is 0.76. The Avg@3 gap falls from 13.49 to 4.58. H0's Rank-1 selection frequency rises from 1.53% to 22.52%. These patterns are consistent with useful behaviors persisting in the policy, while the remaining Avg@3 gain shows a continuing benefit from execution support.

On AppWorld and SWE-Gym, the 4B policy also outperforms controls under external Claude Code and OpenClaw harnesses without further updates. It still scores below its results under the original harness. Transfer therefore does not eliminate sensitivity to the interface. Source: §§4.5–4.7, pp.10–11; Tables 3–5; Appendix D, pp.18–19.

Matched executor attempts do not mean equal total computation

All reported training uses eight H800 GPUs. In the AppWorld 4B forty-update study, ordinary GRPO uses 2,560 training rollouts and 50.58 GPU-hours; Harness-S uses 3,032 and 67.19. H0 rescue uses 3,616 and 97.77. Thus Harness-S improves on plain GRPO with 18.44% more rollouts, while using fewer rollouts and GPU-hours than H0 rescue. Discarded failures count toward those costs.

The full pipeline adds search, calibration and external-model use. Harness-S reports 4,010 search rollouts, 3,032 additional training rollouts, 75.79 GPU-hours and 18.69 million API tokens. WHALE uses 95.84 GPU-hours and 9.80 million API tokens; HarnessForge uses 65.39 and 24.40 million. No single resource comparison makes Harness-S cheapest in every dimension. HarnessForge's zero additional training rollouts means it reuses search trajectories, not that it does no policy learning. Similarly, Rank-1 inference matches executor rollout counts while still requiring router calls. Source: Appendix G, pp.21–22; Tables 9–10.

Policy-training costs and full-pipeline costs are reported separately. Original Tables 9–10, PDF p.21.
Policy-training costs and full-pipeline costs are reported separately. Original Tables 9–10, PDF p.21.

Open image to enlarge

Keep the base-harness test in the evaluation

The authors leave lasting transfer, reuse across policies, exchanging state between independently developed harnesses and scaling repair diversity to future work. There is no standalone limitations section; those future directions and the measured interface sensitivity define important boundaries. The benchmarks and model sizes do not establish unrestricted long-term self-improvement.

Our interpretation is that the most useful experiment separates three questions: which execution support rescues a failure, which experience teaches the policy, and what remains when that support is removed. Keep a stable task verifier, distinguish observed from oracle coverage, and count search, calibration, router and executor resources separately. Harness-S provides evidence for this separation in its chosen settings. It does not show that merging every local rule into one harness, or endlessly editing the training system, is necessary for retained improvement. Source: §5, p.11; Appendix H, pp.22–24.