EnvHarness wraps frozen worlds, lifting held-out scores by up to 9 points

EnvHarness: Awakening Static Worlds for Agent Learning

Chengsong Huang, Zifeng Wang, Rujun Han, Jun Yan, Yanfei Chen, Zoey CuiZhu, Ke Jiang, Peng Xia, Han Yu, Yufan Zhuang, Yifei Ming, Jiaqi Pan, Bhavana Dalvi Mishra, Jiaxin Huang, Burak Gokturk, Tomas Pfister, Chen-Yu Lee

cs.AI, cs.CL, cs.LG

2026-08-20

EnvHarness wraps frozen envs with Stage, Contract and Chain. Across five benchmarks it beats original and generated envs, up to +9.0 held-out points and 9.8% fewer SWE-bench steps.

What problem this solves

LLM agents learn from environments, but most of those environments are hand-built and static. They cannot see which policy is failing, and they stop teaching once the policy solves the existing tasks. Automated environment generation scales the pool, yet each pipeline is domain-specific and the generated verifiers are expensive and unreliable.

EnvHarness treats the environment the way an agent harness treats a frozen model. The simulator and its human-written verifier stay untouched. A programmable layer sits on the reset/step interface and reshapes what the agent sees, what it may do, and where an episode starts.

Method

Three plugin types cover the main ways to reshape a frozen environment.

EnvRigger automates the wrapping. It treats the policy as a black box, collects success and failure rollouts, diagnoses systemic flaws such as action loops, writes candidate plugins, and accepts them only if fresh rollouts show a usable learning signal. Chain is left out of the automated loop because joined internal states are hard to observe. EnvRigger and the policy share the same backbone, Gemini-3.1-Flash-Lite on ALFWorld and WebArena, Gemini-3.5-Flash elsewhere, so the gains are not distilled from a stronger teacher.

Results

Skills extracted from EnvHarness environments beat skills from the original environments on every held-out split.

BenchmarkEnvHarnessOriginal envsDomain generator
ALFWorld OOD success70.461.4GenEnv 61.9
WebArena average41.638.5VeriEnv 39.6
SWE-bench Verified success52.5849.88SWE-smith 50.12
SWE average steps (lower better)49.6155.0154.72
SpreadsheetBench Pass@149.1545.88n/a

The 9.0-point ALFWorld OOD gap is the largest single lift. On SpreadsheetBench, skills from unmodified environments fall to 45.88, below the no-skill baseline of 46.44. SWE steps drop 9.8% versus original-env skills, matching EnvRigger contracts that break loops and filter verbose observations.

With GRPO on Qwen3-8B, in-distribution ALFWorld success is 87.9 versus 81.4. Scaling SWE environments to 300, EnvHarness climbs from 47.67 to 54.79 while original and generated pools flatten at 52.13 and 50.37. Combining Stage/Contract skills with Chain skills reaches 54.30 success and 43.12 steps. The same loop helps four policy backbones from Gemini 3.1 Flash-Lite to Claude Sonnet 4.6, each by 2.7 to 3.7 absolute points over original-env skills.

Why it matters

If a benchmark already has a gym-style interface and a trusted verifier, wrapping is cheaper than authoring. One protocol beats domain-specific generators on software engineering, web, office, and embodied tasks. Teams can attach it to existing SWE, browser, or spreadsheet environments and generate training signal aimed at the current policy's holes. This is engineering, not a new optimizer.

Limitations

The design loop burns rollouts; a weaker designer needs more iterations, paid once per environment. Reset is mandatory, so live accounts, irreversible orders, and physical robots are out of scope. Chain only concatenates, with no branching, shared intermediate state, or semantic compatibility check. The current interface is text-only. Chain was studied separately from the automated pipeline, so long-horizon numbers should not be read as a default EnvRigger output.

Terms

Source

What people are saying

Related papers

All paper explainers