AI news and explainers at 7 AM weekdays, plus a Sunday weekly at 8Get it in your inbox

METAL LAB

AgentMercury: Your Agent Can Synthesize Verifiable Environments for Business Scenarios at scale

arXiv:2608.206342026-08-24

An AI system builds whole business worlds instead of single tasks, so training grounds can scale on their own

AgentMercury builds a persistent, executable 'world'—complete with services, state, and cross-service rules—straight from a high-level business scenario, rather than hand-crafting an environment for one specific task, and lets diverse tasks emerge from that world afterward. Reinforcement learning on 4,783 such synthesized environments improved performance not only on enterprise workflows but also on unrelated benchmarks like reasoning and coding, even though those benchmarks were never targeted during environment construction. The paper also shows that the world-building process itself can be turned into a learnable skill.

METAL LAB explanatory visual

From Business Scenario to Training Signal: How AgentMercury Works

Evidence statusMeasured results reported

  1. Business scenario σA high-level description of an industry and country context fed as input
  2. Planet: world constructionBuilds an executable world w with a service graph, state schema, seeded initial state, and cross-service invariants
  3. Task instantiationDifferent task-specific state seedings and rubrics generate diverse tasks u from the same world
  4. Policy-environment interactionThe policy calls tools, transitions the state, and receives observations in a repeated loop
  5. Deterministic grading and RLSQL-based checks against task rubrics and world invariants compute rewards used to update the policy via GRPO/SAO
An explanatory diagram made by METAL LAB, not a figure supplied by the paper's authors.

What they did

  1. The paper addresses the problem that existing agent training environments are usually built around specific predefined tasks or benchmarks, making it hard to scale environments that reflect realistic, evolving business workflows.
  2. AgentMercury introduces a 'Planet' role that first turns a business scenario σ into a fully executable world w—complete with company identity, service graph, state schema, seeded initial state, and world-level invariants—before any particular task is defined; tasks are then instantiated afterward from that same world.
  3. The framework produced 4,783 executable environments spanning 14 industries and 50 countries, used as training substrates to reinforcement-learn a Qwen3.5-4B policy with GRPO, drawing on a corpus of 43,300 synthesized tasks.
  4. The team also fine-tuned Qwen3.5-35B-A3B on 29,823 construction-trace samples (records of how worlds were built) so the model could learn to author new executable worlds from unseen business briefs.
  5. Success in the authoring experiments was judged strictly: a generated world counted as successful only if it passed all 12 structural validators (the 'oracle').
Figure 1: AgentMercury synthesizes diverse, scalable, and verifiable business environments at scale. (a) The synthesized environment spans 14 industries and 50 countries, covering 4,783 environments with anonymized to prevent hallucination. (b) Comparison of environment scale and multi-service depth with existing agent environments (Trivedi et al., 2024; Wu et al., 2026; Shi et al., 2026; Dong et al., 2026); AgentMercury occupies the regime that is both large-scale and multi-service. (c) Each environment contains rich, stateful structure, including multiple services, tools, state tables, and deterministic SQL-based verifiers that enforce cross-service constraints.
Figure 1: AgentMercury synthesizes diverse, scalable, and verifiable business environments at scale. (a) The synthesized environment spans 14 industries and 50 countries, covering 4,783 environments with anonymized to prevent hallucination. (b) Comparison of environment scale and multi-service depth with existing agent environments (Trivedi et al., 2024; Wu et al., 2026; Shi et al., 2026; Dong et al., 2026); AgentMercury occupies the regime that is both large-scale and multi-service. (c) Each environment contains rich, stateful structure, including multiple services, tools, state tables, and deterministic SQL-based verifiers that enforce cross-service constraints.
Table 1: Result on EnterpriseOps-Gym (Malay et al., 2026). We evaluate whether training on environments and tasks synthesized by AgentMercury improves agent performance across model scales and policy optimization methods. Results are reported for both Qwen3.5-4B and Qwen3.5-35B-A3B models, with GRPO (Shao et al., 2024) and SAO (Hou et al., 2026) considered as alternative RL algorithms. † signifies that the result are derived from EnterpriseOps-Gym.
ModelTeamsCSMEmailITSMCalendarHRDriveHybridAvg.
GPT-5 †26.336.449.018.941.317.934.023.530.9
Gemini-2.5-Pro †39.311.631.113.912.54.927.019.619.9
Kimi-K2-Thinking †30.07.151.012.215.48.239.615.722.4
Qwen3-4B (Think) †24.03.838.45.65.87.121.915.815.3
Qwen3-30B (Think) †22.05.451.96.718.37.625.715.719.1
Qwen3-235B (Think) †28.04.738.19.315.77.823.817.718.1
Qwen3.5-4B20.8±2.59.2±2.323.9±3.06.8±1.010.4±2.59.5±2.86.2±1.611.7±1.712.3±0.2
Qwen3.5-4B + GRPO + Ours23.0±1.65.6±1.533.3±0.97.4±1.113.1±1.610.8±4.315.6±3.117.0±1.115.7±0.6
Qwen3.5-35B-A3B33.9±3.87.6±2.553.2±2.314.6±1.018.6±0.911.4±1.535.9±5.423.5±1.724.8±0.6
Qwen3.5-35B-A3B + GRPO + Ours39.8±4.111.1±0.953.8±7.515.6±1.621.9±1.917.7±0.941.2±3.923.7±1.128.1±1.4
Qwen3.5-35B-A3B + SAO + Ours39.1±2.312.5±2.854.8±2.116.5±0.522.6±0.517.7±1.439.1±4.424.1±2.428.3±1.5
Figure 2: From scenario-grounded world construction to agent interaction. (A) Planet transforms a high-level business scenario σ into an executable world w, constructing its company identity, service graph, state schema, seeded initial state s0, and world-level invariants ℛ. A task is then instantiated from the resulting world through task-specific state seeding and a rubric. (B) Within the constructed world, a policy acts from the interaction history, producing actions that deterministically transition the environment from st to st+1, while observations ωt+1 are exposed through the observation interface. The resulting trajectory is evaluated post-episode using the task rubric and, where applicable, the world-level invariants. The formulation thus separates world construction, task instantiation, interaction, and evaluation.
Figure 2: From scenario-grounded world construction to agent interaction. (A) Planet transforms a high-level business scenario σ into an executable world w, constructing its company identity, service graph, state schema, seeded initial state s0, and world-level invariants ℛ. A task is then instantiated from the resulting world through task-specific state seeding and a rubric. (B) Within the constructed world, a policy acts from the interaction history, producing actions that deterministically transition the environment from st to st+1, while observations ωt+1 are exposed through the observation interface. The resulting trajectory is evaluated post-episode using the task rubric and, where applicable, the world-level invariants. The formulation thus separates world construction, task instantiation, interaction, and evaluation.
Table 2: Out-of-domain evaluation across mathematical reasoning, coding, scientific computing, tool use, and agentic benchmarks. We report mean ± standard deviation over three independent evaluation runs (N=3). Qwen3.5-4B and Qwen3.5-35B-A3B are evaluated before and after RL training on tasks synthesized by AgentMercury.
ModelAIME26HMMTLCBSciCodeTau3- AirlineTau3-AirlineTau3- RetailTau3-RetailTau3- TelecomTau3-TelecomBFCLGPQA- DiamondGPQA-Diamond
Tau3-
Airline
Tau3-
Retail
Tau3-
Telecom
GPQA-
Diamond
Qwen3.5-4B45.9±1.728.5±1.236.6±2.822.6±0.148.8±2.170.4±1.092.5±1.030.3±1.876.5±0.7
Qwen3.5-4B + GRPO + Ours56.0±1.835.4±1.644.0±1.225.7±0.758.7±0.873.6±1.391.9±1.331.7±1.577.5±0.6
Qwen3.5-35B-A3B91.0±0.377.0±0.974.3±2.229.7±1.539.1±10.652.7±22.149.1±49.831.1±1.382.8 ±3.0
Qwen3.5-35B-A3B + GRPO + Ours91.9±2.180.0±0.779.0±0.529.9±1.752.5±5.257.1±8.368.9±20.542.5±0.385.0±0.5
Qwen3.5-35B-A3B + SAO + Ours92.2±1.983.3±3.178.6±1.028.3±1.950.9±8.155.7±10.265.5±23.842.1±0.184.0±1.0
Figure 3: Out-of-domain benchmark performance across training checkpoints for Qwen3.5-4B + GRPO + Ours. The dashed line denotes the base-model performance, while error bars show the standard deviation over three independent evaluation runs. The gradual improvement across heterogeneous benchmarks indicates that the policy learned from AgentMercury environments acquires transferable capabilities beyond the training environments.
Figure 3: Out-of-domain benchmark performance across training checkpoints for Qwen3.5-4B + GRPO + Ours. The dashed line denotes the base-model performance, while error bars show the standard deviation over three independent evaluation runs. The gradual improvement across heterogeneous benchmarks indicates that the policy learned from AgentMercury environments acquires transferable capabilities beyond the training environments.
Table 3: Authoring executable worlds from high-level business briefs. We report oracle-pass rates over 30 held-out briefs. A world is counted as successful only when it passes all 12 structural validators. Zero-shot provides only the business brief, while Recipe additionally provides an invariant digest and a trimmed construction exemplar.
ModelZero-shotRecipe
Claude Opus 4.883.3%80.0%
GPT-5.466.7%66.7%
DeepSeek-V4-Pro83.3%86.7%
GLM-5.280.0%76.7%
Mean (API models)78.3%77.5%
Qwen3.5-35B-A3B3.3%20.0%
Qwen3.5-35B-A3B + AgentMercury83.3%10.0%
Figure 4: Training dynamics of Qwen3.5-4B + GRPO + Ours. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio over training steps. The increasing reward together with decreasing truncation and near-zero degeneration indicates that policy improvement is not accompanied by substantial response collapse or pathological generation.
Figure 4: Training dynamics of Qwen3.5-4B + GRPO + Ours. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio over training steps. The increasing reward together with decreasing truncation and near-zero degeneration indicates that policy improvement is not accompanied by substantial response collapse or pathological generation.
Table 4: Composition of the synthesized task corpus used for RL. Statistics are computed over all 43,300 tasks.
StatisticValue
Tasks43,300
Executable worlds / companies4,326
Task seeds per world10
Unique industries2,287
Unique tools842
Unique state tables222
Service combinations148
Tools per world10–26 (16.1 avg.)
Services per task1–5 (2.9 avg.)
Assertions per task2–10 (5.4 avg.)
Figure 5: Overview of the synthesized environments, sampled training footprint, and task lifecycle in AgentMercury. (A) The full corpus contains 43,300 investigation tasks instantiated from 4,326 synthetic company environments, spanning 2,287 industries, 842 tools, 222 state tables, and 148 service combinations. (B) Across 200 RL training steps, the agent observes 3,200 tasks (7.4% of the full task corpus) while retaining broad coverage of environments, industries, tools, state tables, and service combinations through shuffled sampling. (C) Each training instance follows a structured lifecycle from a high-level business scenario to executable world construction, task instantiation, multi-step tool interaction, deterministic post-episode verification, and reward-based policy optimization. The resulting framework separates world construction from task sampling, allowing a single synthesized environment to support multiple seeded tasks while providing verifiable learning signals for agent training.
Figure 5: Overview of the synthesized environments, sampled training footprint, and task lifecycle in AgentMercury. (A) The full corpus contains 43,300 investigation tasks instantiated from 4,326 synthetic company environments, spanning 2,287 industries, 842 tools, 222 state tables, and 148 service combinations. (B) Across 200 RL training steps, the agent observes 3,200 tasks (7.4% of the full task corpus) while retaining broad coverage of environments, industries, tools, state tables, and service combinations through shuffled sampling. (C) Each training instance follows a structured lifecycle from a high-level business scenario to executable world construction, task instantiation, multi-step tool interaction, deterministic post-episode verification, and reward-based policy optimization. The resulting framework separates world construction from task sampling, allowing a single synthesized environment to support multiple seeded tasks while providing verifiable learning signals for agent training.
Table 5: Coverage of the tasks that received gradients during the reported RL run relative to the full synthesized corpus. These statistics used only for GRPO algorithm.
StatisticFullTrainedCoverage
Tasks43,3003,2007.4%
Environments4,3262,31353.5%
Industries2,2871,43862.9%
Tools84263875.8%
State tables22213761.7%
Service combinations1489362.8%
Figure 6: Structural analysis of the synthesized task space. (a) A t-SNE projection of task descriptions based on TF-IDF features shows substantial textual clustering, but the clusters do not correspond to meaningful task metadata such as domain, persona, or task shape. (b) In contrast, projecting the same tasks using their exposed tool sets reveals clear domain-specific structure, indicating that the primary source of task variation lies in the executable tool surface rather than in task language. (c) Distribution of nearest-neighbor cosine similarity in the TF-IDF space, showing that although the overall task space is broad, most tasks still have a highly similar counterpart. (d) The number of exposed tools takes only five values, {10,14,18,22,26}, revealing a discrete task-shape lattice induced by the core tool set and the number of additional resources.
Figure 6: Structural analysis of the synthesized task space. (a) A t-SNE projection of task descriptions based on TF-IDF features shows substantial textual clustering, but the clusters do not correspond to meaningful task metadata such as domain, persona, or task shape. (b) In contrast, projecting the same tasks using their exposed tool sets reveals clear domain-specific structure, indicating that the primary source of task variation lies in the executable tool surface rather than in task language. (c) Distribution of nearest-neighbor cosine similarity in the TF-IDF space, showing that although the overall task space is broad, most tasks still have a highly similar counterpart. (d) The number of exposed tools takes only five values, {10,14,18,22,26}, revealing a discrete task-shape lattice induced by the core tool set and the number of additional resources.
Table 6: Model-parallelism and memory configuration used for Qwen3.5-4B policy optimization.
ParameterValue
Tensor parallelism2
Pipeline / context / expert parallelism1 / 1 / 1
Sequence parallelismEnabled
RecomputationFull, uniform, 1 layer
Attention backendFlashAttention
Attention softmax precisionFP32
Dropout0
Max tokens per GPU24,576
Figure 7: Training dynamics of Qwen3.5-35B-A3B with GRPO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. The increasing reward is accompanied by a steady reduction in truncation, while degenerate responses remain negligible.
Figure 7: Training dynamics of Qwen3.5-35B-A3B with GRPO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. The increasing reward is accompanied by a steady reduction in truncation, while degenerate responses remain negligible.
Table 7: Rollout and fully-asynchronous execution configuration.
ParameterValue
Max response length16,384
SGLang context length24,576
Rollout temperature1.0
End-of-turn token<|im_end|>
Partial rolloutEnabled
Reasoning / tool parserQwen3 / Qwen3-Coder
SGLang memory fraction0.8
Max running requests64
Fully asynchronous trainingEnabled
Actor / rollout GPUs2 / 6
Max staleness4
Rollout in-flight cap64
Minimum fresh-token ratio0.75
Weight update interval1
Fault toleranceEnabled
Figure 8: Training dynamics of Qwen3.5-35B-A3B with SAO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. SAO exhibits a sustained reward increase together with a substantial reduction in truncation, while degenerate responses remain close to zero.
Figure 8: Training dynamics of Qwen3.5-35B-A3B with SAO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. SAO exhibits a sustained reward increase together with a substantial reduction in truncation, while degenerate responses remain close to zero.
Table 8: Configuration of the executable MCP environments used during policy optimization.
ParameterValue
Maximum MCP turns20
Maximum generation tokens / turn8,192
Arena backendLocal (in-process)
Probe toolCalendar
Environment creation throttle8
Ready timeout600 s
Reset timeout180 s
Table 9: Reward and verification configuration used during RL training.
ParameterValue
Reward implementationAgentMercury rl_reward.py
Reward aggregatorFraction
Behavior penaltyEnabled
Reward judgeDeepSeek-V4-Flash
Judge temperature0.0
Judge max tokens4,000
Truncated-sample handlingRetained during cold start
Table 10: GRPO and optimizer configuration for Qwen3.5-4B.
ParameterValue
Advantage estimatorGRPO
SurrogateDecoupled-PPO (icepop)
ϵ-clip / ϵ-clip-high0.20 / 0.28
Entropy coefficient0
GRPO std normalizationDisabled
Per-token lossEnabled
Global batch size128
Rollout batch size16
Samples per prompt8
Dynamic sampling filterZero-std reward groups dropped
OptimizerAdam
β1 / β20.9 / 0.98
Learning rate1×10−6
Learning-rate scheduleConstant
Warmup0
Weight decay0
Gradient accumulationFP32
Table 11: Model and corpus configuration for the Qwen3.5-4B RL experiment.
ParameterValue
Base modelQwen3.5-4B
Training corpusAgentMercury investigation corpus
Number of tasks43,300
Seeds per environment10

Findings

  • Training Qwen3.5-4B with GRPO on AgentMercury environments raised the EnterpriseOps-GYM average score from 12.3 to 15.7 (+27.6%), and also raised the out-of-domain AIME26 score, which was never targeted during training, from 45.9 to 56.0.
  • On EnterpriseOps-Gym subdomains, Drive rose from 6.2 to 15.6 and Email from 23.9 to 33.3; 7 of 8 domains improved, while CSM dropped from 9.2 to 5.6.
  • For Qwen3.5-35B-A3B, GRPO raised the average score from 24.8 to 28.1 (+13.3%) and SAO raised it from 24.8 to 28.3 (+14.1%), with both algorithms improving all eight enterprise domains.
  • Before fine-tuning, Qwen3.5-35B-A3B passed the world-authoring oracle on only 3.3% of 30 held-out business briefs; after fine-tuning on construction traces, this rose to 83.3% (Fisher exact test p=1.2x10^-10), with the average number of passed validators rising to 11.5 out of 12.
  • Comparing zero-shot vs. recipe (extra construction guidance) prompting, five off-the-shelf API models showed little difference (80.7% vs. 78.0% average pass rate), but for the fine-tuned model, adding the recipe sharply hurt performance, dropping the pass rate from 83.3% to 10.0%.

Where it can be used

  • Generating large numbers of scenario-grounded environments to train enterprise-automation agents (email, calendar, HR, ITSM, and similar workflows)
  • Situations needing reinforcement-learning training data that reflects broad realistic business workflows rather than data tailored to a specific benchmark
  • Building pipelines where a model authors executable worlds itself instead of requiring humans to hand-design each environment
  • Constructing agent evaluation setups that check whether cross-service rules (e.g., across inventory, shipping, and billing) are respected

Limits and open work

  • Not every business domain benefited from training—CSM performance actually declined after training, so gains are not uniformly positive across all enterprise workflows.
  • The world-authoring fine-tuning results are based on only 30 held-out business briefs, so generalization to a wider range of industries and countries is not yet demonstrated.
  • Recipe-based prompting did not reliably improve zero-shot API models and substantially hurt the fine-tuned model, and the underlying cause of this asymmetry is not fully explained.
  • Even strong models such as GPT-5.4 still misplace cross-service invariants in about a third of held-out briefs (10 of 30), showing this remains a persistent structural weak point.
  • The work does not train a separate learned world model and instead uses the executable environment directly as the transition function, so combining this approach with a learned world model remains untested.

Why it matters

If training environments can be generated at scale directly from business scenarios rather than hand-built task by task, teams building agentic systems could obtain far more diverse, realistic training grounds much faster. The finding that world-construction itself can be learned also hints at reducing the bottleneck of humans having to design every environment by hand.

Terms in this paper

  • Planet · The AgentMercury role that turns a business scenario into an executable world containing services, state, and rules
  • world-level invariant · A cross-service rule the world is supposed to satisfy, checked after the fact rather than enforced automatically during interaction
  • GRPO / SAO · Two reinforcement-learning algorithms used to train the policy model (group relative policy optimization / single-rollout asynchronous optimization)
  • oracle-pass rate · A strict success metric requiring a generated environment to pass all 12 structural validators to count as successfully constructed
  • construction trace · Recorded intermediate steps of how a scenario is turned into an executable world, used as supervision data for training a model to author worlds

Original abstract (English)

Agents learn to act through interaction with environments, yet the environments used for training are often manually constructed or synthesized around predefined tasks and benchmarks. This task-centric paradigm makes it difficult to scale environments that reflect realistic and evolving workflows where diverse tasks can naturally emerge from the underlying world. We introduce AgentMercury, a scalable framework for synthesizing executable environments from high-level business scenarios. Rather than constructing an environment for a specific task, AgentMercury first instantiates a persistent world with entities, services, tools, state, and executable cross-service invariants, from which diverse tasks and interaction trajectories can subsequently emerge. We construct 4,783 executable environments spanning 14 industries and 50 countries, and use them as training substrates for reinforcement learning. Despite being generated without targeting the evaluation benchmarks, policies trained on these business-oriented environments improve substantially on both enterprise workflows and out-of-domain benchmarks spanning reasoning, coding, scientific computing, and tool use. In our experiments, Qwen3.5-4B improves from 12.3 to 15.7 on EnterpriseOps-GYM and from 45.9 to 56.0 on AIME26 after training on AgentMercury environments. We further show that the construction process itself can be learned: fine-tuning Qwen3.5-35B-A3B on construction traces increases executable-world authoring success from 3.3% to 83.3% on held-out business scenarios. These results show that scenario-grounded environments can provide useful and generalizable learning signals beyond benchmark-specific training, while their construction can itself become a learnable capability.

Authors · Minbyul Jeong, Chanwoong Yoon

Read on arXiv

Latest papers

All papers →

Latest from METAL LAB

Figures: Minbyul Jeong et al., arXiv:2608.20634, CC BY-SA 4.0