EnvCraft: Synthesizing Executable Environments in Agentic RL for Claw-like Agent

arXiv cs.AI Papers

Summary

EnvCraft is an automated framework for synthesizing executable environments to address the scarcity in Agentic RL training, showing significant performance gains on claw-like and general tool-use benchmarks using Qwen models.

arXiv:2609.05576v1 Announce Type: new Abstract: The paradigm of LLMs has rapidly shifted from passive language interfaces to autonomous Claw-like agents that execute long-horizon tasks across stateful workspaces. While Agentic Reinforcement Learning (Agentic RL) provides a promising path to optimize these agents, its scaling is heavily bottlenecked by the severe scarcity of interactive training environments. Existing synthetic environments are strictly limited to tool-calling endpoints, rendering them insufficient for accommodating the end-to-end real-world demands of claw-like agents. To bridge this gap, we introduce EnvCraft, an automated framework for synthesizing executable environments and scalable training data. Specifically, EnvCraft employs an environment synthesis engine to build sandbox-isolated workspaces, alongside a topology-aware data generation engine to produce coherent task trajectories. Overall, we synthesize 139 interactive environments comprising approximately 20K complex tasks for Agentic RL training. Experiments on Qwen3/3.5 models (8B-32B) show that our method yields gains of up to +11.9% on Claw-style benchmarks and +8.0% on general tool-use benchmarks, with concurrent reductions in inference token cost. The results confirm that synthesized executable environments provide robust and generalizable learning signals for training.
Original Article
View Cached Full Text

Cached at: 09/10/26, 08:39 AM

# EnvCraft: Synthesizing Executable Environments in Agentic RL for Claw-like Agent
Source: [https://arxiv.org/html/2609.05576](https://arxiv.org/html/2609.05576)
Shen YouJinhang FengYufei LiuXiao Ding††thanks:Corresponding author: xding@ir\.hit\.edu\.cnYutai HouHao CongYuxian WangWu NingWang XuBibo Cai

###### Abstract

The paradigm of LLMs has rapidly shifted from passive language interfaces to autonomous Claw\-like agents that execute long\-horizon tasks across stateful workspaces\. While Agentic Reinforcement Learning \(Agentic RL\) provides a promising path to optimize these agents, its scaling is heavily bottlenecked by the severe scarcity of interactive training environments\. Existing synthetic environments are strictly limited to tool\-calling endpoints, rendering them insufficient for accommodating the end\-to\-end real\-world demands of claw\-like agents\. To bridge this gap, we introduce EnvCraft, an automated framework for synthesizing executable environments and scalable training data\. Specifically, EnvCraft employs an environment synthesis engine to build sandbox\-isolated workspaces, alongside a topology\-aware data generation engine to produce coherent task trajectories\. Overall, we synthesize 139 interactive environments comprising approximately 20K complex tasks for Agentic RL training\. Experiments on Qwen3/3\.5 models \(8B–32B\) show that our method yields gains of up to \+11\.9% on Claw\-style benchmarks and \+8\.0% on general tool\-use benchmarks, with concurrent reductions in inference token cost\. The results confirm that synthesized executable environments provide robust and generalizable learning signals for training\.

1Harbin Institute of Technology, SCIR Lab,2Peking University,

3Huawei Technologies Co\., Ltd,4Tsinghua University

†\\daggerWork done while interning at Huawei\.

Code—https://github\.com/zeng\-yirong/EnvCraft

Datasets—https://huggingface\.co/EnvCraft

## 1Introduction

AI agents have evolved from passive conversational interfaces into autonomous actors operating in real\-world systems\. A notable embodiment of this evolution is the class of claw\-like agents, designed for efficient execution within system\-level harnesses\. These harnesses, such as OpenClaw\([OpenClaw Contributors 2026](https://arxiv.org/html/2609.05576#bib.bib3)\), NanoClaw\([QwibitAI 2026](https://arxiv.org/html/2609.05576#bib.bib40)\), and Hermes\-Agent\([Nous Research 2026](https://arxiv.org/html/2609.05576#bib.bib33)\), function as persistent digital assistants that manage long\-horizon tasks across operating systems, file systems, databases, and terminal shells\. Unlike traditional conversational bots, claw\-like agents possess active execution capabilities that directly mutate the environment, producing real\-world consequences\. Recent works exploreAgentic RL, which enables agents to iteratively refine their policies, recover from execution errors, and generalize to unseen scenarios\.

![Refer to caption](https://arxiv.org/html/2609.05576v1/intro_env.png)Figure 1:An illustration of the agent interaction loop in RL\. Environment fundamentally comprises environment documentation, explicit state definitions, and a suite of tool interfaces\.Agentic RL frameworks inherently rely on the interaction among users, agents, and environments, as shown in Figure[1](https://arxiv.org/html/2609.05576#S1.F1)\. The environment is an executable sandbox that supports tool execution, state maintenance, and result feedback, while an executable environment is foundational to this paradigm, scaling end\-to\-end Agentic RL training critically requires environments to be low\-latency, high\-fidelity, and cost\-effective\. Currently, environments meeting these rigorous criteria remain scarce, limited primarily to narrow domains such as code interpreters\([Feng et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib4)\)and local\-retrieval tools\([Jin et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib8)\)\. This scarcity becomes particularly acute for Claw\-like agents, which demand stateful workspaces and long\-horizon task loops, requirements that far exceed the complexity of tool\-use endpoints\. Consequently, the lack of scalable, interactive, and executable environments stands as the key bottleneck for advancing Agentic RL at the system level\.

To address this bottleneck, recent studies have explored two main paradigms for generalist environment construction:simulated environments, which leverage LLMs to mock tool responses\([Chen et al\. 2025b](https://arxiv.org/html/2609.05576#bib.bib21);[Li et al\. 2025c](https://arxiv.org/html/2609.05576#bib.bib22);[Li et al\. 2026b](https://arxiv.org/html/2609.05576#bib.bib23)\)but suffer from hallucination and high costs; andsynthetic environments, which auto\-generate executable code sandboxes for better scalability\([Song et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib30);[Xu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib29)\)\. However, contemporary synthetic methods are strictly limited to application\-level, generalisttool\-use agentsby focusing on isolated, tool\-use endpoints\. They fail to support system\-levelClaw\-like agents, which inherently demand cross\-environment execution, stateful workspaces, and asynchronous task loops\. To bridge this critical gap, we present EnvCraft, an automated executable environment synthesis framework tailored specifically for Claw\-like agent training while also supporting general\-purpose tool\-use agents\. Table[1](https://arxiv.org/html/2609.05576#S1.T1)summarizes the comparison results\.

Environment\# Envs\# TasksClaw SupportEnv DomainStatefulRewardAutoForge\([Cai et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib26)\)101,078✗Consumer WebDB SchemaLLM JudgeEnvScaler\([Song et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib30)\)1919,000✗GeneralClass Attr\.Rule CheckScaleEnv\([Tu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib28)\)162,560✗GeneralDB SchemaRule CheckAWM\([Wang et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib31)\)1,00010,000✗GeneralDB SchemaCode & LLMEnvFactory\([Xu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib29)\)852,575✗GeneralDB SchemaCode CheckEnvCraft \(Ours\)13919,777✓GeneralWorkspaceCode CheckTable 1:Comparison of synthetic executable environments for Agentic RL\. Unlike existing works limited to generalist tool endpoints, EnvCraft provides stateful, workspace\-level infrastructure for trainingClaw\-like agentswith the largest task scale\.Specifically,EnvCraftoperates through two complementary engines: environment synthesis and data generation\. For environment synthesis, we curate 41 general tool\-use and 42 Claw\-specific scenarios, which LLMs expand into detailed environment specifications and tool interface definitions\. Guided by nine interaction archetypes that prescribe control\-flow and state\-management patterns, the synthesizer generates fully executable, sandbox\-isolated environments\. For data generation, we introduce a topology\-aware sampling strategy to produce high\-quality RL tasks comprising user intents, initial states, and verifiers\. We first build intra\- and cross\-environment tool dependencies as a bi\-level directed graph, from which weighted random walks yield semantically coherent and logically valid tool chains\. Conditioned on these chains, LLMs reverse\-engineer multi\-turn user intents that expose information incrementally, while simultaneously generating deterministic verification scripts that check post\-execution workspace states to supply reward signals\. UsingEnvCraft, we synthesized 139 interactive environments and 19,777 tasks spanning both Claw\-specific and general tool\-use task\.

Extensive experiments on Qwen3\-8/32B and Qwen3\.5\-9B backbones validate EnvCraft’s effectiveness via direct RL\. On Claw\-style benchmarks, Claw\-specific training yields gains of up to \+11\.9 points on PinchBench and \+11\.4 on Claw\-Eval, while simultaneously reducing per\-task token cost by up to 35%, indicating more efficient reasoning paths\. Critically, these performance gains transfer robustly to disjoint general\-purpose tool\-use benchmarks \(BFCL\-v3,τ2\\tau^\{2\}\-bench\), confirming that the learned policies generalize beyond the training distribution rather than merely overfitting to synthesized environments\.

## 2Preliminaries

### 2\.1Problem Setup: Agentic Interaction

#### Environment Formulation

Formally, we conceptualize an executable agentic environmentEEas a decoupled quadruple that bridges reinforcement learning abstractions with LLM\-based interaction:

E=⟨𝒟doc,ℐtool,𝒮,𝒯⟩E=\\langle\\mathcal\{D\}\_\{\\text\{doc\}\},\\mathcal\{I\}\_\{\\text\{tool\}\},\\mathcal\{S\},\\mathcal\{T\}\\rangle\(1\)where each component is structurally specified as follows:

- •Env Documentation\(𝒟doc\\mathcal\{D\}\_\{\\text\{doc\}\}\): A natural\-language description encapsulating the global system rules, operational constraints, and safety boundaries of the environment\.
- •Tool Interfaces\(ℐtool\\mathcal\{I\}\_\{\\text\{tool\}\}\): Names, parameters, and descriptions of all tools exposed to the agent, which define the interface for agent–environment interaction\.
- •Environment States\(𝒮\\mathcal\{S\}\): The persistent, observable state space, capturing real\-world side\-effects:𝒮t=\{sdata,sruntime\}\\mathcal\{S\}\_\{t\}=\\\{s\_\{\\text\{data\}\},s\_\{\\text\{runtime\}\}\\\}, wheresdatas\_\{\\text\{data\}\}represents underlying data states \(e\.g\., file metadata or database schemas\) andsruntimes\_\{\\text\{runtime\}\}represents temporal execution sessions\.
- •Sandbox Transition Function\(𝒯\\mathcal\{T\}\): It executes an agent actionat∈ℐtoola\_\{t\}\\in\\mathcal\{I\}\_\{\\text\{tool\}\}within an isolated sandbox, and deterministically yields the next state and observation:𝒯:𝒮t×ℐtool→𝒮t\+1×𝒪t\+1\\mathcal\{T\}:\\mathcal\{S\}\_\{t\}\\times\\mathcal\{I\}\_\{\\text\{tool\}\}\\rightarrow\\mathcal\{S\}\_\{t\+1\}\\times\\mathcal\{O\}\_\{t\+1\}\.

#### Data Point Formulation

To facilitate optimization via Agentic RL, we formalize each training data point𝒫\\mathcal\{P\}generated within the synthetic environment as a structured tuple:

𝒫=⟨𝒬,𝒮0,𝒱script⟩\\mathcal\{P\}=\\langle\\mathcal\{Q\},\\mathcal\{S\}\_\{0\},\\mathcal\{V\}\_\{\\text\{script\}\}\\rangle\(2\)where𝒬\\mathcal\{Q\}represents the user query, and𝒱script\\mathcal\{V\}\_\{\\text\{script\}\}denotes an automated execution verification script,𝒮0∈𝒮\\mathcal\{S\}\_\{0\}\\in\\mathcal\{S\}denotes the concrete environment initial state that instantiates the runtime workspace prior to agent execution,𝒱script\\mathcal\{V\}\_\{\\text\{script\}\}programmatically and dynamically audits the environment state transitions𝒮0→𝒮n\\mathcal\{S\}\_\{0\}\\rightarrow\\mathcal\{S\}\_\{n\}\(e\.g\., verifying structural file mutations or executing exact metadata checks\)\. This design ensures the derivation of deterministic, programmatic reward signals\.

## 3Environmental Synthesis Engines

Operating in an end\-to\-end fashion, the environment synthesis engine fully automates the transition from natural\-language descriptions to executable environments\.

### 3\.1Env Scenario Collection

To establish a robust and comprehensive training foundation, we gathered a vast corpus of environment domains spanning both general tool\-use tasks and Claw\-specific scenarios\. These raw samples were curated from the OpenClaw community\([Steinberger 2026](https://arxiv.org/html/2609.05576#bib.bib32);[Tencent 2026](https://arxiv.org/html/2609.05576#bib.bib37);[Sheikh 2026](https://arxiv.org/html/2609.05576#bib.bib38)\)as well as representative prior works\([Patil et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib10);[Chen et al\. 2025a](https://arxiv.org/html/2609.05576#bib.bib41);[Song et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib30)\)\. After rigorous deduplication and semantic filtering, we retained 12 coarse\-grained general tool\-use domains and 13 Claw\-specific categories\. At a finer granularity, these categories encompass 42 Claw\-specific scenarios and 41 general tool\-use scenarios, with specifications provided in the Supplementary Material \(SM\)\.

Subsequently, we leveraged LLMs to enrich these skeletal domain profiles\. This automated expansion systematically transformed brief natural\-language descriptions into granular, document\-level environment specifications \(ℰspec\\mathcal\{E\}\_\{\\text\{spec\}\}\) and declarative tool interface specifications \(𝒯spec\\mathcal\{T\}\_\{\\text\{spec\}\}\)\. Together, these dual specifications establish a holistic contract that precisely dictates what the environment must model and what operational interfaces it should expose\.

\(a\)Claw\-Specific Scenarios\(b\)General Tool\-Use Scenarios
Figure 2:Distribution of synthesized environments across coarse\-grained scenario categories\.![Refer to caption](https://arxiv.org/html/2609.05576v1/ENV_main_v2.png)Figure 3:Environment and task synthesis pipeline in EnvCraft\. Given natural\-language descriptions, the Environment Synthesis Engine generates executable sandboxes \(state \+ tools \+ docs\); the Data Synthesis Engine samples tool chains and synthesizes RL training tasks \(intent sequence \+ initial state \+ verifier\)\.
### 3\.2Environment Sandbox Synthesis

To generate executable and structurally standard environment sandboxes from high\-level natural language descriptions, we propose a prototype\-driven synthesis framework\.

#### Interaction Archetype Design and Matching

To accommodate the complex interaction requirements inOpenClawscenarios, we distill software interaction archetypes into nine foundationalprototypes\. Each interaction archetype functions as a structured prompt template, combining abstract design specifications with concrete reference implementations and architectural blueprints\. These nine prototypes cover distinct control\-flow and state\-management paradigms: \(1\) transactional workspace, \(2\) cross\-tool data pipelines, \(3\) dynamic human\-agent interaction, \(4\) asynchronous event triggering, \(5\) constraint\-guided state machine, \(6\) multi\-resource temporal scheduling, \(7\) multi\-criteria bilateral matching, \(8\) distributed workflow orchestration, and \(9\) fault\-tolerant stream processing\. The complete interaction archetype specifications are provided in SM\.

Each interaction archetype serves as a design contract, pairing abstract specifications with reference implementations for a target interaction paradigm\. To ground LLM generation, the framework retrieves relevant prototypes by scoring keyword overlap with the environment specification \(ℰspec\\mathcal\{E\}\_\{\\text\{spec\}\}\)\. The candidate prototypes are then ranked, and up to the top two are selected as in\-context architectural anchors\.

#### Specification\-Guided Environment Generation

The environment synthesis engine ingests three structured inputs:

1. 1\.Interaction Archetype Specifications \(𝒫proto\\mathcal\{P\}\_\{\\text\{proto\}\}\):Provide concrete design prototypes, reference implementations\.
2. 2\.Environment Specification \(ℰspec\\mathcal\{E\}\_\{\\text\{spec\}\}\):Defines domain entity types, state attributes, and business rules governing valid state transitions\.
3. 3\.Tool Specification \(𝒯spec\\mathcal\{T\}\_\{\\text\{spec\}\}\):Formulates the API interface surface, specifying function schemas, typed parameters, return formats, and side\-effect flags \(e\.g\., read\-only vs\. write\-only\)\.

To synthesize executable sandboxes, the LLM processes a unified structured prompt that seamlessly integrates𝒫proto\\mathcal\{P\}\_\{\\text\{proto\}\},ℰspec\\mathcal\{E\}\_\{\\text\{spec\}\}, and𝒯spec\\mathcal\{T\}\_\{\\text\{spec\}\}\. Guided by these reference implementations and structured output specifications, the LLM programmatically generates a fully executable environment class\. A representative synthesized environment instance is illustrated in Figure[3](https://arxiv.org/html/2609.05576#S3.F3)\. The system prompts and execution schemas are detailed in the SM\.

#### Claw\-Specific Extension

To accommodate the unique execution demands of Claw\-specific scenarios, we introduce two domain\-specific enhancements:

- •Built\-in Tools:We inject a system\-level Bash execution tool derived from the OpenClaw harness into the environment’s default toolset, granting agents direct CLI\-level interaction capabilities\.
- •Parallel Skill Co\-Synthesis:Concurrently with the environment generation, we prompt the synthesizer to produce a set of domain\-tailoredAgent Skills\(reusable workflow guidance in markdown\)\.

### 3\.3Environment Quality Auditing

To ensure high fidelity, structural robustness, and runtime stability, all synthesized environments must undergo a rigorous dual\-stage automated quality control protocol:

\(1\)Static code analysis\. We leverage Abstract Syntax Tree \(AST\) parsing alongside predefined compliance rules to systematically verify the syntactic correctness of the source code, ensuring that all tool schemas and interface definitions strictly adhere to the designated structural specifications\.

\(2\)Dynamic runtime analysis\. We programmatically instantiate each environment from its initial state𝒮0\\mathcal\{S\}\_\{0\}and execute predefined test cases\. This process tests the operational validity of all exposed toolsℐtool\\mathcal\{I\}\_\{\\text\{tool\}\}, validating state transition logic \(𝒮t→𝒮t\+1\\mathcal\{S\}\_\{t\}\\rightarrow\\mathcal\{S\}\_\{t\+1\}\) and auditing exception\-handling behaviors under edge cases\. Environments that successfully pass both stages are committed to the final library\. Conversely, failed environments are routed to a self\-healing loop, where an LLM is prompted with execution logs to automatically patch the codebase for re\-verification\.

Finally, as shown in Table[2](https://arxiv.org/html/2609.05576#S4.T2), quality auditing reduced the 324 raw environments to 139 \(42\.9% pass rate\), comprising 70 general\-tool environments and 69 Claw\-specific environments\.

## 4Data Synthesis Engines

This section presents our pipeline for synthesizing executable and verifiable tool\-use tasks\. It includes tool chain sampling, task construction, and quality auditing\.

### 4\.1Sampling Tool Chain

To ground subsequent task synthesis in valid execution logic, we model tool and environment dependencies as a bi\-level directed graph structure\. At the bottom level, we construct an intra\-environmenttool dependency graphfor each sandbox\. By combining static code analysis with LLM reasoning over tool pre\- and post\-conditions, we map out logical sequences \(e\.g\., data flows\) as weighted directed edges\. At the top level, to support cross\-system workflows, we build a cross\-environmentenv dependency graph\. Here, environments act as nodes, and the LLM establishes weighted edges based on semantic domains and cross\-environment data flows\.

We generate executable tool chains via a hierarchical weighted random walk over this bi\-level structure\. For single\-environment tasks, the sampler traverses the tool dependency graph; for cross\-environment tasks, it first samples a sequence of logically connected environments \(typically 2–5\) from the env\-graph, then performs intra\-environment walks within each tool\-graph to generate and concatenate prefixed sub\-chains\. To ensure verifiability, we partition all tools intoread tools\(non\-state\-mutating\) andwrite tools\(state\-altering\), and enforce that every sampled chain terminates with a mutation tool\. This guarantees that each synthesized task ultimately modifies the environment state, enabling programmatic answer verification through state\-based evaluation\. Ultimately, these sampled tool chains serve as hard execution skeletons, directly driving the downstream intent reverse\-engineering and scenario construction for seed task synthesis\.

Env/Data TypesPassedRawPass RateEnvironmentGeneral Tool Env7020334\.48%Claw Env6912157\.02%\# Total13932442\.90%Data EntryGeneral Tool Data14,21521,97564\.69%Claw\-special Data5,56213,48941\.23%\# Total19,7773546455\.77%Table 2:Statistics of Environment and Data from EnvCraft, along with pass rate in quality auditing\.
### 4\.2Task Synthesis

While tool chains specify the operational skeleton, they must be transformed into self\-contained training samples\. We formulate it as a three\-stage synthesis process\.

##### Chain\-to\-Task Reverse Engineering\.

The LLM analyzes data\-flow dependencies along the chain and classifies each parameter as eitheruser\-specified\(grounded literals provided by the user, e\.g\., order IDs or file paths\) ortool\-derived\(intermediate results resolved from preceding tool outputs, e\.g\., query\-returned record IDs\)\. It then reverse\-engineers a natural\-language user instruction in which user\-specified values are stated explicitly while tool\-derived values are referenced only abstractly, never revealing their ground\-truth values\. This information\-hiding mechanism forces the downstream agent to discover intermediate results through actual tool execution, ensuring task non\-speculability\.

##### Intent Decomposition

Since the above intents are expressed as single composite instructions while real users disclose information incrementally, we decompose each task into a sequence\. Given the composite intent and the tool chain’s step structure, the LLM generates a user instruction sequence in which the user reveals information or poses sub\-tasks step\-by\-step, and the agent executes corresponding tools sequentially until the overall objective is fulfilled\.

To improve the naturalness of the user intents, we incorporate persona attributes into the decomposition process\. Specifically, we sample persona profiles from PersonaHub\([Ge et al\. 2024](https://arxiv.org/html/2609.05576#bib.bib39)\)and compute their semantic similarity with the documentation of all environments\. For each environment, we retain up to the five most relevant personas \(500 in total\), and randomly select one during intent decomposition to condition the simulated user’s behavior\.

##### Intent\-to\-Environment Construction\.

This step generates the initial environment state and the corresponding answer verification script\. Specifically, it takes as input the complete environment and tool source code, together with the decomposed user intent sequence\. We prompt an LLM to instantiate the initial environment state by populating the workspace with both the entities required for the correct execution path and plausible distractor records\. In parallel, the LLM generates a deterministic verification script that checks whether the resulting workspace state satisfies the user’s intent\. The final output is a self\-contained JSON task record containing the task identifier, user task, initial environment state, and executable verification script\.

### 4\.3Data Quality Auditing

To ensure the fidelity and trainability of synthesized data, we apply an auditing protocol: First, we employ an LLM with a predefined rubric covering instruction clarity, tool chain consistency, and evaluation\-function correctness; samples scoring below the acceptance threshold are discarded\. Second, we perform difficulty calibration by running Qwen3\.5\-27B on each task for eight independent trials and filtering out samples with a 0% or 100% pass rate\. Samples whose pass rates fall within an intermediate range, constitute the final training set with a balanced difficulty distribution\([He et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib46)\)\.

After auditing, we retain 19,777 high\-quality samples from 35k raw candidates \(55% pass rate\), comprising 14,215 general tool\-use \(EnvCraft\-Tool\) and 5,562 Claw\-specific instances \(EnvCraft\-Claw\), as shown in Table[2](https://arxiv.org/html/2609.05576#S4.T2)\.

## 5Experiments

### 5\.1Setup

##### Implementation\.

We fine\-tune Qwen3 and Qwen3\.5 series models \(ranging from 8B to 32B parameters\) using GRPO within the VERL framework\([Sheng et al\. 2024](https://arxiv.org/html/2609.05576#bib.bib11)\)\. Our primary training strategy focuses on claw\-specialized data; we additionally explore a two\-stage curriculum that first trains on general tool\-use data before fine\-tuning on Claw\-specific trajectories\. Training is conducted on 64 GPUs with a rollout batch size of 64, a maximum generation length of 32k tokens, and up to 64 action turns per trajectory\. We enable the default thinking mode throughout training and inference, and defer all remaining hyperparameter configurations to the Supplementary Material \(SM\)\.

##### Baselines\.

We evaluate EnvCraft on the open\-source Qwen3 and Qwen3\.5 model series and compare them against representative frontier models, including GPT\-5\.4\([OpenAI 2026](https://arxiv.org/html/2609.05576#bib.bib42)\), Claude Opus 4\.6\([Anthropic 2026](https://arxiv.org/html/2609.05576#bib.bib43)\), Kimi K2\.5\([Moonshot AI 2026](https://arxiv.org/html/2609.05576#bib.bib44)\), and MiniMax M2\.7\([MiniMax 2026](https://arxiv.org/html/2609.05576#bib.bib45)\)\. Additionally, we include recent RL data for general tool\-use environment synthesis \(see Table[1](https://arxiv.org/html/2609.05576#S1.T1)\): EnvScaler\([Song et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib30)\), ScaleEnv\([Tu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib28)\), AWM\([Wang et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib31)\), and EnvFactory\([Xu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib29)\)\. To ensure a fair comparison, we evaluated models trained using these data in consistent experimental settings\.

ModelPinchBenchClawEvalScoreTokenScoreTokenAdvanced ModelsClaude Opus 4\.669\.9012\.3080\.6020\.40Kimi\-2\.554\.6014\.0066\.6017\.80GPT 5\.475\.7011\.5078\.3015\.30MiniMax\-m2\.765\.4011\.6071\.8017\.80Main ResultsQwen3\-8B12\.94±\\pm0\.313\.6944\.06±\\pm0\.215\.49\+ EnvCraft\-Tool14\.51±\\pm0\.117\.3445\.80±\\pm0\.117\.59\+ EnvCraft\-Tool\-Claw24\.19±\\pm0\.211\.2655\.63±\\pm0\.313\.25\+ EnvCraft\-Claw24\.85±\\pm0\.18\.8455\.42±\\pm0\.212\.44Qwen3\-32B22\.92±\\pm0\.417\.3460\.35±\\pm0\.323\.16\+ EnvCraft\-Claw29\.51±\\pm0\.314\.6062\.78±\\pm0\.220\.33Qwen3\.5\-9B47\.34±\\pm0\.111\.5072\.22±\\pm0\.119\.49\+ EnvCraft\-Claw52\.19±\\pm0\.310\.5876\.30±\\pm0\.114\.32Table 3:Main results\. Score denotes the average task score \(%\), and Token denotes the average token usage per trajectory \(K\)\.±\\pm⋅\\cdotdenotes the standard deviation over three runs\. Bold values indicate the best score within each backbone group\.
##### Evaluation\.

We evaluate on two categories of benchmarks\. \(1\) two Claw\-style agent benchmarks: PinchBench\([Kilo AI Team 2026](https://arxiv.org/html/2609.05576#bib.bib35)\)and ClawEval\([Ye et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib36)\), which assess end\-to\-end capabilities in solving real\-world, long\-horizon tasks\. We employ the standard OpenClaw harness for these evaluations\. \(2\) two widely used multi\-turn tool\-use benchmarks, BFCL\-v3\([Patil et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib10)\)andτ2\\tau^\{2\}\-bench\([Yao et al\. 2024](https://arxiv.org/html/2609.05576#bib.bib34)\), which evaluate core tool\-use abilities essential for Claw Agents\. All benchmarks feature domain\-specific environments with tools, requiring the LLM to interact with users and invoke tools via its native function\-calling interface to ensure consistency\. We report the average score over three independent runs for each benchmark\.

ModelBFCL\-v3 Multi\-Turn𝝉2\\boldsymbol\{\\tau\}^\{2\}\-benchBaseMiss\-FuncMiss\-ParamLong\-ContextOverallRetailAirlineTelecomOverallAdvanced ModelsGemini\-3\-Pro\-Pre\.64\.5060\.0054\.5064\.0060\.7575\.9080\.5091\.0082\.47Claude Sonnet 4\.569\.0065\.0052\.5059\.0061\.3772\.4072\.0084\.9076\.43Qwen3\-235B60\.0035\.0034\.0054\.0045\.7571\.9058\.6047\.3059\.27Kimi\-K2\-Instruct57\.5035\.0042\.0049\.0045\.8870\.6056\.5065\.8064\.30Main ResultsQwen3\-8B50\.00±\\pm0\.544\.50±\\pm0\.034\.00±\\pm0\.528\.50±\\pm0\.039\.25±\\pm0\.533\.33±\\pm0\.126\.00±\\pm0\.021\.93±\\pm0\.127\.09±\\pm0\.1ScaleEnv\-8B\-\-\-\-\-50\.9037\.5027\.2038\.53EnvScaler55\.5036\.0035\.0041\.0041\.8853\.6236\.00\-\-EnvFactory\-\-\-\-49\.0043\.8644\.0013\.1633\.67AWM\-\-\-\-\-41\.2338\.5023\.4734\.40EnvCraft\-Tool58\.50±\\pm1\.050\.50±\\pm0\.539\.50±\\pm0\.036\.50±\\pm0\.046\.25±\\pm1\.036\.84±\\pm0\.228\.00±\\pm0\.024\.56±\\pm0\.129\.80±\\pm0\.2EnvCraft\-Claw55\.00±\\pm0\.552\.00±\\pm0\.540\.50±\\pm0\.036\.00±\\pm0\.045\.88±\\pm0\.535\.52±\\pm0\.126\.50±\\pm0\.523\.68±\\pm0\.128\.57±\\pm0\.5Qwen3\-32B57\.00±\\pm0\.550\.00±\\pm0\.038\.00±\\pm1\.037\.00±\\pm0\.045\.50±\\pm1\.056\.14±\\pm0\.248\.00±\\pm0\.026\.32±\\pm0\.243\.49±\\pm0\.2ScaleEnv\-32B\-\-\-\-\-63\.6048\.0030\.9047\.50EnvCraft\-Tool67\.00±\\pm0\.053\.00±\\pm0\.541\.50±\\pm0\.542\.50±\\pm0\.051\.00±\\pm0\.556\.63±\\pm0\.252\.00±\\pm0\.528\.07±\\pm0\.245\.57±\\pm0\.5Qwen3\.5\-9B52\.00±\\pm1\.053\.50±\\pm0\.039\.50±\\pm0\.034\.00±\\pm0\.544\.75±\\pm1\.035\.14±\\pm0\.232\.00±\\pm0\.015\.79±\\pm0\.227\.64±\\pm0\.2EnvCraft\-Tool65\.50±\\pm0\.059\.00±\\pm0\.545\.00±\\pm0\.041\.50±\\pm0\.552\.75±\\pm0\.540\.35±\\pm0\.242\.00±\\pm0\.026\.50±\\pm0\.336\.28±\\pm0\.3Table 4:Performance comparison of advanced models on multi\-turn tool\-use benchmarks \(BFCL\-v3 Multi\-Turn andτ2\{\\tau\}^\{2\}\-bench\)\. All scores are reported as percentages\. “\-” indicates unreported results in the original paper\.

### 5\.2Main Results

##### Main Results on Claw\-style Benchmarks\.

Table[3](https://arxiv.org/html/2609.05576#S5.T3)reports performance on PinchBench and Claw\-Eval, together with the average token cost per task\. Training on EnvCraft\-generated data consistently improves Qwen models across all scales and families\. Concretely, for Qwen3\-8B, Claw\-specific training boosts PinchBench from 12\.94% to 24\.85% \(\+11\.91% \) and Claw\-Eval from 44\.06% to 55\.42% \(\+11\.36%\)\. Qwen3\-32B achieves gains of 6\.59 points on PinchBench and 2\.43 points on Claw\-Eval\. Qwen3\.5\-9B shows consistent gains of 4\.85 points on PinchBench and 4\.08 points on Claw\-Eval\. These improvements across three backbone configurations, ranging from 8B to 32B parameters, demonstrate that EnvCraft’s benefits generalize beyond a specific scale or architecture, underscoring the value of synthesized environments as a robust training resource\.

Comparing training data compositions, general tool\-use data yields only modest gains \(\+1\.57% on PinchBench, \+1\.74% on Claw\-Eval\), whereas Claw\-specific trajectories contribute the majority of improvements \(\+11\.91% and \+11\.36%\)\. Sequential Tool\-to\-Claw training achieves comparable results \(\+11\.25% and \+11\.57%\), indicating that domain\-aligned executable trajectories are more critical than simply accumulating heterogeneous data\.

Training dynamics\.Figure[4](https://arxiv.org/html/2609.05576#S5.F4)illustrates the training dynamics of Qwen3\-8B and Qwen3\.5\-9B during reinforcement learning on EnvCraft\-Claw environments, reporting checkpoint\-level test performance on PinchBench\. Both models exhibit steady improvements throughout training: Qwen3\-8B rises from 12\.9% to 24\.85%, while Qwen3\.5\-9B climbs from 47\.3% to 52\.2%\. These consistent gains, across different scales and backbones, demonstrate that EnvCraft delivers stable, transferable learning signals that accumulate through sustained interaction with executable environments, rather than arising from isolated checkpoints\.

\(a\)EnvCraft\-Claw on Qwen3\-8B\(b\)EnvCraft\-Claw on Qwen3\.5\-9B
Figure 4:Training dynamics on EnvCraft\-Claw environments\. Test PinchBench scores are reported throughout RL, showing consistent and stable improvements for both \(a\) Qwen3\-8B and \(b\) Qwen3\.5\-9B as training progresses\.
##### Results on Tool\-Use Benchmarks\.

Table[4](https://arxiv.org/html/2609.05576#S5.T4)presents results on BFCL\-v3 andτ2\\tau^\{2\}\-bench, evaluating general tool\-use capabilities, a core sub\-ability underlying claw\-style tasks\. EnvCraft training consistently improves scores across both benchmarks\. On BFCL, Qwen3\-8B climbs from 39\.25% to 46\.25% under EnvCraft\-Tool \(\+7\.00\) and achieves 45\.88% under EnvCraft\-Claw, matching the performance of Kimi\-K2\-Instruct \(45\.88%\) despite being substantially smaller\. Qwen3\-32B gains \+5\.50, reaching 51\.00%, while Qwen3\.5\-9B shows the largest boost, rising from 44\.75% to 52\.75% \(\+8\.00\)\. Onτ2\\tau^\{2\}\-bench, EnvCraft\-Tool improves Qwen3\-8B from 27\.09% to 29\.80% \(\+2\.71\), while EnvCraft\-Claw yields 28\.57%\. Notably, EnvCraft\-Claw achieves results on BFCL comparable to EnvCraft\-Tool \(45\.88% vs\. 46\.25% for Qwen3\-8B\), indicating that Claw\-specific training induces transferable tool\-use behavior\.

Training dynamics\.Figure[5](https://arxiv.org/html/2609.05576#S5.F5)tracks the BFCL\-v3 Base score of the three Qwen backbones as a function of RL training steps on EnvCraft\. All three models improve over their step\-0 initialization within the first≈\\approx20 steps and stay above it for the remainder of training, reaching selected\-checkpoint gains of 8\.5, 10\.0, and 13\.5 points on Base \(Table[4](https://arxiv.org/html/2609.05576#S5.T4)\)\. Qwen3\.5\-9B improves most monotonically, whereas the two Qwen3 backbones exhibit mild mid\-training oscillations but remain above their initial performance\.

Figure 5:Training dynamics on the BFCL\-v3 Base subset\. We plot the Base score of Qwen3\-8B, Qwen3\-32B, and Qwen3\.5\-9B against RL training steps on EnvCraft\.
##### Inference Token\-Cost\.

Figure[6](https://arxiv.org/html/2609.05576#S5.F6)compares task performance and average token consumption on PinchBench before and after EnvCraft\-Claw training\. Across all three backbones, EnvCraft\-Claw reduces per\-task token cost by an average of 20% \(42\.5K→\\rightarrow34\.0K in aggregate\) while simultaneously improving task scores\. Specifically, Qwen3\-8B drops from 13\.69K to 8\.84K tokens \(−35%\-35\\%\), Qwen3\-32B from 17\.34K to 14\.60K \(−16%\-16\\%\), and Qwen3\.5\-9B from 11\.50K to 10\.58K \(−8%\-8\\%\)\. The consistent score\-up, cost\-down pattern indicates that RL on stateful environments encourages models to discover shorter, more direct action sequences rather than verbose trial\-and\-error trajectories\.

Figure 6:Comparison of PinchBench performance and average token consumption per task before and after EnvCraft\-Claw training\. Higher task scores and lower token costs indicate better inference efficiency\.

## 6Conclusion

We present EnvCraft, an end\-to\-end synthesis framework that automates the generation of executable environments and verifiable RL training tasks from natural\-language descriptions, eliminating the need for manual environment engineering\. We contribute 139 RL environments and∼20​K\\sim 20Ktraining instances at scale\. Experiments demonstrate consistent gains on both Claw\-style and general tool\-use benchmarks, accompanied by reduced inference token costs\. These results suggest that scalable, automated environment synthesis is a viable way to train claw\-like agents\.

## References

- Anthropic \(2026\)AnthropicIntroducing claude opus 4\.6\.Note:https://www\.anthropic\.com/news/claude\-opus\-4\-6Cited by:[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- Caiet al\.\(2025\)S\. Cai, R\. Fang, J\. Wu, B\. Li, X\. Wang, Y\. Jiang, L\. Su, L\. Zhang, W\. Yin, Z\. Zhang,et al\.AutoForge: automated environment synthesis for agentic reinforcement learning\.arXiv preprint arXiv:2512\.22857\.Cited by:[Table 1](https://arxiv.org/html/2609.05576#S1.T1.1.2.1.1)\.
- Chenet al\.\(2025a\)C\. Chen, X\. Hao, W\. Liu, X\. Huang, X\. Zeng, S\. Yu, D\. Li, S\. Wang, W\. Gan, Y\. Huang,et al\.Acebench: who wins the match point in tool usage?\.arXiv preprint arXiv:2501\.12851\.Cited by:[§3\.1](https://arxiv.org/html/2609.05576#S3.SS1.p1.1)\.
- Chenet al\.\(2025b\)Z\. Chen, Z\. Zhao, K\. Zhang, B\. Liu, Q\. Qi, Y\. Wu, T\. Kalluri, S\. Cao, Y\. Xiong, H\. Tong,et al\.Scaling agent learning via experience synthesis\.arXiv preprint arXiv:2511\.03773\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p3.1),[§1](https://arxiv.org/html/2609.05576#S1.p3.1)\.
- Fanget al\.\(2026\)R\. Fang, S\. Cai, B\. Li, J\. Wu, G\. Li, W\. Yin, X\. Wang, X\. Wang, L\. Su, Z\. Zhang,et al\.Towards general agentic intelligence via environment scaling\.InFindings of the Association for Computational Linguistics: ACL 2026,pp\. 17610–17621\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p4.1)\.
- Fenget al\.\(2025\)J\. Feng, S\. Huang, X\. Qu, G\. Zhang, Y\. Qin, B\. Zhong, C\. Jiang, J\. Chi, and W\. ZhongRetool: reinforcement learning for strategic tool use in llms\.arXiv preprint arXiv:2504\.11536\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1),[§1](https://arxiv.org/html/2609.05576#S1.p2.1)\.
- Geet al\.\(2024\)T\. Ge, X\. Chan, X\. Wang, D\. Yu, H\. Mi, and D\. YuScaling synthetic data creation with 1,000,000,000 personas\.arXiv preprint arXiv:2406\.20094\.Cited by:[§4\.2](https://arxiv.org/html/2609.05576#S4.SS2.SSS0.Px2.p2.1)\.
- Guoet al\.\(2025\)D\. Guo, D\. Yang, H\. Zhang, J\. Song, R\. Zhang, R\. Xu, Q\. Zhu, S\. Ma, P\. Wang, X\. Bi,et al\.Deepseek\-r1: incentivizing reasoning capability in llms via reinforcement learning\.arXiv preprint arXiv:2501\.12948\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p1.1)\.
- Heet al\.\(2025\)J\. He, J\. Liu, C\. Y\. Liu, R\. Yan, C\. Wang, P\. Cheng, X\. Zhang, F\. Zhang, J\. Xu, W\. Shen, S\. Li, L\. Zeng, T\. Wei, C\. Cheng, B\. An, Y\. Liu, and Y\. ZhouSkywork open reasoner 1 technical report\.arXiv preprint arXiv:2505\.22312\.Cited by:[§4\.3](https://arxiv.org/html/2609.05576#S4.SS3.p1.1)\.
- Jinet al\.\(2025\)B\. Jin, H\. Zeng, Z\. Yue, J\. Yoon, S\. Arik, D\. Wang, H\. Zamani, and J\. HanSearch\-r1: training llms to reason and leverage search engines with reinforcement learning\.arXiv preprint arXiv:2503\.09516\.Cited by:[§1](https://arxiv.org/html/2609.05576#S1.p2.1)\.
- Kalaiet al\.\(2025\)A\. T\. Kalai, O\. Nachum, S\. S\. Vempala, and E\. ZhangWhy language models hallucinate\.arXiv preprint arXiv:2509\.04664\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p3.1)\.
- Kilo AI Team \(2026\)Kilo AI TeamPinchbench: Benchmarking system for evaluating LLM models as OpenClaw agents\.Note:https://github\.com/pinchbench/skillGitHub repository\. Accessed: 2026\-05\-02Cited by:[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px3.p1.1)\.
- Leet al\.\(2022\)H\. Le, Y\. Wang, A\. D\. Gotmare, S\. Savarese, and S\. C\. H\. HoiCoderl: mastering code generation through pretrained models and deep reinforcement learning\.Advances in Neural Information Processing Systems35,pp\. 21314–21328\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Liet al\.\(2025a\)K\. Li, Z\. Zhang, H\. Yin, L\. Zhang, L\. Ou, J\. Wu, W\. Yin, B\. Li, Z\. Tao, X\. Wang,et al\.Websailor: navigating super\-human reasoning for web agent\.arXiv preprint arXiv:2507\.02592\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Liet al\.\(2026a\)X\. Li, J\. Jin, G\. Dong, H\. Qian, Y\. Wu, J\. Wen, Y\. Zhu, and Z\. DouWebthinker: empowering large reasoning models with deep research capability\.Advances in Neural Information Processing Systems38,pp\. 120091–120131\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Liet al\.\(2025b\)X\. Li, H\. Zou, and P\. LiuTorl: scaling tool\-integrated rl\.arXiv preprint arXiv:2503\.23383\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Liet al\.\(2026b\)Y\. Li, H\. Wang, J\. Qiu, Z\. Yin, D\. Zhang, C\. Qian, Z\. Li, X\. Ma, G\. Chen, and H\. JiFrom word to world: can large language models be implicit text\-based world models?\.InProceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 8084–8111\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p3.1),[§1](https://arxiv.org/html/2609.05576#S1.p3.1)\.
- Liet al\.\(2025c\)Y\. Li, H\. A\. Inan, X\. Yue, W\. Chen, L\. Wutschitz, J\. Kulkarni, R\. Poovendran, R\. Sim, and S\. RajmohanSimulating environments with reasoning models for agent training\.arXiv preprint arXiv:2511\.01824\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p3.1),[§1](https://arxiv.org/html/2609.05576#S1.p3.1)\.
- MiniMax \(2026\)MiniMaxMiniMax m2\.7: early echoes of self\-evolution\.Note:https://www\.minimax\.io/news/minimax\-m27\-enCited by:[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- Moonshot AI \(2026\)Moonshot AIKimi k2\.5: visual agentic intelligence\.Note:https://www\.kimi\.com/blog/kimi\-k2\-5Cited by:[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- Nous Research \(2026\)Nous ResearchHermes agent: the agent that grows with you\.Note:https://github\.com/nousresearch/hermes\-agentGitHub repository\. Accessed: 2026\-05\-02Cited by:[§1](https://arxiv.org/html/2609.05576#S1.p1.1)\.
- OpenAI \(2026\)OpenAIIntroducing gpt\-5\.4\.Note:https://openai\.com/index/introducing\-gpt\-5\-4/Cited by:[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- OpenClaw Contributors \(2026\)OpenClaw ContributorsOpenClaw: an open\-source framework and repository\.GitHub\.Note:https://github\.com/openclaw/openclawAccessed: 2026\-06\-29Cited by:[§1](https://arxiv.org/html/2609.05576#S1.p1.1)\.
- Patilet al\.\(2025\)S\. G\. Patil, H\. Mao, C\. Cheng\-Jie Ji, F\. Yan, V\. Suresh, I\. Stoica, and J\. E\. GonzalezThe berkeley function calling leaderboard \(bfcl\): from tool use to agentic evaluation of large language models\.InForty\-second International Conference on Machine Learning,Cited by:[§3\.1](https://arxiv.org/html/2609.05576#S3.SS1.p1.1),[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px3.p1.1)\.
- Qianet al\.\(2026\)C\. Qian, E\. C\. Acikgoz, Q\. He, H\. Wang, X\. Chen, D\. Hakkani\-Tur, G\. Tur, and H\. JiToolrl: reward is all tool learning needs\.Advances in Neural Information Processing Systems38,pp\. 105523–105553\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Qiaoet al\.\(2025\)S\. Qiao, Y\. Zhao, Z\. Qiu, X\. Wang, J\. Zhang, Z\. Bin, N\. Zhang, Y\. Jiang, P\. Xie, F\. Huang,et al\.Scaling generalist data\-analytic agents\.arXiv preprint arXiv:2509\.25084\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Qinet al\.\(2024\)Y\. Qin, S\. Liang, Y\. Ye, K\. Zhu, L\. Yan, Y\. Lu, Y\. Lin, X\. Cong, X\. Tang, B\. Qian,et al\.Toolllm: facilitating large language models to master 16000\+ real\-world apis\.InInternational Conference on Learning Representations,Vol\.2024,pp\. 9695–9717\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p2.1)\.
- QwibitAI \(2026\)QwibitAINanoClaw\.GitHub\.Note:https://github\.com/qwibitai/nanoclawCited by:[§1](https://arxiv.org/html/2609.05576#S1.p1.1)\.
- Shaoet al\.\(2024\)Z\. Shao, P\. Wang, Q\. Zhu, R\. Xu, J\. Song, X\. Bi, H\. Zhang, M\. Zhang, Y\. Li, Y\. Wu,et al\.Deepseekmath: pushing the limits of mathematical reasoning in open language models\.arXiv preprint arXiv:2402\.03300\.Cited by:[§B\.1](https://arxiv.org/html/2609.05576#A2.SS1.p1.1)\.
- Sheikh \(2026\)H\. SheikhAwesome openclaw usecases\.Note:https://github\.com/hesamsheikh/awesome\-openclaw\-usecasesAccessed: 2026\-05\-03Cited by:[§3\.1](https://arxiv.org/html/2609.05576#S3.SS1.p1.1)\.
- Shenget al\.\(2024\)G\. Sheng, C\. Zhang, Z\. Ye, X\. Wu, W\. Zhang, R\. Zhang, Y\. Peng, H\. Lin, and C\. WuHybridFlow: a flexible and efficient rlhf framework\.arXiv preprint arXiv: 2409\.19256\.Cited by:[§D\.1](https://arxiv.org/html/2609.05576#A4.SS1.p1.1),[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px1.p1.1)\.
- Songet al\.\(2026\)X\. Song, H\. Chang, G\. Dong, Y\. Zhu, J\. Wen, and Z\. DouEnvscaler: scaling tool\-interactive environments for llm agent via programmatic synthesis\.InFindings of the Association for Computational Linguistics: ACL 2026,pp\. 8326–8357\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p4.1),[Table 1](https://arxiv.org/html/2609.05576#S1.T1.1.3.1.1),[§1](https://arxiv.org/html/2609.05576#S1.p3.1),[§3\.1](https://arxiv.org/html/2609.05576#S3.SS1.p1.1),[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- Steinberger \(2026\)P\. SteinbergerOpenClaw: your own personal AI assistant\.Note:https://github\.com/openclaw/openclawGitHub repository\. Accessed: 2026\-05\-02Cited by:[§3\.1](https://arxiv.org/html/2609.05576#S3.SS1.p1.1)\.
- Tencent \(2026\)TencentSkillHub: tencent cloud agent skill platform\.Note:https://skillhub\.cloud\.tencent\.com/Accessed: 2026\-05\-03Cited by:[§3\.1](https://arxiv.org/html/2609.05576#S3.SS1.p1.1)\.
- Tuet al\.\(2026\)D\. Tu, H\. Hao, H\. Yang, Y\. Chen, Y\. Zhang, Z\. Xia, Y\. Yang, Y\. Sun, X\. Liu, F\. Shen,et al\.ScaleEnv: scaling environment synthesis from scratch for generalist interactive tool\-use agent training\.arXiv preprint arXiv:2602\.06820\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p4.1),[Table 1](https://arxiv.org/html/2609.05576#S1.T1.1.4.1),[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- Wanget al\.\(2024\)R\. Wang, G\. Todd, Z\. Xiao, X\. Yuan, M\. Côté, P\. Clark, and P\. JansenCan language models serve as text\-based world simulators?\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 2: Short Papers\),pp\. 1–17\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p3.1)\.
- Wanget al\.\(2026\)Z\. Wang, C\. Xu, B\. Liu, Y\. Wang, S\. Han, Z\. Yao, H\. Yao, and Y\. HeAgent world model: infinity synthetic environments for agentic reinforcement learning\.arXiv preprint arXiv:2602\.10090\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p4.1),[Table 1](https://arxiv.org/html/2609.05576#S1.T1.1.5.1.1),[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- Wuet al\.\(2026\)J\. Wu, B\. Li, R\. Fang, W\. Yin, L\. Zhang, Z\. Wang, Z\. Tao, D\. Zhang, Z\. Xi, R\. Tang,et al\.Webdancer: towards autonomous information seeking agency\.Advances in Neural Information Processing Systems38,pp\. 120957–120985\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Xuet al\.\(2026\)M\. Xu, Z\. Wang, M\. Deng, Z\. Li, Z\. Yang, X\. Zhu, Y\. Liu, B\. Zhu, B\. Huang, C\. Chen,et al\.EnvFactory: scaling tool\-use agents via executable environments synthesis and robust rl\.arXiv preprint arXiv:2605\.18703\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p4.1),[Table 1](https://arxiv.org/html/2609.05576#S1.T1.1.6.1.1),[§1](https://arxiv.org/html/2609.05576#S1.p3.1),[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px2.p1.1)\.
- Xuet al\.\(2025\)Z\. Xu, A\. M\. Soria, S\. Tan, A\. Roy, A\. S\. Agrawal, R\. Poovendran, and R\. PandaToucan: synthesizing 1\.5 m tool\-agentic data from real\-world mcp environments\.arXiv preprint arXiv:2510\.01179\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px2.p2.1)\.
- Xueet al\.\(2025\)Z\. Xue, L\. Zheng, Q\. Liu, Y\. Li, X\. Zheng, Z\. Ma, and B\. AnSimpletir: end\-to\-end reinforcement learning for multi\-turn tool\-integrated reasoning\.arXiv preprint arXiv:2509\.02479\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Yaoet al\.\(2024\)S\. Yao, N\. Shinn, P\. Razavi, and K\. NarasimhanTaubench: a benchmark for tool\-agent\-user interaction in real\-world domains\.arXiv preprint arXiv:2406\.12045\.Cited by:[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px3.p1.1)\.
- Yeet al\.\(2026\)B\. Ye, R\. Li, Q\. Yang, Y\. Liu, L\. Yao, H\. Lv, Z\. Xie, C\. An, L\. Li, L\. Kong,et al\.Claw\-eval: toward trustworthy evaluation of autonomous agents\.arXiv preprint arXiv:2604\.06132\.Cited by:[§5\.1](https://arxiv.org/html/2609.05576#S5.SS1.SSS0.Px3.p1.1)\.
- Yuet al\.\(2025\)Q\. Yu, Z\. Zhang, R\. Zhu, Y\. Yuan, X\. Zuo, Y\. Yue, W\. Dai, T\. Fan, G\. Liu, L\. Liu,et al\.Dapo: an open\-source llm reinforcement learning system at scale\.arXiv preprint arXiv:2503\.14476\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p1.1)\.
- Zenget al\.\(2025\)Y\. Zeng, X\. Ding, Y\. Hou, Y\. Wang, L\. Du, J\. Dai, Q\. Ding, D\. Tang, D\. Tu, W\. Liu,et al\.Tool zero: training tool\-augmented llms via pure rl from scratch\.InFindings of the Association for Computational Linguistics: EMNLP 2025,pp\. 9135–9147\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.
- Zhanget al\.\(2025\)S\. Zhang, Y\. Dong, J\. Zhang, J\. Kautz, B\. Catanzaro, A\. Tao, Q\. Wu, Z\. Yu, and G\. LiuNemotron\-research\-tool\-n1: exploring tool\-using language models with reinforced reasoning\.arXiv preprint arXiv:2505\.00024\.Cited by:[Appendix A](https://arxiv.org/html/2609.05576#A1.SS0.SSS0.Px1.p2.1)\.

## Limitations

This paper has several limitations:

First, although the synthesized environments are executable and undergo static and dynamic auditing, they remain simplified abstractions of real\-world systems and may not fully capture external\-service failures, nondeterministic behavior, evolving interfaces, or complex security constraints encountered in deployment\.

Second, the synthesis pipeline relies on LLM\-generated specifications, dependency graphs, user intents, and verification scripts\. Consequently, biases or errors introduced by the generator may propagate across different stages, while the predefined interaction archetypes and topology\-based sampling strategy may underrepresent workflows outside the covered design patterns\.

Third, our state\-based deterministic verifiers primarily evaluate whether the intended workspace mutations are completed, making them less suitable for tasks involving subjective quality, multiple acceptable outcomes, or purely read\-oriented objectives\.

Finally, our training experiments focus on Qwen3 and Qwen3\.5 backbones and a limited set of agent benchmarks\. Evaluating broader model families, real production systems, and longer\-running workflows remains an important direction for future work\.

## Ethical Statement

EnvCraft aims to reduce the cost of constructing executable environments and training data for agentic reinforcement learning\. Nevertheless, the proposed capabilities involve potential risks\. We therefore emphasize that EnvCraft is intended for controlled research environments\. Generated environments and tasks should undergo security auditing, access control, and human review before release or deployment, particularly when they involve sensitive data, external services, or tools capable of producing consequential state changes\.

## Generative AI Statement

LLMs was only used to refine writing\. Generative AI tools were not used to formulate the scientific hypotheses, interpret experimental results, derive mathematical formulations, or develop the scientific arguments presented in this manuscript\. They were also not used to draft, or substantively alter the manuscript text\. The authors take full responsibility for the design of the study, the validity of the experiments, the interpretation of the results, and the accuracy and integrity of the manuscript\.

## Appendix ARelated Works

##### Agentic Reinforcement Learning

Recent research has increasingly shifted from supervised fine\-tuning \(SFT\) toward Agentic RL for learning complex tool\-use and multi\-turn interaction policies\. By enabling autonomous exploration in interactive environments and optimizing policies from rule\-based or trajectory\-level feedback, methods such as GRPO\([Guo et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib1)\)and DAPO\([Yu et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib7)\)improve model performance on challenging and out\-of\-distribution tasks\. This closed loop between execution and learning allows agents to recover from errors and refine their behavior using environment feedback\.

For general tool use, methods such as ToolRL\([Qian et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib12)\), Tool\-Zero\([Zeng et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib9)\), and ToolN1\([Zhang et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib13)\)train LLMs to select and invoke tools by directly optimizing task success\. Search\-oriented agents\([Li et al\. 2026a](https://arxiv.org/html/2609.05576#bib.bib16);[Wu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib17);[Li et al\. 2025a](https://arxiv.org/html/2609.05576#bib.bib18)\)interleave reasoning with real\-time evidence retrieval to address challenging open\-domain questions\. In mathematical reasoning, ReTool, ToRL, and SimpleTIR\([Feng et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib4);[Li et al\. 2025b](https://arxiv.org/html/2609.05576#bib.bib5);[Xue et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib6)\)treat interpreters as executable action spaces\. Similarly, CodeRL and DataMind\([Le et al\. 2022](https://arxiv.org/html/2609.05576#bib.bib14);[Qiao et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib15)\)optimize code\-generation policies using execution feedback\. These developments further increase the demand for diverse, executable, and scalable training environments\.

##### Executable Environment Synthesis

Large\-scale agent RL training demands low\-latency, scalable, and reproducible environments\. Environment construction can be broadly divided into direct production environments and synthesized environments\. The latter can be further categorized into simulated environments and executable synthetic environments\.

Production environmentsemploy real\-world APIs\([Qin et al\. 2024](https://arxiv.org/html/2609.05576#bib.bib19)\)and MCP servers\([Xu et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib20)\)to provide authentic execution\. However, they are expensive to scale and suffer from network latency and irreproducible states, which may destabilize RL training\.

Simulated environmentsleverage LLMs to emulate tool behavior and state dynamics, enabling rapid prototyping\([Chen et al\. 2025b](https://arxiv.org/html/2609.05576#bib.bib21);[Li et al\. 2025c](https://arxiv.org/html/2609.05576#bib.bib22);[Li et al\. 2026b](https://arxiv.org/html/2609.05576#bib.bib23)\)\. However, they are prone to hallucination and introduce additional inference cost and instability, limiting their applicability to large\-scale training\([Kalai et al\. 2025](https://arxiv.org/html/2609.05576#bib.bib24);[Wang et al\. 2024](https://arxiv.org/html/2609.05576#bib.bib25)\)\.

Executable synthetic environments\([Wang et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib31);[Song et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib30);[Xu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib29);[Tu et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib28);[Fang et al\. 2026](https://arxiv.org/html/2609.05576#bib.bib27)\)reconstruct tools and stateful backends through sandbox code generation, striking a balance among scalability, reproducibility, and execution fidelity\.

## Appendix BAdditional Method Details

### B\.1Group Relative Policy Optimization

We briefly review GRPO\([Shao et al\. 2024](https://arxiv.org/html/2609.05576#bib.bib2)\)in the language\-generation setting\. Formally, for each input instructionxx, the policyπθ\\pi\_\{\\theta\}samples a group ofGGcandidate responses\{yi\}i=1G\\\{y\_\{i\}\\\}\_\{i=1\}^\{G\}\. The optimization objective is defined as:

ρ¯i,t=clip⁡\(ρi,t,1−ϵclip,1\+ϵclip\)\.\\bar\{\\rho\}\_\{i,t\}=\\operatorname\{clip\}\\left\(\\rho\_\{i,t\},1\-\\epsilon\_\{\\mathrm\{clip\}\},1\+\\epsilon\_\{\\mathrm\{clip\}\}\\right\)\.\(3\)
𝒥⁡\(θ\)=𝔼⁡\[1G​∑i=1G1\|yi\|​∑t=1\|yi\|\(min⁡\{ρi,t​A^i,ρ¯i,t​A^i\}−β​DKL,i,t\)\]\.\\displaystyle\\mathcal\{J\}\(\\theta\)=\\mathbb\{E\}\\Bigg\[\\frac\{1\}\{G\}\\sum\_\{i=1\}^\{G\}\\frac\{1\}\{\|y\_\{i\}\|\}\\sum\_\{t=1\}^\{\|y\_\{i\}\|\}\\Big\(\\min\\\{\\rho\_\{i,t\}\\hat\{A\}\_\{i\},\\bar\{\\rho\}\_\{i,t\}\\hat\{A\}\_\{i\}\\\}\-\\beta D\_\{\\mathrm\{KL\},i,t\}\\Big\)\\Bigg\]\.\(4\)Here,yiy\_\{i\}denotes theii\-th sampled agent trajectory, andrir\_\{i\}is the outcome reward returned by the deterministic task verifier\. Because the reward is assigned at the trajectory level, we useA^i,t=A^i\\hat\{A\}\_\{i,t\}=\\hat\{A\}\_\{i\}for all tokens in trajectoryii\.

### B\.2Environment Scenario Taxonomy

We organize the collected environment domains into 83 fine\-grained scenarios, including 41 general tool\-use scenarios and 42 Claw\-specific scenarios\. Each fine\-grained scenario may correspond to one or more executable environment instances\. The “\# Envs” column reports the number of synthesized environments associated with each scenario\. Tables[5](https://arxiv.org/html/2609.05576#A2.T5)and[10](https://arxiv.org/html/2609.05576#A2.T10)provide the complete taxonomy and scenario descriptions\.

No\.Fine\-Grained Scenario\# EnvsScenario Description1Messaging & Communication5APIs for instant messaging, mobile messaging, email, SMS, and other communication services, supporting session management, message sending and receiving, and user\-status tracking\.2Document & Note Management3APIs for document\-management and personal note\-taking systems, supporting document creation and editing, version control, note organization, and information retrieval\.3Development Tools1Jupyter Notebook server APIs supporting the creation, execution, editing, and lifecycle management of computational notebooks\.4Scheduling & Reminders2APIs for scheduling and reminder systems, supporting calendar\-event management, timed reminders, recurrence configuration, and notification delivery\.5Monitoring & Logging3APIs for network monitoring, model monitoring, and system\-log management, supporting device\-status detection, log collection, alerting, and performance\-metric tracking\.6Server & Application Management1Node\.js application\-server management APIs supporting application deployment, start and stop operations, process management, and runtime status monitoring\.7Data Management3APIs for database management, data backup and recovery, and file\-system operations, supporting persistent storage, data restoration, and structured file manipulation\.8Memory & Storage2Key–value storage and memory\-summarization APIs providing persistent information storage, retrieval, summarization, and archival\-memory management\.9Air Travel1Airline\-ticketing APIs supporting flight search, seat reservation, payment processing, itinerary retrieval, and booking modification\.Table 5:Fine\-grained general tool\-use scenarios and their corresponding environment descriptions\.No\.Fine\-Grained Scenario\# EnvsScenario Description10Ground Transport2Car\-rental and ride\-hailing platform APIs supporting vehicle leasing, ride requests, driver and vehicle matching, route planning, and fare calculation\.11Comprehensive Travel Booking1Integrated travel\-booking APIs combining flight reservations, credit\-card management, payment processing, and travel\-budget constraints\.12Accommodation1Hotel\-booking APIs supporting hotel and room search, availability management, price calculation, booking creation, modification, and cancellation\.13Vehicle Management3APIs for vehicle maintenance, motor\-vehicle registration, and vehicle control, covering maintenance scheduling, registration records, and in\-vehicle system operations\.14Banking & Trading3APIs for retail banking, stock trading, and quantitative\-trading bots, supporting account management, transfers, market\-data retrieval, order placement, and automated trading\.15Corporate Finance1Corporate financial\-reporting APIs supporting financial\-statement generation, multi\-source data aggregation, accounting\-period management, and compliance reporting\.16Insurance2APIs for insurance\-policy management and automobile\-insurance claims, supporting policy lifecycle management, claim submission, evidence review, and settlement processing\.17Reimbursement1Reimbursement and expense\-claim management APIs supporting application submission, approval workflows, expense verification, and financial write\-off processing\.Table 6:Fine\-grained general tool\-use scenarios and their corresponding environment descriptions \(continued\)\.No\.Fine\-Grained Scenario\# EnvsScenario Description18Online Shopping & Cart2APIs for online\-shopping and retail platforms, supporting product browsing, cart management, promotional discounts, checkout, and order creation\.19Product Catalog Management1E\-commerce product\-catalog APIs supporting product\-information maintenance, category organization, attribute management, pricing, and inventory display\.20Inventory & Order Management2APIs for inventory and order management, supporting inventory updates, order\-status transitions, fulfillment tracking, and stock reconciliation\.21Marketing & Reviews2APIs for product promotion and review systems, supporting campaign configuration, promotional\-rule management, user reviews, ratings, and feedback moderation\.22Task & Issue Tracking3APIs for task tracking, to\-do management, and software\-testing workflows, supporting assignment, prioritization, status transitions, and defect tracking\.23Workflow & Job Scheduling2APIs for workflow\-management and job\-scheduling systems, supporting process definition, dependency configuration, job execution, retry handling, and status monitoring\.24Content Management1Web content\-management system APIs supporting page creation, editing, version control, approval, publication, and content lifecycle management\.25Media Catalog & Playback2APIs for media\-catalog databases and music\-playback systems, supporting media indexing, metadata management, streaming playback, and playlist organization\.Table 7:Fine\-grained general tool\-use scenarios and their corresponding environment descriptions \(continued\)\.No\.Fine\-Grained Scenario\# EnvsScenario Description26Social Media1Social\-media publishing APIs supporting post creation, comment interaction, reposting, content retrieval, and follower\-relationship management\.27HR & Employee Management1Human\-resources information\-system APIs supporting employee\-profile management, organizational structures, employment records, and payroll information maintenance\.28Account & Membership2APIs for membership management and user registration, supporting account creation, authentication, membership\-tier management, and access\-control configuration\.29Benefits & Wellness1Fitness\-class booking APIs supporting class scheduling, member registration, coach assignment, capacity management, and booking cancellation\.30Communication & Services2APIs for telecommunications and food\-delivery services, supporting mobile\-plan management, data\-usage control, restaurant ordering, and delivery\-status tracking\.31Search & Information1Web\-search APIs supporting keyword queries, result retrieval, result organization, search\-history management, and bookmark collection\.32Computation & Math1Mathematical\-computation APIs supporting logarithmic, trigonometric, statistical, and numerical functions, together with configurable precision control\.33Online Learning Platforms1Online\-education platform APIs supporting course management, student enrollment, progress tracking, assignment handling, and Q&A interactions\.Table 8:Fine\-grained general tool\-use scenarios and their corresponding environment descriptions \(continued\)\.No\.Fine\-Grained Scenario\# EnvsScenario Description34Academic Administration3APIs for student\-information and university course\-selection systems, supporting student\-profile management, course registration, enrollment constraints, and grade\-record maintenance\.35Knowledge Resources1Library\-management APIs supporting catalog search, book borrowing, reservations, renewals, return processing, and overdue\-fine calculation\.36CRM & Customer Management1Customer\-relationship management APIs supporting customer profiles, sales\-opportunity tracking, interaction histories, and communication record maintenance\.37Reservation & Booking1Restaurant\-reservation APIs supporting restaurant and table information management, availability queries, booking creation, and dining\-schedule modification\.38Support Ticketing1Customer\-support ticketing APIs supporting ticket creation, assignment, status updates, priority management, escalation, and service\-queue management\.39Health Records1Personal\-health\-record APIs supporting health\-metric recording, vital\-sign tracking, historical\-data retrieval, and medical\-record management\.40Nutrition & Fitness1Nutrition\-tracking and fitness\-management APIs supporting dietary records, nutritional analysis, exercise logging, and workout\-plan management\.41Sensor & Device Management1IoT sensor\-data platform APIs supporting device registration, sensor\-data collection, device\-status monitoring, and time\-series data management\.Table 9:Fine\-grained general tool\-use scenarios and their corresponding environment descriptions \(continued\)\.No\.Fine\-Grained Scenario\# EnvsScenario Description1Collaborative Office & Email Automation3Collaborative\-office and email\-automation environments supporting workflow orchestration for email\-content extraction, automated social\-media publishing, and event\-driven email rules\.2E\-commerce & Logistics Management5E\-commerce logistics environments supporting shipment tracking, return and exchange processing, inventory reconciliation, multi\-stage logistics orchestration, and state\-machine\-based order management\.3Spreadsheet Data Cleaning & Statistical Analysis1Spreadsheet\-analysis environments supporting data cleaning, formula calculation, chart generation, pivot\-table construction, and statistical analysis across workspace files\.4Email Client Intelligent Management1Intelligent email\-client environments supporting email sending and receiving, message organization, reply suggestion, and automatic extraction of actionable to\-do items\.5Sensitive Information Encryption & Management1Secure information\-storage environments supporting encrypted password storage, credential retrieval, automatic form filling, and strong password generation\.6Cross\-Modal Content Transcription & Summarization2Cross\-modal content\-processing environments supporting audio\- and video\-to\-text transcription, discussion consolidation, and multi\-turn conversational summarization\.7Personal Assistant Configuration2Personal\-assistant environments supporting assistant\-persona configuration, preference management, schedule coordination, and multi\-turn dialogue orchestration\.8Contact Information Intelligent Management & Maintenance1Intelligent contact\-management environments supporting contact storage, tag\-based classification, relationship maintenance, and context\-aware reminders\.9Travel Compliance & Booking Closure5Travel\-compliance environments supporting policy verification, multi\-platform price comparison, approval workflows, booking completion, and compliance\-oriented state transitions\.Table 10:Fine\-grained Claw\-specific scenarios and their corresponding environment descriptions\.No\.Fine\-Grained Scenario\# EnvsScenario Description10Itinerary Disruption Dynamic Optimization4Dynamic itinerary\-optimization environments supporting delay monitoring, automatic rebooking, linked hotel and airport\-transfer adjustments, and traveler notification\.11Travel Budget Auto\-Accounting & Control1Automated travel\-budget environments supporting expense categorization, budget allocation, threshold alerts, and spending\-trend analysis\.12Automated Reimbursement Reconciliation5Automated reimbursement environments supporting receipt recognition, bank\-statement matching, expense\-report completion, approval processing, and multidimensional reconciliation\.13Travel Itinerary Offline Planning1Offline travel\-planning environments supporting destination organization, itinerary construction, local information management, and multi\-objective route optimization\.14Multi\-Dimensional Environmental Adaptive Regulation3Adaptive environmental\-control environments supporting smart\-device management, HVAC regulation, air\-quality adjustment, and energy\-consumption optimization\.15Home/Office Security Patrol4Security\-patrol environments supporting intrusion detection, scheduled inspection, alarm triggering, coordinated incident response, and evidence collection\.16Environmental Data Real\-Time Monitoring & Statistics1Real\-time environmental\-monitoring environments supporting sensor\-data collection, threshold alerts, temporal trend analysis, and statistical report generation\.17Smart Device Scheduled Task Management1Smart\-device scheduling environments supporting access control, area monitoring, scheduled patrol tasks, rule execution, and emergency notification\.18Investment Research Cross\-Validation4Investment\-research environments supporting financial\-data comparison, stock\-price verification, research\-report generation, and real\-time market\-stream processing\.Table 11:Fine\-grained Claw\-specific scenarios and their corresponding environment descriptions \(continued\)\.No\.Fine\-Grained Scenario\# EnvsScenario Description19Industry Sentiment & Growth Analysis1Industry\-analysis environments supporting competitor monitoring, strategy tracking, market\-report generation, growth analysis, and user\-feedback aggregation\.20System Patch Injection Defense1System\-security environments supporting sensitive\-key isolation, prompt\-injection detection, suspicious patch inspection, and security\-audit alerting\.21Identity Forgery & Audit Fraud1Identity\-verification and audit\-defense environments supporting auditor\-identity validation, anomalous\-behavior detection, forgery\-risk assessment, and early warning\.22Bulk Unauthorized Data Export Interception1Data\-loss\-prevention environments supporting sensitive\-data identification, export\-approval workflows, permission verification, and unauthorized\-transfer blocking\.23Internal Core Document Leak Interception1Document\-security environments supporting confidentiality classification, outbound\-transfer detection, access\-policy validation, and real\-time leak prevention\.24End\-to\-End Interview Process Hosting1Recruitment\-workflow environments supporting resume screening, interview scheduling, candidate communication, evaluator coordination, and end\-to\-end status tracking\.25Employee Onboarding Automated Pipeline1Employee\-onboarding environments supporting account creation, asset allocation, permission configuration, document processing, and automatic training\-task triggering\.26Employee Performance Auto\-Assessment Archiving1Performance\-management environments supporting multi\-source employee data aggregation, score calculation, report generation, and persistent assessment archiving\.Table 12:Fine\-grained Claw\-specific scenarios and their corresponding environment descriptions \(continued\)\.No\.Fine\-Grained Scenario\# EnvsScenario Description27Employee Offboarding Automated Process1Employee\-offboarding environments supporting permission revocation, asset\-return confirmation, workspace\-data backup, account deactivation, and completion tracking\.28Automated Domain Technical Survey1Automated technical\-survey environments supporting paper retrieval, source organization, domain\-trend analysis, evidence synthesis, and survey\-report generation\.29Literature Citation Relationship Archiving1Literature\-management environments supporting citation\-graph construction, citation\-impact analysis, related\-work discovery, and persistent relationship archiving\.30Multi\-Group Experiment Metrics Auto\-Comparison1Experiment\-analysis environments supporting experimental\-configuration recording, metric aggregation, group comparison, statistical difference analysis, and result archiving\.31Open\-Source Reproduction Record Archiving1Reproduction\-management environments supporting procedural record keeping, dependency and environment configuration, result validation, and reproducibility archiving\.32Music & Audio Playback1In\-vehicle audio environments supporting music search, playback control, queue manipulation, playlist management, and media\-status retrieval\.33Vehicle Control & Status Management1Vehicle\-control environments supporting air\-conditioning, seat, window, lighting, driving\-mode, and multimedia operations together with vehicle\-status inspection\.34Navigation & Trip Planning1In\-vehicle navigation environments supporting destination search, route planning, real\-time traffic retrieval, charging\-station selection, and trip adjustment\.Table 13:Fine\-grained Claw\-specific scenarios and their corresponding environment descriptions \(continued\)\.No\.Fine\-Grained Scenario\# EnvsScenario Description35Infrastructure Automated Operations1Infrastructure\-operations environments supporting server\-fault detection, diagnostic inspection, automatic recovery, service verification, and operations\-record maintenance\.36Cloud Resource Cost Auto\-Audit1Cloud\-cost auditing environments supporting multi\-project cost aggregation, abnormal\-spending detection, budget alerts, and cost\-optimization recommendations\.37Online Fault Root\-Cause Postmortem Archiving1Incident\-management environments supporting fault\-timeline construction, root\-cause analysis, corrective\-action tracking, and postmortem knowledge\-base archiving\.38Brand & Product Research1Brand\- and product\-research environments supporting SKU\-information retrieval, competitor\-feature comparison, evidence aggregation, and market\-positioning analysis\.39Multimedia Clue Tracking1Multimedia\-investigation environments supporting cross\-document clue association, evidence\-chain construction, provenance tracking, and information tracing\.40Churn Warning & Proactive Retention1Customer\-retention environments supporting churn\-risk assessment, retention\-strategy generation, customer segmentation, and automated customer communication\.41Customer Tier Label Auto\-Classification1Customer\-classification environments supporting behavior analysis, tier\-rule configuration, eligibility evaluation, and automatic customer\-label updates\.42Scheduled Business Report Auto\-Generation1Scheduled reporting environments supporting Markdown\-template completion, multi\-source data aggregation, visualization generation, and scheduled report publication\.Table 14:Fine\-grained Claw\-specific scenarios and their corresponding environment descriptions \(continued\)\.
### B\.3Interaction Archetype Specifications

To systematically address the complex operational demands inherent in OpenClaw scenarios, such as multi\-tool orchestration, asynchronous agentic execution, and dynamic context shifts, we define a taxonomy of nine complementary interaction archetypes\. Derived from core software interaction patterns in real\-world OpenClaw deployments, these prototypes encapsulate the exhaustive spectrum of control flows and state evolution logic required for agent evaluation\.

1. 1\.Transactional Workspace Operations \(CRUD & Auth\):Models authenticated entity workspaces—ticketing systems, content platforms, multi\-tenant SaaS—where a session\-bound user handle gates operations on a typed entity queue, each entity carrying an immutable identifier, mutable payload, and discrete status marker that progresses unidirectionally \(open→\\toin\-progress→\\toresolved→\\toclosed\) with guard checks against illegal reversions and duplicate terminal closure; an append\-only audit log records every mutation\. Tools expose entity CRUD with schema validation, selective field updates, terminal\-state resolution with mandatory metadata, session lifecycle primitives, and user\-scoped filtered listing\. The reference blueprint is a stateful workspace class: a module\-levelDEFAULT\_STATEdict holds the entity list, identity counter, current\-user variable, and log; lifecycle methods validate authentication and schema constraints before mutating; a\_load\_scenarioentry point deep\-copies defaults and applies overrides for harness snapshot\-consistency\.
2. 2\.Cross\-Tool Data Pipelines:Simulates multi\-stage ETL workflows—media monitoring, competitive intelligence, multi\-source research synthesis—where heterogeneous raw inputs \(text queries, audio, video, structured tables\) are ingested through format\-specific parsers into a unified intermediate representation, each job tracked with an auto\-derived type tag \(search, transcribe, parse\) and processing status; completed jobs feed an aggregation stage that merges results with semantic deduplication across configurable keys, and a final rendering stage formats the consolidated set into markdown, bullet summaries, JSON, or graph descriptions\. Tools provide source registration, multi\-format ingestion, type\-dispatched processing, cross\-job aggregation with dedup\-key configuration, and multi\-format output generation\. The reference architecture is a four\-phase pipeline engine \(ingest→\\toprocess→\\toaggregate→\\torender\) where each phase produces an intermediate artifact; processing uses a dispatch table keyed by job\-type to select among deterministic simulator functions; aggregation operates on a user\-declared deduplication key with configurable string\-normalization; rendering follows a format\-strategy pattern\.
3. 3\.Dynamic Human\-Agent Interaction:Replicates multi\-turn service conversations—customer\-support triage, consultative sales, medical intake—where the agent must discover a hidden user persona \(latent intent, floating\-point confidence level, emotional valence and trend, confirmed and outstanding item sets\) through progressive clarification, with a patience threshold forcing convergence or escalation when exceeded\. State is organized into three layers: session records with turn counts, per\-session message histories, and context\-variable dictionaries; control flow runs a keyword\-driven analysis pipeline that adjusts intent confidence \(raised by confirmation language, lowered by clarification\), transfers items from outstanding to confirmed on resolution detection, tracks mood deterioration beyond the patience bound, and generates deterministic mood\-conditioned replies from a template bank seeded by message content and turn index\. Tools expose session start with persona configuration, message send with auto\-reply and context\-delta reporting, history retrieval, manual context overrides, and session summarization with trajectory analysis\. The blueprint is a three\-layer state container with a pure analysis function mapping message text to context deltas and a deterministic template\-based reply generator enabling reproducible evaluation\.
4. 4\.Asynchronous Event Triggering:Captures event\-condition\-action automation—IFTTT/Zapier\-style hubs, monitoring pipelines, smart\-environment rule engines—where agents register heterogeneous event sources from a fixed taxonomy of external system categories, define rules binding a trigger type, optional source filter, and a condition predicate drawn from an operator set \(equality, comparison, containment, regex matching\) to typed action lists\. Event injection is the sole triggering primitive: the event is validated, appended to an event log, then synchronously matched against all enabled rules with aligned trigger type and source filter; for each match, the condition is evaluated against the event payload and, when satisfied, all actions dispatch in definition order with results written to an action log\. Tools cover source registration, rule CRUD with full condition/action specification, event injection, and separate filtered queries over event and action histories for end\-to\-end traceability\. The reference architecture is a synchronous ECA engine: rule evaluation is a linear scan performed immediately on injection; condition evaluation is a pure function with well\-defined fallback semantics \(string ops degrade gracefully, numeric ops fail closed\); action execution is a log\-only side effect; the dual\-log design ensures full auditability\.
5. 5\.Constraint\-Guided State Machine:Represents systems governed by an explicitly declared finite state machine𝒮×𝒜→𝒮′\\mathcal\{S\}\\times\\mathcal\{A\}\\rightarrow\\mathcal\{S\}^\{\\prime\}—order lifecycles, loan origination, regulatory approval chains, device controllers—where machine definitions enumerate named states with on\-enter/on\-exit hooks, designated initial and terminal sets, and a transition table whose edges carry source, target, trigger\-mode label, and optional nested guard predicates of the form\{field: \{op: value\}\}evaluated with multi\-field AND semantics against per\-entity data payloads\. Entities are created at the initial state and transitioned by locating matching edges to the target, evaluating guards \(fail\-closed on missing fields\), and on success updating current state, appending to visitation history, and logging; terminal\-state entry marks the entity completed and blocks further transitions\. Tools expose declarative machine definition \(create, add states, add guarded transitions\), entity lifecycle with three\-result transition feedback \(transitioned, blocked by guard, no such transition\) and available\-target enumeration, and filtered entity/transition inspection\. The blueprint is a two\-tier declarative engine: the machine tier is a pure graph definition with labeled edges; the entity tier is a runtime interpreter that walks the graph per entity; guard validation is a standalone pure function with explicit AND composition; trigger mode is metadata for agent interpretation\.
6. 6\.Multi\-Resource Temporal Scheduling:Simulates competitive time\-axis resource allocation—calendar management, meeting\-room booking, shift rostering—where agents manage multiple calendars each with timezone and working\-hour constraints, and schedule events with ISO\-8601 time bounds and integer priority into a global event list\. Every addition triggers eager pairwise interval\-overlap detection against non\-cancelled events on the same calendar, marking conflicts automatically; resolution follows a four\-strategy taxonomy: reschedule \(assign new time bounds\), cancel \(terminal status\), override \(cancel all conflicting events of strictly lower priority then promote\), or split \(truncate at a split point and spawn a continuation inheriting all metadata\)\. Availability queries scan a target date within working hours, compute gaps via a cursor\-based algorithm over sorted non\-cancelled events, and return contiguous free intervals meeting a minimum duration\. Tools cover calendar creation, event scheduling with auto\-detection, explicit conflict inspection, four\-strategy resolution, filtered event listing by calendar/status/date prefix, and availability discovery\. The reference architecture is a temporal\-constraint engine: conflict detection is a pure interval\-overlap predicate; the resolution taxonomy is a strategy pattern with cascading override; timestamps use ISO\-8601 string comparison for ordering withdatetimeparsing only for duration arithmetic\.
7. 7\.Multi\-Criteria Bilateral Matching:Evaluates two\-sided market decision\-making—resume\-to\-job matching, supplier sourcing, roommate pairing, marketplace recommendation—where agents configure matching pools with weighted criteria vectors \(attribute\-name to float\-weight mappings\) and a top\-K cap, then populate supply and demand candidates with typed attribute dictionaries\. Pairwise compatibility scoring normalizes per\-attribute distances by type—numerical proximity via absolute distance, string equality with a partial\-match fallback constant, list overlap as Jaccard ratio—and computes a weighted sum normalized to 0–100; results are sorted descending, truncated to top\-K, and materialized as persistent match records that enter a two\-phase lifecycle \(pending→\\toaccepted or rejected\) with explicit agent\-mediated acceptance/rejection on behalf of the counterparty\. Tools expose pool creation with weighted criteria, candidate addition, pairwise match execution with ranked scored output, re\-ranking by score/supply/demand, accept/reject primitives, and filtered listing\. The blueprint is a configurable scoring engine: the criteria vector is user\-declared; scoring is a type\-dispatched per\-dimension calculator composed into a weighted\-sum aggregator; matches are persistent records with an explicit status state machine; pools isolate independent matching contexts\.
8. 8\.Distributed Workflow Orchestration:Replicates complex task\-DAG execution—CI/CD pipelines, order fulfillment, content moderation, multi\-service saga orchestration—where pipelines decompose work into ordered stage arrays, each stage specifying an action label, a dependency list of prerequisite stage identities, an assigned worker \(with role and capability tags\), and a failure\-policy tag \(abort, skip, retry\) with a retry cap\. Execution is mode\-dependent: sequential mode iterates stages in order, executing each pending stage whose dependencies are satisfied and halting on abort\-policy failures; parallel mode identifies all dependency\-satisfied pending stages and executes them concurrently\. On failure the policy strategy applies: abort marks the pipeline failed; skip marks the stage skipped and continues; retry resets to pending with counter increment for explicit re\-invocation\. Rollback walks backward through completed stages invoking compensating actions; in\-band worker messaging enables coordination\. Tools cover worker registration/deregistration with busy\-state protection, pipeline definition with sequential/parallel topology, stage\-to\-worker assignment, single\-stage and full\-pipeline execution, retry, rollback with compensation, result collection, and inter\-worker messaging\. The blueprint is a two\-layer orchestration engine: the pipeline layer defines DAG topology through dependency lists; the execution layer enforces the dependency contract, manages worker state transitions \(idle↔\\leftrightarrowbusy\), and delegates failure response to a policy\-strategy pattern; rollback is a reverse\-topological walk\.
9. 9\.Fault\-Tolerant Stream Processing:Simulates real\-time asynchronous publish\-subscribe message buses—telemetry ingestion, audit\-log processing, IoT sensor hubs, event\-sourcing backends—where typed event streams are declared with explicit schema contracts \(field\-name\-to\-type dictionaries\), and subscribers attach through filtered subscriptions specifying a delivery mode \(push, poll, batch\) and an exact\-equality filter condition over event payload fields\. Publication pushes a typed payload with an assigned priority tier into the stream’s append\-only history, then fans out to all active matching subscriptions, placing event identifiers into per\-subscription pending queues; explicit acknowledgment removes events from the pending queue, with unacknowledged events persisting indefinitely to simulate at\-least\-once redelivery semantics and create observable backpressure through queue depth\. Unlike the event\-driven pattern \(synchronous single\-fire rule evaluation\), stream processing is inherently asynchronous and continuous: events flow indefinitely, subscriptions have lifecycles \(create, filter, unsubscribe\), and delivery guarantees require active consumer participation\. Tools expose typed stream creation with schema contracts, subscription management with filter and delivery\-mode selection, prioritized event publication, acknowledgment, pending\-event inspection, and event\-history queries\. The reference architecture is an asynchronous pub\-sub bus: streams are schema\-declared channels; subscriptions are independent consumer handles each with a private pending queue; the filter\-matching function is a pure exact\-equality predicate; acknowledgment is the sole offset\-advancement mechanism\.

## Appendix CSystem Prompts and Execution Schemas

This section provides the system prompts and structured schemas used by EnvCraft for environment and task synthesis\. To reduce inconsistencies between natural\-language requirements and generated code, both synthesis stages follow explicit input–output contracts\. The environment generator produces a standalone, session\-isolated Python package, while the task generator constructs a self\-contained workspace, a natural user request, and a deterministic verifier from a shared latent ground truth\.

### C\.1Environment Generation Prompt

Given an environment name, a workflow description, a set of domains, and structured world data, the environment generator is instructed to produce a complete Python package underclaw\_envs/<environment\_name\>/\. The package must implement persistent session management, domain\-specific tools, deterministic state transitions, executable evaluation logic, documentation, and concurrency tests\.

The fixed system prompt used for environment generation is shown below\. Fields enclosed by angle brackets are instantiated from the structured input specification described in Section[C\.2](https://arxiv.org/html/2609.05576#A3.SS2)\.

System Prompt for Environment GenerationYou are an environment generator for reinforcement learning training\. Synthesize a standalone Python package under claw\_envs/<environment\_name\>/ that satisfies the following contract\.Required artifacts\.1\. Environment class\.Generate a Python class that owns the session lifecycle, orchestrates domain modules, records actions with deterministic timestamps, and exposes evaluation entry points\. It must implement:create\_session\(scenario\_id\) \-\> session\_id reset\_session\(session\_id\) \-\> None get\_session\_state\(session\_id\) \-\> dict evaluate\_session\(session\_id\) \-\> dictThe returned session state must be compatible with the verifier\. The evaluation method must return per\-dimension scores and an overall\_score\.2\. Tool functions\.Generate one Python module for each domain, such as mail\.py, social\.py, or tickets\.py\. Each module exposes functions that take a session dictionary as input, return structured dictionaries, and mutate the session state in place\. Domain functions must not parse command\-line arguments, acquire file locks, or access the file system directly\.3\. State initialization\.Provide either a module\-level DEFAULT\_STATE dictionary or an initial\_session\(\) factory\. Every newly created session must be initialized from this template\. The template must include:session\_id; scenario\_id; created\_at; meta\.base\_time; meta\.action\_index = 0; workspace\_account; one state container per domain; actions = \[\]\.4\. Documentation\.Generate both README\.md and SKILL\.md\. The README must describe the task domain, session model, trainer bootstrap procedure, agent\-visible commands, and stress\-testing procedure\. The SKILL file must provide a concise English workflow guide, list the preferred tools and commands, and state critical behavioral constraints\. It must contain fewer than 50 lines\.5\. Persistence logic\.Generate a store\.py module implementing:load\_session\(state\_root, session\_id\) \-\> dict save\_session\(state\_root, session\_id, session\_dict\) \-\> None create\_session\(state\_root, session\_id, initial\_state\) \-\> None acquire\_lock\(state\_root, session\_id\) \-\> Lock release\_lock\(lock\) \-\> NoneSession state must be stored at <state\_root\>/<session\_id\>/session\.json, with the corresponding lock at <state\_root\>/<session\_id\>/\.lock\. All writes must use an atomic temporary\-file\-and\-replace procedure, and all reads must remain isolated across sessions\.6\. Exception handling\.Every public\-facing environment method, CLI command, tool function, and storage operation must return a structured error dictionary rather than propagating an exception\. Infrastructure failures must be mapped to safe task\-side messages\. Returned errors must not expose raw tracebacks, internal file\-system paths, connection strings, or implementation details\. Domain\-level validation errors must contain sufficient information for the agent to correct its action\.7\. Test cases\.Generate concurrency\_test\.py to validate session isolation, concurrent\-write serialization, successful evaluation of a correct workflow, penalties for stale or forbidden actions, and correct separation between hidden trainer commands and agent\-visible commands\.8\. Verifier\-compatible state interface\.The environment class must expose:get\_env\_state\(\) \-\> dict \_load\_scenario\(scenario: dict, long\_context: bool = False\) \-\> NoneThe former returns the complete internal state as a plain dictionary\. The latter deep\-copies DEFAULT\_STATE and applies scenario overrides so that the harness can deterministically initialize, snapshot, and restore the environment\.Design constraints\.One rollout corresponds to one session identifier, and the trainer owns the complete session lifecycle\. The agent must never receive or manually provide a session identifier\. Trainer bindings are injected through the environment variables <ENV\_NAME\>\_SESSION\_ID, <ENV\_NAME\>\_STATE\_ROOT, and <ENV\_NAME\>\_SCENARIO\_ID\.Immutable world data must be stored under data/ and must not be modified during a rollout\. Mutable state must be represented as file\-backed JSON with atomic writes and file locks\. Timestamps must be derived from the scenario base time and action index rather than from the wall clock\.All agent\-visible commands must return structured JSON\. Hidden trainer commands, including prepare\-rollout and reset\-rollout, must not appear in agent\-facing help text\.

### C\.2Environment Input and Output Schemas

The environment generator receives a structured specification rather than an unconstrained natural\-language request\. The input contains the target domains, immutable world data, scenario definitions, evaluation rules, and optional execution constraints\.

##### Input schema\.

1\{

2"environment\_name":"string",

3"task\_description":"string",

4"domains":\["string"\],

5"world\_data":\{

6"accounts":\{

7"<account\_id\>":\{

8"name":"string",

9"role":"string",

10"persona":"string"

11\}

12\},

13"contacts":\{

14"<contact\_id\>":\{

15"name":"string",

16"org":"string",

17"role":"string"

18\}

19\},

20"scenarios":\[

21\{

22"scenario\_id":"string",

23"task\_prompt":"string",

24"base\_time":"ISO\-8601string",

25"gold\_facts":\["string"\],

26"stale\_facts":\["string"\],

27"required\_attachments":\["string"\],

28"required\_replies":\["string"\],

29"allowed\_claims":\["string"\],

30"forbidden\_claims":\["string"\],

31"scoring\_rules":\{

32"<dimension\_name\>":\{

33"weight":"float",

34"rule":"string"

35\}

36\}

37\}

38\],

39"attachments":\{

40"<attachment\_id\>":\{

41"filename":"string",

42"content":"string"

43\}

44\},

45"domain\_artifacts":\{

46"<domain\>":\[

47\{

48"id":"string",

49"fields":\{\}

50\}

51\]

52\}

53\},

54"constraints":\{

55"max\_turns":"optionalinteger",

56"required\_reading\_order":\["string"\],

57"forbidden\_action\_sequences":\[

58\["string"\]

59\]

60\}

61\}

Thegold\_factsfield defines information that must be used in a successful trajectory, whereasstale\_factscontains outdated or distracting information that must be rejected\. Similarly,allowed\_claimsandforbidden\_claimsprovide deterministic constraints for the evaluator\. Thescoring\_rulesfield defines the evaluation dimensions and their weights\.

The generator returns the complete package as a structured collection of files, together with explicit state, command, evaluator, and test descriptions\.

##### Output schema\.

1\{

2"environment\_name":"string",

3"documentation":"README\.mdcontent",

4"skill\_md":"SKILL\.mdcontent",

5"files":\[

6\{

7"path":"relativepackagepath",

8"content":"completefilecontent",

9"role":"environment\_class\|domain\_module\|cli\|

10evaluator\|repository\|store\|

11concurrency\_test\|doc\|data\_scenario\|

12data\_accounts\|data\_contacts\|

13data\_attachment\|data\_artifact"

14\}

15\],

16"session\_schema":\{

17"session\_id":"string",

18"scenario\_id":"string",

19"created\_at":"ISO\-8601string",

20"meta":\{

21"base\_time":"string",

22"action\_index":0

23\},

24"workspace\_account":\{\},

25"<domain\>":\{\},

26"actions":\[

27\{

28"action\_index":0,

29"timestamp":"string",

30"action\_type":"string",

31"details":\{\}

32\}

33\]

34\},

35"cli\_commands":\{

36"hidden":\[

37\{

38"name":"string",

39"description":"string",

40"bindings\_output":\["string"\]

41\}

42\],

43"agent\_visible":\[

44\{

45"name":"string",

46"description":"string",

47"output\_format":\{

48"status":"string",

49"data":\{\}

50\}

51\}

52\]

53\},

54"evaluator":\{

55"dimensions":\[

56\{

57"name":"string",

58"weight":"float",

59"description":"string"

60\}

61\],

62"aggregation":"weighted\_sum",

63"deterministic":true

64\},

65"concurrency\_test":\{

66"scenarios":\["string"\],

67"assertions":\["string"\]

68\}

69\}

The explicitroleattached to every generated file enables automatic completeness checking\. An environment is rejected if any required artifact, interface, or test category is absent\.

### C\.3Unified Tool Schema

Each generated tool is represented using a unified declarative schema\. Besides conventional names, descriptions, and parameter definitions, the schema explicitly records whether a tool mutates state and which state fields may be affected\. These annotations are subsequently used to distinguish read and write tools and to analyze tool dependencies\.

1\{

2"name":"string",

3"description":"string",

4"parameters":\{

5"type":"object",

6"properties":\{

7"<param\_name\>":\{

8"type":"string\|integer\|number\|

9boolean\|array\|object",

10"description":"string",

11"default":"optionalvalue"

12\}

13\},

14"required":\["string"\]

15\},

16"returns":\{

17"type":"object",

18"description":"string",

19"success\_keys":\["string"\],

20"error\_format":\{

21"error":"human\-readable,agent\-safemessage"

22\}

23\},

24"side\_effect":"read\|write",

25"modifies\_state":"boolean",

26"state\_fields\_affected":\["string"\]

27\}

A parameter without adefaultfield is treated as required when it is listed inparameters\.required\. Theside\_effect,modifies\_state, andstate\_fields\_affectedfields provide an explicit operational description beyond the natural\-language tool documentation\.

### C\.4Execution and Safety Constraints

The generated package must satisfy the following executable constraints\.

\#ConstraintApplicable Components1All public functions return dictionaries and map failures to structured error responses rather than propagating exceptions\.Environment, tools, CLI, storage, evaluator2No mutable module\-level global state is permitted; all mutable data must reside in the session or environment state\.All modules3Thedata/directory is immutable during rollout and can be read only through the repository layer\.Repository and domain modules4Session updates use an atomic temporary write followed byos\.replace\.Storage layer5File locking uses platform\-supported locking with a bounded timeout and an agent\-safe error response\.Storage layer6Timestamps are computed frombase\_timeandaction\_index; wall\-clock timestamps are forbidden\.Environment and domain modules7CLI outputs follow a structured success or error schema\.CLI8Agent\-visible commands obtain session bindings only from trainer\-injected environment variables and do not expose a\-\-session\-idargument\.CLI9Hidden trainer commands are excluded from agent\-facing help messages\.CLI10Domain modules operate only on the provided session dictionary and do not perform CLI parsing, file access, or lock acquisition\.Domain modules11The evaluator is a deterministic, side\-effect\-free function with no randomness or external I/O\.Evaluator12The environment exposes complete state retrieval and deterministic scenario\-loading interfaces for harness snapshot and restoration\.Environment classTable 15:Code\-level constraints enforced during environment generation\.Errors are divided into infrastructure failures and domain\-level validation failures\. Infrastructure errors are converted into generic messages that do not expose internal paths or implementation details\. Domain errors identify the invalid entity, missing field, current state, or valid alternative whenever this information is necessary for agent self\-correction\.

Representative error behavior is summarized in Table[16](https://arxiv.org/html/2609.05576#A3.T16)\.

CategoryExampleRequired BehaviorMissing bindingSession environment variable is absentReturn an error indicating that the trainer must initialize the rollout\.Session not foundThe requested session does not existReturn an agent\-safe message stating that the session may have expired or been reset\.Lock timeoutAnother worker holds the session lockRequest a retry without exposing the lock path\.Permission failureThe current account cannot modify an entityIdentify the affected entity and state that write permission is absent\.Invalid transitionAn entity is already in the requested terminal stateReport the current state and explain why the transition is invalid\.Missing fieldA required command argument is absentName the missing field and describe the corresponding requirement\.Invalid referenceA thread, document, or entity identifier does not existIdentify the invalid reference and request correction\.Stale informationThe agent relies on an outdated artifactAllow the tool to emit a warning and let the deterministic evaluator apply the corresponding penalty\.Infrastructure failureThe state root cannot be accessedReturn a generic system error while retaining full diagnostic information only in server\-side logs\.Table 16:Structured error categories used in generated environments\.
### C\.5Task Generation Prompt

For Claw\-specific file\-workspace tasks, the task generator receives a sampled operational skeleton consisting of a tool chain, environment domain, gold actions, and data schema\. It then generates four mutually consistent artifacts in one pass:

1. 1\.a task configuration file;
2. 2\.a natural user request;
3. 3\.an initial\-workspace construction script; and
4. 4\.a deterministic verification script\.

The task prompt, workspace state, and verifier must all be derived from a single internally established ground truth\. This one\-shot constraint prevents mismatches in artifact paths, target records, numeric results, and evaluation conditions\.

The core system prompt is given below\.

System Prompt for File\-Workspace Task GenerationYou are an AI\-agent evaluation architect, scenario writer, and full\-stack engineer\. Given a business skeleton consisting of a tool chain and an environment domain, generate a highly discriminative and purely code\-verifiable file\-based workplace task for task <task\_id\>\.Before producing any output, internally establish one ground truth\. Generate the following four files in one pass:tasks/<task\_id\>\.yaml tasks/prompts/<task\_id\>\.md tasks/<task\_id\>/env\_builder\.py scripts/<task\_id\>/verify\_workplace\.pyAll four files must describe the same objective and unique answer\. The business objective in the user prompt must be derivable from the workspace generated by env\_builder\.py\. Every artifact, field, path, and value checked by verify\_workplace\.py must correspond to an explicit requirement in the user prompt\. The verifier must not introduce a second answer or check an artifact that the prompt does not request\.Output the four files in the required order\. Wrap each file in a Markdown code block whose first line is its complete relative path\. Do not emit explanations, headings, separators, or scores outside the four code blocks\.Task configuration\.The YAML file must follow the OpenClaw task schema and include the prompt path, the asset identifier, and basic runtime configuration\.User prompt\.Write the request as a realistic email, ticket, or verbal handoff from a specific workplace role\. The prompt should communicate the background, problem, and business objective in the character’s voice\.Do not expose hidden answers, expected values, variable names, verifier logic, scoring rules, or a numbered solution procedure\. When referring to files, use workspace\-relative paths only\. The request should describe the desired business outcome while requiring the agent to infer the necessary operations\.Workspace construction\.Use only the Python standard library\. Construct a professional and non\-trivial initial workspace containing distractors, dirty data, near\-duplicate records, outdated versions, decoy entries, and domain\-specific non\-standard file formats\.The workspace must nevertheless imply exactly one objectively correct answer\. Distractors may increase reasoning difficulty but must not create ambiguity\. The current working directory is already the task asset directory, so all paths must be relative\. File paths created by the builder must match those referenced by the prompt and verifier exactly\.Deterministic verification\.The verification script must use only the Python standard library and must not invoke an LLM, issue network requests, or read mock API credentials\. It should evaluate objective properties such as:exact numeric computation; record extraction, filtering, deduplication, and merging; classification and threshold decisions; set equality and ordering; file or directory structure; schema and format validity\.Open\-ended writing quality must not be used as a primary evaluation target\. When textual output is required, score only structurally extractable objective elements\.Structured files must be parsed using native JSON, CSV, path, numeric, or regular\-expression operations\. Do not use fuzzy substring matching when exact parsing is available\. Unexpected fields or fabricated entities should receive substantial penalties\.Use a fine\-grained weighted score rather than a binary outcome\. The script must write the final result to workplace\_score\.json using the following structure:\{"total\_score": 85, "details": \[ \{"item": "\.\.\.", "score": 10, "max\_score": 10, "passed": true, "reason": "\.\.\."\} \]\}The verifier receives the workspace path as its first command\-line argument, defaulting to the current directory\.The supplied tool chain, gold actions, environment domain, and data schema serve only as the underlying business skeleton\. Do not mention internal tool names, CLI commands, or implementation\-specific execution commands in the user\-facing task\.

### C\.6Cross\-Artifact Consistency

The task generator is constrained to produce all task components in a single response because independent generation can introduce inconsistencies between the natural\-language request, the initial workspace, and the verifier\. EnvCraft therefore enforces the following cross\-artifact invariants:

1. 1\.Path consistency\.Every required output path in the user request must exactly match the path inspected by the verifier\.
2. 2\.Data consistency\.Every expected value checked by the verifier must be derivable from the files generated by the environment builder\.
3. 3\.Objective consistency\.The verifier may assess only outputs and conditions explicitly implied by the user request\.
4. 4\.Answer uniqueness\.The initial workspace must admit one objectively correct result, despite containing distractors and noisy records\.
5. 5\.Information separation\.Hidden answers, scoring criteria, and verification logic must remain absent from the user\-facing prompt\.
6. 6\.Code\-only evaluation\.The final reward is computed by deterministic programmatic checks rather than by an LLM\-based judge\.

Together, the explicit environment contract, unified tool schema, and cross\-artifact task\-generation protocol make generated samples directly executable and deterministically verifiable\. They also enable automated auditing of missing package components, invalid tool interfaces, non\-isolated state mutations, inconsistent artifact paths, and non\-deterministic reward logic\.

## Appendix DExperimental Results

### D\.1Training Hyperparameters

We train all models using Group Relative Policy Optimization \(GRPO\) implemented with the VERL framework\([Sheng et al\. 2024](https://arxiv.org/html/2609.05576#bib.bib11)\)\. Unless otherwise specified, all experiments use the same optimization, rollout, and evaluation configurations\. The detailed hyperparameters are summarized in Table[17](https://arxiv.org/html/2609.05576#A4.T17)\.

HyperparameterValueOptimizationOptimizerAdamWLearning rate1×10−61\\times 10^\{\-6\}Learning\-rate schedulerConstantWarmup ratio0\.00\.0Weight decay0\.010\.01Gradient clipping1\.01\.0Training epochs1Global batch size64GRPOGroup sizeGG8Clipping coefficientϵclip\\epsilon\_\{\\mathrm\{clip\}\}0\.20\.2KL coefficientβ\\beta0\.020\.02Advantage normalizationGroup\-wise normalizationEntropy coefficient0\.00\.0RolloutRollout batch size64Rollouts per prompt8Temperature1\.01\.0Top\-pp1\.01\.0Maximum prompt length4,096Maximum generation length32,768Maximum action turns32InfrastructureNumber of GPUs64 NPUs \(88nodes×\\times88NPUs\)GPU typeHuawei Ascend 910B NPUTensor parallel size4Data parallel size8 rollout replicasGradient checkpointingEnabledTable 17:Common hyperparameters used for EnvCraft reinforcement learning\. Model\-specific differences are described in the main text\.
### D\.2Training Data and Curriculum

We consider two training strategies\. In direct Claw\-specific training, the model is optimized solely on the EnvCraft\-Claw dataset\. In the two\-stage Tool\-to\-Claw curriculum, the model is first trained on EnvCraft\-Tool and subsequently optimized on EnvCraft\-Claw\.

For the first stage, we train the model for115steps using8kEnvCraft\-Tool samples\. The resulting checkpoint is then used to initialize the second stage, which is trained for30steps using2kEnvCraft\-Claw samples\. The learning rate is1×10−61\\times 10^\{\-6\}in the first stage and1×10−61\\times 10^\{\-6\}in the second stage\. All other hyperparameters are shared across the two stages\.

### D\.3Reward Assignment and Rollout Handling

Each rollout receives an outcome reward from the programmatic verifier associated with its training sample\. For EnvCraft\-Tool, we adopt a binary reward: a successfully completed trajectory receives a reward of1\.01\.0, whereas an unsuccessful trajectory receives a reward of0\.00\.0\. For EnvCraft\-Claw, the verifier assigns a normalized reward in the range\[0,1\]\[0,1\]according to the degree of task completion, where1\.01\.0indicates full completion and0\.00\.0indicates complete failure\. Intermediate values represent partial task completion\. Unless otherwise specified, no intermediate process\-level reward is assigned\.

A rollout is considered unsuccessful if the agent produces an invalid tool call, exceeds the maximum number of action turns, reaches the execution timeout, triggers an unrecoverable environment exception, or fails to make verifiable progress toward the target state\. Recoverable tool\-execution errors remain part of the interaction trajectory and do not immediately terminate the rollout, allowing the policy to learn error\-recovery behavior\. The final reward is assigned after the resulting environment state is evaluated by the corresponding deterministic verifier\. Verifier execution errors are treated as failed verification and the corresponding rollout is assigned a reward of0\.00\.0\.

### D\.4Evaluation Configuration

For evaluation, all models are decoded using a temperature of1\.0, top\-ppof0\.6, and a maximum generation length of32768tokens\. Each task permits at most32agent turns and has an execution timeout of300 seconds\. We use8independent runs per model and report themeanscore\. The reported error terms denotestandard deviationacrossevaluation runs\.

For PinchBench and Claw\-Eval, task success is determined using the official evaluation protocol\. For BFCL\-v3 andτ2\\tau^\{2\}\-bench, we follow the benchmark\-provided evaluation scripts and default task splits\. All models use the same decoding and execution settings unless the official model interface imposes different constraints\.

### D\.5Training Dynamics and Data Composition

##### Training Dynamics on EnvCraft\-Tool\.

We examine the training dynamics of Qwen3\-8B, Qwen3\-32B, and Qwen3\.5\-9B on EnvCraft\-Tool\. As shown in Figure[7](https://arxiv.org/html/2609.05576#A4.F7), the left panels report training performance, while the right panels evaluate intermediate checkpoints on a held\-out set of 50 EnvCraft\-Tool tasks reserved before training and excluded from optimization\. All three backbones exhibit overall improvements on both splits, despite checkpoint\-level fluctuations, indicating that EnvCraft\-Tool provides consistent learning signals rather than merely encouraging memorization of training instances\.

\(a\)Qwen3\-8B\(b\)Qwen3\-32B\(c\)Qwen3\.5\-9B
Figure 7:Training dynamics of Qwen3\-8B, Qwen3\-32B, and Qwen3\.5\-9B on EnvCraft\-Tool\. The left panels show training performance, while the right panels report performance on 50 held\-out tasks excluded from training\.
##### Effect of Training Data Composition\.

We investigate how different data compositions affect claw\-task performance on Qwen3\-8B \(Fig\.[8](https://arxiv.org/html/2609.05576#A4.F8)\)\. General tool\-use training yields modest gains: PinchBench rises \+1\.57% and Claw\-Eval rises \+1\.74%\. In contrast, Claw\-specific training delivers substantially larger improvements, reaching \+11\.91% and \+11\.36%, respectively\. Sequential Tool\-to\-Claw training achieves comparable results \(24\.19 and 55\.63\)\. These results indicate that domain\-aligned Claw trajectories, which provide stateful workspaces, long\-horizon execution, and cross\-tool dependencies, contribute the majority of system\-level gains\. General tool\-use data offers complementary supervision for basic function selection and parameter grounding, yet its standalone effect is limited\. Overall, the findings suggest that task\-aligned executable trajectories are more critical than simply accumulating heterogeneous training data\.

\(a\)General Tool\-use training\(b\)Claw\-specific training\(c\)Tool\-to\-Claw training
Figure 8:Effect of training\-data composition on Qwen3\-8B\. We compare general tool\-use training, Claw\-specific training, and sequential general\-to\-Claw training using checkpoint\-level performance on PinchBench\.
##### Retention of General Tool\-Use Capability\.

A potential concern is that specializing a model on Claw\-specific environments may degrade its general tool\-use capability\. To examine this issue, we evaluate intermediate and final checkpoints on the BFCL\-v3 Multi\-Turn Base subset\. Figure[9](https://arxiv.org/html/2609.05576#A4.F9)compares general tool\-use training with subsequent Claw\-specific training\. After switching to Claw\-specific environments, the model maintains a BFCL score of 60\.0, compared with 59\.5 before the transition, while its PinchBench performance improves from 14\.51 to 24\.19\. These results provide evidence that Claw\-specific reinforcement learning improves system\-level execution without measurable degradation on the BFCL\-v3 Multi\-Turn Base subset\.

\(a\)General tool\-use training\(b\)Continual Claw\-specific training
Figure 9:Retention of general tool\-use capability during Claw\-specific reinforcement learning\. Scores are measured on the BFCL\-v3 Multi\-Turn Base subset at different training checkpoints\.

### D\.6Data Quality Analysis

##### LLM\-Based Quality\-Auditing Rubric\.

We employ an LLM\-based inspector to assess the logical validity, executability, and internal consistency of each synthesized task before difficulty calibration\. For each candidate, the inspector receives four inputs: the complete environment source code, the initialized environment state, the user intent sequence, and the corresponding programmatic validation protocol\. The inspector then evaluates the candidate along three dimensions: task solvability and logic, validation\-protocol integrity, and cross\-component data consistency\.

Specifically, we useDeepSeek\-V4\-Proas the auditing model\. Each candidate is inspected once using deterministic decoding, and the three dimension scores returned by the inspector are directly used for quality filtering\. In addition to numerical scores, the inspector produces a concise, dimension\-specific justification to facilitate failure analysis\. Table[18](https://arxiv.org/html/2609.05576#A4.T18)presents the complete scoring rubric\.

DimensionScore 3Score 2Score 1Score 0Task Solvability & LogicThe task is logically valid, non\-trivial, and fully solvable under the initial state and environment rules\. Completing it requires meaningful interaction, with no state conflicts\.The task is theoretically solvable but is either trivial, requires no meaningful interaction, or contains minor parameter mismatches that a robust agent may bypass\.The task is unsolvable because its requested actions or target state contradict the initial state, environment constants, or transition rules\.The task substantially hallucinates entities, tools, APIs, or states that are absent from the environment\.Validation\-Protocol IntegrityThe validation protocol is executable and completely checks the intended success conditions, without evident false\-positive or false\-negative paths\.The protocol is executable, but its assertions are incomplete or weak; for example, it verifies that an action occurred without checking the required final state\.The protocol contains syntax or runtime errors, references undefined variables or APIs, or is expected to fail during execution\.The validation protocol is missing or evaluates conditions unrelated to the user task\.Data Consistency & Syntactic CleanlinessEntity names, identifiers, value types, and schemas are fully consistent across the environment state, user task, and validation protocol\.The components are semantically consistent but contain minor type or formatting mismatches that do not fundamentally alter the task objective\.Critical fields are missing, or explicit contradictions exist between the user\-facing description and the underlying environment configuration\.The task record contains malformed JSON, severely corrupted text, or otherwise unusable structured data\.Table 18:Complete rubric used by the LLM\-based data\-quality inspector\. Each synthesized task is assigned an integer score from 0 to 3 along the three dimensions\.Letssol,sval,scon∈\{0,1,2,3\}s\_\{\\mathrm\{sol\}\},s\_\{\\mathrm\{val\}\},s\_\{\\mathrm\{con\}\}\\in\\\{0,1,2,3\\\}denote the scores for task solvability, validation integrity, and data consistency, respectively\. A candidate is retained only if

ssol\\displaystyle s\_\{\\mathrm\{sol\}\}=3,\\displaystyle=3,\(5\)sval\\displaystyle s\_\{\\mathrm\{val\}\}=3,\\displaystyle=3,scon\\displaystyle s\_\{\\mathrm\{con\}\}≥2,\\displaystyle\\geq 2,ssol\+sval\+scon\\displaystyle s\_\{\\mathrm\{sol\}\}\+s\_\{\\mathrm\{val\}\}\+s\_\{\\mathrm\{con\}\}≥8\.\\displaystyle\\geq 8\.
This strict gate requires every retained task to be fully solvable and equipped with a reliable programmatic reward function, while permitting only minor formatting inconsistencies that do not affect execution\. Candidates failing any of these conditions are removed before the subsequent rollout\-based difficulty calibration stage\.

The auditing prompt provides the inspector with the raw environment code, initial state, user intent sequence, and validation script\. It explicitly defines the score anchors in Table[18](https://arxiv.org/html/2609.05576#A4.T18)and requires the inspector to return only a structured JSON object containing dimension\-specific analyses, numerical scores, and the final qualification decision\. A compact representation of the required output format is shown below\.

Listing 1:Structured output schema of the LLM\-based quality inspector\.1\{

2"reasoning\_steps":\{

3"dimension\_1\_analysis":

4"Evidence\-basedanalysisoftasksolvability\.",

5"dimension\_2\_analysis":

6"Evidence\-basedanalysisofvalidationintegrity\.",

7"dimension\_3\_analysis":

8"Evidence\-basedanalysisofdataconsistency\."

9\},

10"scores":\{

11"task\_solvability":0,

12"validation\_integrity":0,

13"data\_consistency":0

14\},

15"is\_qualified":false

16\}

##### Effectiveness of LLM\-Based Quality Auditing\.

We further examine whether the LLM\-based inspector meaningfully distinguishes high\-quality tasks from invalid candidates\. Figure[10](https://arxiv.org/html/2609.05576#A4.F10)compares retained and filtered samples in terms of their average task\-solvability, validation\-integrity, and data\-consistency scores\.

Retained samples achieve consistently higher scores across all three dimensions, with the largest separation observed in task solvability\. In particular, the mean rubric score, averaged across the three dimensions, increases from 1\.38 for filtered candidates to 2\.97 for retained samples\. Because retained candidates must satisfy the strict conditions in Equation[5](https://arxiv.org/html/2609.05576#A4.E5), their scores are concentrated near the upper end of the rubric\. These results indicate that the auditing procedure does not merely enforce syntactic correctness, but also filters tasks with contradictory execution logic, inconsistent environment states, or unreliable reward functions\.

Figure 10:Average LLM\-rubric scores of retained and filtered task candidates across task solvability, validation\-protocol integrity, and data consistency\. Each dimension is scored on a 0–3 scale\. A candidate is retained only when it receives scores of 3, 3, and at least 2 on the three dimensions, respectively\.
##### Difficulty Calibration\.

After rubric\-based filtering, we calibrate task difficulty by evaluating each candidate task with Qwen3\.5\-27B over eight independent rollouts\. All rollouts use the same system prompt, user instruction, tool definitions, and initial environment state, while using different random seeds to induce independent trajectories\. We adopt a sampling temperature of0\.70\.7and a top\-ppvalue of0\.950\.95for all rollouts\.

Letzj∈\{0,1\}z\_\{j\}\\in\\\{0,1\\\}denote the outcome of thejj\-th rollout\. A rollout is considered successful \(zj=1z\_\{j\}=1\) only if it terminates within the maximum interaction budget and the deterministic verifier confirms that the resulting environment state satisfies all task constraints\. A rollout is considered unsuccessful \(zj=0z\_\{j\}=0\) if the verifier returns a negative result, the agent reaches the maximum of 32 action turns without completing the task, or the rollout exceeds a wall\-clock timeout of 300 seconds\. The empirical pass rate of a task is computed as

p=18​∑j=18zj\.p=\\frac\{1\}\{8\}\\sum\_\{j=1\}^\{8\}z\_\{j\}\.\(6\)
We retain only tasks satisfying

corresponding to tasks solved in one to seven of the eight rollouts\. Tasks withp=1p=1are removed because they provide limited learning signals, whereas tasks withp=0p=0are excluded because they are likely unsolvable, underspecified, or excessively difficult for the current training stage\.

We distinguish verifier rejection from verifier failure\. A verifier that executes normally but returns a negative result is treated as a failed rollout\. In contrast, verifier runtime exceptions, malformed outputs, or verifier timeouts are treated as data\-quality defects rather than agent failures\. Such samples are removed from difficulty calibration and routed to the verifier\-repair and re\-auditing pipeline\. We allow at most two automatic repair attempts and discard samples whose verifiers remain invalid afterward\.

### D\.7Ablation Studies

##### Contribution of Claw\-Specific Environment Extensions\.

To examine the contribution of the Claw\-specific environment design, we train Qwen3\-8B under three progressively enhanced configurations and evaluate the resulting models on PinchBench\. As shown in Figure[11](https://arxiv.org/html/2609.05576#A4.F11), augmenting the base Claw environment with built\-in system\-level tools substantially improves the score from 14\.96 to 24\.02, demonstrating that direct access to executable workspace operations provides the primary learning signal for system\-level agent capabilities\. Further introducing parallel skill co\-synthesis increases the score to 24\.33, yielding a smaller but consistent additional gain\. These results suggest that built\-in tools are the dominant contributor, while synthesized skills provide complementary workflow guidance that helps agents more effectively utilize the available execution interfaces\. The best performance is achieved when both components are combined, validating the effectiveness of the complete Claw\-specific environment design\.

Figure 11:Ablation study of Claw\-specific environment components on PinchBench\. The three configurations progressively introduce built\-in system tools and parallel skill co\-synthesis\. All models use the same Qwen3\-8B backbone and training configuration\.

## Appendix EQualitative Trajectory Example

##### Cross\-File Performance Aggregation\.

We present a representative EnvCraft\-Claw trajectory involving multi\-file workspace inspection, structured data integration, and programmatic state mutation\. The agent must identify valid records across an employee roster, a monthly output ledger, and role\-specific scoring rules, while excluding incomplete or inconsistent entries\. It then computes weighted performance scores, writes the results to a designated workspace file, and verifies the generated artifact\. This example illustrates how EnvCraft tasks require agents to combine information retrieval, constraint checking, numerical computation, and persistent file operations within a single executable workflow\. For readability, we omit repetitive intermediate reasoning and abbreviate lengthy tool outputs while preserving the original action sequence and execution results\.

Representative EnvCraft\-Claw Trajectory: Performance Score AggregationUser Request\.Linda, an HR specialist, asks the agent to prepare a monthly performance report\. The workspace contains an employee roster underdata/employees/, monthly output records underdata/ledgers/, and role\-specific scoring rules underdata/rules/\. Some records may be incomplete or redundant\. The agent must retain only employees who: \(1\) appear in the roster, \(2\) have a monthly output record, and \(3\) have a role with a defined scoring rule\. It must compute their weighted scores and save the resulting report toperformance/scores\_202501\.json\.Step 1: Inspect the workspaceAgent rationale\.First, identify the available data sources and confirm that the target output directory exists\.Tool calls:ls\(path="data"\)
ls\(path="performance"\)Observation\.The workspace contains three data directories:employees,ledgers, andrules\. Theperformancedirectory is currently empty\.Step 2: Load the relevant recordsAgent rationale\.Read the employee roster, monthly output ledger, and scoring\-rule files to determine their schemas and join keys\.Tool calls:read\("data/employees/employees\.json"\)
read\("data/ledgers/monthly\_outputs\.json"\)
read\("data/rules/scoring\_rules\.json"\)Observation\.The files useemployee\_idas the employee\-level join key androle\_codeas the rule\-level join key\. Scoring weights are available for Software Engineers \(SE\) and Quality Assurance staff \(QA\), but not for Human Resources staff \(HR\)\.Step 3: Resolve inconsistent recordsAgent rationale\.Cross\-reference the three sources and retain only records satisfying all eligibility conditions\.•emp001,emp002, andemp003are valid across all three sources\.•emp004is excluded because theHRrole has no scoring rule\.•emp005is excluded because no monthly output record is available\.•emp999is excluded because it does not appear in the employee roster\.For each eligible employee, the agent computess=\\displaystyle s=\{\}wdelivery​xdelivery\+wquality​xquality\\displaystyle w\_\{\\mathrm\{delivery\}\}x\_\{\\mathrm\{delivery\}\}\+w\_\{\\mathrm\{quality\}\}x\_\{\\mathrm\{quality\}\}\+wcollaboration​xcollaboration\.\\displaystyle\+w\_\{\\mathrm\{collaboration\}\}x\_\{\\mathrm\{collaboration\}\}\.Figure 12:A representative EnvCraft\-Claw trajectory involving workspace inspection, cross\-file record matching, rule\-based computation, persistent state mutation, and output verification\. For readability, repetitive intermediate reasoning and lengthy tool outputs are omitted while preserving the original action sequence and execution results\.Representative EnvCraft\-Tool Trajectory: Performance Score Aggregation \(Continued\)Step 4: Generate the performance reportAgent rationale\.Use a Python script to join the records, calculate the weighted scores, sort employees by total score, and write a structured JSON artifact\.Tool call:execute\_bash\(python scoring script\)Observation\.Three eligible employees are identified:EmployeeRoleWeighted ScoreAlice \(emp001\)SE92\.0Bob \(emp002\)SE84\.5Charlie \(emp003\)QA80\.0The results are written toperformance/scores\_202501\.json\.Step 5: Verify the workspace mutationAgent rationale\.Read the generated file to verify that the requested artifact exists and contains the expected records and summary statistics\.Tool call:read\("performance/scores\_202501\.json"\)Observation\.The file contains three employee records, with twoSEemployees and oneQAemployee\. The scores and ordering match the role\-specific weighted calculations\.Final Response\.The performance report has been generated successfully and saved toperformance/scores\_202501\.json\. Three employees satisfy all eligibility conditions: Alice with a score of 92\.0, Bob with 84\.5, and Charlie with 80\.0\. Diana is excluded because no HR scoring rule exists, Eve because her monthly ledger is missing, andemp999because the identifier is absent from the employee roster\.Figure 13:Representative EnvCraft\-Claw trajectory continued\.

Similar Articles

ClawEnvKit: Automatic Environment Generation for Claw-Like Agents

Hugging Face Daily Papers

ClawEnvKit is an automated pipeline that generates diverse, verified environments for claw-like agents from natural language descriptions, enabling the construction of Auto-ClawEval, a large-scale benchmark with 1,040 environments at 13,800x lower cost than human curation. The system supports continuous, on-demand evaluation and adaptive training environment generation across multiple model families and agent frameworks.

EnvHarness: Awakening Static Worlds for Agent Learning

Hugging Face Daily Papers

EnvHarness introduces a programmable layer to dynamically reshape static environments for reinforcement learning, improving agent performance through automated targeting of weaknesses with EnvRigger.