8000 Add RoboDojo-Sim as a benchmark by ruiling-smartbear · Pull Request #102 · Infini-AI-Lab/hermit · GitHub
[go: up one dir, main page]

Skip to content

Add RoboDojo-Sim as a benchmark - #102

Merged
haizhongzheng merged 48 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:robodojo-sim
Nov 18, 2026
Merged

haizhongzheng merged 48 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:robodojo-sim

Conversation

@ruiling-smartbear
@ruiling-smartbear ruiling-smartbear commented Nov 11, 2026 •
Copy link
Copy Markdown
Contributor

Change

Adds RoboDojo-Sim (arXiv:2607.04434; 42 bimanual ARX X5 tasks in Isaac Sim, five capability dimensions) as a benchmark, in examples/robodojo_sim/. It reuses the simulator service that #100 added; the only change outside the folder is the service's _run, split so that what it runs is pluggable (ASPIRE's behavior is unchanged).

RoboDojo evaluates a policy served through XPolicyLab. Here the policy is a program: a Codex session writes policy.py (act(obs) -> actions), develops it on the task's development layouts through bin/sim, and the judge scores it on held-out layouts with RoboDojo's own success check. prompt_only/ is the first method on it (the prompt-only template with the built-in Codex Evolver). The README's folder table lists the files.

  • Splits (utils/prepare.py): development is layout set 2; held-out is sets 0 and 1, each with as many layouts as RoboDojo evaluates a set (50, or 25 for twelve tasks). Splits: all, one per dimension, smoke, and sample (one task each of generalization, memory and open).
  • Protocol. This is not RoboDojo's leaderboard protocol, which scores all three sets: here one set is developed on and two are scored. RoboDojo's twelve *_random variants are left out. The README's Protocol section states every other difference (time limits, layouts with no result).
  • Simulator. With ROBODOJO_IMAGE set, Isaac Sim runs in RoboDojo's own container and the policy server on the host (split_eval.sh), for hosts whe 8000 re Isaac Sim does not install natively. The README's Setup explains why this is not in Harbor's task format: one simulator per GPU is shared through a host service that keeps the development and held-out sets apart, which one container per trial does not express.

What a program can reach

RoboDojo's checkout holds every set's layouts, the success conditions and the results, beside the policy server. So:

  • The server never imports the program. It runs it as a worker in a bubblewrap sandbox with no network, 8 GB of memory and 512 MB per file per process, that reads only the worker and the program.
  • Every action that reaches the simulator is whole and bounded, and the judge's denominator is the fixed number of held-out layouts.
  • The engine refuses an installed policy that differs from the harness's own.
  • A session runs only its development set; RoboDojo's processes get the host's environment without its secrets.

Validation

  • Tests: examples/robodojo_sim/utils/tests and tests/methods/aspire (CI on Linux with bubblewrap; locally 12 passed, 2 skipped without bubblewrap). pre-commit and bash docs/build.sh pass. A stand-in for RoboDojo (FAKE_EVAL) runs the installed policy's real Model, worker and deploy.py under the real sandbox. Under it a program is scored by what it does; one that reads a layout file, writes a result, opens a socket or looks for the run's output gets none of them; partial or overflowing actions never reach the simulator; and an installed deploy.py that grants success is refused.
  • On a Linux host (RHEL 9, L40; RoboDojo f57e163 and its pinned XPolicyLab 5d0be14, in RoboDojo's image):
    • Engine: a joint target is followed, and the program receives the (480, 640, 3) image and the instruction; a program's exception fails its layouts while the robot holds.

    • Service and bin/sim: a program runs on its development layouts with RoboDojo's result and videos delivered into the workspace, and its log kept out; a layout outside the development set is refused. Two evaluations run at once on two GPUs; one stopped mid-episode leaves nothing behind.

    • Positive control (utils/control/press_by_number.py, one layout's card digits written in): on set 2 layout 0 it succeeds through the engine and through the judge (1/1). On held-out set 0 it scores 0/15, as expected for a program written for another layout. Its runs established the robot facts in interface.md (link6 pose, fingertip offset, the table as an IK obstacle).

      press_by_number positive control, head camera

    • Smoke (smoke_luna.yaml, GPT-5.6-Luna, 83 minutes): session, judge, Evolver and final tag complete; both tasks score 0/2. The sessions ran only development layouts and touched none of the checkout, held-out runs or service files; their sandbox records show enforcement on and the network isolated.

    • Timing: about four minutes to start the simulator, three minutes per 800-step layout.

    • run_sample_sol.yaml (GPT-6.1-Sol at medium): on stack_bowls, the first task, the judged program succeeds on 8 of the 50 held-out layouts (0.16; this task has 25 per set), in 5.6 hours of session and judge; the Evolver then wrote the first ADAPTER.md. The run was stopped during the second task, when the login's plan had run out.

  • Not run: a complete training run; run_sample_opus.yaml; scripts/robodojo.sh eval on a native install. The configs' budgets are not measured.

Review

  • Core changes: none.

  • Failures: a simulator that does not start or leaves no result is the host's failure: bin/sim says so, and the judge raises it without host paths, recorded as a judge_error (scored 0). A missing image or a policy installed from another commit is refused before a run.

  • Agent layers: the codex acting agent and the built-in Codex Evolver.

  • Tests and documentation cover the affected behavior, where applicable. Tests: examples/robodojo_sim/utils/tests/test_robodojo.py; docs: examples/robodojo_sim/README.md, utils/agent/docs/interface.md, examples/README.md, CHANGELOG.md.

  • Commands, defaults, and public interfaces are consistent.

  • Shared logs and examples contain no credentials or private data.

  • Documentation-only: not applicable.

  • Sandbox checklist: the program's worker runs through hermit.sandbox.Sandbox (dojo.Engine._worker) with the limits above. RoboDojo's policy server and Isaac Sim run on the host or in RoboDojo's container, as the judge does: they are RoboDojo's and the harness's code and need the GPU and the checkout.

  • Independent review (post-PR audit): separate agents reviewed the engine, the container path and the judge against RoboDojo's and XPolicyLab's source, and the head against the general, sandbox and test checklists. They found no way for a session or a program to reach the held-out layouts or results, forge a success, or shrink the denominator; their findings are fixed. Open, and stated in the README:

    • a session's bin/sim evaluations are not limited in number and are not stopped when the session ends;
    • the worker's limits are per process, and the number of processes is not limited;
    • a program's process lasts across the episodes of one evaluation;
    • play_tic_tac_toe's three layout sets are the same layouts, so its score is not a held-out score.

examples/aspire_libero/ adds LIBERO's Object, Spatial, Goal, Long (libero_10)
and LIBERO-90 suites as tasks of ASPIRE's harness (cap-harness --benchmark
libero-pro): 130 task rows, run.yaml (the four ten-task suites), run_90.yaml,
smoke.yaml and a launcher that starts the Robosuite example's on this folder.

The Robosuite example's engine now takes the benchmark from the task row: the
venv that holds cap-harness, the init mode (LIBERO: seeded, so a seed is a
scene of its own), the simulator's environment and the benchmark's docs page
(LIBERO's without the section that names ASPIRE's worked programs per task).
A row without the field is Robosuite's, as before. prepare.py's seeds are
presets (--preset aspire|smoke) and its row and split writing is shared.
…out's pages

The LIBERO configs granted $ASPIRE_ROOT/docs/libero-pro.md to the task sandbox, whose
"Task examples" section names ASPIRE's worked programs per task; only the workspace
copy was cut. launch.sh now stages the docs outside the checkout (stage_docs.py) and
the Codex configs of both examples grant those (agent.params.aspire_docs). A benchmark
page without its cut is refused rather than copied whole. LIBERO's demonstration
datasets are hidden from the simulator's sandbox.
smoke_luna.yaml is smoke.yaml with GPT-5.6-Luna acting and coordinating on the Codex
ChatGPT login. The launcher asks for FIREWORKS_API_KEY only when the config's models
are Fireworks'.
examples/robodojo_sim/ adds RoboDojo-Sim's forty-two bimanual tasks. A Codex
session writes policy.py (act(obs) -> actions), develops it on the task's
development layout set through a simulator service on the host, and the judge
scores it on the held-out layout sets with RoboDojo's own success check.

RoboDojo evaluates the harness's XPolicyLab policy (utils/policy/hermit_program):
its server never imports the program but runs it as a worker in a bubblewrap
sandbox with no network that reads nothing of RoboDojo's checkout, which holds
the layouts, the success conditions and the results; the episode loop that runs
in the simulator's process is the harness's, and the engine refuses an installed
policy that differs from it.

The ASPIRE example's simulator service separates its seed rules from what it
runs (_validate, _launch), which this example's service replaces.
…nor read the run's output

An independent review found that a program could make RoboDojo abandon a layout
unscored (a partial action raises in its simulator; a number that overflows float32
passed the finite check) and that the judge divided by the layouts that had a result.

- Every action that reaches the simulator is whole and bounded: both arms of one mode
  and both grippers, what the program left out filled from the observation, numbers
  checked after the cast.
- The judge scores the first eval_layouts of each held-out set against that fixed
  count: a layout with no result is a failure, and its replacement is not counted.
- The program's worker reads a directory holding the program alone, not the run's
  output (where a held-out evaluation writes its results as it runs); the sandbox's
  own check finds the checkout and the run's directories missing inside.
- RoboDojo's log and the sandbox record stay with the service, not in the workspace;
  a stopped run's resume manifest is removed from the checkout; the service stops its
  simulators; one simulator per GPU across the service and the judge (a file lock).
- Host-side reads of a session's files and the program check take anything.
…ep's init mode is tested
@ruiling-smartbear ruiling-smartbear changed the title RoboDojo-Sim: a program as the policy (first implementation, not yet run) RoboDojo-Sim: a program as the policy (first implementation) Nov 12, 2026
… service starts no simulator

- worker.py: fd 0 is /dev/null and fd 1 stderr once the channel is taken, so a child process or a C library the
  program uses cannot write into the answer or read the observations.
- dojo.Engine: a stop is checked where the simulator starts, with the start and the listing under one lock (the
  ASPIRE service's rule), so a run that waited for the GPU starts nothing after stop(); the GPU's lock is
  .cache/hermit-locks/gpu<N>.lock in the checkout, opened without truncating it; records.json says whether the run
  was stopped at its timeout, and a run's directories are made only after its paths are accepted.
- dojo_service: a run stopped at its timeout answers 124 and says so, as the ASPIRE service does; otherwise
  RoboDojo's own exit code.
- The stand-in takes an action as RoboDojo's take_action does: one mode, joint or end effector, with both arms of
  it and both grippers; the sandboxed test runs an end-effector program. Tests for stop, timeout and the service's
  answers.
- The interface page says the program is loaded again after an episode it failed; CHANGELOG and examples/README
  state that one program has been evaluated on the real simulator.
LIBERO's grasp backend is on its fixed port 8115 (ASPIRE's SERVICE_PORTS for libero-pro); without it every
generate_grasps call fails. The launcher checks it as the Robosuite launcher checks the other services.
… reported; the judge's own GPU; a cache per GPU
# Conflicts:
#	examples/robodojo_sim/utils/agent/dojo.py
…leanup awaited at shutdown; one port chosen at a time
# Conflicts:
#	tests/selection.py
…ver; any host failure reaches the session without paths; a stop waits only for started runs; a container left behind is logged
…s protocol; the method page names LIBERO's docs, aspire_docs and verifier seeds
…; an evaluation with no result is the host's failure; a test split for eval; the docs state the smoke and the program's memory across episodes
…'s tasks, the aspire method folder and a prompt_only one with LIBERO's own acting prompt; the Robosuite launcher runs another method folder's configs
# Conflicts:
#	CHANGELOG.md
#	examples/README.md
…it; its workspace leaves out ASPIRE's search page and assignment; the prompt is named method-neutral; the step limit is stated only when set
…imit; run_luna.yaml, run.yaml on GPT-5.6-Luna
…, Spatial and Goal) for a run of a day or two
…r scores a search; run_sample_luna.yaml names its baseline's config
…s) succeeds through the engine and the judge; interface.md states the end effector's frame, the fingertips and the IK's table
… host paths, the worker's memory and file limits, no secrets to RoboDojo's processes, 110 s a call, --eval capped at eval_nums; the README states each
…100 s a call; the README states the per-process limits and the judge's longest hold
@ruiling-smartbear
ruiling-smartbear marked this pull request as ready for review November 17, 2026 07:50
@ruiling-smartbear ruiling-smartbear changed the title RoboDojo-Sim: a program as the policy (first implementation) Add RoboDojo-Sim as a benchmark Nov 17, 2026
ruiling-smartbear and others added 4 commits November 17, 2026 06:05
# Conflicts:
#	CHANGELOG.md
#	examples/README.md
#	examples/aspire_robosuite/utils/agent/sim_service.py
…de on Claude Opus 5.5; the prompt names the CLI's context file
The engine and press_by_number tests load model.py, which imports numpy, and
failed under `.[test]` alone; they now skip like the tests beside them. The
README says to run one launch at a time per checkout: each launch rewrites
the task rows and splits and reinstalls the policy that a running one reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@haizhongzheng haizhongzheng left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. The sandboxed worker and the fixed denominator make the held-out score hard to game. We reviewed f20215b with two independent reviewers over two rounds and found nothing that blocks the merge. We pushed one small commit on top of your latest head, 54fc363:

  • The engine and press_by_number tests load model.py, which imports numpy, so they failed under .[test] alone. They now skip without numpy, like the tests beside them.
  • The README now says to run one launch at a time per checkout: each launch rewrites the task rows and splits and reinstalls the policy that a running one reads.

Noted, not changed

  • An Assets directory symlinked to a path under /usr would be readable from both sandboxes, since /usr is bound read-only. The worker's absence check does not probe the resolved Assets path.
  • Model.call starts its deadline after writing the observation, so a worker that stops reading its input can block the call until the evaluation's own timeout. This harms only that program's evaluation.

run_sample_sol.yaml and run_sample_opus.yaml came after the review and were only read in diff. Tests: the RoboDojo and ASPIRE tests, 52 passed; CI passed on 54fc363.

🤖 Generated with Claude Code

@haizhongzheng
haizhongzheng merged commit 5ead98a into Infini-AI-Lab:main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0