← Latest papers
💬 NLP

HarnessForge: Joint Harness and Policy Evolution for Adaptive Agent Systems

HarnessForge is a meta-adaptive framework that jointly evolves the external execution harness and internal reasoning policy of LLM agents through fault-guided tailoring and harness-conditioned alignment, significantly outperforming isolated adaptation methods by optimizing their executable compatibility across diverse task regimes.

Original authors: Mingju Chen, Can Lv, Guibin Zhang, Heng Chang, Shiji Zhou

Published 2026-06-02
📖 5 min read🧠 Deep dive

Original authors: Mingju Chen, Can Lv, Guibin Zhang, Heng Chang, Shiji Zhou

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Rigid Robot"

Imagine you hire a brilliant but inexperienced robot assistant (an LLM Agent) to do different jobs.

  • Job A: You need it to book a flight. It needs a strict checklist and a calendar.
  • Job B: You need it to write a mystery story. It needs a creative flow and a memory of plot points.
  • Job C: You need it to fix a leaky pipe in a simulation. It needs to know exactly which tools to grab and in what order.

The problem is that most robot assistants come with a fixed instruction manual (called a Harness). This manual tells the robot how to think and act.

  • If the manual is too rigid, the robot fails at creative tasks.
  • If the manual is too loose, the robot gets confused during complex, step-by-step tasks.

Traditionally, researchers tried to fix this in two separate ways:

  1. Rewrite the Manual: Keep the robot the same, but try to write a better instruction manual for every new job. (This is slow and often misses the mark).
  2. Train the Robot: Keep the manual the same, but try to "teach" the robot to be smarter through trial and error. (This is expensive and the robot might still get confused by a bad manual).

HarnessForge says: "Why choose one? Let's evolve both together."


The Solution: A "Tandem Dance"

The authors propose a system called HarnessForge. Think of the Agent System as a Dance Pair:

  • The Harness (The Choreographer): This is the external structure. It decides the steps, the music, the rules, and the tools the dancer can use.
  • The Policy (The Dancer): This is the robot's brain. It decides how to actually move its feet to follow the choreography.

In the past, people tried to fix the Choreographer or train the Dancer separately. HarnessForge realizes they are coupled. A great choreography is useless if the dancer can't do the moves. A talented dancer is useless if the choreography is nonsensical.

HarnessForge evolves them together in a loop:

Step 1: The "Fault Diagnosis" (Finding the Stumble)

The system runs the dance pair through a series of tasks. When they stumble (fail), a "Meta-Agent" (a super-smart referee) looks at the footage.

  • Did the dancer trip because they were tired? (Policy issue)
  • Did the dancer trip because the choreographer gave them a step that was physically impossible? (Harness issue)
  • Did they trip because the music stopped at the wrong time? (Memory/Structure issue)

Step 2: Tailoring the Harness (Rewriting the Choreography)

Based on the diagnosis, the system automatically rewrites the Harness.

  • If the robot kept forgetting the plan, the Harness is updated to add a "sticky note" system (Memory).
  • If the robot kept picking the wrong tool, the Harness is updated to add a "safety guard" that checks the tool before use.
  • Analogy: It's like a coach watching a soccer team lose a game and immediately changing the formation or the playbook to fix the specific weakness.

Step 3: Aligning the Policy (Training the Dancer)

Once the new Harness (choreography) is ready, the system doesn't just throw the old robot at it. It fine-tunes the robot specifically for this new set of rules.

  • It takes the successful attempts from the previous round and teaches the robot: "Hey, when the Harness says 'Check the tool,' you should do this specific movement."
  • Analogy: It's like a dance instructor teaching a specific routine to a dancer, ensuring their muscle memory matches the new steps perfectly.

Step 4: The "Survival of the Fittest"

The system keeps the best pairs (Harness + Robot) and discards the ones that still fail. It repeats this process over several rounds. With every round, the choreography gets smarter, and the dancer gets better at following that specific choreography.


Why This Works (The Results)

The paper tested this on five different "dance floors" (benchmarks) involving things like:

  • Using tools to solve puzzles.
  • Searching the web for answers.
  • Calling APIs (digital tools) to get movie data.

The Findings:

  1. Better Together: Systems that evolved both the Harness and the Policy together performed significantly better than those that only changed one or the other.
  2. Efficiency: It didn't require millions of extra tries (rollouts) to work. Because the system learns from the structure of the failure, it learns faster.
  3. Compatibility is Key: The biggest takeaway is that a "perfect" robot doesn't exist in a vacuum. A robot is only as good as the system it operates in. By making the robot and its system evolve together, they become perfectly compatible.

Summary Analogy

Imagine you are trying to build the ultimate Swiss Army Knife.

  • Old Way: You either try to make the handle (Harness) perfect, or you try to make the blade (Policy) sharper, but you never change both at the same time.
  • HarnessForge Way: You realize that if you make the handle ergonomic for a left-handed carpenter, you must also adjust the angle of the blade. You build a workshop where the handle and the blade are forged together, tested, and refined in a loop until they fit each other perfectly.

The result is a tool that is perfectly adapted to the specific job it needs to do.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →