Repository navigation
Add RoboDojo-Sim as a benchmark - #102
Merged
haizhongzheng merged 48 commits intoNov 18, 2026
Merged
Conversation
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.
…t on an Object task
…ep's init mode is tested
…r on the host; run against RoboDojo
… 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
# Conflicts: # examples/README.md
…imit; run_luna.yaml, run.yaml on GPT-5.6-Luna
…, Spatial and Goal) for a run of a day or two
… 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
marked this pull request as ready for review
November 17, 2026 07:50
# 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
approved these changes
Nov 18, 2026
Member
There was a problem hiding this comment.
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
Assetsdirectory symlinked to a path under/usrwould be readable from both sandboxes, since/usris bound read-only. The worker's absence check does not probe the resolved Assets path. Model.callstarts 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 throughbin/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.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, andsample(one task each of generalization, memory and open).*_randomvariants are left out. The README's Protocol section states every other difference (time limits, layouts with no result).ROBODOJO_IMAGEset, 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:
Validation
examples/robodojo_sim/utils/testsandtests/methods/aspire(CI on Linux with bubblewrap; locally 12 passed, 2 skipped without bubblewrap).pre-commitandbash docs/build.shpass. A stand-in for RoboDojo (FAKE_EVAL) runs the installed policy's realModel, worker anddeploy.pyunder 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 installeddeploy.pythat grants success is refused.f57e163and its pinned XPolicyLab5d0be14, 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 ininterface.md(link6 pose, fingertip offset, the table as an IK obstacle).Smoke (
smoke_luna.yaml, GPT-5.6-Luna, 83 minutes): session, judge, Evolver andfinaltag 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): onstack_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 firstADAPTER.md. The run was stopped during the second task, when the login's plan had run out.run_sample_opus.yaml;scripts/robodojo.sh evalon 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/simsays so, and the judge raises it without host paths, recorded as ajudge_error(scored 0). A missing image or a policy installed from another commit is refused before a run.Agent layers: the
codexacting 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:
bin/simevaluations are not limited in number and are not stopped when the session ends;play_tic_tac_toe's three layout sets are the same layouts, so its score is not a held-out score.