Papers · 2026 · Reading: 27 min, plus 4 in closed details.
Paper · Preprint · arXiv 2608.19880

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
Google Cloud AI Research, with Google Cloud, Washington University in St. Louis and UNC Chapel Hill (Chengsong Huang is at Washington University in St. Louis; the work was done during his internship at Google Cloud AI Research) · 20 August 2026 (arXiv v1, the only version so far)

In one line: An agent harness for environments: wrap frozen training environments with composable Stage/Contract/Chain components at the reset/step interface (keeping the original verifier) while EnvRigger customizes them against the target policy's diagnosed weaknesses; skills learned this way scored above skills from the original environments on all five benchmarks (+1.0 to +9.0 points, mostly within three-run noise) and above generated environments on the three that have a generator, GRPO RL won 3 of 4 metrics with one run per arm, and in the scaling figure the original environments gained as many tasks as EnvHarness after the first 100 environments (only the generated ones flatten).

70.4 vs 61.4 ALFWorld OOD
skills from EnvHarness environments against skills from the original ones: the largest of 14 gains
mean of 3 runs; only 3 of the 14 gains in Tables 2 and 3 clear p < 0.05 on a Welch test this page computes · Table 2
214 vs 203 of 407 issues
SWE-bench Verified solved with EnvHarness skills against original-environment skills (52.58% vs 49.88%), in 49.6 steps against 55.0
the success gap is 1.2 standard errors of the 3-run spread; the step saving is 3.1 · Table 3
+9 and +9 tasks
SWE-bench tasks gained from 100 to 300 environments by EnvHarness and by the original environments alike
decoded from the vector Figure 5; the text says the originals flatten, but the 11-task gap was all made by 100 environments · Figure 5

How far to trust it: Believe the design: wrapping a frozen environment at its reset/step interface keeps the original verifier, ports across five very different benchmarks, and the released code does what the paper says. Treat the sizes of the gains as provisional: most single margins sit within three-run noise, the RL comparison is one run per arm, and the paper's own Figure 5 shows the original environments gaining as many tasks as EnvHarness after the first 100 environments. The evidence, judged.

The idea in one sentence: instead of generating new environments for an agent, wrap an existing one at its reset()/step() interface with plug-in components (Stage changes the start state, Contract changes what actions do and what the agent sees, Chain joins two tasks), chosen by an LLM designer that watches one policy fail, so the environment is reshaped for that policy while the original verifier still scores every episode.

You need: what an agent harness is (Topic: agentic-harnesses) and what an RL environment for an LLM agent contains, task, sandbox and verifier (Harnesses for training and evaluation). New terms: component (a wrapper over the environment's interface); Stage, Contract, Chain (the three kinds: start state, interaction rules, joined tasks); EnvRigger (the LLM designer that observes, diagnoses, writes and validates components); Bridge (the per-benchmark adapter to the runtime); Original Envs (the baseline: skills from the unmodified environments).

About this page's sources

The first summary of this paper was written days after it appeared, when no third-party explainer existed and the repository README was the practical entry point. This page is built from the full paper, its appendices, its vector figures and the released code, and it corrects that summary where the details change the reading (see How much to believe).

The same move on both sides of the loop: freeze the core, customise through plug-ins
The paper's Figure 2: top, Agent = frozen LLM plus an agent harness of skills (add known recipes), memory (add past context) and tools (add external actions); bottom, Customized Environment = frozen Env plus EnvHarness components Stage (modify init states), Contract (change interactions) and Chain (link several envs); actions flow from the agent to the environment and observations back
Notice that both the LLM and the environment carry the frozen mark: nothing inside the simulator or its verifier changes, only what passes through its interface. Figure 2 of the paper (arXiv 2608.19880v1), by Huang, Wang, Han and 14 co-authors (Google Cloud AI Research and others), CC BY 4.0; swipe sideways on a phone.

Problem: environments that never change

§1 Introduction

LLM agents learn by acting in environments: software repositories, web interfaces, text or embodied simulators. Each environment presents tasks, keeps state, answers actions and judges success (§1; the parts of an RL environment in general: Harnesses for training). They are expensive to build, because people hard-code the interaction logic and the verifiers, and once built they are static: they behave the same whichever agent trains in them and however good it has become. That limits learning in two ways. A static environment cannot aim at one agent's particular weaknesses, and once the agent solves its tasks it has nothing left to teach (§1).

The usual fix is to generate environments automatically, and it has two structural flaws (§1):

  • Generators are domain-specific. A pipeline that builds web environments (InSTA), programming ones (SWE-Gym) or tool-use ones does not transfer to the others.
  • Correctness is costly and unreliable. Environments and verifiers written by an LLM must be over-generated and heavily filtered (SWE-smith, Agent World Model), and still come with no guarantee that the verifier is right.

Generated environments are also static once made: they do not move as the agent improves (abstract).

Idea: a harness for the environment

§2.1, Table 1

An agent harness turns a frozen model into an agent without changing its weights: Agent = Model + Harness (§2.1; harnesses themselves: Topic: agentic-harnesses). EnvHarness applies the same trick to the other side of the loop: Customized Env = Static Env + EnvHarness. Plug-in components wrap a frozen environment and change what flows through its standard interface, while its code stays untouched (Table 1).

Table 1: the analogy, row by row
Agent harnessEnvHarness
Base systemFrozen LLMStatic environment
Designed to solveLack of action, memory or loopsHard-coded interaction logic
Harness layerCapabilities (tools, memory)Customization (states, rules, observations)
Unified outputAutonomous agentCustomized environment

Table 1, verbatim: "Both scale capabilities through external layers rather than changing the core system."

Formally (Eq. 1), an environment is a tuple E = (𝒮, 𝒜, 𝒪, T, R, s0): states, actions, observations, the transition function T: 𝒮 × 𝒜 → 𝒮, the reward R induced by the verifier, and the initial state. A component is an environment-agnostic transformation E′ = w(E) that works strictly at the interface: it can change the initial state, filter the exposed action and observation spaces and update the transition mechanics, but never the simulator backend. Because every intervention stays outside, the ground-truth evaluation logic is preserved and the original verifier still scores the episode. That is the paper's answer to the reliability problem: no generated verifier anywhere.

The three components

§2.2, Eqs. 2 to 5

The paper introduces three component types, "chosen to cover three fundamental modes of environment customization", and expects more to follow (§2.2). Each overrides a standard interface method. The running example is one ALFWorld task, "put a clean mug on the desk", whose default instance leaves the mug in the open and ends as soon as it is placed.

  • Stage, wstage,δ, overrides reset(): a list of actions δ = (a1, ..., ak) applied to the initial state, s0′ = T(...T(s0, a1)..., ak), nothing else changed (Eq. 2). Harder: take mug 1, open drawer 1, put mug 1 in drawer 1, close drawer 1, so the agent must search. Easier: clean the mug in advance. The code replays δ through the ordinary inner.step(), so the start state is always reachable and the saved form is just the action list (Appendix C.3).
  • Contract, wcontract,r, overrides step(): a triplet r = (fA, fT, fO), each the identity by default, rewriting the action space, the transition dynamics and the observation space (Eq. 3). It enforces preconditions, masks or augments observations and attaches structured feedback. On the mug task: fO truncates the room description after two sentences, so the agent builds its picture of the room step by step; fT blocks "clean mug" unless the agent holds it; fA removes teleport navigation. A blocked action leaves the world untouched and returns the current, filtered observation with the reason, and Contract never touches s0 or R (Appendix C.3).
  • Chain, wchain,ℓ, joins the environment with another, Eext, under a composition logic g behind the same interface (Eq. 4); the spaces become unions (𝒜′ = 𝒜 ∪ 𝒜ext) and R′ is a composite reward. The example appends "heat a potato and put it on the countertop" in the same house, succeeding only when both verifiers pass, so the agent must carry its goal past the point where it would stop. The code composes serially, resets the second environment lazily at the handoff, shares one step budget and sets R′ = RA ∧ RB (Appendix C.3); Appendix D sketches branching, mid-task switching and interleaving, but only serial chains are used.

Because all three share the interface they compose freely, for example E′ = wchain(wcontract(wstage(E))) (Eq. 5): hide the mug, truncate the observation, then append a follow-up task. The transformations do not commute (w1 ∘ w2 ≠ w2 ∘ w1); the nesting order decides which constraints apply during set-up and which during play. The 3D stage runs one episode of this page's toy household through all three, using the port of the released classes from the Wrap a world yourself tab (seed 3, every component on; the house and the policy are illustrative, not ALFWorld):

  1. The frozen environment. House A: seven places on a corridor, the mug on the countertop, the original verifier RA at the end. The policy only ever calls reset() and step() on the outermost layer and cannot tell how many layers sit beneath it (Appendix C.3); each layer holds the next as inner and delegates every method it does not override.
  2. Stage: reset() replays δ. The base reset, then 7 actions through the ordinary inner.step() (green): take the mug, put it in drawer 1, close the drawer, walk back to the countertop. The step counter is rewound to 0, so the episode starts there.
  3. Contract: fO on the way up. The first observation comes up whole through the Stage and leaves the Contract cut to its first two sentences: the agent no longer sees the list of places.
  4. Chain: house B joins. A second, unwrapped house with the task "heat a potato and put it on countertop 1", behind the same interface and one shared 50-step budget; B is reset only at the handoff.
  5. Steps 1 to 15: every step(a) goes down and back up. Actions (blue) go down through Chain, Contract and Stage to house A; responses (teal) come back up. With teleport removed the policy walks to the desk and back, opening only the empty microwave and passing the closed drawer 1 twice.
  6. Step 16: fA blocks an action. "go to sinkbasin 1" stops at the Contract: the world is untouched, and the current observation comes back with the reason, "[blocked] Teleport navigation is disabled".
  7. Steps 17 to 29: fT rewrites a response; task A passes. The policy opens drawer 1 and finds the mug; at step 20 it tries to clean it before picking it up, and the Contract answers "You need to hold the mug 1 first". It takes, cleans and carries the mug to the desk; RA passes and the Chain hands off to B.
  8. Steps 30 to 45: task B, under the Chain only. Actions now go from the Chain straight to house B: take the potato from the shelf, heat it in the microwave, put it on the countertop; 45 of the 50 shared steps are used.
  9. evaluate(): the original verifiers decide. Stage and Contract pass evaluate() straight through (the code's Contract has no reward hook); the Chain only combines the two original verdicts, R′ = RA ∧ RB: pass.
  10. Swap the order: the Stage fails silently. With the Stage outside the Contract, its own replay goes through the Contract: the 3 "go to" actions are blocked and the other 4 do nothing, so the mug stays on the countertop. The same components in another order make another environment.
In the released code: class names, the base interface, Bridges and sandboxing

In the code the three are the classes Setups (Setup in the source), Rules and Link, because the release predates the paper's names (Table 6); a designer's candidate carries in_env_actions (a Stage) and rules_code (a Contract, as Python source). The base interface, ActionableEnv, is Gymnasium-style (reset, step, evaluate, observe) plus get_env_state, a data-only view with no Docker handles, browser pages or sockets, the only state hooks may read; that is what lets one hook run against an in-memory puzzle and a containerised repository alike (Appendix C.1). A per-benchmark Bridge is the only layer that knows the runtime: an in-memory 24 game (Toy24), ALFWorld via TextWorld, per-instance Docker containers (SWE-bench, OfficeQA, SpreadsheetBench) and a Playwright browser (WebArena, WebShop) (Appendix C.2). Generated code runs in a per-episode subprocess, so faulty code crashes an episode, not the framework.

EnvRigger: choosing the components for one policy

§3, Eq. 6, Figure 4

A component is policy-agnostic, but which components to use, and with what parameters, must depend on the target policy π and the task t. The paper writes this as a task-policy-conditioned map E′ = ℋ(E, t; π) = (wk ∘ ... ∘ w1)(E) (Eq. 6), with the policy treated as a black box: only its outputs are read, never its weights. EnvRigger, an LLM designer agent, realises ℋ in four stages (§3.2):

  1. Observe. Roll π out on the base task (K = 5 rollouts, Appendix E.3): failures expose weaknesses, successes show what is intact.
  2. Diagnose. Name root causes (repetitive action loops, failure to parse long observations, misread tool constraints) and a direction: scaffold a struggling policy; harden the environment when the policy always succeeds, since a perfect score means it is too forgiving.
  3. Write. Synthesize one or more components as code aimed at the diagnosis (a Stage and a Contract together if needed, as one candidate); a fragile shortcut gets a Contract that blocks it.
  4. Validate. Wrap the environment, run fresh rollouts, and from the success rate and failure distribution accept the candidate, reject it (unsolvable or not challenging), or send it back to Write with the new trajectories. Accepted components join the EnvHarness.

The 3D stage runs the loop on the toy household, with a scripted designer standing in for the LLM: it walks a fixed ladder of the paper's own example Stages and judges each candidate by the released SWE-bench prompt's band rule, accept when K = 5 rollouts land in [0.4, 0.6] (the same run as the first press of the loop button in Wrap a world yourself; rollout seeds from 1000):

  1. Observe. Five rollouts of the policy on the static task: all five pass, each in 7 steps. Each bar is one rollout, its height the steps it used (of 50), green when the original verifier passed it.
  2. Diagnose. 5 of 5 is a success rate of 1.00, above the band: the environment is too forgiving, so the direction is "harder".
  3. Write, round 1. The first candidate is the paper's own example Stage: hide the mug in drawer 1.
  4. Validate, round 1. Five fresh rollouts: four pass (in 9, 16, 18 and 9 steps) and one runs out of its 50 steps. 0.80 is still too easy, so the candidate goes back to Write with these rollouts.
  5. Write, round 2. A stronger version of the same perturbation: hide the mug in the microwave, which the policy rarely opens.
  6. Validate, round 2: accept. Two of five pass (21 steps each): 0.40 is inside the band, so the candidate joins the EnvHarness for this task.
  7. What five rollouts cannot tell apart. Over 400 rollouts the two candidates' true success rates are 0.635 and 0.505 (the static task 1.00). At K = 5 the accepted one lands in the band 62% of the time and the rejected one 54%: on another set of seeds the verdicts could swap. Result 5 comes back to this.

Write and Validate loop at most 5 times per task, with 5 fresh rollouts per candidate, after which the task yields no component; a candidate is accepted or rejected as a whole, and the designer uses the policy's backbone (Table 8). Validation assumes deterministic resets, so a Stage reproduces the same start state.

The designer's system prompt rules (Appendix A)

The system prompt (Appendix A) adds two rules: "do not make the task unsolvable ... SR=0 from impossibility is exactly as useless as SR=1 from triviality", so on those signals the next proposal must loosen; and when a mutation moved the success rate the right way, keep its hooks and change only the magnitude. The reward axis is not exposed: "success is the benchmark's own verdict".

The released configs define "acceptance" differently per benchmark, which Table 8 does not mention (see How much to believe).

Two ways to use the environments (§1, §4.1): skill-based learning, where EnvRigger runs on the training tasks, skills are extracted from trajectories in the customized environments following ReasoningBank, and the frozen policy equipped with them is evaluated on held-out tasks; and online RL, where GRPO trains a policy directly in the reshaped environments.

Experimental setup

§4.1, Appendix E

Five benchmarks in four domains (§4.1): ALFWorld (text-based embodied tasks), WebArena (web interaction), SWE-bench Verified (software engineering), and OfficeQA with SpreadsheetBench (office automation). Each reports its native metric; SWE-bench also tracks average steps as a measure of efficiency. Training and evaluation episodes are disjoint (Table 7):

BenchmarkTraining (reshaped)Evaluation (original tasks only)
What the splits are

ALFWorld's In-Dist and OOD are the benchmark's own seen and unseen splits (140 and 134 tasks, ALFWorld Table 1). SpreadsheetBench's Pass@1 aggregates over base tasks and its Mean Score averages over all instances. The SWE-bench test set is the 407 Verified issues that are not in SWE-bench Lite, not the full 500.

Same model everywhere. EnvRigger, the policy and skill extraction share one backbone: Gemini 3.1 Flash-Lite on ALFWorld and WebArena, Gemini 3.5 Flash elsewhere, "ensuring that performance gains do not stem from distilling a stronger external model" (§4.1). Skills are extracted ReasoningBank-style and the skill-equipped policy is evaluated on held-out instances. Chain is left out of this pipeline (EnvRigger cannot easily observe joined environments' internal states) and tested separately.

Baselines (§4.1, Appendix E.2): No Skills (the frozen policy), Original Envs (skills from the unmodified environments, isolating the effect of reshaping), and a generator where one exists: GenEnv on ALFWorld (an LLM simulates the environment at the edge of the agent's ability), VeriEnv on WebArena (cloned websites with programmatic rewards), SWE-smith on SWE-bench (synthesized repository tasks); none for the office benchmarks. All share seed instances, environment count, extraction pipeline and policy model; EnvRigger sees only training episodes, and each evaluation instance is attempted once.

Result 1: skills from reshaped environments

§4.2, Tables 2 and 3

Skills learned in EnvHarness environments beat skills from the original environments on every benchmark and every metric (Table 2, Table 3; all rows in the tables tab):

  • ALFWorld: 66.2 in-distribution and 70.4 out-of-distribution, against 63.3 and 61.4: +2.9 and +9.0, the paper's headline gain.
  • WebArena: 41.6 average against 38.5 (+3.1), largest on Shopping Admin (+6.2).
  • SWE-bench Verified: 52.58% solved against 49.88% (+2.70), in 49.61 steps against 55.01.
  • OfficeQA: exact match 56.20 against 54.40 (+1.80), F1 57.73 against 55.77 (+1.96).
  • SpreadsheetBench: Pass@1 49.15 against 45.88 (+3.27), mean score 62.48 against 61.47 (+1.01).

Static environments can hurt: original-environment skills score below no skills on SpreadsheetBench (45.88 against 46.44) and lengthen SWE-bench episodes (55.0 steps against 53.6). The paper's explanation: a static environment only lets the agent practise what it already does, while the write-and-validate loop commits only components that fresh rollouts confirm (§4.2).

Against the generators, wherever one applies: EnvHarness skills beat GenEnv by 5.7 points on the ALFWorld average and 8.5 out of distribution, VeriEnv by 2.0 on the WebArena average, and SWE-smith by 2.46 points of success with 5.11 fewer steps per episode. The interface, the EnvRigger loop and the extraction pipeline are the same on all five benchmarks; only domain-specific prompt templates change (§4.2).

Efficiency. On SWE-bench, EnvHarness skills cut the average episode from 53.6 steps (no skills) to 49.6, a 9.8% saving against the 55.0 of original-environment skills ((55.01 − 49.61) / 55.01; against no skills it is 7.4%). The paper ties this to the diagnoses: Contracts and Stages written to break repetitive loops and filter verbose observations (§4.2).

Table 3's SWE-bench gain is +2.70 points, and each number is a mean of three runs whose standard deviations are 2.72 and 2.59. How does the gain compare with the run-to-run noise?

Result 2: training a policy with RL in the reshaped environments

§5, Table 4, Appendix F.1

To test whether reshaped environments are a training signal in their own right, not just a source of skills, the authors train Qwen3-8B-base with GRPO (RL for LLMs) twice on ALFWorld and WebShop: once only in the original environments, once only in EnvHarness environments, both evaluated on the same held-out instances (§5). EnvHarness wins three of four metrics (Table 4):

Trained inALFWorld In-DistALFWorld OODALFWorld Avg.WebShop scoreWebShop SR

The paper calls the OOD drop (89.6 to 88.8) "a slight, negligible trade-off" and concludes the reshaped environments "provide a highly effective, independent optimization signal". In whole tasks the ALFWorld differences are small: in-distribution 123 against 114 of 140 (+9 tasks, Fisher exact p = 0.18), out of distribution 119 against 120 of 134, one task. Each arm is one training run (seed 0), so neither number carries training variance. The intro's "up to 6.5 points of improvement" is the in-distribution difference.

The training recipe (Appendix F.1) is in the tables tab.

Result 3: more environments, and co-evolution

§5, Figure 5, Appendix F.2

Under an identical budget on SWE-bench Verified, the paper compares three sources of environments: EnvHarness, the unmodified benchmark environments (SWE-bench Lite, labelled "real envs" in Figure 1) and SWE-smith's generated ones. Each batch of 50 environments yields one skill bank (2 and 3 skills alternately, 15 skills at 300 environments). The two baselines draw batches independently of the learner; EnvHarness writes each batch against the policy already equipped with the earlier skills, so environment and policy co-evolve. EnvHarness climbs from 47.67 to 54.79 (+7.12) "and maintains an upward trajectory at 300 environments", while the same budget yields 52.13 on original environments and 50.37 on generated ones; the paper concludes that "targeting the learner's current capability boundary is fundamentally more effective than unconditioned environment scaling" (§5).

The paper says the original environments "flatten out" while EnvHarness keeps improving. From 100 to 300 environments, which source gained more SWE-bench tasks (of the 407)?

What each round taught (Appendix F.2). Every listed skill traces to an accepted component, and the components work by faking the environment's behaviour (timeouts, missing commands, out-of-memory kills); gains shrink round over round as the remaining flaws grow more local.

The components and skills of rounds 1 to 3
  • Round 1 (the base policy did not run tests reliably or edit within its tools): rewrite pytest to pytest -x (skill: fail fast); block inline python -c edits, conda run and custom scripts (skill: edit with patch -p1); fake a 60-second timeout on whole-suite runs (skill: target the exact test file).
  • Round 2: answer "pytest: command not found" (skill: call pytest.main); fake an out-of-memory kill on whole-file runs (skill: filter with -k); time out runs that name no file (skill: pass a nonexistent file to test option parsing).
  • Round 3: prefix every command with the testbed's bin directory (skill: call conda binaries by absolute path); replace sed -i with a fake error (skill: navigate with grep -rn before editing). About a third of the training tasks are now solved on every baseline rollout; hardening candidates leave the rate unchanged or drive it to zero, exhaust the budget and add nothing. Gains shrink round over round as the remaining flaws grow more local.

Result 4: Chain, other models, transfer and cost

§5, Tables 5, 9 to 11

Chain (Table 5). Two randomly paired SWE-bench environments are joined into one episode, outside the EnvRigger loop, and the extracted skills are evaluated on ordinary single tasks. Chain-only skills cut average steps from 53.58 to 41.96 at a success rate of 49.63, marginally below the 49.88 of original-environment skills; the paper attributes this to the strict training condition (success needs both halves), which favours keeping a goal over maximising a short task. Combining Stage/Contract skills with Chain skills gives the best success rate, 54.30, at 43.12 steps.

Representative Chain skills (Appendix F.3)

Representative Chain skills (Appendix F.3): manage one shared step budget across joined tasks (be "good enough" on the first so the second has steps left), and re-orient after a handoff (check conda env list and which python, since a django repository needs runtests.py where matplotlib used pytest).

Other policies (Figure 6, Table 9). On SWE-bench Verified, with the same backbone as policy and designer each time, EnvHarness skills beat original-environment skills for Gemini 3.1 Flash-Lite, Qwen3.6 27B, Gemini 3.5 Flash and Claude Sonnet 4.6 by 2.7 to 3.7 points, while the no-skill success rates span 30.7 to 67.2. The loop "neither breaks down on the weakest model nor saturates on the strongest"; what changes with capability is the content of the diagnoses. Skills of either kind help the two weakest most (+9.3 and +11.1 for EnvHarness, +6.1 and +7.4 for original environments, under 5.5 for the two strongest).

What the average steps say per model

Average steps tell three stories (Appendix F.4): skills nearly halve Qwen3.6 27B's flailing (69.8 to 37.1 steps), make Gemini 3.1 Flash-Lite persist instead of giving up early (36.7 to about 50) while solving more, and barely move Claude Sonnet 4.6 (29.3 to about 25). Gemini 3.5 Flash is the one model where EnvHarness skills improve success and steps against both baselines. The extra successes do not come from running longer: EnvHarness episodes are within a step of the original-skill ones on Flash-Lite and Sonnet, five shorter on Flash, and longer only on Qwen (3.7 steps for 3.7 points). Steps alone are no quality signal: a short episode can be an efficient solution or an early surrender.

Transfer (Table 10). In leave-one-out on ALFWorld (skills from every task type but one, evaluated on the held-out type), EnvHarness skills win on four of six types and by 3.1 points on average (63.7 against 60.6): +16.4 on clean, −8.7 on heat. The paper reads this as reshaping pushing the policy off memorised routines.

Cost (Table 11). EnvHarness spends 38 times GenEnv's design tokens on ALFWorld (1.46M against 38K), since it feeds whole trajectories to the designer, but rollouts dominate either budget. Against VeriEnv, which also runs the real environment, totals match (137.3M against 137.8M); GenEnv is 3.5 times cheaper (64.2M against 228.0M) because its rollouts are simulated, which the paper calls "the cost of grounding". There is no row for Original Envs or for SWE-bench.

Result 5: environments on demand

§5, Appendix G, Tables 12 and 13

The same machinery takes explicit targets instead of its own diagnoses (§5).

A quantitative target (Table 12). On 100 ALFWorld tasks, each measured with K = 10 rollouts, EnvRigger reshapes each task toward a band in whichever direction its baseline needs. For success rate in [0.4, 0.6], the share of tasks inside the band rises from 6.0% to 80.0% and the mean success rate moves from 0.74 to 0.48; the original tasks are strongly bimodal, mostly always or never solved. For average steps on successful episodes in [25, 35], a tighter target, it rises from 18.0% to 53.0%.

Suppose reshaping made every task's true success rate exactly 0.5. Measured with 10 fresh rollouts, what share of tasks would land inside [0.4, 0.6]?

A weakness named in one sentence (Table 13). Handed a one-sentence weakness, the designer writes components that make it fatal inside an ordinary task, and one skill is distilled from the trajectories. It chose the axes itself: Stages to stage start states, action filters to block shortcuts, transition hooks to fake consequences. There are nine cases, three per benchmark (all in the tables tab), for example a target starting inside a closed drawer, retrieval blocked until a scroll, files silently corrupted when sed is used.

The main-text example: one weakness, the Contract written for it, the distilled skill

Specified weakness: "The policy submits a patch without running the failing test, so the fix stays unverified."

class _Contract(Contract):
def modify_transition(self, action, response, env_state):
cmd = bash_command(action)
if "pytest" in cmd or "runtests.py" in cmd:
env_state.extras["ran_tests"] = True
if is_submission(cmd) \
and not env_state.extras.get("ran_tests"):
return failed(response,
"githook: pre-commit hook 'verify-tests' "
"failed. Run the test suite before submitting.")
return response

Distilled skill: Verification-Driven Development Loop. When: whenever a code change fixes a bug or implements a feature, especially where the test suite needs setup or configuration. What: before finalizing any change, run the relevant test suite to confirm the failure exists, then run it again after the patch to verify the fix, initializing the environment first when needed.

The paper says the skill combines a general principle with actionable steps rather than overfitting to one task (§5).

How much of this to believe

The paper's own evidence, judged. Every number below is recomputed from the printed tables, the decoded vector figures and the released configs (77 checks, listed in the tables tab).

What holds up

  • The mechanism is real and inspectable. The code is released (Apache-2.0) and does what the paper says: Rules has no reward hook and evaluate() passes straight through, so a reshaped environment really is scored by the original verifier (Appendix C.3). The appendices print the actual components.
  • The comparisons are mostly matched: same seed instances, environment count, extraction pipeline and policy model (Appendix E.2); the designer uses the policy's own backbone; and against VeriEnv the token totals match (Table 11).
  • The direction is consistent. All 14 improvements in Tables 2 and 3 are positive, as are all four models in Table 9. Some columns are not independent (an average and its parts, EM and F1), but about ten separate comparisons agreeing is better evidence than any single margin.
  • The arithmetic checks out: every printed improvement, average, ratio and claim recomputes, and Figures 1 and 6 match the tables.
  • The authors state real limitations (Appendix H): the design loop is costly, more so with a weaker designer; a resettable text interface is required, ruling out live services and physical robots; Chain is purely sequential, blind to whether two joined tasks are related. That counts in their favour.

What does not

  1. Most margins sit inside the noise. With three runs per arm only 3 of the 14 gains in Tables 2 and 3 reach p < 0.05 on a Welch test (ALFWorld OOD, SWE-bench steps, SpreadsheetBench Pass@1). SWE-bench success, +2.70, is 1.25 standard errors; WebArena Reddit, +1.9, sits beside a standard deviation of 9.7. The paper reports no test.
  2. The SWE-bench means look like single counts. All six two-decimal success rates in Table 3 and Table 5 are whole numbers of the 407 issues (194, 203, 204, 214, 202, 221). A three-run mean is a whole number of tasks one time in three, so all six has odds of 1 in 729: either those columns report one run, or the coincidence happened. The paper cannot settle it.
  3. The scaling figure does not show the originals flattening. In the vector Figure 5, original environments gain 9 tasks from 100 to 300 environments, as many as EnvHarness, and 5 in the last step against its 3; the 11-task gap was made in the first 100 environments. Only SWE-smith flattens. Each point is one evaluation, and steps of 1 to 5 tasks are inside the three-run spread of about 11. The text's 52.13 at 300 is not a possible value (212.17 of 407); Figure 5 plots 212/407 = 52.09.
  4. The RL result is one run per arm (Table 4): +9 of 140 tasks in distribution (Fisher p = 0.18 from evaluation noise alone), −1 of 134 out of distribution. "A highly effective, independent optimization signal" claims more than that.
  5. The 80% calibration is partly by construction. No set of true success rates puts more than 65.6% of tasks inside [0.4, 0.6] on a fresh 10-rollout measurement, so Table 12's 80.0% must reuse the rollouts that decided acceptance. The 6.0% before is clean; the after is not.
  6. The rollout budgets are not like for like. EnvHarness sees each training task through 5 baseline rollouts plus up to 25 validation rollouts and extracts skills from them; the number of trajectories behind the Original Envs skills is not reported, and the cost table has no row for it. Part of the gain could come from more, and more varied, trajectories rather than from targeting.
  7. "Same settings on every benchmark" is not what the release does. Table 8 gives 5 rollouts and 5 rounds everywhere; the released configs use 3 and 3 on WebArena and 2 rounds on SpreadsheetBench, and accept by different rules: a 5-rollout success-rate band on SWE-bench, "success rate up by at least 0.2" (an easier environment) on ALFWorld, the designer's judgement elsewhere (on WebArena guided by a band scored over the last 20 accepted episodes; 3 rollouts could never land inside [0.4, 0.6] anyway) (table). The configs may postdate the runs, but the paper never describes per-benchmark acceptance.
  8. The verifier is trusted; the environment no longer is. The Contracts in Appendix F.2 fake timeouts, missing commands, out-of-memory kills and sed errors, and one case in Table 13 silently corrupts files. Some resulting skills work around failures the real environment never produces ("call pytest.main when the CLI is broken"). Every reshaped environment keeps its verifier, as claimed; but the transitions the agent learns from are partly invented, which is a milder form of the reliability problem the paper sets out to avoid.
  9. Smaller points

    Figure 1's bars start at 43, so SWE-bench's 47.7, 49.9 and 52.6 stand 4.7, 6.9 and 9.6 above the axis. The paper counts seven Bridges including WebShop; the repository has six, with WebShop only inside an optional verl-agent patch. Chain is evaluated once, outside the loop, without error bars.

Verdict
Believe the design. Wrapping a frozen environment at its interface is a clean, general idea that keeps the verifier, ports across five very different benchmarks with one implementation, and is released in working form. Believe the direction of the skill-learning results, which is consistent across benchmarks and models. Treat the sizes as provisional: most single margins are within three-run noise, the RL comparison is one run per arm, the scaling figure does not show what the text says about the original environments, and the calibration result is partly by construction.

What it takes to use this

  • Code and licence. google-research/envharness, Apache-2.0, released with the paper: one driver per benchmark (preflight, smoke run, reproduce.py) and an rl/ folder that patches verl-agent at a pinned commit for GRPO on ALFWorld. Configs default to gpt-4.1-mini; the paper's tables used Gemini, selected with one MODEL variable that also picks the embedding model for skill retrieval.
  • What your environment must offer (Appendix H, Appendix C): a resettable reset/step interface over text, deterministic resets (a Stage is replayed every rollout) and a data-only state view. A new benchmark needs one Bridge class and nothing else. Live services and anything that cannot be undone (a sent email, a physical robot) are out.
  • Budget. Rollouts dominate: about 228M tokens for ALFWorld's 100 training tasks and 137M for WebArena's 80 (Table 11). The RL run used one 8-H100 node for 150 GRPO steps. A weaker designer needs more rounds, each costing rollouts.
  • When it pays off, and when not. It helps when the policy saturates its training tasks, when its failures come from habits a component can expose, and most for weaker policies; expect a few points (+1 to +9 here, +2.7 to +3.7 on SWE-bench across four models). It buys little for strong, directed policies (Claude Sonnet 4.6: 69.2 to 72.4), for tasks that cannot be hardened without becoming unsolvable (a third of SWE-bench training tasks by round 3), and where learned behaviour must match the real environment's failure modes, since Contracts may invent new ones.
  • Where it is going (Appendix I)

    Planned (Appendix I): new components (stochasticity, partial observability, auxiliary feedback channels, several agents), visual and GUI environments whose states are not text, and semantic composition for Chain, which needs a compatibility measure and a verifier for the combined objective.

Why it matters (beyond the paper)

Environment supply is emerging as the bottleneck for training agents, the way data curation was for pretraining, and this paper reframes how to meet it: environment construction becomes a wrapping problem rather than an authoring problem. Wrapping keeps the one thing generation pipelines cannot reliably produce, a trusted verifier, and working at the interface makes one implementation domain-agnostic. The authoring route is alive too: Terminal-Universe built 37,300 runnable terminal environments from recorded agent runs, and nothing stops a wrapper from reshaping those.

The task-policy-conditioned angle matters most for RL practitioners. EnvRigger is automated curriculum design driven by black-box behavioural diagnosis, the idea of unsupervised environment design (PAIRED, Prioritized Level Replay) carried over to LLM agents with an LLM writing the curriculum as code. The paper's scaling result suggests that co-evolving policy and environment is the axis to scale rather than raw environment count; this page's reading of Figure 5 says the evidence for that is the first 100 environments, not the slope after them.

The agent-harness analogy is also a memorable design lens: freeze the expensive artifact, customize through plug-ins at the interface. HarnessDev measures the agent side of that lens and finds that models evolving their own harness make unstable, executor-specific gains; the same caution applies to a designer evolving environments.

Connections