TL;DR
Orchard is a new open-source, Kubernetes-native framework that scales large language model (LLM) agent training by cleanly decoupling the execution environment from the agent harness. By introducing innovative training recipes like credit-assignment SFT and rubric-based process rewards, Orchard allows relatively small open-source models (4B and 35B) to achieve state-of-the-art performance, rivaling proprietary frontier models over 10× larger on complex software engineering and GUI tasks.
What Problem Does This Paper Address?
Building autonomous agents capable of software engineering, web navigation, or desktop automation requires massive amounts of multi-turn interactions with sandboxed environments. During reinforcement learning (RL) and supervised fine-tuning (SFT), thousands of these isolated environments must run concurrently, each requiring distinct base images, network isolation, and rapid cleanup.
Currently, researchers face an infrastructure bottleneck: environment layers are either rigidly coupled to specific training stacks (preventing data reuse and harness swapping) or managed via expensive, closed commercial platforms. This lack of a clean, standardized, and cost-effective environment boundary limits reproducibility and makes scaling up agentic training prohibitively complex and expensive for the open-source community.
Methods
The core architectural innovation is Orchard Env, a thin, standalone environment service built entirely on standard Kubernetes primitives.
Orchard Env scales efficiently through two key design choices:
- Runtime Agent Injection: A Kubernetes init container copies a self-contained execution agent into any user-provided Docker image at startup, eliminating the need to rebuild task images for different domains.
- Direct Pod-IP Communication: All execution and file requests bypass the Kubernetes API server entirely, routing directly to the sandbox pod's IP to eliminate WebSocket setup overhead.
On top of Orchard Env, the authors implement three domain-specific training recipes:
- Orchard-SWE (Software Engineering): Introduces credit-assignment SFT to learn from successful sub-segments of failed trajectories. For RL, it utilizes Balanced Adaptive Rollout (BAR) to dynamically balance positive and negative samples in a batch, alongside On-Policy Distillation (OPD) and Rubric-based Process Rewards (RPR) to grade the agent's self-verification discipline.
- Orchard-GUI (Browser Navigation): A recipe for training multimodal computer-use agents using a generic ReAct-style tool-calling harness.
- Orchard-Claw (Personal Assistant): A recipe targeting productivity workflows (email, calendar) designed to evaluate how well agent skills transfer across different harnesses.
Datasets
Orchard leverages and curates several key datasets across its three target domains:
- Software Engineering: Evaluated on SWE-bench Verified, SWE-bench Multilingual, and Terminal-Bench 2.0. Training data consists of 107K trajectories distilled from frontier models (MiniMax-M2.5 and Qwen3.5-397B) across SWE-rebench and Scale-SWE.
- GUI Navigation: Evaluated on WebVoyager, Online-Mind2Web, and DeepShop. Training utilizes a filtered pool of 15,601 seed tasks derived from WebGym.
- Personal Assistant: Evaluated on the Claw-Eval benchmark and trained using workflows from ClawHub alongside distilled trajectories.
Key Insights and Ideas
- Failed Trajectories Contain Gold: Traditional SFT throws away failed attempts. Orchard's credit-assignment SFT uses retrospective value estimation by a teacher model to extract productive "rise segments" (e.g., successful repository navigation or partial root-cause analysis) from otherwise unsuccessful trajectories, providing crucial exploration-focused supervision.
- Process Over Outcome: In sparse-reward environments like software engineering, binary outcome rewards (did the test pass?) fail to supervise how an agent succeeded. Rewarding the discipline of problem-solving—such as writing reproduction tests and verifying fixes via Rubric-based Process Rewards (RPR)—prevents the agent from getting lucky and yields more stable RL training.
- Recycling RL Exhaust: Agentic RL produces massive amounts of trajectory data that are typically discarded after an experiment. Orchard introduces historical experience distillation, compressing rollouts from past experiments into a small, offline value model that successfully reranks candidates at inference time without requiring new environment interactions.
Key Results
Orchard demonstrates that a lightweight, harness-agnostic environment layer enables state-of-the-art performance using highly efficient models.
- Orchard-SWE: Built on a Qwen3.5-35B-A3B backbone (activating only ~3B parameters at inference), it achieved 73.0% on SWE-bench Verified when paired with value-model reranking. This sets a new open-source SOTA and approaches the performance of frontier models that are 10–30× larger.
- Orchard-GUI: Using a small 4B vision-language backbone and only 2.6K training tasks, it achieved a 68.4% average success rate across WebVoyager, Online-Mind2Web, and DeepShop, outperforming its own 235B teacher model and matching proprietary systems like Gemini computer-use-preview (69.3%).
- Infrastructure Efficiency: Orchard Env achieved an average command-execution latency of just 0.28 seconds. By leveraging cloud spot instances, it reduced sandboxing costs by up to 90% compared to managed alternatives like E2B and Daytona.
Limitations and Future Work
Despite strong cross-harness generalization, Orchard still experiences performance drops when evaluated on completely unseen harnesses (e.g., Kimi-CLI) or out-of-domain tasks (Terminal-Bench 2.0), highlighting that "harness lock-in" remains a difficult challenge. Additionally, the framework's data curation and value estimation pipelines still rely heavily on massive frontier teacher models.
Future work includes expanding the framework to support broader multi-domain scaling, tighter integration of cross-harness training directly into the RL loop, and adapting the architecture for persistent, long-running agent states.
Summary updated