Harness Training: A Post-Training View of Agent Harness Evolution
Anonymous authors
ICLR 2027
Abstract. Large language model agents depend on an agent harness that comprises persistent prompts, skills, tools, middleware, and workflows governing their behavior. Harness evolution updates this state after deployment without changing model weights. Existing work is commonly categorized by the component being edited or the search algorithm, rather than by whether an update is retained to reproduce target behavior or improve execution outcomes. We frame harness evolution as Harness Training, an analogue of parameter post-training at the level of learning objectives. This view distinguishes Harness-SFT, which learns from target trajectories, from Harness-RL, which learns from reward feedback. Experiments show that Harness-SFT makes agent executions more closely follow target trajectories, while Harness-RL changes retained behavior in the direction predicted by the reward objective. When combined, Harness-SFT increases the availability of task-solving edits, and Harness-RL uses reward feedback to identify and retain them, improving reward search. Based on this finding, we develop Signal-Targeted Harness Training (STHT), which applies Harness-SFT to tasks failed by the initial harness before initializing Harness-RL from the supervised state. Across diverse experimental settings, STHT reaches validation thresholds with fewer rollouts and outperforms competing methods on unseen tasks. These gains transfer across harnesses, reward optimizers, and teachers. Code is available anonymously at \url{https://anonymous.4open.science/r/harness-train-45C6/}.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 16:48 UTC.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The paper studies how to improve an agent’s prompts, skills, tools and workflow while keeping its model fixed. Harness-SFT chooses edits that make the agent follow teacher demonstrations more closely, while Harness-RL chooses edits using task rewards. The proposed method, STHT, first learns from demonstrations for tasks the initial agent failed, then continues with reward-based search. Experiments cover SpreadsheetBench, a DocVQA pilot, ALFWorld, and a coding subset of EvoAgentBench. STHT has the highest reported mean of the methods in Table 1 in all 8 settings, averaging 80.37% success across the 5 primary settings versus 77.28% with randomly selected demonstrations.
Strengths
-
The distinction between what an edit changes and how it's selected is useful. It's a clear way to organize methods that modify different parts of an agent. The authors are also clear that the comparison with model training is just an analogy. They don’t claim that editing a harness works like gradient-based training.
-
The experiments include a few different useful controls. The comparison with random task selection uses the same number of demonstrations, and the gains hold across different harnesses, reward optimizers, and teachers. On ALFWorld, targeting failures also beats selecting successful tasks or tasks whose executions differ most from the teacher’s. I appreciated the comparison between starting harnesses with almost identical performance. The supervised starting point still supports better subsequent search, which suggests that its benefit goes beyond just the higher initial score.
Weaknesses
-
The variation across runs is not clear. The main gains over random selection range from 1.78 to 4.64 percentage points, but the paper doesn't provide standard deviations, intervals, or statistical tests. The results are described as three-run averages, but Section 6.1 presents the ALFWorld result as 239/274 solved tasks, and Appendix E.3 refers to “14 of 32 and 21 of 32 groups in the reported run”. These counts could be consistent with averages, but the aggregation needs explaining.
-
I’m not sure the comparisons are fair on cost or on baseline strength. STHT gets to the validation threshold in fewer rollouts, but it costs 8.7% more overall than random selection, and a lot more than RL alone. It's not clear whether that cost includes generating and verifying teacher demonstrations. There's also no RL-only comparison given STHT’s total budget. The default optimizer, Parent Acceptance, is the weakest method in Table 12. Bandit Allocation reaches 91.61% on ALFWorld there, compared with STHT’s 87.23% in Table 1. The two use different training setups, so this isn’t a direct comparison. But the question of whether the budget would be better spent on a stronger search is still open.
-
Parts of the protocol need clarifying. Section 4 says training tasks choose candidate edits, but the SpreadsheetBench code sets the selection split to validation. If so, validation AUC and time to threshold are measured on selection data, but the test results are still held out. The same ALFWorld result also shows up as Table 11’s Success-only row, Table 12’s Parent Acceptance row, and Table 1’s RL-only entry, each described differently. Finally, it’s unclear what the modifier was told in each Table 11 condition, which matters for reading it as RL-like behavior.
Questions for the authors
-
Could you report per-run results and uncertainty estimates for Tables 1-4? How do the counts in Section 6.1 and Appendix E.3 relate to the three-run averages, and does Appendix H use the same configuration as Table 1?
-
When deciding whether to keep a candidate edit, which tasks do you evaluate it on? Training tasks, the validation split named in the SpreadsheetBench code, or a separate selection fold like in Appendix H? How many tasks and rollouts go into each decision? Are those rollouts, and the initial failure-screening runs, counted in the 256-rollout budget and in time to threshold? How does validation AUC select a single checkpoint?
-
Does total cost include teacher generation and verification? Could you compare STHT with reward-only search at the same total cost?
-
Which editing scopes produced Table 11’s Success-only and Table 12’s Parent Acceptance rows? What reward instructions did the modifier get in each Table 11 condition, and what did the shared-candidate comparison described in Appendix D.2 show?
2 comments
A brief note on the response (Submission 54869)
Dear Reviewer Ro4A,
Thank you again for your detailed review of both the paper and the code. With the discussion period ending soon, we wanted to check whether our response has resolved your questions on the statistics, protocol, and cost comparisons:
- Uncertainty and aggregation (Tables 1–4, Appendix B.8 & H): added mean ± SD across the three seeds, explained the integer-count rounding rule (Eq. 33), and clarified the single-seed diagnostic setup in Appendix H (Table 18).
- Selection split and rollout accounting (Appendix B.4, Tables 11–13): confirmed that per-round retention uses only training tasks (not the validation split), clarified how , , and Stage-1 costs are accounted, and stated the checkpoint rule.
- Equal-cost reward-only search and teacher cost (Tables 5, 13) & Table 14–15 scopes/prompts (Appendix D.1–D.2).
Please let us know if anything remains unclear; we are happy to provide any further details.
Best regards, The Authors
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The paper proposes to view "harness evolution" through the lens of parameter post-training. It separates Harness-SFT (retain harness edits that make the frozen agent's tool-call trajectories closer to teacher trajectories, measured by normalized edit distance) from Harness-RL (retain edits by task reward). The paper argues that Harness-SFT behaves like SFT (responds to task–trajectory pairing, data scale and teacher quality), Harness-RL behaves like RL (responds to reward design and update rule), and proposes STHT: execute the initial harness on half of the training tasks, obtain teacher trajectories only for the failed tasks, apply sequential skill-scoped Harness-SFT, then run Harness-RL from the resulting harness on the other half.
Strengths
-
The composition study is carefully controlled.
-
STHT evaluation covers a breadth of dataset/harness/actor settings.
Weaknesses
-
The algorithmic contribution is thin and the margins are small. The conceptual contribution is largely a re-labelling of existing methods. It's more explanation-based and not problem-based. And the empirical margins supporting the specific "failure targeting" claim are small: STHT vs all-task SFT→RL is +1.1 to +2.9 points.
-
SFT→RL starts from Teacher SFT trained on the full 60-task split with demonstrations for both D1 and D2, yet loses to STHT, which uses demonstrations for at most ~30 failed D1 tasks. Success-Targeted supervision is likewise worse than Uniform (Table 3). So more correct teacher demonstrations hurt, and the paper's explanation does not say why. Plausible causes would make this an artifact of the update procedure rather than a general principle. The RQ1–RQ3 mechanism experiments are also each run on one benchmark with the Pi harness, and Teacher SFT alone gains only ~1–3 points (Table 1), so the "SFT-like" regime is weak in absolute terms.
Questions for the authors
-
Why does all-task teacher supervision (Teacher SFT → SFT→RL) underperform failure-only supervision?
-
How much of STHT's final gain comes from the skill text vs the full-harness RL edits to P/T/W/L? A STHT variant with Skill-only RL, and a Full-harness-RL-only run from H0 with the same budget, would separate these.
2 comments
We thank the reviewer for the constructive review and for highlighting our controlled composition study and broad evaluation. The corresponding results are in Sections 6.2 and 6.4 (Table 5) and Appendix B.7 (Tables 12–13).
Q1 / W2. Why all-task and success-targeted supervision underperform failure targeting
Supervising tasks that already solves () hurts for two reasons (Section 6.2):
- Stylistic over-constraining. When already solves a task, the residual NED to the teacher reflects ordering or style differences between two valid solutions, not a missing capability. Minimizing it with sequential Skill-SFT (Eq. 10) writes non-essential constraints into
SKILL.md. Table 3 supports this: High-NED (largest distance, regardless of success) trails failure targeting (85.04±1.84% vs. 87.23±1.93%), and Success-Targeted lowers both edit availability (0.497 vs. 0.625) and test success (82.12±1.72% vs. 84.67±1.47%) relative to Uniform. - Recency and dilution in sequential discrete updates.
SKILL.mdis a compact in-context artifact that is sensitive to update order (Appendix F, Table 16). Since already solves 50–78% of training tasks, over 70% of All-Task SFT→RL's Stage-1 updates target solved tasks, which dilutes or overwrites remedies needed for failures and lowers downstream edit availability from 0.711 (STHT) to 0.651 (Table 2).
Q2. Skill text () vs. full-harness RL edits (), and equal-budget RL
Following your suggestion, Section 6.4 / Table 5 compares, from the same under a matched total-cost cap, STHT Stage 1 only, STHT with Skill-only RL, reward-only full-harness RL (STHT's teacher and SFT budget reallocated to reward search), external Harness-RL systems, and Full STHT:
| Method (matched total cost) | Scope (SFT→RL) | DocVQA/Pi | Spreadsheet/Codex |
|---|---|---|---|
| —→— | 77.81 | 76.43 | |
| Reward-only full-harness RL | —→{P..L} | 82.62 | 77.14 |
| SkillOpt / GEPA | —→{S} / {P,S} | 82.89 / 82.09 | 80.36 / 80.00 |
| Meta-Harness / AutoSaddler | —→{P..L} | 83.16 / 83.42 | 81.07 / 81.43 |
| STHT Stage 1 only | {S}→— | 81.82 (+4.01) | 77.86 (+1.43) |
| STHT, Skill-only RL | {S}→{S} | 84.49 (+6.68) | 80.36 (+3.93) |
| Full STHT | {S}→{P..L} | 86.63 (+8.82) | 84.64 (+8.21) |
- Equal-budget reward-only RL trails Full STHT by 4.01 and 7.50 pp, so the gain comes from spending part of the budget on failure-targeted supervision, not from budget size.
- The split is task-dependent. On DocVQA, Skill-only STHT realizes 6.68 of the 8.82 pp gain (76%); opening adds 2.14 pp. On SpreadsheetBench/Codex, Skill-only realizes 3.93 of 8.21 pp (48%), and contribute the larger share (4.28 pp, 52%), addressing non-procedural bottlenecks such as layout salience in (Appendix H.2).
W1 / W2. Contribution, margins, and standalone Teacher SFT
- Problem-driven design. We use the standard propose–execute–evaluate–retain loop as a controlled testbed to verify post-training regularities in discrete harness evolution (RQ1–RQ3), and use them to address sparse-reward stalling: 58.8% of RL-only rounds contain no verifier-passing candidate (Table 2).
- Margins. Against Uniform SFT→RL (matched supervision budget), STHT gains +1.78 to +4.64 pp in all 8 settings (+3.09 pp macro on 35B, +3.89 pp on 9B). Against All-Task SFT→RL, it gains +1.99 pp (35B) and +2.32 pp (9B) macro, with 50–78% fewer teacher demonstrations and 19% fewer tokens at (28.3M vs. 35.1M, Table 13).
- Standalone Teacher SFT is restricted to and optimizes imitation (NED), not reward. Its main role is catalytic: it reshapes the local edit space so that subsequent RL finds verifier-passing edits more often (0.711 vs. 0.412 for RL only across the five primary settings, Table 2; Figures 7–8).
A brief note on the response (Submission 54869)
Dear Reviewer Cdsg,
Thank you again for your constructive feedback. As the discussion deadline approaches, we wanted to check whether our response and new experiments have addressed your two main questions:
- Separating Skill text () vs. edits and equal-budget RL (Table 5): we added Stage-1-only, Skill-only RL, and budget-matched full-harness reward-only search from , showing that equal-budget reward-only trails Full STHT by 4.01 and 7.50 pp and quantifying the task-dependent share of Skill vs. full-harness edits.
- Why failure-only supervision beats all-task and success-targeted supervision (Section 6.2, Table 3): supervising already-solved tasks introduces stylistic over-constraining into
SKILL.mdand dilutes failure remedies under sequential updates, lowering downstream edit availability (0.651 vs. 0.711).
We would be happy to discuss any remaining points before the window closes.
Best regards, The Authors
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper presents Harness Training, an objective-level framework for optimizing LLM agents while keeping the task-model parameters fixed. It distinguishes the component being edited, e.g., prompts, skills, tools, middleware, or workflows, from the learning signal. Harness-SFT retains harness edits that make agent behavior closer to target trajectories, while Harness-RL selects edits using task rewards, preferences, or verifier outcomes. Building on this distinction, the paper proposes Signal-Targeted Harness Training (STHT), which identifies tasks failed by the initial harness, applies teacher-trajectory supervision specifically to these tasks, and then performs full-harness reward search on a separate data split. Experiments on SpreadsheetBench, an instrumented DocVQA pilot, ALFWorld, and the Code Implementation subset of EvoAgentBench show that STHT consistently outperforms the paper’s internal training variants. Across five primary settings, STHT achieves a macro test success of 80.37%, compared with 78.38% for the strongest non-STHT variant and 77.28% for Uniform SFT→RL. Additional experiments study trajectory quality, reward interventions, reward-matched initialization, edit availability, task selection, and transfer across actors, teachers, harnesses, and optimizers.
Strengths
-
The paper provides a useful framework for understanding agent harness optimization by distinguishing trajectory imitation from reward-based search, independently of which component is modified.
-
The experiments investigate how supervised initialization benefits subsequent reward search. After matching initial performance, supervised initialization still improves validation AUC from 0.713 to 0.753, suggesting that its benefits extend beyond a stronger starting point.
Weaknesses
-
Limited algorithmic novelty. The method is essentially LLM-guided discrete search with a propose–execute–evaluate–retain loop. STHT mainly adds failure-targeted supervision and better search initialization.
-
Insufficient external baselines. The paper compares internal variants but not complete existing systems such as GEPA, Meta-Harness, or SkillOpt under matched budgets.
-
Efficiency claims are incomplete. STHT reduces downstream rollouts but costs about 8.7% more end-to-end than Uniform SFT→RL; absolute compute and API costs are unreported.
Questions for the authors
Please see the Critical Weaknesses.
2 comments
We thank the reviewer for recognizing our objective-level framework and the reward-matched initialization study (Figure 7). All new experiments and cost breakdowns below are included in the revised manuscript.
W1. Contribution vs. the standard self-evolving loop
We agree that the propose–execute–evaluate–retain loop is the standard substrate of self-evolving agents (Voyager, OPRO, AFlow, GEPA, Meta-Harness, AutoSaddler), and we do not claim novelty for this loop. Our contribution is twofold:
- Post-training regularities in discrete harness space (RQ1–RQ3). SFT-like: trajectory-supervised updates respond to task–trajectory pairing (Correct vs. Shuffled vs. No-Trace), demonstration scale (), and teacher quality (Figures 3–4). RL-like: outcome-driven updates shift tool calls, trajectory length, and verification coverage in the direction of the reward, even on an identical shared candidate pool (Appendix D.2), and show exploration–exploitation trade-offs across update rules (Tables 14–15). SFT–RL interaction: against a reward-only checkpoint with nearly identical starting reward () and per-task profile (), Teacher SFT raises the fraction of RL rounds containing a verifier-passing edit from 43.8% to 65.6% () and cuts rollouts to the first retained update by 33.3% (Figures 7–8).
- STHT follows from these findings. RQ3 shows that SFT helps RL mainly by making task-solving edits available where reward search stalls, and Table 3 shows that supervising already-solved tasks over-constrains the Skill. STHT therefore targets supervision at initial failures . Because it builds on the standard loop, it transfers across harnesses (Pi, Codex), actors (35B, 9B), teachers (GPT-5.5, Qwen3.5), and optimizers (Parent Acceptance, Group-Relative, AutoSaddler; Table 4).
W2. Matched-budget comparison with complete external systems
We added Section 6.4 / Table 5: SkillOpt, GEPA, Meta-Harness, and AutoSaddler run as complete pipelines from the same (Qwen3.6-35B-A3B actor, GPT-5.5 optimizer) under a common total-cost cap matched to STHT, plus budget-matched reward-only search and STHT ablations.
| Method | Scope (SFT→RL) | DocVQA/Pi | Spreadsheet/Codex |
|---|---|---|---|
| —→— | 77.81 | 76.43 | |
| SkillOpt | —→{S} | 82.89 | 80.36 |
| GEPA | —→{P,S} | 82.09 | 80.00 |
| Meta-Harness | —→{P..L} | 83.16 | 81.07 |
| AutoSaddler | —→{P..L} | 83.42 | 81.43 |
| Reward-only (ours) | —→{P..L} | 82.62 | 77.14 |
| STHT Stage 1 only | {S}→— | 81.82 | 77.86 |
| STHT, Skill-only RL | {S}→{S} | 84.49 | 80.36 |
| Full STHT | {S}→{P..L} | 86.63 | 84.64 |
All four external systems are pure Harness-RL in our taxonomy (Table 6). At the same total cost, Full STHT exceeds the strongest one, AutoSaddler, by +3.21 pp on both settings, and equal-cost reward-only search by +4.01 / +7.50 pp. STHT can also serve as an initializer for external optimizers such as AutoSaddler (Table 4).
W3. Cost accounting
Table 2 and Appendix B.7 (Tables 12–13) now report absolute tokens (prompt + completion) for all three roles: task model , teacher (including verified trajectory generation), and modifier . Macro average over the five primary settings:
| Method | Task model | Teacher | Modifier | Full cost (norm.) | Median | Cost at (norm.) |
|---|---|---|---|---|---|---|
| RL only | 25.2M | — | 6.2M | 31.4M (0.620) | 192 | 23.5M (0.464) |
| Teacher SFT | 8.6M | 9.3M | 5.4M | 23.3M (0.460) | n/a | — |
| Self SFT→RL | 35.6M | — | 8.4M | 44.0M (0.870) | 144 | 30.8M (0.608) |
| Uniform SFT→RL | 32.1M | 5.9M | 8.6M | 46.6M (0.920) | 112 | 29.2M (0.577) |
| SFT→RL | 34.0M | 9.3M | 11.6M | 54.9M (1.085) | 96 | 35.1M (0.694) |
| STHT | 35.5M | 6.3M | 8.8M | 50.6M (1.000) | 80 | 28.3M (0.560) |
- counts only Stage-2 Harness-RL rollouts. All Stage-1 costs (failure screening on , teacher generation, SFT rollouts and edits) are included in the token costs, including Cost at .
- Over the full schedule, STHT costs 8.7% more than Uniform SFT→RL (failure screening and longer failure traces) and 7.8% less than SFT→RL. At , it is cheaper than Uniform (0.577), Self SFT→RL (0.608), and SFT→RL (0.694).
- STHT is not the cheapest way to reach a fixed threshold: RL only reaches it at lower token cost (0.464 vs. 0.560). STHT's advantage is accuracy: higher success at the same total cost (Table 5) and higher final success (80.37% vs. 76.08% macro).
A brief note on the response (Submission 54869)
Dear Reviewer fsPk,
Thank you again for your time and thoughtful review. As the discussion period is drawing to a close, we wanted to check whether our response and revised manuscript have addressed your concerns—specifically:
- External baselines at matched cost (Table 5): direct comparisons with SkillOpt, GEPA, Meta-Harness, and AutoSaddler from the same under a common total-cost cap, where STHT reaches 86.63% / 84.64% vs. 83.42% / 81.43% for the strongest external baseline.
- Complete cost accounting (Tables 2, 12–13): absolute token counts across the task model, teacher, and modifier, plus both full-schedule cost and cost at threshold .
- Clarified contribution scope: positioning the post-training regularities (RQ1–RQ3) and the edit-availability mechanism relative to the standard self-evolving loop.
Please let us know if any question remains; we would be glad to clarify further.
Best regards, The Authors
Comments on the paper
1 comment
AC Comment
Thank you to the authors for the detailed rebuttal and additional experiments. I noticed that none of the three reviewers has provided follow-up feedback so far. As the discussion period is approaching its end, I would appreciate it if fsPk, Cdsg, and Ro4A could take a moment to review the authors' responses and revised manuscript. I would appreciate it if you could share whether these results address your original concerns and update your ratings if warranted.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the reviewer for the careful reading of both the manuscript and the code.
Q1. Aggregation, uncertainty, and Appendix H
Table 2 (STHT vs. Uniform): successful-round rate 0.711±0.036 vs. 0.618±0.037; validation AUC 0.804±0.007 vs. 0.776±0.007. Table 3 (failure-targeted vs. Uniform): 0.716±0.118 vs. 0.625±0.121 rounds with success; AUC 0.817±0.015 vs. 0.790±0.015.
Q2. Retention split, rollout accounting, checkpoint selection
SELECTION_SPLIT_NAME. Inmodifier-system-v1this variable is only a label in the modifier's boundary warning, and its value "SpreadsheetBench validation" was misleading. We verified that the runner's retention step evaluates candidates only on training tasks, and we will correct the label in the repository. The modifier never sees validation tasks or traces; validation is used only for AUC, Tq, and selecting H⋆.Q3. Teacher cost, equal-cost reward-only search, optimizer strength
Q4. Scopes and modifier instructions for Tables 14–15
REWARD_CONTRACT(Appendix I), and the shifts compound to 9.80 tool calls, 8.20 steps, and 64.96% verification coverage on held-out tasks.