Researchers at Meta AI and the University of Illinois Urbana–Champaign introduced EvoHarness-RL, a framework that trains language models to decide when and how to use the runtime layer (the harness) that supplies execution feedback, state trackers and control-flow mechanisms. This capability matters for long-horizon enterprise workflows — for example, migrating massive batches of customer records from a legacy CRM to a cloud database — where the agent cannot rely solely on its internal context window.
Limitations of current, hand-coded harness logic
Traditionally, developers supply step-by-step rules and instructions that tell an agent exactly what to do. While reliable, this approach is rigid: the agent does not learn to weigh trade-offs autonomously, and frequent model upgrades force repeated prompt, memory and permission tuning. Append-only memory systems that merely accumulate past experience can also degrade reasoning by storing outdated conclusions or failed attempts.
Xuying Ning, co-author of the EvoHarness-RL paper, told VentureBeat that manual logic and rigid memory structures consume engineering resources because the optimal harness often changes with the model.
A unified workspace: Belief, Progress, Experience (BPE)
EvoHarness-RL consolidates harness support into a single structured interface called Belief, Progress and Experience (BPE):
- Belief: keep an accurate view of the current environment;
- Progress: manage completed and pending subgoals;
- Experience: reuse historical knowledge across tasks.
Rather than exposing complex domain-specific APIs, the agent interacts with BPE via four compact meta-actions: track, commit, recall and note. These let the agent check live state, commit workflow updates, recall past strategies before acting, and write notes for future runs.
The BPE mapping is practical across enterprise verticals: in software engineering, Belief maps to repository state, Progress to task completion and dependencies, and Experience to past tickets and lessons. In finance, Belief can represent applicable rules and evidence, Progress which checks remain open, and Experience recurring discrepancies.
Two-stage training: supervised fine-tuning and cost-aware RL
Training uses two stages. First, supervised harness fine-tuning teaches the base model to extract and structure useful facts from noisy interaction logs into the BPE workspace. Second, because querying trackers consumes tokens and latency, a cost-aware reinforcement learning phase trains the agent to trade off the value of accessing external state against its budget cost. Together these stages turn tool-use from a fixed script into a learned runtime behavior.
Evaluation on ALFWorld and empirical results
The researchers validated EvoHarness-RL on the ALFWorld benchmark, a text-based suite of multi-step tasks testing sequential logic and state tracking. They used Qwen3-8B as the base model and compared the trained 8B agent to frozen frontier models (Claude Opus 4.5, GPT-4.1, GPT-5), frozen agent frameworks (ReAct, ExpeL, ReasoningBank), and advanced trainable methods (GRPO, SkillOS, SkillRL).
Key outcomes:
- Qwen3-8B trained with EvoHarness-RL achieved a 96.9% average success rate, a 49.0 percentage-point improvement over its ReAct baseline.
- The trained model outperformed SkillRL (89.9%) and SkillOS (80.2%).
- The 8B model matched the performance ceiling of a costly closed model: Claude Opus 4.5 scored 96.4% out of the box.
The BPE prompt-time harness also benefited frozen frontier models: GPT-4.1’s success rate rose by 22.1 percentage points and GPT-5’s by 25.7 points when equipped with BPE.
Observed dynamics: harness annealing and harness evolution
During reinforcement learning, researchers observed a shift they called “harness annealing.” Early in training, the agent heavily queried Experience and Progress trackers for nearly every step. As it learned routines, it reduced external queries and embedded successful behaviors in its parameters, lowering latency and token costs.
They also observed “harness evolution”: the agent dynamically adjusted tool usage based on task complexity — bypassing tools for simple familiar tasks, but increasing Belief and Experience use when encountering novel environments or unexpected errors (for example, checking server logs and past tickets when a legacy API returns a complex validation error).
Integration considerations for enterprises
Adoption need not force a wholesale replacement of existing tools: EvoHarness-RL uses an environment adapter so domain-specific implementations can remain while sharing the trainable layer. Ning suggested BPE can act as an additional state-management layer in orchestration systems.
To manage inference costs, teams can adopt hybrid asynchronous architectures: use a frontier model to generate high-quality consolidation data, then fine-tune an open-weight model to handle routine state management. Because consolidation can be asynchronous, it does not necessarily slow an agent’s main execution loop.
Ning also advised that BPE may be overkill for short, stable tasks where ReAct or standard retrieval-augmented generation (RAG) suffices. BPE’s value grows when agents operate for many hours, days or weeks and need compressed, updatable understanding to avoid repeating past mistakes.
Conclusion
EvoHarness-RL shifts orchestration from hand-scripted agent logic toward systems where better behavior is learned. The approach is especially promising for cost-efficient, medium-sized models: an 8B model trained with EvoHarness-RL matched the top closed models on ALFWorld while learning to manage external state efficiently and reduce unnecessary tool usage.



