Papers
Topics
Authors
Recent
Search
2000 character limit reached

Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents

Published 30 Sep 2026 in cs.CL, cs.AI, and cs.MA | (2609.39982v1)

Abstract: Terminal agents act through stochastic model generations, yet the ability to generate a useful action does not ensure its reliable execution. A poor command (e.g., wrong package install) can change the environment in ways that hinder subsequent progress, even when the model could generate a better alternative. We investigate whether allocating test-time compute at the model-harness boundary can improve action reliability and trajectory success, and what makes this allocation effective. To study these questions, we introduce Mid-Harness, which samples and verifies candidate actions before forwarding one for execution, while keeping the generator and harness unchanged. With a TMAX-9B generator, more action sampling yields little benefit under weak verification, whereas a capable verifier can exploit useful alternatives from the same generator. On TerminalBench-Lite, a GPT-5.6 Sol verifier raises Pass@1 from 50.00% for the base agent to 68.03% with 8 sampled actions. When the same TMAX-9B model serves as the verifier, pairwise verification performs best among the evaluated verification mechanisms. Distilling responses from the stronger verifier into TMAX-9B further improves Pass@1, while leaving the action generator unchanged. With TMAX-9B on TerminalBench-Lite, combining action and trajectory scaling reaches higher success at lower estimated token cost than generating more trajectories alone. Mid-Harness also improves performance across additional models, benchmarks, and harnesses. These findings identify action scaling as a promising target for test-time compute scaling in terminal agents.

Summary

  • The paper introduces Mid-Harness, a test-time computation allocation method that enhances trajectory success by separating action-level sampling from trajectory scaling, optimising each action candidate selection prior to execution, and reducing intervention harm.
  • Experiments demonstrate that action-level sampling significantly improves success when a reliable verifier is in place, primarily with long-horizon terminal tasks owing to substantial dependency on correct commands in an evolving environment.
  • During test-time Mid-Harness, a distillated verifier consistently improved performance in both terminal agent tasks, leading to an average performance improvement of over 7%, and verifier training enhances trajectory success without changing the action generator.

Terminal agents fail not only because their models lack a useful action, but because they commit to one stochastic action before the environment can reveal whether an alternative would have been preferable. In long-horizon terminal tasks, this distinction is consequential: an incorrect edit, package installation, or process-management command changes the state on which all subsequent decisions depend. “Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents” studies test-time compute allocation at this model–environment interface (2609.39982). Its central claim is that action-level sampling can improve trajectory success, but only when the verifier can reliably distinguish useful candidates before execution.

Problem formulation and method

Mid-Harness inserts candidate generation and verification into the model-call wrapper while leaving both the action generator and execution harness unchanged. At state hth_t, the generator samples NN candidate actions from the same interaction history. A verifier selects one candidate, which is then passed to the original harness for execution. The remaining candidates are discarded, and the next candidate set is generated only after observing the resulting environment state.

This placement separates action scaling from trajectory scaling. Best-of-TT and related methods generate multiple complete trajectories and select among them after execution; Mid-Harness performs selection before an action mutates the environment. The distinction is operationally important because it requires only one environment instance for each trajectory and can reject a potentially harmful command before it is run. It also creates a stricter verification problem: the verifier must infer command semantics, execution feasibility, and task progress without observing the candidate’s actual effects.

The study evaluates three verification mechanisms. Listwise verification presents all candidates in one prompt, pointwise verification scores each candidate independently, and pairwise verification compares candidates under a shared context and aggregates the resulting preferences. For eight candidates, the default pairwise procedure uses a ring followed by a pivot tournament, requiring approximately 22–25 comparisons rather than all 28 unordered pairs. The generator samples with temperature 0.8, while the TMAX-9B verifier operates without explicit reasoning in the primary pairwise configuration unless otherwise stated.

The main evaluation uses 98 valid tasks from TerminalBench-Lite, three runs per task, TMAX-9B as the generator, and the Vanillux2 harness. Pass@1 is the mean exact-success rate over runs; Pass@3 is the fraction of tasks solved by at least one of three runs. Additional experiments use TMAX-4B and TMAX-27B, Terminal-Bench 2.1, SWE-bench-Verified Mini, FeatureBench-Mini, Qwen3.5-9B, Nemotron3.5 Lightning, Nemotron3 Ultra, and the Terminus-2 harness.

Candidate coverage and the dependence on verification

The first empirical question is whether additional samples from the fixed generator contain useful alternatives. A frontier verifier, GPT-5.6 Sol, provides an indirect test because the paper has no gold action labels. With TMAX-9B generating candidates, frontier listwise verification raises Pass@1 from 50.00% for the base agent to 64.63% with four candidates and 68.03% with eight. Pass@3 increases from 69.39% to 80.61% at N=8N=8.

Figure 1

Figure 1: Frontier verification extracts useful alternatives from TMAX-9B candidate sets, whereas zero-shot verification gains little from increasing candidate width.

This result supports the existence of exploitable candidate coverage: the generator already produces actions that can yield substantially better trajectories than the first sampled action. The improvement does not arise from modifying the generator or the harness. However, it is only an upper-bound-like diagnostic rather than a direct estimate of candidate quality, because trajectory success conflates action selection with all subsequent generation and execution decisions.

The stronger claim follows from the self-verification experiments. With TMAX-9B serving as both generator and verifier, increasing candidate width is ineffective under listwise verification. Pass@1 changes from 49.32% at N=4N=4 to 51.02% at N=8N=8, while Pass@3 changes from 66.33% to 67.35%. Thus, more candidates do not compensate for weak verification. The contrast with GPT-5.6 Sol indicates that candidate sampling is not an independent source of performance; its value is bottlenecked by the verifier’s ability to identify the correct action.

Verification structure matters even when the verifier model is fixed. At N=8N=8, pointwise verification reaches 52.38% Pass@1 and 67.35% Pass@3, whereas pairwise verification reaches 54.76% and 71.43%, respectively. Pairwise comparison provides a common reference for alternatives that may have different purposes, such as inspecting evidence, repairing an artifact, or retrying a failed command. Independent pointwise scores must instead be comparable across such heterogeneous action types.

The result is important but not universal: pairwise verification is best among the evaluated mechanisms, not necessarily optimal under equalized cost. Its advantage is accompanied by substantially greater decoding expense. At N=8N=8, zero-shot pairwise verification produces approximately 125.7k verifier output tokens per run, compared with 0.6k for listwise and 7.0k for pointwise verification.

Figure 2

Figure 2: Pairwise verification improves success but incurs much greater verifier decoding cost than listwise and pointwise alternatives.

Distilling frontier verification

The authors next transfer frontier-verifier behavior into a TMAX verifier using LoRA. The training corpus contains 117,631 pairwise supervision instances generated by GPT-5.6 Sol from trajectories on difficult TMAX-15k tasks. The action generator remains unchanged; only the verifier receives the adapter.

Distillation raises pairwise Mid-Harness performance at N=8N=8 from 54.76% to 57.14% Pass@1 and from 71.43% to 75.51% Pass@3. At N=4N=4, Pass@1 rises from 54.42% to 55.44%, and Pass@3 from 68.37% to 70.41%. The effect therefore demonstrates that verifier training can improve trajectory success without improving the action generator.

Offline diagnostics provide evidence that the behavioral transfer is not merely an artifact of end-to-end task variance. On 1,355 states with valid comparisons for both models, distillation reduces pairwise score MAE relative to the frontier verifier from 2.59 to 1.05. Pairwise preference agreement increases from 59.01% to 74.58%, and agreement on the top-ranked candidate increases from 38.52% to 57.79%.

Figure 3

Figure 3: Distillation substantially increases agreement with the frontier verifier, although later-trajectory states remain difficult.

Agreement is strongest early in trajectories: it reaches 68.13% for turns 1–4 but falls to 54.07% for turns 17–32. This degradation has a direct interpretation. Later states contain longer histories, more accumulated environmental changes, and more context-dependent action consequences, so improving verifier agreement does not eliminate the difficulty of reasoning about evolving execution state.

The residual failure analysis identifies candidate semantics and execution feasibility as 67.4% of the reviewed distilled-verifier failures. These categories include misinterpreting valid code, overlooking self-termination hazards, and preferring an action whose intended effect is plausible but whose execution cannot reach that effect. The analysis is necessarily relative to a teacher judged by GPT-5.6 Terra; these cases are not independently established gold errors. Nevertheless, the concentration of failures indicates that terminal-action verification requires more than recognizing generally plausible repairs. It requires predicting what a concrete command will do in a particular filesystem, process table, dependency environment, and task state.

Verification cost and decision-only inference

The paper examines whether explicit verifier reasoning is necessary. A decision-only pairwise verifier emits only an A/B preference, avoiding rationale and score generation. For TMAX-9B at NN0, decision-only verification improves Pass@1 from 54.76% to 56.12% in the zero-shot setting and from 57.14% to 59.18% after distillation. Reference-priced cost falls by 20.9% and 24.1%, respectively.

This finding is contradictory across model scales. At TMAX-4B and TMAX-27B, decision-only verification lowers Pass@1 relative to reasoning-based verification. For distilled models, the changes are 43.88% to 41.50% at 4B and 76.19% to 74.15% at 27B. The paper therefore does not establish that shorter verifier outputs are generally superior. The benefit depends on model scale, training configuration, aggregation procedure, and candidate width.

The cost accounting also distinguishes parallelized output tokens from total verifier output. Pairwise comparisons can run largely in parallel, but the ring and pivot stages introduce sequential dependencies. Moreover, long candidate actions and histories make verifier input costs substantial: the distilled TMAX-9B pairwise verifier has a median input length of 6,495 tokens and a 90th percentile of 10,380 tokens.

The experiments further show that simply increasing verifier inference does not reliably improve outcomes. Sampling five verifier responses per pair lowers Pass@1 from 57.14% to 53.40% while multiplying verifier output by approximately 4.99. Rubric scaling yields only a small change, from 54.76% to 55.10% Pass@1, with more than twice the output. Thus, additional verifier computation is not interchangeable with better verifier judgment.

Composition with trajectory-level scaling

Mid-Harness complements both parallel and sequential trajectory scaling. With TMAX-9B, Best-of-NN1 using three complete trajectories reaches 55.10% Pass@1. Adding zero-shot Mid-Harness raises this to 61.22%, while distilled Mid-Harness reaches 66.33%, an 11.23-percentage-point improvement over Best-of-NN2 alone with the same number of environment executions.

Sequential Refine produces a similar pattern. One refinement round reaches 55.10% without Mid-Harness and 60.20% with distilled action verification. Pass@3 increases from 71.43% to 75.51%.

Figure 4

Figure 4: Action-level verification improves both parallel trajectory selection and sequential refinement across model scales.

The cost comparison is particularly strong for the TMAX-9B setting. Distilled Mid-Harness at NN3 reaches 57.14% Pass@1, matching Best-of-NN4 at NN5 at approximately one-third of its reference-priced token cost. Combining distilled Mid-Harness with Best-of-NN6 at NN7 reaches 66.33%, exceeding Best-of-NN8 at NN9 at lower estimated cost. Combining it with one round of Sequential Refine reaches 60.20%, also above the performance of Best-of-TT0 at TT1.

These comparisons support a specific allocation principle: action-level and trajectory-level scaling address different failure modes and can be composed more efficiently than spending all additional compute on independent complete runs. The conclusion depends on the paper’s reference prices and idealized cost model, which count token usage but do not fully capture queueing, hardware utilization, environment startup, or the latency of sequential verifier stages.

Transfer across models, tasks, and harnesses

The action-scaling gains persist across the three TMAX sizes. On TerminalBench-Lite, distilled Mid-Harness raises Pass@1 from 38.78% to 43.88% at 4B, from 50.00% to 57.14% at 9B, and from 71.09% to 76.19% at 27B. The corresponding gains are not monotonic in absolute magnitude, but the direction is consistent in these aggregate results.

A broader transfer evaluation shows improvements on difficult task distributions:

Benchmark and setting Base Pass@1 Zero-shot Distilled
Terminal-Bench 2.1, TMAX-9B 21.72% 27.34% 26.59%
SWE-bench-Verified Mini, TMAX-9B 46.67% 48.00% 48.67%
FeatureBench-Mini, TMAX-9B 1.45% 5.80% 7.25%
FeatureBench-Mini, TMAX-27B 17.39% 17.39% 23.19%

The FeatureBench-Mini result is notable because the base TMAX-9B agent succeeds on only 1.45% of runs, while zero-shot and distilled verification raise this to 5.80% and 7.25%. At TMAX-27B, distillation increases Pass@1 by 5.80 percentage points and Pass@3 by 13.04 points. These results indicate that action verification can be useful in low-success regimes, although the absolute performance remains low.

Transfer also extends beyond TMAX models and Vanillux2. Zero-shot Mid-Harness improves Qwen3.5-9B and Nemotron3.5 Lightning under Terminus-2, as well as Nemotron3 Ultra on Terminal-Bench 2.1. Across the reported seven settings, zero-shot Mid-Harness improves Pass@3 and matches or improves Pass@1. Distillation is less uniformly beneficial: it improves some benchmarks while reducing Pass@3 on FeatureBench-Mini relative to zero-shot verification and failing to improve Terminal-Bench 2.1 over the zero-shot variant.

The stratified analysis qualifies the aggregate improvements. Distilled Mid-Harness helps software engineering, machine learning, debugging, and system-setup tasks across model sizes, but scientific-computing tasks include a 10.0-point regression at 27B. Longer base-agent executions often benefit, yet gains do not increase monotonically with observed trajectory length. The method therefore does not provide a universal improvement for every task class or execution horizon.

Limitations and open questions

The evaluation lacks gold action labels and cannot directly measure candidate coverage, verifier correctness, or the success attainable under perfect action selection. Because executing a candidate changes the environment, offline reuse of a fixed trajectory set cannot fully evaluate alternative verifiers online. Branching evaluation would require environment cloning, restoration, or a sufficiently accurate world model.

The primary comparisons also use only three runs per task, constrained by the cost of fresh Docker environments and long sequential executions. The bootstrap intervals show that the strongest evidence is concentrated in distilled TMAX-9B and TMAX-27B comparisons. Several other positive point estimates have intervals containing zero, so the paper does not establish statistically resolved improvement for every model and verifier configuration.

The compute allocation remains incomplete. The experiments keep generator reasoning settings fixed and do not compare candidate sampling against increased reasoning effort for a single candidate at matched cost. They also verify every action with a fixed candidate width, leaving adaptive policies for allocating verification effort unresolved. In addition, the frontier verifier remains substantially stronger: at TT2, GPT-5.6 Sol reaches 68.03% Pass@1, compared with 57.14% for distilled TMAX-9B. The paper therefore establishes partial knowledge transfer, not parity with frontier verification.

The principal open technical question is how to train verifiers to model action effects and execution feasibility in later, heavily modified states without requiring exhaustive environment branching. A related question is whether generator and verifier should be jointly optimized so that the verifier’s training distribution tracks the generator’s evolving candidate distribution.

Conclusion

Mid-Harness isolates action-level test-time scaling at the boundary between a LLM and its execution harness. Its results show that TMAX-9B generates useful alternatives, but weak verification cannot exploit them; pairwise comparison and frontier-verifier distillation recover part of the available performance. Distilled verification raises TMAX-9B Pass@1 from 50.00% to 57.14% on TerminalBench-Lite without changing the generator, and composition with trajectory scaling reaches 66.33% at lower estimated token cost than generating substantially more complete trajectories alone. The remaining gap is concentrated in environment-dependent command semantics and execution feasibility, establishing action verification—not candidate generation—as the principal bottleneck identified by the study (2609.39982).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Explain it Like I'm 14

1. What is this paper about?

This paper studies how to make AI agents that use computer terminals more reliable.

A terminal is a text-based computer interface where an agent can type commands, edit files, install software, and run programs. These agents are often powered by LLMs, but they can make mistakes. For example, they might install the wrong package or run a command that makes later steps harder.

The paper introduces a method called Mid-Harness. Before allowing the agent to carry out an action, Mid-Harness asks the model to suggest several possible actions and then chooses the one that seems best.

A simple way to imagine this is:

Instead of immediately choosing the first answer that comes to mind, the agent thinks of several answers, compares them, and then picks one.

2. What questions did the researchers ask?

The researchers mainly wanted to answer four questions:

  1. Does suggesting several possible actions help an agent complete more tasks?
  2. How good must the action-checking system be for this to work?
  3. Which way of comparing actions works best?
  4. Can this method work together with other ways of giving an AI more thinking time?

They were especially interested in an important problem: generating more choices is only useful if the agent can recognize which choice is best.

For example, if a student writes five possible answers but cannot tell which one is correct, writing more answers does not help much. The same is true for an AI agent.

3. How did the researchers test their idea?

The basic Mid-Harness process

Normally, a terminal agent works like this:

  1. Read the task and the current computer situation.
  2. Generate one command or action.
  3. Run that action.
  4. Read the result.
  5. Decide what to do next.

Mid-Harness changes only the second step:

  1. Read the task and current situation.
  2. Generate several possible actions.
  3. Use a verifier to compare them.
  4. Send only the chosen action to the computer.
  5. Continue with the result.

The verifier is like a judge. It examines the possible commands and tries to decide which one is most likely to help.

Importantly, the researchers kept the main action-generating model and the computer-control system unchanged. This allowed them to study the effect of choosing actions more carefully.

Different ways of comparing actions

The paper tested three comparison methods:

  • Listwise verification: The verifier sees all possible actions at once and chooses one.
  • Pointwise verification: The verifier gives each action a separate score, like grading several answers.
  • Pairwise verification: The verifier compares two actions at a time, like deciding which of two contestants performed better.

Pairwise comparison can be more expensive because many pairs may need to be checked. However, it gives the verifier a clearer question: Which of these two actions is better?

Models and tasks

The main experiments used:

  • A model called TMAX-9B to generate actions.
  • A strong outside model called GPT-5.6 Sol as a verifier in some experiments.
  • Terminal-based tasks from TerminalBench-Lite.

The tasks involved activities such as working with code, files, and software environments.

The researchers measured success using Pass@1. This means the percentage of tasks successfully completed in a single attempt.

They also tested a process called distillation. In this process, a smaller model learns from the decisions of a stronger model. It is similar to having an expert teacher show a student many examples of good and bad choices.

4. What did the researchers discover?

More choices help only when verification is good

The strongest result was that simply generating more actions was not enough.

When TMAX-9B generated eight possible actions and GPT-5.6 Sol selected among them, success increased from:

  • 50.00% for the normal agent
  • to 68.03% with Mid-Harness

This shows that the original model often had a good action among its choices. A stronger verifier was able to find that action.

However, when TMAX-9B tried to verify its own actions without extra training, generating more choices helped much less. With eight candidates, success rose only to about 51.02% using listwise verification.

This means that the quality of the judge is extremely important.

Pairwise comparison worked best for the tested self-verifiers

When TMAX-9B compared its own possible actions, pairwise verification performed better than the other tested methods.

With eight candidates, pairwise verification achieved:

  • 54.76% Pass@1
  • 71.43% Pass@3

This was better than comparing all actions at once or scoring each action separately.

The likely reason is that comparing two choices is simpler than trying to rank a large group all at once.

Training the verifier improved results

The researchers trained a TMAX-9B verifier using examples from the stronger GPT-5.6 Sol verifier.

After this training, success increased from:

  • 54.76% to 57.14% Pass@1
  • 71.43% to 75.51% Pass@3

The important point is that the action-generating model itself was not changed. Only the verifier became better at choosing among the model's suggestions.

The method worked with other scaling methods

The researchers also compared Mid-Harness with methods that generate or improve entire task attempts.

They found that combining these methods was often better than using either one alone. For example, generating several possible actions during a run and also generating several complete runs could produce higher success while using fewer estimated tokens than simply generating many complete runs.

In one comparison, the combined method achieved better results than generating seven full trajectories, while costing less according to the paper's token estimates.

The method worked across different models and tasks

Mid-Harness improved performance not only for TMAX-9B, but also for smaller and larger models, including 4B and 27B versions.

It also helped on several different benchmarks, including tasks related to:

  • Terminal use
  • Software engineering
  • Feature development

The improvements were especially noticeable on difficult tasks where the normal agent rarely succeeded.

What problems remained?

Even after training, the verifier still struggled to understand:

  • What a command would actually do
  • Whether a command could run successfully in the current computer environment
  • Whether an action that looks reasonable would cause problems later

These are difficult challenges because a command's meaning depends on the current state of the computer. The same command may work in one situation but fail in another.

5. Why are these results important?

The paper shows that there is another useful way to give AI agents more computing power.

Researchers often improve agents by:

  • Making the model larger
  • Generating several complete attempts
  • Asking the model to revise an entire solution

This paper suggests another option: generate several possible actions at each step and carefully choose among them.

This can be useful because terminal tasks are long. A single bad command can damage the environment and make all later decisions worse. Checking an action before running it may prevent that mistake early.

Mid-Harness may therefore make computer-using AI agents:

  • More reliable
  • Better at coding and software tasks
  • Less likely to make harmful or unhelpful changes
  • More efficient than simply repeating entire attempts

However, the method is not perfect. Verification costs extra computing power, and the verifier can still misunderstand commands. Also, the paper measures whether tasks are completed; it does not prove that the commands are safe. Real systems would still need limits on permissions, isolated environments, and human approval for sensitive actions.

Simple conclusion

The main message of the paper is:

An AI agent can do better if it considers several possible actions before acting, but only if it has a good way to choose between them.

Mid-Harness places this decision-making step between the AI model and the computer. The experiments show that this can significantly improve task success, especially when the verifier is strong or has been trained using examples from a stronger model.

In the future, this idea could help build more dependable AI assistants for programming, data analysis, and other computer tasks.

Knowledge Gaps

Knowledge gaps, limitations, and open questions

  • The study lacks gold action-level labels, so it cannot directly measure whether a verifier selected the objectively best action, how often useful candidates were sampled, or whether improvements arise from correct verification versus chance.
  • The paper does not establish a causal relationship between verifier agreement and actual action correctness: agreement with GPT-5.6 Sol is used as a proxy, but the frontier verifier itself may make systematic errors.
  • Candidate coverage is evaluated indirectly through trajectory success; the paper does not quantify how candidate usefulness varies by action type, task difficulty, trajectory stage, or environmental state.
  • The experiments do not compare Mid-Harness against verifiers with access to explicit execution simulations, shell sandboxes, static analyzers, unit tests, or lightweight environment rollouts, leaving unclear whether language-only verification is competitive with executable validation.
  • The verifier cannot introduce a new action or repair a flawed candidate; it must select from the sampled set. The benefits of allowing candidate editing, synthesis, decomposition, or rejection-and-resampling remain unexplored.
  • The paper evaluates a limited set of verification mechanisms—listwise, pointwise, and pairwise—and does not determine whether other aggregation strategies, tournaments, learned reward models, calibrated scoring, or adaptive comparisons would outperform pairwise verification.
  • Pairwise verification is evaluated primarily with fixed candidate widths and comparison schedules; the optimal adaptive allocation of verifier calls based on candidate uncertainty, disagreement, or estimated action risk is unknown.
  • The best candidate width, verification mechanism, and compute allocation may depend on the task, trajectory state, model scale, and verifier capability, but the paper does not develop or evaluate an adaptive policy for choosing these parameters online.
  • The cost analysis relies on estimated token counts, idealized parallelized output tokens, and reference prices. It does not measure end-to-end wall-clock latency, GPU utilization, memory overhead, queueing effects, or actual deployment cost.
  • The apparent cost advantage of Mid-Harness may change when verifier calls cannot be fully parallelized or when environment execution, tool latency, and model serving overhead dominate; these realistic systems conditions are not evaluated.
  • The reported experiments use only three runs per task, limiting the precision of Pass@1 and Pass@3 estimates, especially on small subsets such as FeatureBench-Mini and SWE-bench-Verified Mini.
  • Several transfer evaluations use small or restricted benchmark subsets, so the robustness of the gains across the full benchmark distributions remains uncertain.
  • The paper does not provide a systematic analysis of statistical significance, confidence intervals, or per-task paired improvements for every major comparison, making it difficult to distinguish robust gains from task-sample variation.
  • The experiments focus mainly on TMAX models and a small number of other models; broader scaling behavior across different training objectives, model families, context lengths, tool-use formats, and sampling temperatures is unresolved.
  • The effect of candidate diversity is not isolated from candidate quantity. The paper does not test whether alternative sampling methods—such as temperature schedules, nucleus settings, prompt perturbations, diverse decoding, or structured proposal generation—produce more useful action sets at the same width.
  • Distillation uses pairwise responses from GPT-5.6 Sol and a relatively narrow source distribution. Its performance under out-of-distribution tasks, unseen command patterns, different operating systems, and novel tool environments is not established.
  • The paper does not investigate whether distilling the verifier introduces teacher biases, undesirable heuristics, preference over safe-looking but ineffective commands, or vulnerabilities to adversarially phrased candidates.
  • The residual verifier errors are categorized by another LLM, GPT-5.6 Terra, rather than by executable ground truth or independent human experts. The reliability and reproducibility of the error taxonomy and its 67.4% semantics/feasibility estimate are therefore uncertain.
  • The analysis of later-trajectory verification difficulty is descriptive; it does not identify whether errors arise primarily from longer histories, accumulated state uncertainty, context dilution, command complexity, or irreversible environmental changes.
  • The study does not evaluate explicit methods for representing or updating environment state, such as structured state summaries, dependency graphs, filesystem snapshots, or learned world models, despite identifying state-dependent command effects as a major bottleneck.
  • The safety analysis is limited to a general warning. The method is not tested for unsafe, destructive, privacy-sensitive, privilege-escalating, or adversarial commands, and improved task success is not shown to correlate with safer behavior.
  • The paper does not measure the risk that sampling and verification increase exposure to dangerous candidate commands, even when those candidates are ultimately rejected.
  • The method’s behavior under partial observability, nondeterministic environments, flaky tests, network failures, timeouts, concurrent processes, or non-repeatable side effects is not evaluated.
  • The assumption that candidates generated from the same history can be fairly compared may fail when candidates have different resource requirements, execution durations, side effects, or degrees of reversibility; these dimensions are not modeled in the verifier objective.
  • The study does not examine whether action verification improves or harms recovery after an earlier mistake, particularly when all sampled candidates inherit a corrupted environment state.
  • The composition experiments cover only limited settings—primarily Best-of-TT and one or a few Sequential Refine configurations—and do not establish the optimal interaction among action scaling, trajectory scaling, refinement depth, branching search, and environment reuse.
  • The comparison with trajectory scaling does not fully normalize all forms of compute, including input-token processing, environment execution cost, verifier training cost, memory usage, and infrastructure cost.
  • The paper leaves unresolved whether the observed gains come from action-level selection itself or from giving the verifier additional opportunities to reread and analyze the same history, which would require controlled compute-matched baselines.
  • The evaluation does not compare Mid-Harness with a baseline that samples multiple actions but selects using random choice, majority behavior, action-frequency heuristics, or a generator confidence score, limiting attribution of gains specifically to semantic verification.
  • The generator and verifier are often the same model, but the study does not characterize how generator–verifier correlation affects selection quality, nor what degree of model diversity is optimal.
  • The paper does not test whether verifier ensembles, cross-model disagreement, or specialized verifiers for command semantics, feasibility, safety, or task progress can close the remaining gap more effectively than a single general-purpose verifier.
  • The framework assumes that the verifier can process the full task history and candidate set within context limits; scaling behavior under very long trajectories, large outputs, or memory-constrained serving remains unresolved.
  • The paper does not investigate how verification affects agent behavior over time, such as changes in exploration, conservatism, command diversity, trajectory length, or tendency to repeat actions.
  • The experiments do not determine whether Mid-Harness generalizes to interactive applications beyond terminal environments, such as browsers, robotics, APIs, graphical interfaces, or multi-agent tool systems.
  • The method’s effectiveness when environment execution is expensive or irreversible is unclear, because the paper primarily evaluates benchmark environments and does not study real-world deployment constraints or human approval workflows.
  • The reproducibility of the strongest results depends on proprietary or insufficiently characterized components, including GPT-5.6 Sol/Terra and associated prompts or behaviors; independent replication with open frontier verifiers remains an open question.
  • The paper does not provide a theoretical model predicting when additional candidate sampling will be useful as a function of candidate coverage, verifier accuracy, action dependency, horizon length, and error recovery, leaving the empirical findings without a general decision rule.

Practical Applications

Immediate Applications

  • More reliable software-engineering agents
    • Sector: Software development, DevOps, IT operations.
    • Add a Mid-Harness-style wrapper around coding agents so that they generate several candidate actions—such as code edits, shell commands, package installations, or test commands—and verify them before execution.
    • Pairwise verification is a practical default when candidates have different purposes, because the paper found it more effective than listwise or pointwise verification under self-verification.
    • Potential tools/workflows: IDE coding assistants, automated pull-request agents, CI/CD repair bots, repository migration tools, and infrastructure-as-code agents.
    • Assumptions/dependencies: The verifier must understand the current repository state and command semantics; execution must occur in a sandbox; additional model calls increase latency and inference cost. Verification should not replace tests, code review, permission controls, or rollback mechanisms.
  • Safer terminal and shell-command automation
    • Sector: System administration, cloud operations, cybersecurity defense.
    • Before executing commands such as file deletions, dependency changes, database migrations, or configuration updates, sample alternatives and select the candidate most likely to advance the task without damaging the environment.
    • A decision-only verifier could be used where latency and cost are more important than explanatory reasoning. The paper reports lower estimated token costs for decision-only verification while retaining or improving performance in some model settings.
    • Potential products: “dry-run” command selectors, shell copilots with pre-execution checks, automated incident-response assistants, and sandboxed maintenance agents.
    • Assumptions/dependencies: The system needs accurate environment state, command metadata, and preferably static checks or dry-run support. High-impact actions should require human approval and use least-privilege credentials.
  • Improved autonomous data-science workflows
    • Sector: Data science, analytics, research computing.
    • Use candidate verification before actions such as installing libraries, modifying notebooks, selecting data-processing commands, or launching expensive experiments.
    • The method is particularly relevant when an early incorrect action can corrupt a workspace or make later steps fail.
    • Potential workflow: Generate several analysis actions, compare them against the task and current notebook or terminal state, execute only one, then update the history with the resulting observation.
    • Assumptions/dependencies: The verifier must reason about package compatibility, file formats, runtime constraints, and data provenance. Reproducible environments and checkpointing are needed for recovery.
  • Drop-in reliability layer for existing agent frameworks
    • Sector: AI infrastructure and agent platforms.
    • Implement Mid-Harness at the model-call wrapper rather than modifying model weights or the execution harness. This allows existing agents to gain action-level scaling without redesigning their serving architecture.
    • Potential tools: Middleware libraries, API gateways, inference-time plugins, or configurable “candidate width” and “verification policy” modules.
    • Assumptions/dependencies: The framework must expose candidate generation and provide the verifier with the task, interaction history, and candidate actions. The approach is most useful when multiple sampled actions contain meaningful alternatives.
  • Cost-aware agent serving
    • Sector: Cloud AI services and enterprise automation.
    • Dynamically select the amount and type of verification based on task risk, uncertainty, or estimated cost. For routine actions, use one candidate or decision-only verification; for irreversible or ambiguous actions, use more candidates and pairwise or stronger-model verification.
    • The paper indicates that combining action-level scaling with trajectory-level methods can achieve higher success at lower estimated token cost than simply generating more complete trajectories.
    • Assumptions/dependencies: Requires calibrated risk estimates, token and latency budgets, and reliable routing between small local verifiers and stronger external models. Reported prices and parallelization assumptions may not hold in all deployments.
  • Evaluation and monitoring of terminal agents
    • Sector: AI quality assurance, benchmarking, model governance.
    • Extend agent evaluations beyond final task success by measuring:
    • candidate coverage,
    • verifier agreement,
    • command-semantic errors,
    • execution-feasibility errors,
    • success as candidate width increases,
    • latency and verifier-token cost.
    • The paper’s offline comparison protocol can be adapted to identify whether failures arise from poor generation or poor candidate selection.
    • Assumptions/dependencies: There is generally no gold label for the best intermediate action, so agreement with a stronger verifier is only a proxy and should not be treated as ground-truth correctness.
  • Research and teaching infrastructure for agentic systems
    • Sector: Academia and education.
    • Use the method as a controlled experimental framework for studying test-time compute: hold the generator and harness fixed while varying candidate width, verifier type, model size, and distillation.
    • It can support coursework or laboratory studies on search, reward modeling, process verification, and agent reliability.
    • Assumptions/dependencies: Requires isolated benchmark environments, reproducible harnesses, sufficient compute, and careful separation between offline verifier agreement and actual task success.
  • Policy and safety controls for autonomous command execution
    • Sector: AI governance, compliance, cybersecurity.
    • Incorporate pre-execution candidate verification into organizational control policies for agents operating on production systems. Verification can serve as one layer in a defense-in-depth workflow:
    • 1. generate candidate actions,
    • 2. verify task relevance and likely effects,
    • 3. apply policy and permission checks,
    • 4. request human approval for sensitive actions,
    • 5. execute in an isolated or reversible environment.
    • Assumptions/dependencies: The paper explicitly does not establish that verification guarantees safety or security. Formal policy enforcement, access controls, sandboxing, audit logs, and human oversight remain necessary.

Long-Term Applications

  • High-reliability autonomous software maintenance
    • Sector: Software engineering and enterprise IT.
    • Develop agents that perform multi-step repository upgrades, vulnerability remediation, test repair, dependency migration, and deployment preparation while choosing among alternative actions at every state.
    • A mature system could combine:
    • candidate generation,
    • pairwise action verification,
    • static analysis,
    • test execution,
    • rollback,
    • trajectory-level refinement.
    • Assumptions/dependencies: Requires stronger understanding of command effects and execution feasibility—the two residual error categories that accounted for most distilled-verifier failures in the paper. Large-scale deployment also requires reliable state snapshots and rollback.
  • Autonomous scientific-computing assistants
    • Sector: Scientific discovery, engineering simulation, high-performance computing.
    • Apply verified action selection to workflows involving simulation setup, environment configuration, dataset preparation, experiment scheduling, and result analysis.
    • Agents could compare alternative computational plans before launching costly or irreversible jobs.
    • Potential products: Laboratory automation controllers, reproducible experiment managers, simulation orchestration agents, and scientific workflow copilots.
    • Assumptions/dependencies: The verifier must model domain-specific side effects, resource constraints, numerical validity, and experiment provenance. Integration with schedulers and domain-specific validators is essential.
  • Robotic and embodied-agent action selection
    • Sector: Robotics and industrial automation.
    • Generalize Mid-Harness from terminal commands to candidate motor plans, manipulation actions, navigation steps, or tool-use operations. Before acting, a verifier could compare alternatives against the robot’s current state and task objective.
    • Potential applications: Warehouse robots, laboratory robots, inspection systems, and household assistants.
    • Assumptions/dependencies: This extension requires a sufficiently accurate simulator or world model, real-time verification, uncertainty-aware planning, and strong physical safety guarantees. Terminal-agent results do not directly establish performance in dynamic physical environments.
  • Reliable cloud, energy, and infrastructure control
    • Sector: Cloud operations, energy systems, telecommunications, industrial control.
    • Use action-level verification to select among scaling, routing, scheduling, maintenance, or configuration actions before they affect live infrastructure.
    • Combining verification with digital twins or predictive simulators could allow candidate actions to be evaluated for likely resource, reliability, and safety consequences.
    • Assumptions/dependencies: Requires high-fidelity state observation, simulation or formal constraints, strict latency bounds, and fallback controllers. The cost of an incorrect action may be too high for language-model verification alone.
  • Verifier reinforcement learning and specialized process-reward models
    • Sector: Machine learning research.
    • Train verifiers directly on execution outcomes, recovery success, command semantics, and environment-specific feasibility rather than relying primarily on frontier-model distillation.
    • Future systems could learn:
    • environment-specific action value,
    • uncertainty estimates,
    • when to abstain,
    • when to request a stronger verifier,
    • when to generate a new candidate set.
    • Assumptions/dependencies: Requires high-quality interaction data, safe exploration, reliable outcome labels, and methods that avoid optimizing superficial agreement with a teacher. The paper identifies reinforcement learning for verifiers as a promising direction.
  • Adaptive search over actions and trajectories
    • Sector: General agent planning and decision systems.
    • Build hierarchical search systems that allocate compute both within a trajectory and across complete trajectories. Action-level verification can prune poor branches before they alter the environment, while trajectory-level methods compare broader plans.
    • Potential architecture: Candidate sampling → pairwise or tournament verification → safe execution → observation update → selective trajectory branching or refinement.
    • Assumptions/dependencies: Parallel trajectory methods require multiple environment instances or reliable state serialization. Search quality depends on the verifier being able to assess actions before execution, a capability that remains imperfect.
  • Safety-certified autonomous agents
    • Sector: Regulated automation, healthcare IT, finance, and public-sector systems.
    • Combine Mid-Harness-like candidate comparison with formal policy checkers, typed action schemas, causal impact models, and human authorization. The long-term goal would be agents that can justify not only which action is best, but also why alternatives are unsafe or infeasible.
    • Potential applications: Clinical workflow automation, financial operations, public-service case management, and regulated infrastructure administration.
    • Assumptions/dependencies: These settings require domain validation, explainability, auditability, privacy protection, and legally meaningful accountability. Empirical improvements in benchmark Pass@1 are insufficient evidence for unsupervised deployment in high-stakes domains.
  • Personal productivity and household assistants
    • Sector: Daily life and consumer software.
    • Use candidate verification for multi-step tasks such as organizing files, configuring applications, planning errands, managing calendars, or automating smart-home devices.
    • For example, an assistant could generate several ways to clean a folder or schedule appointments, compare their likely consequences, and ask for confirmation before irreversible actions.
    • Assumptions/dependencies: Requires access to accurate personal context, transparent previews, user-configurable permissions, privacy-preserving inference, and an easy mechanism for undoing actions. Verification should be treated as assistance rather than a guarantee of correctness.

Glossary

  • Action scaling: Allocating additional computation to generate and verify multiple candidate actions within an agent trajectory. “These findings identify action scaling as a promising target for test-time compute scaling in terminal agents.”
  • Agentic tasks: Tasks in which an AI system must take actions in an environment to achieve an objective. “Although most works focus on reasoning tasks, our work mainly addresses agentic tasks and action scaling where each action affects the environment.”
  • Candidate coverage: The extent to which sampled actions contain useful alternatives that could lead to successful task completion. “Candidate coverage concerns whether sampled actions include useful alternatives.”
  • Candidate width: The number of alternative actions sampled for consideration at a single step. “We examine when sampling and verification improve trajectory success, their costs, and the effect of verifier distillation, with a fixed TMAX-9B generator.”
  • Command semantics: The meaning and expected effect of a command in a particular execution environment. “Remaining disagreements center on command semantics and execution feasibility.”
  • Context management: Techniques for selecting, organizing, or maintaining information supplied to a model during interaction. “Prior work develops agent interfaces, context management, and automated harness optimization.”
  • Decision-only verifier: A verifier that outputs only a decision, such as an A/B preference, without generating an explanatory reasoning trace. “At N=8N=8, both TMAX-9B decision-only verifiers improve Pass@1 over their reasoning counterparts.”
  • Discriminative reward model: A model that directly predicts a score or preference for an input rather than generating an explanatory evaluation. “Following direct prediction in discriminative reward models, we evaluate pairwise verifiers that emit only an A/B preference.”
  • Distillation: Training a smaller or different model to reproduce the outputs or behavior of a stronger teacher model. “We test whether supervised distillation can transfer part of this capability without serving the frontier model at inference time.”
  • Environment instance: A separate, usually isolated execution environment in which an agent performs a task. “Comparing candidates against the unresolved task requirement may therefore improve both the next action and the states encountered later, while requiring only one environment instance.”
  • Execution feasibility: Whether a proposed action can successfully run and produce the intended effect in the current environment. “Candidate semantics and execution feasibility account for 67.4\% of these distilled-verifier cases.”
  • Frontier verifier: A highly capable verifier model used as a reference for assessing candidate actions or training another verifier. “The frontier verifier in \autoref{sec:coverage} uses GPT-5.6 Sol.”
  • Generative verifier: A verifier that generates reasoning, scores, or decisions as text rather than producing only a fixed classification. “In the default mechanisms, the verifier ψ\psi generates reasoning followed by scores or a choice, following generative verifiers.”
  • Harness: The software system that manages an agent’s interaction loop, including executing actions and returning observations. “The pseudocode below shows how Mid-Harness adds candidate sampling and verification to the model-call wrapper, returning one action to the unchanged harness without modifying model weights or serving architecture.”
  • Interaction history: The accumulated sequence of task information, agent actions, and environmental observations used to condition subsequent decisions. “Let π\pi be the action-generating model and ht=(o0,a1,o1,…,at−1,ot−1)h_t=(o_0,a_1,o_1,\ldots,a_{t-1},o_{t-1}) its interaction history.”
  • Listwise verification: Evaluating an entire set of candidates together and selecting one from the list. “The verifier receives the entire candidate set in a single prompt and returns a choice.”
  • Long-horizon sequence: A sequence of many dependent actions whose later outcomes are affected by earlier decisions. “The same model and harness may succeed on one run and fail on another because each run commits to a long-horizon sequence of stochastically generated actions.”
  • Low-rank adaptation (LoRA): A parameter-efficient fine-tuning method that learns low-rank updates to a model’s weights. “Using 117k frontier-verifier pairwise responses collected from 732 trajectories across 244 difficult TMAX-15k tasks, we use LoRA to train a verifier.”
  • Model-harness boundary: The interface between a model that generates actions and the software system that executes them. “We introduce Mid-Harness, a method for studying action-level compute scaling at the model-harness boundary while keeping the action generator and execution harness unchanged.”
  • Offline benchmark: An evaluation performed on previously collected data rather than through live interaction with an environment. “We use this offline benchmark to compare pairwise verification outputs of different models under the same state.”
  • Parallelized output tokens (POT): The number of generated tokens used as an approximation of decoding latency when outputs can be generated concurrently. “Parallelized output tokens (POT) approximate decoding latency of both generator and verifier under idealized parallel execution.”
  • Pairwise agreement: The proportion of candidate comparisons for which two verifiers produce the same preference. “Pairwise agreement is the fraction of comparisons with matching verifier and teacher A/B/TIE preferences.”
  • Pairwise verification: Comparing candidates two at a time and aggregating the resulting preferences to select an action. “The verifier receives two candidates under the same history and generates a preference with comparative scores.”
  • Pass@1: The fraction of tasks solved by the first or returned attempt under the specified evaluation procedure. “On TerminalBench-Lite, a GPT-5.6 Sol verifier raises Pass@1 from 50.00\% for the base agent to 68.03\% with 8 sampled actions.”
  • Pass@3: The fraction of tasks solved by at least one of three evaluated runs. “Pass@3 measures the fraction of tasks solved by at least one of the three runs.”
  • Pointwise verification: Scoring each candidate independently and selecting the candidate with the highest score. “The verifier assigns each candidate a scalar score qi=ψpoint(ht,ati)q_i=\psi_{\mathrm{point}}(h_t,a_t^i) and returns i⋆∈arg⁡max⁡iqii^\star\in\arg\max_i q_i.”
  • Process reward model: A model that evaluates intermediate steps in a reasoning or action sequence rather than only the final outcome. “This resembles the step-scoring of process reward models.”
  • Probabilistic pivot tournament: A tournament-based selection procedure that uses a probabilistic pivot to choose among completed trajectories. “At the trajectory level, Best-of-TT Trajectories (Best-of-TT) uses a probabilistic pivot tournament to choose one output from TT completed trajectories.”
  • Reinforcement learning: A learning paradigm in which a model improves its behavior through feedback based on the consequences of its actions. “TMAX-9B is trained from Qwen3.5-9B through reinforcement learning on synthetic terminal tasks using Vanillux2.”
  • Sequential refinement: Improving a result through multiple rounds in which a new run is guided by a summary or feedback from a previous run. “The sequential trajectory-level method Sequential Refine (SR) performs RR refinement rounds, each summarizing the previous run to guide a fresh run.”
  • State serialization: Encoding an environment’s state so that it can be saved, transferred, or restored. “Best-of-TT and SR require fresh environment runs, which can be difficult outside benchmarks without reliable state serialization.”
  • Supervised distillation: Distillation in which a student model is trained directly on labeled outputs or preferences produced by a teacher model. “We test whether supervised distillation can transfer part of this capability without serving the frontier model at inference time.”
  • Test-time compute scaling: Improving performance by allocating additional computation during inference rather than increasing model parameters or retraining the base model. “Prior work improves reasoning and agent performance by allocating additional test-time compute to sampling, verification, and refinement.”
  • Trajectory: The sequence of actions and observations produced during one complete agent execution. “A run is one execution on a task, and its trajectory is the resulting sequence of actions and observations.”
  • Trajectory-level scaling: Allocating additional computation across complete agent runs or trajectories. “We organize additional compute at two levels: before action execution and across complete runs.”
  • Trajectory success: Successful completion of a task measured over an agent’s full sequence of interactions. “We use action reliability to mean consistently generating actions that support task completion, and evaluate its trajectory-level consequences through task success.”
  • Verifier distillation: Training a verifier to imitate the decisions or reasoning of a stronger verifier. “Verifier distillation improves trajectory success without changing the generator.”
  • Zero-shot verification: Verification performed by a model without task-specific fine-tuning for the verification role. “Zero-shot Mid-Harness uses the same generator model as the verifier without any fine-tuning.”

Tweets

Sign up for free to view the 3 tweets with 132 likes about this paper.