Manuscript Offprint
arXiv:2609.05576EnvCraft: Synthesizing Executable Environments in Agentic RL for Claw-like Agent
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.
Code — https://github.com/zeng-yirong/EnvCraft
Datasets — https://huggingface.co/EnvCraft
1 Introduction
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), NanoClaw (QwibitAI 2026), and Hermes-Agent (Nous Research 2026), 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 explore Agentic RL, which enables agents to

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.
iteratively refine their policies, recover from execution errors, and generalize to unseen scenarios.
Agentic RL frameworks inherently rely on the interaction among users, agents, and environments, as shown in Figure 1. 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) and local-retrieval tools (Jin et al. 2025). 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 envi-
*Corresponding author: xding@ir.hit.edu.cn ronments 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; Li et al. 2025b, 2026b) but suffer from hallucination and high costs; and synthetic environments, which auto-generate executable code sandboxes for better scalability (Song et al. 2026; Xu et al. 2026). However, contemporary synthetic methods are strictly limited to application-level, generalist tool-use agents by focusing on isolated, tool-use endpoints. They fail to support system-level Claw-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 summarizes the comparison results.
Specifically, EnvCraft operates 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. Using EnvCraft, 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, -bench), confirming that the learned policies generalize beyond the training distribution rather than merely overfitting to synthesized environments.
2.1 Problem Setup: Agentic Interaction
Environment Formulation Formally, we conceptualize an executable agentic environment as a decoupled quadruple that bridges reinforcement learning abstractions with
LLM-based interaction:
where each component is structurally specified as follows:
- Env Documentation (): A natural-language description encapsulating the global system rules, operational constraints, and safety boundaries of the environment.
- Tool Interfaces (): Names, parameters, and descriptions of all tools exposed to the agent, which define the interface for agent–environment interaction.
- Environment States (): The persistent, observable state space, capturing real-world side-effects: , where represents underlying data states (e.g., file metadata or database schemas) and represents temporal execution sessions.
- Sandbox Transition Function (): It executes an agent action within an isolated sandbox, and deterministically yields the next state and observation: .
Data Point Formulation To facilitate optimization via Agentic RL, we formalize each training data point generated within the synthetic environment as a structured tuple:
where represents the user query, and denotes an automated execution verification script, denotes the concrete environment initial state that instantiated the runtime workspace prior to agent execution, programmatically and dynamically audits the environment state transitions (e.g., verifying structural file mutations or executing exact metadata checks). This design ensures the derivation of deterministic, programmatic reward signals.
3 Environmental 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.1 Env 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; Tencent 2026; Sheikh 2026) as well as representative prior works (Patil et al. 2025; Chen et al. 2025a; Song et al. 2026). 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 () and declarative tool interface specifications (). Together, these dual specifications establish a holistic contract that precisely dictates what the environment must model and what operational interfaces it should expose.
| Environment | # Envs | # Tasks | Claw Support | Env Domain | Stateful | Reward |
|---|---|---|---|---|---|---|
| AutoForge(Cai et al. 2025) | 10 | 1,078 | ✗ | Consumer Web | DB Schema | LLM Judge |
| EnvScaler(Song et al. 2026) | 191 | 9,000 | ✗ | General | Class Attr. | Rule Check |
| ScaleEnv (Tu et al. 2026) | 16 | 2,560 | ✗ | General | DB Schema | Rule Check |
| AWM(Wang et al. 2026) | 1,000 | 10,000 | ✗ | General | DB Schema | Code & LLM |
| EnvFactory(Xu et al. 2026) | 85 | 2,575 | ✗ | General | DB Schema | Code Check |
| EnvCraft (Ours) | 139 | 19,777 | ✓ | General | Workspace | Code Check |
Table 1: Comparison of synthetic executable environments for Agentic RL. Unlike existing works limited to generalist tool endpoints, EnvCraft provides stateful, workspace-level infrastructure for training Claw-like agents with the largest task scale.

(a) Claw-Specific Scenarios
(b) General Tool-Use Scenarios
Figure 2: Distribution of synthesized environments across coarse-grained scenario categories.
3.2 Environment 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 in OPENCLAW scenarios, we distill software interaction archetypes into nine foundational prototypes. 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 (). 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:
-
Interaction Archetype Specifications (): Provide concrete design prototypes, reference implementations.
-
Environment Specification (): Defines domain entity types, state attributes, and business rules governing valid state transitions.
-
Tool Specification (): 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 , , and . 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. 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-tailored Agent Skills (reusable workflow guidance in markdown).
3.3 Environment 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 and execute predefined test cases. This process tests the operational

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).
validity of all exposed tools , validating state transition logic () 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, quality auditing reduced the 324 raw environments to 139 (42.9% pass rate), comprising 70 general-tool environments and 69 Claw-specific environments.
4 Data 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.1 Sampling 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-environment tool dependency graph for 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-environment env 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 into read tools (non-state-mutating) and write 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 Types | Passed | Raw | Pass Rate |
|---|---|---|---|
| Environment | |||
| General Tool Env | 70 | 203 | 34.48% |
| Claw Env | 69 | 121 | 57.02% |
| # Total | 139 | 324 | 42.90% |
| Data Entry | |||
| General Tool Data | 14,215 | 21,975 | 64.69% |
| Claw-special Data | 5,562 | 13,489 | 41.23% |
| # Total | 19,777 | 35464 | 55.77% |
Table 2: Statistics of Environment and Data from EnvCraft, along with pass rate in quality auditing.
4.2 Task 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 either user-specified (grounded literals provided by the user, e.g., order IDs or file paths) or tool-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) 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.3 Data 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).
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.
5 Experiments
5.1 Setup
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). 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), Claude Opus 4.6 (Anthropic 2026), Kimi K2.5 (Moonshot AI 2026), and MiniMax M2.7 (MiniMax 2026). Additionally, we include recent RL data for general tool-use environment synthesis (see Table 1): EnvScaler (Song et al. 2026), ScaleEnv (Tu et al. 2026), AWM (Wang et al. 2026), and EnvFactory (Xu et al. 2026). To ensure a fair comparison, we evaluated models trained using these data in consistent experimental settings.
Evaluation. We evaluate on two categories of benchmarks. (1) two Claw-style agent benchmarks: PinchBench (Kilo AI Team 2026) and ClawEval (Ye et al. 2026), 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) and -bench (Yao et al. 2024), which evaluate core tool-use abilities essential for
| Model | PinchBench | ClawEval | ||
|---|---|---|---|---|
| Score | Token | Score | Token | |
| Advanced Models | ||||
| Claude Opus 4.6 | 69.90 | 12.30 | 80.60 | 20.40 |
| Kimi-2.5 | 54.60 | 14.00 | 66.60 | 17.80 |
| GPT 5.4 | 75.70 | 11.50 | 78.30 | 15.30 |
| MiniMax-m2.7 | 65.40 | 11.60 | 71.80 | 17.80 |
| Main Results | ||||
| Qwen3-8B | 12.94±0.3 | 13.69 | 44.06±0.2 | 15.49 |
| + EnvCraft-Tool | 14.51±0.1 | 17.34 | 45.80±0.1 | 17.59 |
| + EnvCraft-Tool-Claw | 24.19±0.2 | 11.26 | 55.63±0.3 | 13.25 |
| + EnvCraft-Claw | 24.85±0.1 | 8.84 | 55.42±0.2 | 12.44 |
| Qwen3-32B | 22.92±0.4 | 17.34 | 60.35±0.3 | 23.16 |
| + EnvCraft-Claw | 29.51±0.3 | 14.60 | 62.78±0.2 | 20.33 |
| Qwen3.5-9B | 47.34±0.1 | 11.50 | 72.22±0.1 | 19.49 |
| + EnvCraft-Claw | 52.19±0.3 | 10.58 | 76.30±0.1 | 14.32 |
Table 3: Main results. Score denotes the average task score (%), and Token denotes the average token usage per trajectory (K). ± denotes the standard deviation over three runs. Bold values indicate the best score within each backbone group.
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.
5.2 Main Results
Main Results on Claw-style Benchmarks. Table 3 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 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:
(1) Reward Score on Train datasets

(2) Test Score on Pinchbench
(a) EnvCraft-Claw on Qwen3-8B
(1) Reward Score on Train datasets

(2) Test Score on Pinchbench
(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.
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.
Results on Tool-Use Benchmarks. Table 4 presents results on BFCL-v3 and -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 -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 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 20 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 (Ta-
| Model | BFCL-v3 Multi-Turn | -bench | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Base | Miss-Func | Miss-Param | Long-Context | Overall | Retail | Airline | Telecom | Overall | |
| Advanced Models | |||||||||
| Gemini-3-Pro-Pre. | 64.50 | 60.00 | 54.50 | 64.00 | 60.75 | 75.90 | 80.50 | 91.00 | 82.47 |
| Claude Sonnet 4.5 | 69.00 | 65.00 | 52.50 | 59.00 | 61.37 | 72.40 | 72.00 | 84.90 | 76.43 |
| Qwen3-235B | 60.00 | 35.00 | 34.00 | 54.00 | 45.75 | 71.90 | 58.60 | 47.30 | 59.27 |
| Kimi-K2-Instruct | 57.50 | 35.00 | 42.00 | 49.00 | 45.88 | 70.60 | 56.50 | 65.80 | 64.30 |
| Main Results | |||||||||
| Qwen3-8B | 50.00±0.5 | 44.50±0.0 | 34.00±0.5 | 28.50±0.0 | 39.25±0.5 | 33.33±0.1 | 26.00±0.0 | 21.93±0.1 | 27.09±0.1 |
| ScaleEnv-8B | - | - | - | - | - | 50.90 | 37.50 | 27.20 | 38.53 |
| EnvScaler | 55.50 | 36.00 | 35.00 | 41.00 | 41.88 | 53.62 | 36.00 | - | - |
| EnvFactory | - | - | - | - | 49.00 | 43.86 | 44.00 | 13.16 | 33.67 |
| AWM | - | - | - | - | - | 41.23 | 38.50 | 23.47 | 34.40 |
| EnvCraft-Tool | 58.50±1.0 | 50.50±0.5 | 39.50±0.0 | 36.50±0.0 | 46.25±1.0 | 36.84±0.2 | 28.00±0.0 | 24.56±0.1 | 29.80±0.2 |
| EnvCraft-Claw | 55.00±0.5 | 52.00±0.5 | 40.50±0.0 | 36.00±0.0 | 45.88±0.5 | 35.52±0.1 | 26.50±0.5 | 23.68±0.1 | 28.57±0.5 |
| Qwen3-32B | 57.00±0.5 | 50.00±0.0 | 38.00±1.0 | 37.00±0.0 | 45.50±1.0 | 56.14±0.2 | 48.00±0.0 | 26.32±0.2 | 43.49±0.2 |
| ScaleEnv-32B | - | - | - | - | - | 63.60 | 48.00 | 30.90 | 47.50 |
| EnvCraft-Tool | 67.00±0.0 | 53.00±0.5 | 41.50±0.5 | 42.50±0.0 | 51.00±0.5 | 56.63±0.2 | 52.00±0.5 | 28.07±0.2 | 45.57±0.5 |
| Qwen3.5-9B | 52.00±1.0 | 53.50±0.0 | 39.50±0.0 | 34.00±0.5 | 44.75±1.0 | 35.14±0.2 | 32.00±0.0 | 15.79±0.2 | 27.64±0.2 |
| EnvCraft-Tool | 65.50±0.0 | 59.00±0.5 | 45.00±0.0 | 41.50±0.5 | 52.75±0.5 | 40.35±0.2 | 42.00±0.0 | 26.50±0.3 | 36.28±0.3 |
Table 4: Performance comparison of advanced models on multi-turn tool-use benchmarks (BFCL-v3 Multi-Turn and -bench). All scores are reported as percentages. “-” indicates unreported results in the original paper.

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.
ble 4). Qwen3.5-9B improves most monotonically, whereas the two Qwen3 backbones exhibit mild mid-training oscillations but remain above their initial performance.
Inference Token-Cost. Figure 6 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 → 34.0K in aggregate) while simultaneously improving task scores. Specifically, Qwen3-8B drops from 13.69K to 8.84K tokens (-35%), Qwen3-32B from 17.34K to 14.60K (-16%), and Qwen3.5-9B from 11.50K to 10.58K (-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 ver-

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.
bose trial-and-error trajectories.
6 Conclusion
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 ~ 20K training 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. Introducing Claude Opus 4.6. https://www.anthropic.com/news/claude-opus-4-6.
Cai, S.; Fang, R.; Wu, J.; Li, B.; Wang, X.; Jiang, Y.; Su, L.; Zhang, L.; Yin, W.; Zhang, Z.; et al. 2025. AutoForge: Automated Environment Synthesis for Agentic Reinforcement Learning. arXiv preprint arXiv:2512.22857.
Chen, C.; Hao, X.; Liu, W.; Huang, X.; Zeng, X.; Yu, S.; Li, D.; Wang, S.; Gan, W.; Huang, Y.; et al. 2025a. Acebench: Who wins the match point in tool usage? arXiv preprint arXiv:2501.12851.
Chen, Z.; Zhao, Z.; Zhang, K.; Liu, B.; Qi, Q.; Wu, Y.; Kalluri, T.; Cao, S.; Xiong, Y.; Tong, H.; et al. 2025b. Scaling agent learning via experience synthesis. arXiv preprint arXiv:2511.03773.
Fang, R.; Cai, S.; Li, B.; Wu, J.; Li, G.; Yin, W.; Wang, X.; Wang, X.; Su, L.; Zhang, Z.; et al. 2026. Towards general agentic intelligence via environment scaling. In Findings of the Association for Computational Linguistics: ACL 2026, 17610–17621.
Feng, J.; Huang, S.; Qu, X.; Zhang, G.; Qin, Y.; Zhong, B.; Jiang, C.; Chi, J.; and Zhong, W. 2025. Retool: Reinforcement learning for strategic tool use in llms. arXiv preprint arXiv:2504.11536.
Ge, T.; Chan, X.; Wang, X.; Yu, D.; Mi, H.; and Yu, D. 2024. Scaling synthetic data creation with 1,000,000,000 personas. arXiv preprint arXiv:2406.20094.
Guo, D.; Yang, D.; Zhang, H.; Song, J.; Zhang, R.; Xu, R.; Zhu, Q.; Ma, S.; Wang, P.; Bi, X.; et al. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948.
He, J.; Liu, J.; Liu, C. Y.; Yan, R.; Wang, C.; Cheng, P.; Zhang, X.; Zhang, F.; Xu, J.; Shen, W.; Li, S.; Zeng, L.; Wei, T.; Cheng, C.; An, B.; Liu, Y.; and Zhou, Y. 2025. Skywork Open Reasoner 1 Technical Report. arXiv preprint arXiv:2505.22312.
Jin, B.; Zeng, H.; Yue, Z.; Yoon, J.; Arik, S.; Wang, D.; Zamani, H.; and Han, J. 2025. Search-r1: Training llms to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516.
Kalai, A. T.; Nachum, O.; Vempala, S. S.; and Zhang, E. 2025. Why language models hallucinate. arXiv preprint arXiv:2509.04664.
Kilo AI Team. 2026. Pinchbench: Benchmarking system for evaluating LLM models as OpenClaw agents. https://github.com/pinchbench/skill. GitHub repository. Accessed: 2026-05-02.
Le, H.; Wang, Y.; Gotmare, A. D.; Savarese, S.; and Hoi, S. C. H. 2022. Coderl: Mastering code generation through pretrained models and deep reinforcement learning. Advances in Neural Information Processing Systems, 35: 21314–21328.
Li, K.; Zhang, Z.; Yin, H.; Zhang, L.; Ou, L.; Wu, J.; Yin, W.; Li, B.; Tao, Z.; Wang, X.; et al. 2025a. Websailor: Navigating super-human reasoning for web agent. arXiv preprint arXiv:2507.02592.
Li, X.; Jin, J.; Dong, G.; Qian, H.; Wu, Y.; Wen, J.-R.; Zhu, Y.; and Dou, Z. 2026a. Webthinker: Empowering large reasoning models with deep research capability. Advances in Neural Information Processing Systems, 38: 120091–120131.
Li, X.; Zou, H.; and Liu, P. 2025. Torl: Scaling tool-integrated rl. arXiv preprint arXiv:2503.23383.
Li, Y.; Inan, H. A.; Yue, X.; Chen, W.-N.; Wutschitz, L.; Kulkarni, J.; Poovendran, R.; Sim, R.; and Rajmohan, S. 2025b. Simulating environments with reasoning models for agent training. arXiv preprint arXiv:2511.01824.
Li, Y.; Wang, H.; Qiu, J.; Yin, Z.; Zhang, D.; Qian, C.; Li, Z.; Ma, X.; Chen, G.; and Ji, H. 2026b. From word to world: Can large language models be implicit text-based world models? In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 8084–8111.
MiniMax. 2026. MiniMax M2.7: Early Echoes of Self-Evolution. https://www.minimax.io/news/minimax-m27-en.
Moonshot AI. 2026. Kimi K2.5: Visual Agentic Intelligence. https://www.kimi.com/blog/kimi-k2-5.
Nous Research. 2026. Hermes Agent: The agent that grows with you. https://github.com/nousresearch/hermes-agent. GitHub repository. Accessed: 2026-05-02.
OpenAI. 2026. Introducing GPT-5.4. https://openai.com/index/introducing-gpt-5-4/.
OpenClaw Contributors. 2026. OpenClaw: An open-source framework and repository. https://github.com/openclaw/openclaw. Accessed: 2026-06-29.
Patil, S. G.; Mao, H.; Cheng-Jie Ji, C.; Yan, F.; Suresh, V.; Stoica, I.; and E. Gonzalez, J. 2025. The Berkeley Function Calling Leaderboard (BFCL): From Tool Use to Agentic Evaluation of Large Language Models. In Forty-second International Conference on Machine Learning.
Qian, C.; Acikgoz, E. C.; He, Q.; Wang, H.; Chen, X.; Hakkani-Tur, D.; Tur, G.; and Ji, H. 2026. Toolrl: Reward is all tool learning needs. Advances in Neural Information Processing Systems, 38: 105523–105553.
Qiao, S.; Zhao, Y.; Qiu, Z.; Wang, X.; Zhang, J.; Bin, Z.; Zhang, N.; Jiang, Y.; Xie, P.; Huang, F.; et al. 2025. Scaling generalist data-analytic agents. arXiv preprint arXiv:2509.25084.
Qin, Y.; Liang, S.; Ye, Y.; Zhu, K.; Yan, L.; Lu, Y.; Lin, Y.; Cong, X.; Tang, X.; Qian, B.; et al. 2024. Toolllm: Facilitating large language models to master 16000+ real-world apis. In International Conference on Learning Representations, volume 2024, 9695–9717.
QwibitAI. 2026. NanoClaw. https://github.com/qwibitai/nanoclaw.
Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; Bi, X.; Zhang, H.; Zhang, M.; Li, Y.; Wu, Y.; et al. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.
Sheikh, H. 2026. Awesome OpenClaw Usecases. https://github.com/hesamsheikh/awesome-openclaw-usecases. Accessed: 2026-05-03.
Sheng, G.; Zhang, C.; Ye, Z.; Wu, X.; Zhang, W.; Zhang, R.; Peng, Y.; Lin, H.; and Wu, C. 2024. HybridFlow: A Flexible and Efficient RLHF Framework. arXiv preprint arXiv:2409.19256.
Song, X.; Chang, H.; Dong, G.; Zhu, Y.; Wen, J.-R.; and Dou, Z. 2026. Envscaler: Scaling tool-interactive environments for llm agent via programmatic synthesis. In Findings of the Association for Computational Linguistics: ACL 2026, 8326–8357.
Steinberger, P. 2026. OpenClaw: Your own personal AI assistant. https://github.com/openclaw/openclaw. GitHub repository. Accessed: 2026-05-02.
Tencent. 2026. SkillHub: Tencent Cloud Agent Skill Platform. https://skillhub.cloud.tencent.com/. Accessed: 2026-05-03.
Tu, D.; Hao, H.; Yang, H.; Chen, Y.; Zhang, Y.-K.; Xia, Z.; Yang, Y.; Sun, Y.; Liu, X.; Shen, F.; et al. 2026. ScaleEnv: Scaling Environment Synthesis from Scratch for Generalist Interactive Tool-Use Agent Training. arXiv preprint arXiv:2602.06820.
Wang, R.; Todd, G.; Xiao, Z.; Yuan, X.; Côté, M.-A.; Clark, P.; and Jansen, P. 2024. Can language models serve as text-based world simulators? In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), 1–17.
Wang, Z.; Xu, C.; Liu, B.; Wang, Y.; Han, S.; Yao, Z.; Yao, H.; and He, Y. 2026. Agent world model: Infinity synthetic environments for agentic reinforcement learning. arXiv preprint arXiv:2602.10090.
Wu, J.; Li, B.; Fang, R.; Yin, W.; Zhang, L.; Wang, Z.; Tao, Z.; Zhang, D.-C.; Xi, Z.; Tang, R.; et al. 2026. Webdancer: Towards autonomous information seeking agency. Advances in Neural Information Processing Systems, 38: 120957–120985.
Xu, M.; Wang, Z.; Deng, M.; Li, Z.; Yang, Z.; Zhu, X.; Liu, Y.; Zhu, B.; Huang, B.; Chen, C.; et al. 2026. EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RL. arXiv preprint arXiv:2605.18703.
Xu, Z.; Soria, A. M.; Tan, S.; Roy, A.; Agrawal, A. S.; Pooven-dran, R.; and Panda, R. 2025. Toucan: Synthesizing 1.5 m tool-agentic data from real-world mcp environments. arXiv preprint arXiv:2510.01179.
Xue, Z.; Zheng, L.; Liu, Q.; Li, Y.; Zheng, X.; Ma, Z.; and An, B. 2025. Simpletir: End-to-end reinforcement learning for multi-turn tool-integrated reasoning. arXiv preprint arXiv:2509.02479.
Yao, S.; Shinn, N.; Razavi, P.; and Narasimhan, K. 2024. taubench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains. arXiv preprint arXiv:2406.12045.
Ye, B.; Li, R.; Yang, Q.; Liu, Y.; Yao, L.; Lv, H.; Xie, Z.; An, C.; Li, L.; Kong, L.; et al. 2026. Claw-Eval: Toward Trustworthy Evaluation of Autonomous Agents. arXiv preprint arXiv:2604.06132.
Yu, Q.; Zhang, Z.; Zhu, R.; Yuan, Y.; Zuo, X.; Yue, Y.; Dai, W.; Fan, T.; Liu, G.; Liu, L.; et al. 2025. Dapo: An open-source llm reinforcement learning system at scale. arXiv preprint arXiv:2503.14476.
Zeng, Y.; Ding, X.; Hou, Y.; Wang, Y.; Du, L.; Dai, J.; Ding, Q.; Tang, D.; Tu, D.; Liu, W.; et al. 2025. Tool Zero: Training Tool-Augmented LLMs via Pure RL from Scratch. In Findings of the Association for Computational Linguistics: EMNLP 2025, 9135–9147.
Zhang, S.; Dong, Y.; Zhang, J.; Kautz, J.; Catanzaro, B.; Tao, A.; Wu, Q.; Yu, Z.; and Liu, G. 2025. Nemotron-research-tool-n1: Exploring tool-using language models with reinforced reasoning. arXiv preprint arXiv:2505.00024.
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.
A Related 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) and DAPO (Yu et al. 2025) 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), Tool-Zero (Zeng et al. 2025), and ToolIN1 (Zhang et al. 2025) train LLMs to select and invoke tools by directly optimizing task success. Search-oriented agents (Li et al. 2026a; Wu et al. 2026; Li et al. 2025a) interleave reasoning with real-time evidence retrieval to address challenging open-domain questions. In mathematical reasoning, ReTool, ToRL, and SimpleTIR (Feng et al. 2025; Li, Zou, and Liu 2025; Xue et al. 2025) treat interpreters as executable action spaces. Similarly, CodeRL and DataMind (Le et al. 2022; Qiao et al. 2025) 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 environments employ real-world APIs (Qin et al. 2024) and MCP servers (Xu et al. 2025) to provide authentic execution. However, they are expensive to scale and suffer from network latency and irreproducible states, which may destabilize RL training.
Simulated environments leverage LLMs to emulate tool behavior and state dynamics, enabling rapid prototyping (Chen et al. 2025b; Li et al. 2025b, 2026b). However, they are prone to hallucination and introduce additional inference cost and instability, limiting their applicability to large-scale training (Kalai et al. 2025; Wang et al. 2024).
Executable synthetic environments (Wang et al. 2026; Song et al. 2026; Xu et al. 2026; Tu et al. 2026; Fang et al. 2026) reconstruct tools and stateful backends through sandbox code generation, striking a balance among scalability, reproducibility, and execution fidelity.
B Additional Method Details
B.1 Group Relative Policy Optimization
We briefly review GRPO (Shao et al. 2024) in the language-generation setting. Formally, for each input instruction x, the policy samples a group of G candidate responses . The optimization objective is defined as:
Here, denotes the -th sampled agent trajectory, and is the outcome reward returned by the deterministic task verifier. Because the reward is assigned at the trajectory level, we use for all tokens in trajectory .
B.2 Environment 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 and 6 provide the complete taxonomy and scenario descriptions.
B.3 Interaction 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.
-
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 → in-progress → resolved → closed) 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-level DEFAULT_STATE dict holds the entity list, identity counter, current-user variable, and log; lifecycle methods validate authentication and schema constraints before mutating; a _load_scenario entry point deep-copies defaults and applies overrides for harness snapshot-consistency.
-
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
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 1 | Messaging & Communication | 5 | APIs for instant messaging, mobile messaging, email, SMS, and other communication services, supporting session management, message sending and receiving, and user-status tracking. |
| 2 | Document & Note Management | 3 | APIs for document-management and personal note-taking systems, supporting document creation and editing, version control, note organization, and information retrieval. |
| 3 | Development Tools | 1 | Jupyter Notebook server APIs supporting the creation, execution, editing, and lifecycle management of computational notebooks. |
| 4 | Scheduling & Reminders | 2 | APIs for scheduling and reminder systems, supporting calendar-event management, timed reminders, recurrence configuration, and notification delivery. |
| 5 | Monitoring & Logging | 3 | APIs for network monitoring, model monitoring, and system-log management, supporting device-status detection, log collection, alerting, and performance-metric tracking. |
| 6 | Server & Application Management | 1 | Node.js application-server management APIs supporting application deployment, start and stop operations, process management, and runtime status monitoring. |
| 7 | Data Management | 3 | APIs for database management, data backup and recovery, and file-system operations, supporting persistent storage, data restoration, and structured file manipulation. |
| 8 | Memory & Storage | 2 | Key-value storage and memory-summarization APIs providing persistent information storage, retrieval, summarization, and archival-memory management. |
| 9 | Air Travel | 1 | Airline-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.
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 → process → aggregate → render) 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.
-
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.
-
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.
-
Constraint-Guided State Machine: Represents systems governed by an explicitly declared finite state machine
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 10 | Ground Transport | 2 | Car-rental and ride-hailing platform APIs supporting vehicle leasing, ride requests, driver and vehicle matching, route planning, and fare calculation. |
| 11 | Comprehensive Travel Booking | 1 | Integrated travel-booking APIs combining flight reservations, credit-card management, payment processing, and travel-budget constraints. |
| 12 | Accommodation | 1 | Hotel-booking APIs supporting hotel and room search, availability management, price calculation, booking creation, modification, and cancellation. |
| 13 | Vehicle Management | 3 | APIs for vehicle maintenance, motor-vehicle registration, and vehicle control, covering maintenance scheduling, registration records, and in-vehicle system operations. |
| 14 | Banking & Trading | 3 | APIs for retail banking, stock trading, and quantitative-trading bots, supporting account management, transfers, market-data retrieval, order placement, and automated trading. |
| 15 | Corporate Finance | 1 | Corporate financial-reporting APIs supporting financial-statement generation, multi-source data aggregation, accounting-period management, and compliance reporting. |
| 16 | Insurance | 2 | APIs for insurance-policy management and automobile-insurance claims, supporting policy lifecycle management, claim submission, evidence review, and settlement processing. |
| 17 | Reimbursement | 1 | Reimbursement and expense-claim management APIs supporting application submission, approval workflows, expense verification, and financial write-off processing. |
Table 5: Fine-grained general tool-use scenarios and their corresponding environment descriptions (continued).
—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.
-
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 with datetime parsing only for duration arithmetic.
-
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 → accepted or rejected) with explicit agent-mediated acceptance/rejection on behalf of the counter-
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 18 | Online Shopping & Cart | 2 | APIs for online-shopping and retail platforms, supporting product browsing, cart management, promotional discounts, checkout, and order creation. |
| 19 | Product Catalog Management | 1 | E-commerce product-catalog APIs supporting product-information maintenance, category organization, attribute management, pricing, and inventory display. |
| 20 | Inventory & Order Management | 2 | APIs for inventory and order management, supporting inventory updates, order-status transitions, fulfillment tracking, and stock reconciliation. |
| 21 | Marketing & Reviews | 2 | APIs for product promotion and review systems, supporting campaign configuration, promotional-rule management, user reviews, ratings, and feedback moderation. |
| 22 | Task & Issue Tracking | 3 | APIs for task tracking, to-do management, and software-testing workflows, supporting assignment, prioritization, status transitions, and defect tracking. |
| 23 | Workflow & Job Scheduling | 2 | APIs for workflow-management and job-scheduling systems, supporting process definition, dependency configuration, job execution, retry handling, and status monitoring. |
| 24 | Content Management | 1 | Web content-management system APIs supporting page creation, editing, version control, approval, publication, and content lifecycle management. |
| 25 | Media Catalog & Playback | 2 | APIs for media-catalog databases and music-playback systems, supporting media indexing, metadata management, streaming playback, and playlist organization. |
Table 5: Fine-grained general tool-use scenarios and their corresponding environment descriptions (continued).
party. 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.
-
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 ↔ busy), and delegates failure response to a policy-strategy pattern; rollback is a reverse-topological walk.
-
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 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 back-pressure 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.
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 26 | Social Media | 1 | Social-media publishing APIs supporting post creation, comment interaction, reposting, content retrieval, and follower-relationship management. |
| 27 | HR & Employee Management | 1 | Human-resources information-system APIs supporting employee-profile management, organizational structures, employment records, and payroll information maintenance. |
| 28 | Account & Membership | 2 | APIs for membership management and user registration, supporting account creation, authentication, membership-tier management, and access-control configuration. |
| 29 | Benefits & Wellness | 1 | Fitness-class booking APIs supporting class scheduling, member registration, coach assignment, capacity management, and booking cancellation. |
| 30 | Communication & Services | 2 | APIs for telecommunications and food-delivery services, supporting mobile-plan management, data-usage control, restaurant ordering, and delivery-status tracking. |
| 31 | Search & Information | 1 | Web-search APIs supporting keyword queries, result retrieval, result organization, search-history management, and bookmark collection. |
| 32 | Computation & Math | 1 | Mathematical-computation APIs supporting logarithmic, trigonometric, statistical, and numerical functions, together with configurable precision control. |
| 33 | Online Learning Platforms | 1 | Online-education platform APIs supporting course management, student enrollment, progress tracking, assignment handling, and Q&A interactions. |
Table 5: Fine-grained general tool-use scenarios and their corresponding environment descriptions (continued).
C System 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.1 Environment 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 under claw_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.
System Prompt for Environment Generation
You 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.
- 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) ->
dict
The returned session state must be compatible with the verifier. The evaluation method must return per-dimension scores and an overall_score.
-
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.
-
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 = [].
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 34 | Academic Administration | 3 | APIs for student-information and university course-selection systems, supporting student-profile management, course registration, enrollment constraints, and grade-record maintenance. |
| 35 | Knowledge Resources | 1 | Library-management APIs supporting catalog search, book borrowing, reservations, renewals, return processing, and overdue-fine calculation. |
| 36 | CRM & Customer Management | 1 | Customer-relationship management APIs supporting customer profiles, sales-opportunity tracking, interaction histories, and communication record maintenance. |
| 37 | Reservation & Booking | 1 | Restaurant-reservation APIs supporting restaurant and table information management, availability queries, booking creation, and dining-schedule modification. |
| 38 | Support Ticketing | 1 | Customer-support ticketing APIs supporting ticket creation, assignment, status updates, priority management, escalation, and service-queue management. |
| 39 | Health Records | 1 | Personal-health-record APIs supporting health-metric recording, vital-sign tracking, historical-data retrieval, and medical-record management. |
| 40 | Nutrition & Fitness | 1 | Nutrition-tracking and fitness-management APIs supporting dietary records, nutritional analysis, exercise logging, and workout-plan management. |
| 41 | Sensor & Device Management | 1 | IoT sensor-data platform APIs supporting device registration, sensor-data collection, device-status monitoring, and time-series data management. |
Table 5: Fine-grained general tool-use scenarios and their corresponding environment descriptions (continued).
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) -> None
Session 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) -> None
The 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.
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 1 | Collaborative Office & Email Automation | 3 | Collaborative-office and email-automation environments supporting workflow orchestration for email-content extraction, automated social-media publishing, and event-driven email rules. |
| 2 | E-commerce & Logistics Management | 5 | E-commerce logistics environments supporting shipment tracking, return and exchange processing, inventory reconciliation, multi-stage logistics orchestration, and state-machine-based order management. |
| 3 | Spreadsheet Data Cleaning & Statistical Analysis | 1 | Spreadsheet-analysis environments supporting data cleaning, formula calculation, chart generation, pivot-table construction, and statistical analysis across workspace files. |
| 4 | Email Client Intelligent Management | 1 | Intelligent email-client environments supporting email sending and receiving, message organization, reply suggestion, and automatic extraction of actionable to-do items. |
| 5 | Sensitive Information Encryption & Management | 1 | Secure information-storage environments supporting encrypted password storage, credential retrieval, automatic form filling, and strong password generation. |
| 6 | Cross-Modal Content Transcription & Summarization | 2 | Cross-modal content-processing environments supporting audio- and video-to-text transcription, discussion consolidation, and multi-turn conversational summarization. |
| 7 | Personal Assistant Configuration | 2 | Personal-assistant environments supporting assistant-persona configuration, preference management, schedule coordination, and multi-turn dialogue orchestration. |
| 8 | Contact Information Intelligent Management & Maintenance | 1 | Intelligent contact-management environments supporting contact storage, tag-based classification, relationship maintenance, and context-aware reminders. |
| 9 | Travel Compliance & Booking Closure | 5 | Travel-compliance environments supporting policy verification, multi-platform price comparison, approval workflows, booking completion, and compliance-oriented state transitions. |
Table 6: Fine-grained Claw-specific scenarios and their corresponding environment descriptions.
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.2 Environment 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.
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" } 19 }, 20 "scenarios": [ 21 { 22 "scenario_id": "string", 23 "task_prompt": "string", 24 "base_time": "ISO-8601 string", 25 "gold_facts": ["string"], 26 "stale_facts": ["string"], 27 "required_attachments": ["string"], 28 "required_replies": ["string"], 29 "allowedClaims": ["string"], 30 "forbiddenClaims": ["string"], 31 "scoring_rules": { 32 "<dimension_name": { 33 "weight": "float", 34 "rule": "string" } 36 } 37 } 38 }, 39 "attachments": { 40 "<attachment_id": { 41 "filename": "string",
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 10 | Itinerary Disruption Dynamic Optimization | 4 | Dynamic itinerary-optimization environments supporting delay monitoring, automatic rebooking, linked hotel and airport-transfer adjustments, and traveler notification. |
| 11 | Travel Budget Auto-Accounting & Control | 1 | Automated travel-budget environments supporting expense categorization, budget allocation, threshold alerts, and spending-trend analysis. |
| 12 | Automated Reimbursement Reconciliation | 5 | Automated reimbursement environments supporting receipt recognition, bank-statement matching, expense-report completion, approval processing, and multidimensional reconciliation. |
| 13 | Travel Itinerary Offline Planning | 1 | Offline travel-planning environments supporting destination organization, itinerary construction, local information management, and multi-objective route optimization. |
| 14 | Multi-Dimensional Environmental Adaptive Regulation | 3 | Adaptive environmental-control environments supporting smart-device management, HVAC regulation, air-quality adjustment, and energy-consumption optimization. |
| 15 | Home/Office Security Patrol | 4 | Security-patrol environments supporting intrusion detection, scheduled inspection, alarm triggering, coordinated incident response, and evidence collection. |
| 16 | Environmental Data Real-Time Monitoring & Statistics | 1 | Real-time environmental-monitoring environments supporting sensor-data collection, threshold alerts, temporal trend analysis, and statistical report generation. |
| 17 | Smart Device Scheduled Task Management | 1 | Smart-device scheduling environments supporting access control, area monitoring, scheduled patrol tasks, rule execution, and emergency notification. |
| 18 | Investment Research Cross-Validation | 4 | Investment-research environments supporting financial-data comparison, stock-price verification, research-report generation, and real-time market-stream processing. |
Table 6: Fine-grained Claw-specific scenarios and their corresponding environment descriptions (continued).
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
"content": "string" } }, "domain_artifacts": { "<domain>": [ { "id": "string", "fields": {} } ], "constraints": { "max_turns": "optional integer", "required_reading_order": ["string"], "forbidden_action_sequences": [ ["string"] }] }
The gold_facts field defines information that must be used in a successful trajectory, whereas stale_facts contains outdated or distracting information that must be rejected. Similarly, allowed_claims and forbidden_claims provide deterministic constraints for the evaluator. The scoring_rules field 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
{ "environment_name": "string", "documentation": "README.md content", "skill_md": "SKILL.md content", "files": [ { "path": "relative package path", "content": "complete file content", "role": "environment_class | domain_module | cli | evaluator | repository | store | concurrency_test | doc | data_scenario | data_accounts | data_contacts | data_attachment | data_artifact" }, "session_schema": { "session_id": "string", "scenario_id": "string", "created_at": "ISO-8601 string", "meta": { "base_time": "string", "action_index": 0 }, "workspace_account": {} }<domain>": {} "actions": [ {
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 19 | Industry Sentiment & Growth Analysis | 1 | Industry-analysis environments supporting competitor monitoring, strategy tracking, market-report generation, growth analysis, and user-feedback aggregation. |
| 20 | System Patch Injection Defense | 1 | System-security environments supporting sensitive-key isolation, prompt-injection detection, suspicious patch inspection, and security-audit alerting. |
| 21 | Identity Forgery & Audit Fraud | 1 | Identity-verification and audit-defense environments supporting auditor-identity validation, anomalous-behavior detection, forgery-risk assessment, and early warning. |
| 22 | Bulk Unauthorized Data Export Interception | 1 | Data-loss-prevention environments supporting sensitive-data identification, export-approval workflows, permission verification, and unauthorized-transfer blocking. |
| 23 | Internal Core Document Leak Interception | 1 | Document-security environments supporting confidentiality classification, outbound-transfer detection, access-policy validation, and real-time leak prevention. |
| 24 | End-to-End Interview Process Hosting | 1 | Recruitment-workflow environments supporting resume screening, interview scheduling, candidate communication, evaluator coordination, and end-to-end status tracking. |
| 25 | Employee Onboarding Automated Pipeline | 1 | Employee-onboarding environments supporting account creation, asset allocation, permission configuration, document processing, and automatic training-task triggering. |
| 26 | Employee Performance Auto-Assessment Archiving | 1 | Performance-management environments supporting multi-source employee data aggregation, score calculation, report generation, and persistent assessment archiving. |
Table 6: Fine-grained Claw-specific scenarios and their corresponding environment descriptions (continued).
{
"action_index": 0,
"timestamp": "string",
"action_type": "string",
"details": {}
}
],
"cli_commands": {
"hidden": [
{
"name": "string",
"description": "string",
"bindings_output": ["string"]
}
],
"agent-visible": [
{
"name": "string",
"description": "string",
"output_format": {
"status": "string",
"data": {}
}
}
]
},
"evaluator": {
"dimensions": [
{
"name": "string",
"weight": "float",
"description": "string"
}
],
}
}
{
"aggregation": "weighted_sum",
"deterministic": true
},
"concurrency_test": {
"scenarios": ["string"],
"assertions": ["string"]
}
The explicit role attached to every generated file enables automatic completeness checking. An environment is rejected if any required artifact, interface, or test category is absent.
C.3 Unified 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.
{
"name": "string",
"description": "string",
"parameters": {
"type": "object",
"properties": {
"<param_name>": {
"type": "string | integer | number | boolean | array | object",
"description": "string",
}
}
}
}
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 27 | Employee Offboarding Automated Process | 1 | Employee-offboarding environments supporting permission revocation, asset-return confirmation, workspace-data backup, account deactivation, and completion tracking. |
| 28 | Automated Domain Technical Survey | 1 | Automated technical-survey environments supporting paper retrieval, source organization, domain-trend analysis, evidence synthesis, and survey-report generation. |
| 29 | Literature Citation Relationship Archiving | 1 | Literature-management environments supporting citation-graph construction, citation-impact analysis, related-work discovery, and persistent relationship archiving. |
| 30 | Multi-Group Experiment Metrics Auto-Comparison | 1 | Experiment-analysis environments supporting experimental-configuration recording, metric aggregation, group comparison, statistical difference analysis, and result archiving. |
| 31 | Open-Source Reproduction Record Archiving | 1 | Reproduction-management environments supporting procedural record keeping, dependency and environment configuration, result validation, and reproducibility archiving. |
| 32 | Music & Audio Playback | 1 | In-vehicle audio environments supporting music search, playback control, queue manipulation, playlist management, and media-status retrieval. |
| 33 | Vehicle Control & Status Management | 1 | Vehicle-control environments supporting air-conditioning, seat, window, lighting, driving-mode, and multimedia operations together with vehicle-status inspection. |
| 34 | Navigation & Trip Planning | 1 | In-vehicle navigation environments supporting destination search, route planning, real-time traffic retrieval, charging-station selection, and trip adjustment. |
Table 6: Fine-grained Claw-specific scenarios and their corresponding environment descriptions (continued).
"default": "optional value"
}
},
"required": ["string"]
},
"returns": {
"type": "object",
"description": "string",
"success_keys": ["string"],
"error_format": {
"error": "human-readable, agent-safe message"
}
},
"side_effect": "read | write",
"modifies_state": "boolean",
"state_fields_affected": ["string"]
}
A parameter without a default field is treated as required when it is listed in parameters.required. The side_effect, modifies_state, and state_fields_affected fields provide an explicit operational description beyond the natural-language tool documentation.
C.4 Execution and Safety Constraints
The generated package must satisfy the following executable constraints.
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 8.
C.5 Task 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:
- a task configuration file;
- a natural user request;
- an initial-workspace construction script; and
- 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 Generation
You 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:
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
|---|---|---|---|
| 35 | Infrastructure Automated Operations | 1 | Infrastructure-operations environments supporting server-fault detection, diagnostic inspection, automatic recovery, service verification, and operations-record maintenance. |
| 36 | Cloud Resource Cost Auto-Audit | 1 | Cloud-cost auditing environments supporting multi-project cost aggregation, abnormal-spending detection, budget alerts, and cost-optimization recommendations. |
| 37 | Online Fault Root-Cause Postmortem Archiving | 1 | Incident-management environments supporting fault-timeline construction, root-cause analysis, corrective-action tracking, and postmortem knowledge-base archiving. |
| 38 | Brand & Product Research | 1 | Brand- and product-research environments supporting SKU-information retrieval, competitor-feature comparison, evidence aggregation, and market-positioning analysis. |
| 39 | Multimedia Clue Tracking | 1 | Multimedia-investigation environments supporting cross-document clue association, evidence-chain construction, provenance tracking, and information tracing. |
| 40 | Churn Warning & Proactive Retention | 1 | Customer-retention environments supporting churn-risk assessment, retention-strategy generation, customer segmentation, and automated customer communication. |
| 41 | Customer Tier Label Auto-Classification | 1 | Customer-classification environments supporting behavior analysis, tier-rule configuration, eligibility evaluation, and automatic customer-label updates. |
| 42 | Scheduled Business Report Auto-Generation | 1 | Scheduled reporting environments supporting Markdown-template completion, multi-source data aggregation, visualization generation, and scheduled report publication. |
Table 6: Fine-grained Claw-specific scenarios and their corresponding environment descriptions (continued).
tasks/<task_id>.yaml tasks/prompts/<task_id>.md tasks/<task_id>/env_builder.py scripts/<task_id>/verify_workplace.py
All 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,
| # | Constraint | Applicable Components | Components |
|---|---|---|---|
| 1 | All public functions return dictionaries and map failures to structured error responses rather than propagating exceptions. | Environment, tools, CLI, storage, evaluator | |
| 2 | No mutable module-level global state is permitted; all mutable data must reside in the session or environment state. | All modules | |
| 3 | The data/ directory is immutable during rollout and can be read only through the repository layer. | Repository and domain modules | |
| 4 | Session updates use an atomic temporary write followed by os.replace. | Storage layer | |
| 5 | File locking uses platform-supported locking with a bounded timeout and an agent-safe error response. | Storage layer | |
| 6 | Timestamps are computed from base_time and action_index; wall-clock timestamps are forbidden. | Environment and domain modules | |
| 7 | CLI outputs follow a structured success or error schema. | CLI | |
| 8 | Agent-visible commands obtain session bindings only from trainer-injected environment variables and do not expose a -session-id argument. | CLI | |
| 9 | Hidden trainer commands are excluded from agent-facing help messages. | CLI | |
| 10 | Domain modules operate only on the provided session dictionary and do not perform CLI parsing, file access, or lock acquisition. | Domain modules | |
| 11 | The evaluator is a deterministic, side-effect-free function with no randomness or external I/O. | Evaluator | |
| 12 | The environment exposes complete state retrieval and deterministic scenario-loading interfaces for harness snapshot and restoration. | Environment class |
Table 7: Code-level constraints enforced during environment generation.
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.6 Cross-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:
-
Path consistency. Every required output path in the user request must exactly match the path inspected by the verifier.
-
Data consistency. Every expected value checked by the verifier must be derivable from the files generated by the environment builder.
-
Objective consistency. The verifier may assess only outputs and conditions explicitly implied by the user request.
-
Answer uniqueness. The initial workspace must admit one objectively correct result, despite containing distractors and noisy records.
-
Information separation. Hidden answers, scoring criteria, and verification logic must remain absent from the user-facing prompt.
-
Code-only evaluation. The final reward is computed by deterministic programmatic checks rather than by an LLM-based judge.
| Category | Example | Required Behavior |
|---|---|---|
| Missing binding | Session environment variable is absent | Return an error indicating that the trainer must initialize the rollout. |
| Session not found | The requested session does not exist | Return an agent-safe message stating that the session may have expired or been reset. |
| Lock timeout | Another worker holds the session lock | Request a retry without exposing the lock path. |
| Permission failure | The current account cannot modify an entity | Identify the affected entity and state that write permission is absent. |
| Invalid transition | An entity is already in the requested terminal state | Report the current state and explain why the transition is invalid. |
| Missing field | A required command argument is absent | Name the missing field and describe the corresponding requirement. |
| Invalid reference | A thread, document, or entity identifier does not exist | Identify the invalid reference and request correction. |
| Stale information | The agent relies on an outdated artifact | Allow the tool to emit a warning and let the deterministic evaluator apply the corresponding penalty. |
| Infrastructure failure | The state root cannot be accessed | Return a generic system error while retaining full diagnostic information only in server-side logs. |
Table 8: Structured error categories used in generated environments.
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.
D Experimental Results
D.1 Training Hyperparameters
We train all models using Group Relative Policy Optimization (GRPO) implemented with the VERL framework (Sheng et al. 2024). Unless otherwise specified, all experiments use the same optimization, rollout, and evaluation configurations. The detailed hyperparameters are summarized in Table 9.
D.2 Training 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 for 115 steps using 8k EnvCraft-Tool samples. The resulting checkpoint is then used to initialize the second stage, which is trained for 30 steps using 2k EnvCraft-Claw samples. The learning rate is in the first stage and in the second stage. All other hyperparameters are shared across the two stages.
D.3 Reward 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 of 1.0, whereas an unsuccessful trajectory receives a reward of 0.0. For EnvCraft-Claw, the verifier assigns a normalized reward in the range [0, 1] according to the degree of task completion, where 1.0 indicates full completion and 0.0 indicates 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 of 0.0.
D.4 Evaluation Configuration
For evaluation, all models are decoded using a temperature of 1.0, top- of 0.6, and a maximum generation length of 32768 tokens. Each task permits at most 32 agent turns and has an execution timeout of 300 seconds. We use 8 independent runs per model and report the mean score. The reported error terms denote standard deviation across evaluation runs.
For PinchBench and Claw-Eval, task success is determined using the official evaluation protocol. For BFCL-v3 and -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.
| Hyperparameter | Value |
|---|---|
| Optimization | |
| Optimizer | AdamW |
| Learning rate | |
| Learning-rate scheduler | Constant |
| Warmup ratio | 0.0 |
| Weight decay | 0.01 |
| Gradient clipping | 1.0 |
| Training epochs | 1 |
| Global batch size | 64 |
| GRPO | |
| Group size G | 8 |
| Clipping coefficient | 0.2 |
| KL coefficient | 0.02 |
| Advantage normalization | Group-wise normalization |
| Entropy coefficient | 0.0 |
| Rollout | |
| Rollout batch size | 64 |
| Rollouts per prompt | 8 |
| Temperature | 1.0 |
| Top-p | 1.0 |
| Maximum prompt length | 4,096 |
| Maximum generation length | 32,768 |
| Maximum action turns | 32 |
| Infrastructure | |
| Number of GPUs | 64 NPUs (8 nodes 8 NPUs) |
| GPU type | Huawei Ascend 910B NPU |
| Tensor parallel size | 4 |
| Data parallel size | 8 rollout replicas |
| Gradient checkpointing | Enabled |
Table 9: Common hyperparameters used for EnvCraft reinforcement learning. Model-specific differences are described in the main text.
D.5 Training 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, 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.
Effect of Training Data Composition. We investigate how different data compositions affect claw-task performance on Qwen3-8B (Fig. 8). 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.
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 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.
D.6 Data 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 use DeepSeek-V4-Pro as 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 10 presents the complete scoring rubric.
Let , , denote the scores for task solvability, validation integrity, and data consistency, respectively. A candidate is retained only if
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

(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.

(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.
Table 10 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-based analysis of task
solvability.",
5 "dimension_2_analysis":
6 "Evidence-based analysis of
validation integrity.",
7 "dimension_3_analysis":
8 "Evidence-based analysis of data
consistency."
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 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, 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.
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 of 0.7 and a top- value of 0.95 for all rollouts.
Let denote the outcome of the -th rollout. A rollout is considered successful () 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 () 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
We retain only tasks satisfying

(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.

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.
corresponding to tasks solved in one to seven of the eight rollouts. Tasks with are removed because they provide limited learning signals, whereas tasks with are 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.7 Ablation 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, 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.
E Qualitative 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 computa-
| Dimension | Score 3 | Score 2 | Score 1 | Score 0 |
|---|---|---|---|---|
| Task Solvability & Logic | The 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 Integrity | The 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 Cleanliness | Entity 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 10: 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.

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.
tion, 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 Aggregation
User Request. Linda, an HR specialist, asks the agent to prepare a monthly performance report. The workspace contains an employee roster under data/employees/, monthly output records under data/ledgers/, and role-specific scoring rules under data/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 to performance/scores_202501.json.
Step 1: Inspect the workspace
Agent 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, and rules. The performance directory is currently empty.
Step 2: Load the relevant records
Agent 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 use employee_id as the employee-level join key and role_code as 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 records
Agent rationale. Cross-reference the three sources and retain only records satisfying all eligibility conditions.
- emp001, emp002, and emp003 are valid across all three sources.
- emp004 is excluded because the HR role has no scoring rule.
- emp005 is excluded because no monthly output record is available.
- emp999 is excluded because it does not appear in the employee roster.
For each eligible employee, the agent computes
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 report
Agent 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:
| Employee | Role | Weighted Score |
|---|---|---|
| Alice (emp001) | SE | 92.0 |
| Bob (emp002) | SE | 84.5 |
| Charlie (emp003) | QA | 80.0 |
The results are written to performance/scores_202501.json.
Step 5: Verify the workspace mutation
Agent 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 two SE employees and one QA employee. The scores and ordering match the role-specific weighted calculations.
Final Response. The performance report has been generated successfully and saved to performance/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, and emp999 because the identifier is absent from the employee roster.
Figure 12: Representative EnvCraft-Claw trajectory continued.