arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.04518

What Does Multi-Harness RL Learn? Credit Assignment and Portability in Coding Agents

Chenqian Le, Jiayi Cheng, Qijia He, Runhao Li, Yinghao Li, Xupeng Chen

Chenqian Le*

New York University

c16707@nyu.edu

Jiayi Cheng*

New York University

jc10077@nyu.edu

Qijia He

University of Washington

heqj3@uw.edu

Runhao Li

University of Southern California

runhaoli@usc.edu

Yinghao Li

Columbia University

yinghao.li@columbia.edu

Xupeng Chen†

Dimension Gate

xupengchen@dimensiongate.cn

Abstract

Agent reinforcement learning (RL) increasingly runs through full execution harnesses, and a multi-harness recipe mixes two choices: exposing the policy to several harnesses, and comparing their rewards inside one relative-advantage group. We isolate the second choice in repository-level coding. From one Qwen3-8B supervised warm start we replay the same frozen task–harness records from Aider, OpenHands, Qwen Code, and SWE-agent, with the same number of updates, under two rules for group-relative policy optimization (GRPO), Within (one group per task–harness pair) and Cross (harnesses pooled within a task), and score every checkpoint with one sealed SWE-bench Verified oracle on the four source harnesses and on a minimal harness held out of training. The evaluation harness is the dominant variable: across 24,000 sealed evaluations it moves the mean solve rate from 2.14% to 9.27%, a factor of 4.3, where the training recipe moves it by 1.16. The grouping rule is not. On the held-out harness, Cross minus Within is +0.25 percentage points (pp), 95% confidence interval [-0.48, +1.02], at eight attempts per task, and +0.16 [-0.41, +0.72] pooled over three training seeds whose individual estimates change sign. Each rule's own seed range, 0.42 to 0.45 pp, exceeds the difference between them. Both rules place their largest gains on the same source harness. The pooled advantage carries the harness: an out-of-fold classifier recovers the generating harness from Cross's advantage +4.48 pp above the shuffled-label baseline and from Within's not at all, and the two rules still reach the same held-out score and the same action distribution inside each harness. Re-collecting half the training data on-policy does not change this. Cross-harness credit yields configuration adaptation and no more portable capability than within-harness credit. Multi-harness RL reports should state the grouping boundary and test under an unseen harness.

*Equal contribution.

†Corresponding author.

Preprint.

Figure

Figure 1: Controlled multi-harness training and harness-swap evaluation. Four production harnesses collect trajectories and rewards from the same SWE-Gym task pool; the frozen manifest holds records, tokens, and rewards fixed across the primary arms. Cross pools same-task traces across harnesses when constructing GRPO groups, whereas Within assigns credit separately within each task–harness pair. Checkpoints are graded by the same sealed oracle on the source harnesses and an unseen minimal harness. Source-profile changes combine portable improvement with configuration adaptation; held-out changes isolate the component that survives the harness swap.

1 Introduction

Coding agents act through production harnesses that choose prompts, tools, observations, context-management rules, retries, and control flow [Yang et al., 2024, Wang et al., 2025a, Gauthier, 2024, Qwen Team, 2025a]. Recent systems train policies through these harnesses, sometimes using several harnesses or harness configurations for one policy [Xu et al., 2026, Yu et al., 2026, Kimi Team, 2026, Song et al., 2026]. The phrase multi-harness RL does not specify how those harnesses interact during credit assignment.

Exposure does not determine the grouping rule. When several harnesses attempt the same task, their outcomes may be compared directly or normalized separately. HarnessX groups same-task traces across successive harness and model versions, so the traces compete inside one GRPO group [Chen et al., 2026]. ClawGym II treats each task–harness pair as the optimization unit instead: the harnesses share a policy and minibatch, but reward normalization remains separate [Song et al., 2026]. Because these systems also differ in exposure, rollout generation, training regime, and evaluation, their end-to-end results do not isolate the grouping boundary.

We isolate that boundary in repository-level coding (Figure 1). Four production harnesses collect a frozen trajectory corpus on a shared SWE-Gym pool [Pan et al., 2025]. From the same Qwen3-8B [Qwen Team, 2025b] supervised warm start, the two primary RL arms replay identical records, tokens, rewards, loss masks, and update budget. Within forms GRPO [Shao et al., 2024] groups inside each task–harness pair. Cross (PLAINCROSS in the released artifacts) pools all harnesses for the task. We evaluate every resulting checkpoint with one sealed per-instance oracle on the four source harnesses and on a minimal harness absent from training. The comparison holds experience diversity fixed and changes only cross-harness credit assignment.

The evaluation harness, not the training recipe, is the largest effect in the study. Letting harnesses compete for credit changes which trajectories carry gradient and leaves everything downstream of that in place: the held-out score, and the policy's action distribution inside each harness. Seeing several harnesses and comparing them for credit are separate interventions, and the second does not by itself make the learned policy harness-independent.