Manuscript Offprint

arXiv:2610.37255

Your Policy Is Secretly a Harness: The Decision Geometry of Agent Interfaces

Jian Mu, Ruibo Shen, Yao Shu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Language model agents are post-trained and deployed through a harness, the prompts, tools, and control logic that present a task to the model and execute its outputs. Harnesses are often revised and judged by how an already trained model performs under them, which assumes that what the model learned under one harness carries over to the next. We ask what a policy learns from its harness and what survives when the harness changes. Under KL-regularized control, we show that the log odds of an optimal policy recover how strongly its harness favors each action over the others, so a trained policy carries the preferences of its harness. Deployed return then equals the ceiling of the harness, the best return it offers, minus the mismatch of the policy, the return lost to its own suboptimal decisions. Training changes only the mismatch, while changing the harness moves both terms. Comparing harnesses with a fixed model therefore mixes what each harness offers with how well that model uses it. In MiniWoB++, post-training makes a model's preferences specific to its training harness. Reversing the order of the observation fields leaves every optimal decision unchanged yet lowers a trained model's success from 85.0% to 19.2%. Conversely, every new harness that a fixed-model comparison rejects but that raises the ceiling outperforms the original agent after further training under it, and ceiling and mismatch measured beforehand predict these gains. For coding-agent harnesses on Terminal-Bench Lite, ceiling minus mismatch estimated with a stronger model as a stand-in for the optimum reproduces the accuracy ranking, while either term alone does not. Code is available at https://github.com/2020-qqtcg/HRP.

1 INTRODUCTION

Language model agents are post-trained and deployed through a harness, the prompts, tools, and control logic that present a task to the model and execute its outputs. Interface design and prompt formatting change agent performance (Yang et al., 2024; Sclar et al., 2024). Automated harness design revises prompts, tools, and workflows and scores each candidate by how a fixed model performs under it (Hu et al., 2025; Zhang et al., 2025b; Fernando et al., 2023; Zhang et al., 2026). Such a score assumes that what the model learned under earlier harnesses carries over to each candidate, yet the same interface change can raise one model's accuracy and lower that of a fine-tuned model (Mu et al., 2025). At the same time, training can move behavior that a prompt or a harness supplies into the weights (Snell et al., 2022; Ye et al., 2026), and recent methods adapt harnesses and weights together (Hebbar et al., 2026; Chen et al., 2026; Kim et al., 2026). These practices raise the question we study:

What does a policy learn from its harness, and what survives when the harness changes?

Two experiments make the question concrete. In the first, we take a web agent post-trained under one harness and reverse the order of the fields in its observation, a JSON object with fields such as the

*Corresponding author: yaoshu@hkust-gz.edu.cn.

task instruction, the page state, and the available actions. The fields keep their contents. We also hold fixed the actions, their execution, the rewards, and the reference policy that regularizes training, so every optimal decision stays the same. The model still changes its most probable action at about half of the states, and its task success falls from 85.0% to 19.2%. Keeping the decisions a model should make does not keep the decisions it makes.

Figure

Figure 1: Adaptation reverses a frozen comparison. The left group evaluates the model trained under Harness 0, the source checkpoint, under both harnesses with its weights frozen. The right group evaluates the models after equal further training under each harness. The dotted line marks the source checkpoint's success under Harness 0, and colors mark the evaluation harness.

In the second, a new harness adds batched clicks, which execute two clicks in one decision. The new actions raise the best achievable return, yet the trained model's success drops when we move it to the new harness without changing its weights. A frozen comparison, which evaluates candidate harnesses with the same trained weights, would therefore reject the new harness. We then train the model further for the same budget under each harness, starting from the same trained weights, which we call the source checkpoint. We call further training under the new harness adaptation, and further training under the original harness continuation. The adapted model succeeds more often than both the source checkpoint and the continued one. The harness that first hurt the model gives the best agent. Figure 1 shows the task success at each step, with the new harness as Harness 1.

We explain both results in the control problem that a harness induces over semantic actions, the operations an agent executes together with their arguments. Under KL-regularized control, the optimal policy is a softmax over action scores. Each score adds an action's long-term value to its log probability under the reference policy, so an optimal policy's log odds between two actions are proportional to the difference of their scores. A policy trained to optimality under a harness therefore carries the relative action scores that the harness induces, even though it contains none of the harness's code, tools, or execution machinery. In this sense, a policy is secretly a harness. In our controlled study, real post-training moves a model's action scores toward the optimum of its training harness, and each harness leaves its own preferences in the model.

Action scores also show why a trained policy can fail after it is moved to a new harness. The scores a policy carries are the ones it expresses through its training interface, which we call its readout through that interface, and the same weights can express different scores through another interface. A policy is thus secretly its training harness, as read through that harness. A new harness can therefore change which actions are optimal, by moving the optimal scores, and separately change which actions the model picks, by moving the readout. Reversing the observation fields leaves the optimal scores in place and moves only the readout.

Scores fix decisions but not how much return a harness offers, since raising every reward by the same constant changes no decision. To convert score changes into return, we therefore add this value back by applying the regularized performance-gap identity (Geist et al., 2019; O'Donoghue, 2022) to the harness-induced problem. Deployed return equals the harness's ceiling C, the best return any policy can reach under it, minus the policy's mismatch M, the return the policy loses by departing from the optimal policy. The mismatch is the KL divergence

Figure

① trained under harness 1 ② swapped, weights frozen ③ weights updated

Figure 2: A harness revision and a weight update act on different terms. Summit heights are the ceilings, the robot's altitude is its return, and the gap between them is the mismatch. Moving the trained model to the new harness with frozen weights (① to ②) raises the ceiling but lowers the return. Updating the weights under the new harness (② to ③) lowers only the mismatch. The adapted model beats the source checkpoint under the original harness once its mismatch M′M' falls below T, the new ceiling minus the source checkpoint's return under the original harness.

from the optimal policy, accumulated along the pol-

icy's own trajectories. The ceiling does not depend on the model's weights, so training under a fixed harness changes only M, while a harness change can move both terms. A frozen comparison of harnesses therefore mixes what each harness offers with how well the current checkpoint uses it. In the batched-click example, the new harness raises the ceiling slightly but raises the frozen model's mismatch about ten times as much, so return falls. Adaptation then lowers the mismatch, and once the mismatch falls below a threshold we derive, the adapted model beats the original model under the original harness. Figure 2 illustrates both steps. Our contributions are as follows.

  1. What a policy learns under a harness. The log odds of an optimal policy identify exactly the relative action scores that a harness induces. These scores fix every decision but not how much return the harness offers, which Contribution 3 adds back as the ceiling. On MiniWoB++, post-training moves the model's action preferences toward the training harness's optimum and makes them specific to that harness.

  2. Why transfer fails. We split the score error of a policy moved to a new harness into three parts. The target shift is the change in the optimal scores, the training residual is the error that training under the original harness left behind, and the readout drift is the change in the scores that the model expresses. Presentation changes that keep every optimal decision isolate the readout drift, and they alone can make a trained model fail on most tasks.

  3. What transfer costs and how to measure it. Deployed return equals ceiling minus mismatch exactly. From this identity we derive the mismatch threshold below which adaptation turns a harness revision that hurt the frozen model into a gain. Adaptation to batched clicks crosses this threshold and outperforms continued training under the original harness. We also move trained checkpoints between six harnesses. Among the moves that a frozen comparison rejects, ceiling and mismatch measured before adaptation predict which ones adaptation makes beneficial. Mismatch estimated from sampled actions predicts return changes when the optimum is known. For coding agents, where no optimum is available, estimates that put a stronger teacher model in the optimum's place order five harnesses by Terminal-Bench Lite accuracy.

References (100)

Couldn't load all references. Reload the page to try again.