Ten benchmarks behind one interface (x_harness/benchmarks/base.py):

python
benchmark = xh.make_benchmark(
    "libero", policy="ws://127.0.0.1:8000", condition="swap"
)
episode = benchmark.make_episode(task, seed, split="train")
obs = episode.observe()
outcome = episode.execute({"control": "pick", "xyz": [0.5, 0.0, 0.05]})

xharness list prints the table below; xharness doctor <name> says what a benchmark needs on your machine.

<!-- benchmarks:begin -->

BenchmarkRobotSimulatorTasks here / in the paperTrain / test seedsStatus
mock Mock tabletop (built in)point gripperpure numpy3 / –10 / 20Verified (CPU)
robomme RoboMMEFranka PandaSAPIEN (ManiSkill)14 / 165 / 20Adapter ready (needs external sim)
libero LIBERO / LIBERO-PROFranka Pandarobosuite + MuJoCo40 / 405 / 20Adapter ready (needs external sim)
maniskill ManiSkill3Franka PandaSAPIEN 314 / 145 / 20Adapter ready (needs external sim)
robotwin RoboTwin 2.0two-arm aloha-agilexSAPIEN 350 / 505 / 20Adapter ready (needs external sim)
robocasa RoboCasa365mobile Panda (PandaOmron)robosuite + MuJoCo50 / 505 / 20Adapter ready (needs external sim)
robodojo RoboDojotwo-arm ARX-X5Isaac Sim 5.10 / 4220 / 20Specification / external checkout
simpler SimplerEnvWidowX 250 / Google robotSAPIEN 2 (ManiSkill2_real2sim)6 / 610 / 20Adapter ready (needs external sim)
vlabench VLABenchFranka Pandadm_control + MuJoCo50 / 4910 / 20Adapter ready (needs external sim)
real_yam Real YAM (two-arm robot)two-arm YAM, 14 joint encodersreal robot / recorded episodes2 / –by recordingReplay + live client

<!-- benchmarks:end -->

#Status

StatusWhat it means here
Verified (CPU)runs here; the tests run it end to end
Adapter ready (needs external sim)the code is here; the parts that import the simulator are not run by this repository's tests
Replay + live clientthe client side of a real robot; tested with stand-ins
Specification / external checkoutcontract and protocol only; no simulator code

#Seeds and splits

Every benchmark declares training seeds and test seeds (disjoint). The paper's protocol: training seeds 1000 and up (10 per task by default), test seeds 0 to 19; LIBERO uses initial states 30 to 39 for training and 10 to 29 for test; RoboDojo uses its own training layouts (seeds 100 and up) and tests on layouts 0 to 19 of its official seed. The seed tables in this repository carry 5 training seeds for libero, maniskill, robocasa, robomme and robotwin, 10 for simpler, vlabench and mock, and 20 for robodojo.

A test episode needs allow_test=True (--allow-test) and is appended to a log. Evolution refuses test seeds.

#The seven simulator packages

Each package x_harness/benchmarks/<name>/ has the same modules:

ModuleContentImports the simulator
tasks.pytask table, instructions, seed mapsno
contract.pyaction bounds, controls, capsno
perception.pyscene graph with the workspace filterno
facts.pywhat a model is told about robot, frame, cameras, controls, outcomeno
primitives.pymotion segments and the policy clientyes
env.pymake_env, Episodeyes

x_harness/benchmarks/sim.py turns a package into a Benchmark. On CPU, this repository tests every action contract, every scene graph against golden baselines, every prompt facts text, and the adapter bridge with a stand-in package. env.py and primitives.py require the external simulator and policy server; always verify one task with the policy-alone wrapper on your simulator machine before launching a larger run.

BenchmarkTasks hereIn the paperRobots and controlsNotes
robomme1416panda_wristcam: move, pick, place, push, gripper, hold, policy, donethe two stick tasks are not adapted; needs ROBOMME_POLICY_ROOT; video-demo tasks expose obs["demo_frames"]; the policy client only accepts the MME-VLA sub-goal server
libero4040panda: all eight controls`condition="std" \"object" \"swap" \"lan" \"task"` selects a LIBERO-PRO shift
maniskill1414panda, panda_wristcam: no policy; panda_stick: move, push, hold, doneprimitives only
robotwin5050aloha_agilex: arm controls take "arm", plus move_bothneeds ROBOTWIN_ROOT
robocasa5050panda_omron: all eight controlsall 37 fixed-base + 13 mobile-base tasks; the mobile base stays fixed in this adapter
simpler66widowx, widowx_sink_camera_setup, google_robot_staticbounds follow the robot's family
vlabench5049franka: all eight controls5 tracks x 10 tasks; VLABENCH_ROOT

Environment variables read at run time (never at import): XHARNESS_POLICY_URL, XHARNESS_PERCEPTION_URL, ROBOMME_POLICY_ROOT, ROBOTWIN_ROOT, VLABENCH_ROOT.

#mock

Three tasks in pure numpy (x_harness/benchmarks/mock/): pick_cube, push_to_goal, and button_unmask_swap, a memory task. Controls: move, gripper, policy, hold, done. Budget 24 steps. Perception is ColorPerception, a stand-in that finds color words ("red cube" finds red pixels); it is not a detector. The mock policy is a scripted reacher in the role of a VLA: it follows what is visible, and an instruction that contains [x, y, z] makes it reach for that point. It is a toy for tests, examples and development, not one of the paper's benchmarks.

#RoboDojo

A specification (x_harness/benchmarks/robodojo/): the 42-task count by skill axis, the seed protocol, and the action contract (policy, move with end-effector targets, hold). RoboDojo runs inside its own evaluation stack; connecting the harness means writing a policy class inside that stack that builds obs, calls a ProgramHost, validates the action and maps it to the stack's own calls. env.py describes the steps. No simulator or policy-lab code is included, and none was reconstructed.

#Real YAM

Client-side code for a two-arm YAM robot driven only through its base policy's prompts (x_harness/benchmarks/real_yam/). Two tasks: two_bin (Two-Bin Object Memory) and bean_scoop (LED-Counted Bean Scooping).

What ships: the wire client, the live and replay environments, the action contract, the runner. What does not: the hardware bridge, the policy servers, the checkpoints, the recordings, and any server profile.

What the paper's real-robot section is: quantitative tables evaluate policy code on held-out recordings replayed offline (with perturbations, safety controls and a memory-removed control) plus live integration with unmodified adapted-π0.5 servers on held-out replays, alongside qualitative live physical Bean Scooping rollouts (assets/fig_real_yam.jpg). This repository holds no record of physical multi-trial success-rate trials and claims none.

#The action contract

python
# n in 1..30; prompt must be one of obs["valid_prompts"]
{"control": "policy", "steps": n, "subgoal": prompt}
{"control": "hold", "steps": n}
{"control": "done"}
{"control": "abort"}   # refuse the episode

Policy code cannot send a joint or Cartesian target. obs has three RGB images and 14 encoder values: no depth, no calibration.

#Running

CAUTION

Dry run is the default. Live hardware motion is disabled unless you pass --execute-motion and type the interactive confirmation word (OPEN or START). The hardware bridge is restricted strictly to tcp://127.0.0.1:<port>.

bash
# 1. Replay a held-out recording offline (--no-policy skips the policy server)
python -m x_harness.benchmarks.real_yam.run --task bean_scoop \
  --program p.py --profile bean_scoop.json --replay episode.npz --no-policy

# 2. Live dry run (default): reads sensors, validates one reply, sends zero motion
python -m x_harness.benchmarks.real_yam.run --task two_bin \
  --program p.py --profile two_bin.json

# 3. Live with motion: requires typing the confirmation word first
python -m x_harness.benchmarks.real_yam.run --task two_bin \
  --program p.py --profile two_bin.json --execute-motion

A recording is an .npz with top, left_wrist, right_wrist (uint8 (T, H, W, 3)), state and optionally actions (float32 (T, 14)), and JSON strings under meta_* (env.ArrayEpisode.load_npz).

#The gates, and where each lives

GateWhere
Dry run unless --execute-motionenv.YamLiveEnv(motion=False), run.py
A word typed by the operator before motion (OPEN, START)run.py: motion_gate, tasks.py: confirm
The bridge must be tcp://127.0.0.1:<port>wire.BridgeRobot
The policy server must match the profile (checkpoint, normalization hash, prompts, wire constants)wire.check_metadata, profiles.py; --any-server is refused with --execute-motion
A reply is validated whole (finite, in limits, no jump over 1.0 rad) before its first target is sent; arm joints are never clippedwire.check_chunk
30 Hz pacingenv.YamLiveEnv._pace
The robot is told to hold in finally, also on Ctrl-Crun.py: main
Exit codes 0 (ran), 1 (error), 2 (refused)runtime.EXIT
Masked phases: no instruction, no query, no policy until the covers are verifiedruntime.Episode._masked_phase
Memory-removed control: must refuse with zero inferencesruntime.Episode, wire.ClosedPolicy
Program audit with literal limits (no memorized tables)contract.AUDIT_LIMITS, runtime.host

A server profile is a JSON file you write once for your server (profiles.py). Pin at least the checkpoint, the hash of its normalization statistics and the prompts.

The bridge protocol pickles Python objects (pyzmq's send_pyobj). That is only safe between processes you run yourself on one machine, which is why the client refuses any other endpoint.

#Full environment setup

Only the core harness runtime and the built-in mock benchmark run with minimal dependencies on CPU. Running any real simulation benchmark requires three components—the target simulator environment, the 3D perception server, and (except on maniskill) a base policy server—plus VLM credentials when evolving or running Semi-online/Full-online tiers.

Use one isolated conda/venv environment per simulator. MuJoCo + robosuite, SAPIEN 2 (ManiSkill2_real2sim), SAPIEN 3 / ManiSkill3, dm_control, and Isaac Sim pin incompatible native libraries. Because X-Harness talks to the perception server and base policy server over clean HTTP/WebSocket endpoints (XHARNESS_PERCEPTION_URL, XHARNESS_POLICY_URL), the simulator client, 3D perception server, and VLA/WAM policy server can run in separate virtual environments or even on separate GPUs.

#Step 1 — Install harness extras & configure VLM credentials

Install the extras you need inside your harness/simulator environment and copy .env.example to .env:

bash
# Pick only the extras needed in each environment (ws, perception, vertex, yam)
pip install -e ".[ws,perception,vertex]"
# Copy template and set XHARNESS_VLM_MODEL + provider key (or Vertex ADC)
cp .env.example .env

For Offline evaluation of frozen or released policies (--tier offline), no VLM key is required at test time. See docs/policies_and_tools.md for all VLM provider variables (OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, GOOGLE_CLOUD_PROJECT, OPENAI_BASE_URL).

#Step 2 — Start the 3D perception server

Run the perception server in a GPU environment with the perception extra (can be isolated from the simulator env):

bash
pip install -e ".[perception]"
# Or: xharness serve-perception --port 8765 --depth
python scripts/serve_perception.py --port 8765 --depth
export XHARNESS_PERCEPTION_URL=http://127.0.0.1:8765

CoTracker3 is optional: if not installed, the server starts with Grounding DINO + SAM 2 (plus optional Depth Anything V2) and returns HTTP 503 on /track until you clone CoTracker3 and set XHARNESS_COTRACKER_PATH. Set XHARNESS_PERCEPTION_TOKEN whenever binding beyond localhost.

#Step 3 — Install your target simulator & start its base policy server

Install the simulator packages into an isolated environment and serve the matching base policy checkpoint behind XHARNESS_POLICY_URL:

BenchmarkUpstream repository & packagesRequired env varsBase policy server & notes
robommeRoboMME (benchmark , policy learning ), mani_skill, mplib, gymnasiumROBOMME_POLICY_ROOT, XHARNESS_POLICY_URLMME-VLA sub-goal WebSocket server (ws://...; primitives.py verifies server metadata, see policies_and_tools.md)
liberoLIBERO (plus LIBERO-PRO for shifted suites), robosuite 1.4.1, mujocoXHARNESS_POLICY_URLServe π0.5 via OpenPI WebSocket (ws://127.0.0.1:8000; requires .[ws] extra)
maniskillManiSkill3 (mani_skill), mplib, gymnasium(none beyond perception)3D motion primitives only — no base policy server required
robotwinRoboTwin 2.0 checkout + assets + CuRobo, sapien, pyyamlROBOTWIN_ROOT, XHARNESS_POLICY_URLRun x_harness/benchmarks/robotwin/vla_server.py (needs LeRobot ) or an HTTP POST /act server
robocasaRoboCasa365 (robocasa + kitchen assets), robosuite, mujocoXHARNESS_POLICY_URLRun x_harness/benchmarks/robocasa/vla_server.py (needs LeRobot ) or an HTTP POST /act server
simplerSimplerEnv (ManiSkill2_real2sim), sapien (SAPIEN 2)XHARNESS_POLICY_URLServe π0 (INT-ACT Bridge / open-pi-zero Fractal) behind HTTP POST /act matching simpler/vla.py
vlabenchVLABench + assets, dm_control, mujocoVLABENCH_ROOT, XHARNESS_POLICY_URLServe π0.5 or π0 for VLABench behind HTTP POST /act matching vlabench/primitives.py
robodojoRoboDojo + Isaac Sim 5.1 stack(external stack)Specification only here — integrate ProgramHost inside RoboDojo's evaluation stack (see x_harness/benchmarks/robodojo/env.py)

For RoboCasa365 and RoboTwin 2.0, launch the bundled LeRobot -backed HTTP server explicitly with --port 8000 (the default --port 0 binds an ephemeral port; pair with --ready-file for scripted orchestration):

bash
# RoboCasa365 (or swap robocasa -> robotwin for RoboTwin 2.0)
python -m x_harness.benchmarks.robocasa.vla_server \
  --checkpoint /path/to/pi05_robocasa \
  --tokenizer /path/to/paligemma_tokenizer \
  --port 8000
export XHARNESS_POLICY_URL=http://127.0.0.1:8000

See docs/policies_and_tools.md for the full transport protocols (OpenPIWebSocketTransport, HTTPPolicyTransport), RoboMME's WebSocket metadata handshake, and the 15-checkpoint catalog.

#Step 4 — Preflight & single-task sanity check

Before launching a multi-task run or replaying released policies, confirm the environment with xharness doctor and dry-run a released policy on CPU:

bash
# 1. Verify simulator imports, checkout env vars, and optional extras
xharness doctor libero

# 2. Pick a runnable released program_id, then dry-run its SHA-256 & contract
python scripts/replay_released_policy.py --local-dir ./x-as-policies \
  --list --benchmark libero --task libero_10_t1 --runnable-only
python scripts/replay_released_policy.py --local-dir ./x-as-policies \
  --program-id <program_id> --dry-run

#Adding a benchmark

Copy x_harness/benchmarks/_template/ and follow playbook 3.1 in AGENT_HANDOFF.md, or read examples/05_new_benchmark_demo.py for a complete one-file benchmark.