Co-Evolving Harnesses and Models: On-Policy Correction Helps Weaker Models Catch Up Where Imitation Fails

Zhou Yu, Bin Bi, Shiva Kumar Pentyala, Shubham Mehrotra, Sougata Chaudhuri, Shilpa Bhagavath, Zeyuan Chen, Ran Xu and 3 others

Salesforce AI

Published September 8, 2026 · on the feed September 10, 2026 · ▲ 11 · arXiv 2609.09134

AgentsLLM training & RL No code arXiv ↗Hugging Face ↗

The abstract

Agent harnesses (the system prompt, tool set, execution hooks, and context-management scaffolding around a model) are a critical determinant of agentic task success. Automated harness evolution can enable smaller models to perform well on domain-specific tasks at a fraction of frontier-model cost. Since both the harness and model weights shape behavior, we ask how harness evolution and lightweight fine-tuning should be combined. Across seven enterprise agent tasks, we first evolve a harness with the weaker model, then find that a stronger expert often uses it more effectively, suggesting expert supervision could close the remaining gap. However, training the weaker model on the expert's complete trajectories under the evolved harness backfires: performance regresses on all seven tasks by 4 to 30 points across Qwen3-Coder and Gemma 4, even though the same procedure helps under the unevolved harness. Our analysis shows that imitation transfers knowledge and increases scaffold usage, but disrupts model-harness fit: the weaker model adopts the expert's planning strategy without the competence to execute it and no longer matches the harness evolved around its native planning style. We therefore develop an on-policy expert-correction pipeline, automated by a meta-level MLE agent, that localizes the failing turn in the weaker model's own rollout and asks the expert to rewrite only that turn. This preserves the model's planning style and combines the gains of harness evolution and model adaptation. Our results identify and resolve a source of contention between harness and weight updates, yielding a compatibility-preserving recipe for economical co-evolution on domain-specific enterprise tasks.

The Brief

2:51

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Co-Evolving Harnesses and Models. On-Policy Correction Helps Weaker Models Catch Up Where Imitation Fails. By Zhou Yu and ten others, from Salesforce A I. Published on the eighth of September. No code repository is linked to it.

An agent harness is everything built around a model: the system prompt, the tool set, the execution hooks, the scaffolding that manages context. Harnesses strongly determine whether agentic tasks succeed, and evolving them automatically can let smaller models do well on domain-specific tasks at a fraction of the cost of a frontier model. Since both harness and weights shape behaviour, the authors ask how harness evolution should be combined with lightweight fine-tuning.

The finding is that the obvious combination backfires. Training a weaker model to imitate a stronger expert, inside a harness evolved for the weaker model, makes it worse. Correcting it on its own rollouts instead works. The difference between the two lies in whose plan the model ends up following.

Across seven enterprise agent tasks, a harness was first evolved with the weaker model. A stronger expert then often used that harness more effectively, which suggested expert supervision might close the gap. But training the weaker model on the expert's complete trajectories under the evolved harness made performance regress on all seven tasks, by four to thirty points, across Qwen3-Coder and Gemma 4. The same procedure helps under the unevolved harness.

The analysis explains why. Imitation does transfer knowledge and increases use of the scaffold, but it breaks the fit between model and harness. The weaker model picks up the expert's planning strategy without the competence to carry it out, and it no longer matches a harness that was evolved around its own native planning style. The harness had been shaped to suit one way of working, and imitation replaced that way of working with another the model could not carry off.

The fix is an on-policy expert-correction pipeline, automated by a meta-level MLE agent. It finds the turn where the weaker model's own rollout goes wrong, and asks the expert to rewrite only that turn. Everything else in the rollout stays the model's own. This keeps the model's planning style intact, and combines the gains of harness evolution with those of adapting the model.

The evidence covers seven enterprise tasks and two model families, Qwen3-Coder and Gemma 4. The regression under imitation is specific to the evolved harness, since the same imitation helps without it. That condition is the heart of the result: the conflict is not between imitation and learning in general, but between imitation and a harness already fitted to how the weaker model plans.

Harnesses and models can evolve together, but only if updates to the weights respect what the harness was built around. Copying an expert wholesale overwrites the planning style the harness depends on. Correcting one failing turn at a time leaves that style in place, and the authors present this as a compatibility-preserving recipe for economical co-evolution on domain-specific enterprise tasks.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

A cheap model, a well-tuned harness, and a stronger expert next door. Teaching should be easy. It is not.

You run a small open model on enterprise agent tasks. Its system prompt, tools and hooks have been evolved automatically around it, and it now does well at a fraction of a frontier model's cost.

The road ahead

  1. 1 · The problem ~6 min A small model tuned with an evolved setup does well, a stronger expert does better, and copying the expert's full runs makes the small model worse.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min Teach the weaker model only at the turn where its own run fails, so it keeps the planning style the evolved harness was built around.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Evolve the harness on the weaker model, then fix single failing turns in its own runs and fine-tune on those lightly edited runs.
  6. 6 · The experiment ~6 min You’ll guess: Under a harness evolved for the weaker model, what did training it on the stronger expert's complete trajectories do to its task performance?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.