Frontier-lab environment pipelines: DeepSeek-V3.2 and Kimi K2
Read first: Synthetic RL environments for agent training: a map
TL;DR. Two open frontier reports describe the environment factories behind their agents. DeepSeek-V3.2 (Dec 2025) has an agent write the database, tools, task, solution and verifier for each synthetic general-agent environment (4,417 tasks in 1,827 environments), alongside real code, code-interpreter and search environments. Kimi K2 (Jul 2025) pairs 3,000+ real MCP tools and 20,000+ synthetic ones with an LLM tool simulator and simulated users for SFT data, and uses real Kubernetes sandboxes for coding and SWE RL. The recipes, task counts and benchmark results live in the report pages (DeepSeek-V3.2, Kimi K2); this page compares only the environment designs.
Key idea
Section titled “Key idea”| Design choice | DeepSeek-V3.2 general agent | Kimi K2 tool use |
|---|---|---|
| State | sandbox database filled from the web by an agent with bash and search | carried by the LLM tool simulator across calls |
| Transition | generated, task-specific Python tool functions | LLM simulation with controlled randomness (partial failures, edge cases); real sandboxes for code |
| Reset | restore the database; tasks are code tuples | start a new simulated conversation |
| Task validation | a Python solution that may only call tools must pass a separate verifier; then iterative hardening | each task carries a rubric |
| Reward / filter | verifier function; keep tasks with non-zero pass@100 | LLM judge keeps rubric-satisfying trajectories for SFT; tests for code RL |
| Used for | RL | mainly SFT data; RL in real sandboxes for SWE |
| Released | model weights; the environments are not described as released | model weights; the tools and simulator are not described as released |
DeepSeek-V3.2: environments as verified code. For a category such as trip planning, the agent proposes a simple task with a solution function and a verification function, then hardens it step by step (more constraints, more tools when needed) while keeping solution and verifier in sync: “hard to solve, easy to verify”. The solution-only-through-tools rule guarantees solvability through the interface the policy will have. Search questions come from a separate multi-agent pipeline: sample long-tail entities, let a question-construction agent explore each with search at a chosen depth and breadth, collect answers from several differently configured answer agents, and keep a question only if a verifier agent confirms the gold answer and rejects every candidate.
Kimi K2: environments as simulation plus real sandboxes. Synthetic tools are evolved from a domain hierarchy, and thousands of “agents” pair system prompts with tool subsets. The report calls the stateful tool simulator “functionally equivalent to a world model”. Where simulation is not trusted (coding and SWE), more than 10,000 concurrent real sandboxes supply test-based rewards.
Evidence and gaps. DeepSeek’s kept tasks are hard even for frontier models (Table 5: pass@1 from 12% for DeepSeek-V3.2-Exp to 62% for GPT-5-Thinking on 50 sampled tasks). Kimi K2 reports no ablation of simulator versus real tools and cites “the inherent limitation of simulation fidelity” as the reason for its real-sandbox complement. Neither report describes releasing the environments, so neither design can be audited for verifier bugs or benchmark overlap.
Connections
Section titled “Connections”- Model-level summaries: DeepSeek-V3.2, Kimi K2, GLM-4.5.
- The same database-plus-tools-plus-checker recipe in open research: Agent World Model and AgentScaler.
- Kimi’s simulator is the industrial version of LLM-simulated environments.
- Search-question synthesis: training-data synthesis for search agents, Building a retrieval environment.
- Real SWE environments: SWE-smith, SWE-Gym, R2E-Gym.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
DeepSeek-V3.2's general-agent synthesis restricts the solution function to calling tools, requires a separate verification function to accept it, then iteratively hardens the task. Explain what each constraint guarantees about the resulting RL task, and why the final filter keeps only tasks with non-zero pass@100 for DeepSeek-V3.2.
What a strong answer covers
- Solution through tools only (no direct database access) guarantees the task is solvable through the interface the agent will have, not only by reading hidden state.
- A separate verifier that must accept the reference solution makes the reward checkable by code; "hard to solve, easy to verify" (the trip-planning example) is the target shape.
- Iterative hardening (more constraints, more tools when needed) pushes difficulty up while the solution and verifier are updated together, so tasks stay verifiable as they get harder.
- Non-zero pass@100 removes tasks with no observed success in 100 selection runs, which would likely give all-zero GRPO groups and may be broken. It does not guarantee mixed outcomes later: at success rate 0.01 a 16-rollout group is all failures with probability 0.99^16 ≈ 85%, and always-solved tasks are not removed. It also selects tasks using the trained model, so they are not a fair evaluation set.
- Critique
Figure 5 of DeepSeek-V3.2 compares RL only on synthetic general-agent tasks (from the SFT checkpoint, non-thinking mode) with DeepSeek-V3.2-Exp, which had RL only in search and code environments. Critique how strong this evidence is that synthetic environments transfer to Tau2, MCP-Mark and MCP-Universe.
What a strong answer covers
- Positive: RL on synthetic tasks alone improved all three real benchmarks over the SFT checkpoint, whose environments were never seen in training.
- The comparison model differs in more than environment type (a different, earlier training run), so "code and search RL does not help" is not a controlled ablation.
- Tau2 and MCP benchmarks are tool-calling over app-like APIs, which resembles the synthetic database-plus-tools environments more than code or search does; transfer is to a nearby distribution.
- Missing: amount of RL compute per arm, variance across seeds, and a check that synthetic task categories do not mirror benchmark domains (as AgentScaler's τ-bench domains did).
- Design
Kimi K2 uses an LLM tool simulator for breadth and real sandboxes where authenticity matters; DeepSeek-V3.2 uses synthesized code environments, real search and real code. For a search-agent lab with a fixed budget, decide which parts of your environment to simulate and which to run for real, and how to detect when the simulator is teaching the wrong thing.
What a strong answer covers
- Real: the retriever over a frozen corpus (cheap, deterministic, exact), code execution, and the final evaluation on a live search API.
- Simulated: users (personas, clarification turns), rare or costly tools (paid APIs), and failure injection (timeouts, empty results), as Kimi K2 does with controlled stochasticity.
- Verification: code checks where possible (exact answers, DeepSeek-style verifier functions), rubric judges only where needed, with the judge separate from the simulator.
- Drift detection: compare behaviour of the same policy in simulator and real tool on a held-out slice (tool-call distributions, success rates, error handling); retrain or retire simulated tools whose rankings of policies disagree with the real ones.