From e38ecd3b51b0ec4be6c4219356010e996579df4a Mon Sep 17 00:00:00 2001 From: Haoran Geng <71596067+geng-haoran@users.noreply.github.com> Date: Mon, 30 Nov 2026 00:56:16 +0000 Subject: [PATCH] =?UTF-8?q?docs(release):=20fold=20both=20Unreleased=20sec?= =?UTF-8?q?tions=20into=201.0.0;=20the=20Actions=20settings=20=C2=A76=20ac?= =?UTF-8?q?tually=20needs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v1.0.0 was never tagged (only -alpha and -beta exist), so everything under [Unreleased], including #901's entry, belongs to the first release. The entries move under [1.0.0], dated today, and [Unreleased] is empty, which is what release.yml requires before it cuts a tag. RELEASING §6: the verify-submissions job needs "create and approve pull requests" on, the selected-actions allow-list and SHA pinning are spelled out, and the calls need an administration:write token (the day-to-day fine-grained token gets 403). Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01WT1rr3wpGmrFtSiGj4k5yG --- CHANGELOG.md | 96 ++++++++++++------------- RELEASING.md | 15 +++- packages/metasim/CHANGELOG.md | 127 ++++++++++++++++------------------ 3 files changed, 117 insertions(+), 121 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d02ffdf2..2672cdf4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,58 +12,7 @@ release. ## [Unreleased] -### Added -- `tools/bench/verify_submission.py` and the weekly `verify-submissions` workflow: every reproducible leaderboard submission is re-run from its files inside the evaluation image, the per-task success rates compared within a tolerance, and the outcome recorded next to it as `VERIFIED.json` (`reproduced` / `partial` / `failed`), which the leaderboard page shows; a served policy is skipped with the command that would verify it (`--policy-url` re-runs it against a server). -- `roboverse_pack/suites/manifests/tabletop-mujoco.json`, frozen by `tools/assets/freeze_suite_manifest.py --suite tabletop-mujoco` (`--check` compares the local files): the 73 files the suite's five tasks load on MuJoCo (the Franka MJCF with its meshes, one demo file per task) with their sha256 and the Hub revision they were fetched at. The suite pins its downloads to that revision, a run on other bytes is refused, and `tests/test_suites.py` checks the manifest against the local assets where they exist. -- `requirements/bench-cpu.lock.txt` (`tools/release/lock.sh`, checked for drift by the `lock` CI job): the resolved benchmark environment (MuJoCo on CPU, the engine versions pinned to the `tested` ones of `metasim/sim/_versions.py`). The evaluation container installs from it on a digest-pinned base, with the two RoboVerse packages added `--no-deps`, carries the version, commit, result schema and wire protocol in its OCI labels and its `pip freeze` in `IMAGE_FREEZE.txt`; the publish step writes the image digest to the run summary and moves `latest` for final releases only. -- `tools/release/changelog_check.py`: both CHANGELOGs must name the version being released (every PR, in `release-dry-run`) and leave nothing under `[Unreleased]` (on the tag); it also writes the release notes. `CITATION.cff` for GitHub's "Cite this repository" and Zenodo. -- The nightly gate's MuJoCo lane runs on a hosted runner inside the evaluation image built from the checkout (the Isaac Sim lane keeps the self-hosted runner, with the interpreter path as a repository variable and a fail-fast check); a red night opens or updates a `nightly-gate` tracking issue with the health table (`tools/gate/report_failure.sh`), and the README carries the gate and tests badges. -- The leaderboard page ends each submission with a provenance table, one row per result file: tier, episodes, seed, episode cap and its source, seconds per episode (the run's wall clock over its episodes, for budgeting), checkpoint hash, usage counters (model calls, tokens, tool calls) and the recorded command, so a row can be judged for comparability and re-run from the page alone; `tools/bench/leaderboard.py` is now driven by `tests/test_leaderboard_generator.py` (layout rule, schema failure, `--check`). -- `docker/eval/Dockerfile`: the evaluation container (MuJoCo on CPU, EGL / OSMesa headless rendering, entry point `python -m metasim`), built from the checkout with CPU torch; `.github/workflows/eval-image.yml` builds it on every pull request that touches it, scores the replay baseline on one task inside it with `--video`, validates the result file, and publishes `ghcr.io/roboverseorg/roboverse-eval:` on a release tag. One command in, result files out, for a CI job or an air-gapped machine with a mounted asset directory. -- `tests/test_roboverse_robot_cfg_validation.py` checks that every robot config's asset fields name a file of their format (`usd_path` a USD, `mjcf_path` an MJCF, `urdf_path` a URDF; `metasim.utils.asset_check.check_asset_fields`): the mjlab g1, go1, YAM and cartpole configs pointed `usd_path` and `urdf_path` at their MJCF, which Isaac Sim 6 spawned as an empty prim ("no rigid bodies under the prim"). -- `docs/source/dataset_benchmark/tasks/inventory.md`, generated from the task registry by `generate_task_docs.py` (every registered name with its module, by pack; the suites; the number of distinct retired tasks by family) with a `--check` step in CI. It replaces the hand-written `descriptions.md` and `task_groups.md` and the 42 per-task pages the Sphinx build used to generate under `tasks_md/`, which described retired source families with placeholder text and were in no toctree; the build-time hook is gone. -- `results/robots/`: the robot kit's result files (`--check/robots.json` from `robot check --all`, `-parity--/.json` from `robot parity`), and `generate_robot_docs.py` renders the newest of each into the Robots page (self-check and cross-engine parity tables) with a `--check` step in CI, so the robot numbers in the docs are generated like the leaderboard's. First entries: the MuJoCo sweep (42 robots, 17 pass) and the MuJoCo vs Isaac Sim 6 parity runs of 2026-11-28. -- `docs/source/start/add_a_robot.md`: the robot kit route (`robot add` from the MJCF, the six-row self-check with the new `actuators` row, `robot parity` MuJoCo vs Isaac Sim 6) with the measured Franka and YAM results and the parity sweep of every dual-asset robot (Franka, UR5e, UR10e, Z1 and Gen3 agree within 0.04 rad at 0.63 rad/s, Franka within 0.004 rad at 1.5 rad/s; H1 reported not judged; iiwa14's USD does not build); `robot_template.py` points at it. -- `FrankaCfg` docstring: the measured MuJoCo vs Isaac Sim 6 tracking agreement (within 0.005 rad), the unpinned effort limits (MJCF +-40 N m vs USD 87 / 12 N m, no `effort_limit_sim` set) and why they stay unpinned (pinning them drops the MuJoCo replay baseline of stack_cube to 0.6). -- `SECURITY.md`: private vulnerability reporting through GitHub, acknowledgement in 3 working days, coordinated disclosure within 90 days, supported versions. -- `tools/assets/check_manifest.py`: every `roboverse_data/...` literal in the content packs must exist on the Hub (or locally); runs in the `task-contract` workflow on every pull request. It would have caught the 2587 generated ManiSkill tasks whose assets never existed. -- `tests/test_task_contract_static.py`: the task contract checked in source on every pull request: unique registered names, one registration per class, at most 16 registered classes per module (variants are parameters, not generated classes), a class-level scenario or a pack base class, `traj_filepath` under `roboverse_data/`. -- `.github/workflows/nightly-gate.yml` + `tools/gate/nightly.sh`: the nightly task gate (`bench health --floor --repeat 2`) on MuJoCo and Isaac Sim 6 for every registered task, on the self-hosted GPU runner, with the health table as the job summary. -- `results/`: the results registry (one dated directory per submission, every file validated against the result schema) and `tools/bench/leaderboard.py`, which generates `docs/source/dataset_benchmark/benchmark/leaderboard.md` from it (methods x tiers per suite, per-submission tables with provenance); CI fails when the page is stale. First submission: the 2026-11-27 methods x perspectives proof of concept (45 result files). -- Three start pages (`docs/source/start/`): evaluate a policy in ten minutes, add a task, add a robot: the contract and the commands, with the gate as the review. -- `docs/source/dataset_benchmark/dataset/generate_robot_docs.py` regenerates `robots.md` from the robot configs; the hand-written table listed robots that had no config. - -### Fixed -- `tools/release/lock.sh --check` starts from the committed lock, so the lock gate is red only when the inputs changed, not whenever a transitive dependency publishes a release. `tools/assets/freeze_suite_manifest.py` hashes what the launched handler loads (robots, objects and a scene, through the same enumeration as the provenance) and resolves a demo directory by the loader's rule, so a manifest cannot disagree with the provenance of the runs it checks. -- The weekly backend-compat run could never file its issue (the `backend-compat` label did not exist) and its PyBullet lane failed on collecting a MuJoCo test module; the label is created on demand, collection errors no longer fail the lane, and the version report is uploaded as an artifact. The MetaSim pre-merge workflow's integrity check guarded a file that does not exist. -- The task registry no longer reports an import failure for `beyondmimic.tracking_g1` on an install without `wandb`: the RSL-RL tracking config imports it only when a run path has to be resolved. `.gitignore` covers `bench_results/`, `gate_out/`, coverage files, `scratch*/` and `wt/`. -- H1, H1-wrist, H1-hand and H1-simple-hand spawn standing: the four configs declare `default_position` (pelvis at 1.14 / 1.20 m) because their MJCF roots the pelvis at the origin, so a bare scenario (robot check, a gallery render, a first run on the robot) put the legs 1.1 to 1.2 m below the floor. Tasks were unaffected (their initial states carry the root pose). `tests/test_roboverse_robot_cfg_validation.py` now judges every floating-base robot with an MJCF at its default pose. -- Eight robot configs that `robot check` failed in the config row now carry what the handlers were silently falling back to: `default_joint_positions` for fetch, sawyer, unitree_dex3_1_left, kinova_gen3_robotiq_2f85, h1_simple_hand and h1_hand (the zero pose clamped into the limits, or the MJCF defaults when there is an MJCF; the Franka home pose for franka_with_gripper_extension), `joint_limits` for the 48 Shadow-hand joints of h1_hand (from its MJCF) and for google_robot_static (from its URDF). -- `MjlabG1Cfg` loads the 29-dof g1 USD and URDF on the Hub (`roboverse_data/robots/g1/`, the same joint names as its mjlab MJCF) on Isaac Sim and the URDF backends; `MjlabGo1Cfg`, `MjlabYamCfg` and `MjlabCartpoleCfg` declare no USD or URDF (none exists on the Hub) and are `n/a` on those backends instead of failing with an unrelated error. -- The iiwa14 USD on the Hub is a shell over `usd/configuration/*.usd`; MetaSim now fetches a USD's folder (and, on a USD backend, its composition), so the robot builds on Isaac Sim 6 from a fresh machine and passes `robot check --sim isaacsim`. -- Docs build warnings: the SmolVLA page linked a pi0 README outside the docs tree (now the repository link); the orphan Dreamer page described a method that is not in the tree and is removed. The build is warning-free on the pages this release touches. -- `tools/bench/leaderboard.py` skips `results/robots/` (robot check and parity runs are not benchmark results; the check crashed on them). `tools/assets/check_manifest.py` keeps checking a static `roboverse_data/...` literal when the same path also appears in an f-string elsewhere (it used to drop it). The nightly gate uploads the whole gate directory (robot sweep tables, child logs) and no longer forces `MUJOCO_GL=egl`; the entry rule in `metasim.sim.gl` decides. -- The benchmark task base asks `metasim.sim.gl.apply_headless_gl()` for a headless MuJoCo render backend instead of forcing `MUJOCO_GL=egl` on its own (one rule, probed for the library, Linux only). -- Robot configs corrected by `python -m metasim robot check` (2026-11-28 sweep of all 43 configs on MuJoCo): so_arm100, koch_1, ur5e, ur10e, lite6 and arx_l5 named a tool body (`tool0`) their MJCF does not have and now name the real last link; so_arm100, koch_1, gen3 and iiwa14 carried another arm's joint limits and now match their MJCF ranges (so_arm100's wrist default was 0.7 rad outside the reachable range); the ARX L5 gripper actuator is keyed by its joint (`joint7`). `AlohaAgilexCfg`, `ArxL5Cfg` and `Z1Cfg` are exported from `roboverse_pack.robots` (they were unreachable by name). The sweep table and the remaining backlog are in `docs/source/start/add_a_robot.md`. - -### Changed -- Docs: the landing page leads with "Evaluate a policy in ten minutes", the benchmark page and the leaderboard; `dataset_benchmark/index.md` lists the suites that exist (`bench suite list`) instead of invented ones; `benchmark/overview.md` is the canonical page on what is scored, what a result file guarantees, the baselines and how a row enters; the new `benchmark/remote_protocol.md` is the observation and action contract (paths, dtypes, shapes, units, frames per tier; routes; usage; auth; failure semantics) a served policy implements; the ten-minute page has the real install (Python range, clone, CPU torch, repository root, asset download, data and GL variables), scores ten episodes rather than one, and ends with the six-step submission; the usage page's health table names every status and its stale replay and matrix copies point at the generated leaderboard; the MetaSim README (the PyPI page) describes the monorepo install and the engines actually verified; CONTRIBUTING installs pre-commit with pip and links the task and robot guides; the README shows the first command. -- Release pipeline: the GitHub Release is cut only after PyPI accepted the wheels (or publishing was skipped on purpose through the `PYPI_PUBLISH` variable, which the notes then say), never after a failed upload; a pre-release is recognised by its PEP 440 segment, not by the letter `a` anywhere in the tag; the lock must be current. Every workflow references its actions by commit SHA with the version in a comment and runs with a read-only token unless a step needs more; the `develop` branch is gone from the triggers; the docs deploy follows a green `Tests` run on main and publishes a frozen copy per release tag. RELEASING.md §6 now describes the ruleset that actually protects `main`, the checks it must require, and the variables and secrets the pipeline reads. Dependabot gets a group for the lock. -- The leaderboard generator is the submission gate. A result file under `results//-/` must be reproducible from its contents (`metasim.bench.submission_problems`: the suite's protocol on the suite's backend, a clean commit, the recorded command, the instance-pool hash, the policy's weights or model), or the submission carries a `PROVISIONAL.md` saying why and is rendered in its own section, never pooled with or ranked against the reproducible rows. A file anywhere else under `results/` (except `results/robots/`), a submission directory that is not `-`, an unknown suite, a byte-identical duplicate or a schema failure fails the build instead of being skipped. The headline matrix judges partial task coverage against the suite's task list, every cell is escaped, each submission lists every commit its files came from (dirty trees starred) and shows the nightly runner's `VERIFIED.json` when there is one. The three existing submissions (`2026-11-27-poc`, `2026-11-28-isaacsim-twin`, `2026-11-28-il-ddpm-dit`) are marked provisional: all were produced from dirty working trees under protocol revision 1 without the command recorded, and the learned `lift_peg_upright` row was scored on a locally corrected demo file under the task's cap rather than the suite's. -- Dependency floors raised past the open advisories: `torch>=2.6` at run time, `setuptools>=78.1.1` at build time, the `robosplatter` extra no longer pins `setuptools==59.5.0`. - -### Removed -- Five more robot configs whose asset paths point outside the Hub tree or declare no asset (aloha, iiwa, ur5e_2f85, h1_2_without_hand, vega): nothing could fetch them, so no backend could load them (`RETIRED_TASKS.md`, second batch). `iiwa14` is the KUKA arm that is on the Hub. -- The pure passthrough packs `dm_control`, `gym_robotics`, `metaworld`, `myosuite` and `robosuite` (with `tools/robosuite_integration/`): they re-registered another library's `gym` ids under a RoboVerse prefix, registered no MetaSim task, bridged no data and had no tests or docs page. A pack earns its place by registering tasks the gate runs or by bridging an external benchmark's data or environments into MetaSim formats with tests and a docs page (the RoboTwin, LIBERO-plus, ManiSkill and mjlab integrations stay). `roboverse_pack/tasks/RETIRED_TASKS.md` lists them with the restore commit. -- `libero_90.kitchen_scene4_close_the_bottom_drawer_of_the_cabinet` and with it the `libero_90` pack: its demo file stores `panda_finger_joint2` in robosuite's sign (-0.034 in a [0, 0.04] joint), which the gate's `invalid` status now rejects, and with the sign mirrored into range the demos replay at 0.78 over 50 episodes (threshold 0.80). Restore commit in `RETIRED_TASKS.md`. -- Robot configs whose asset files exist neither on the Hub nor in a checkout (agibot_a2, allegrohand, ant, anymal, brainco hands, cartpole, go2, inspire hands, kinova_gen3, psihand, walker, g1_feet) and the dead `mjx_mjcf_path` of aloha / h1_body_collision; dead alternate asset paths on the kept tasks (a config now declares only files that exist). Listed in `roboverse_pack/tasks/RETIRED_TASKS.md`. -- **Task registry curated to what passes the release gate.** Every registered task class was run through `python -m metasim bench health --floor --repeat 2` (its demos replay at or above 0.80 on their own backend, the hold policy scores 0, two replays agree; demo-less RL tasks must build, step and reset) on MuJoCo, and on Isaac Sim 6 where MuJoCo cannot build the assets. 3021 of 3083 classes failed and are removed from `roboverse_pack`; 62 remain (9 demo tasks: pick_cube, stack_cube, push_cube, pull_cube, lift_peg_upright, plug_charger, rlbench.close_box, libero.pick_butter, libero_90 kitchen_scene4 close-bottom-drawer; 52 RL / dense-reward tasks). The two generated ManiSkill variant families (`pick_single_egad_*`, 1588 classes with no demos or assets on the Hub; `peg_insertion_side_*`, 999 classes whose USD assets are not on the Hub) are 86 % of the removals; the LIBERO ports (242 classes) replay their own demos at 0.00 to 0.65; the RLBench USD ports fail to build their articulations on Isaac Sim 6. Nothing is lost: `roboverse_pack/tasks/RETIRED_TASKS.md` and `retired_tasks.csv` list every retired class with its registry names, file, reason and the commit to restore it from (`git checkout 56a0e67b -- `). -- With the tasks: the SIMPLER (SAPIEN-only) task package and its parity tools, the bimanual multi-agent dataset example and page, the robosuite wrappers, and the tests that existed only for retired tasks. `docs/source/dataset_benchmark/benchmark/results.md` no longer carries the 2025 imitation-learning table (unreproducible under the protocol; kept in git history) and points at the methods x perspectives matrix instead. - -### Added -- `roboverse_learn/vla/bench_policy.py`: `EEDeltaPolicy` turns an end-effector-delta VLA (image + instruction -> translation, rotation, gripper) into joint targets through the robot's kinematics, and `OpenVLAPolicy` wraps `openvla/openvla-7b` for `python -m metasim bench serve`, so an off-the-shelf generalist is scored on the tabletop suite under the `visual` tier with the same protocol as every other method. - -## [1.0.0] - 2026-11-27 +## [1.0.0] - 2026-11-30 ### Added - `tests/test_kernel_boundary.py`: content reads simulators through `BaseSimHandler`'s public surface; reach-ins past it (`handler.physics`, `handler.gym`, `handler.scene`, `object_ids`, …) are counted per content area and held to a budget that only goes down (354 in 11 areas at 1.0.0, listed in MetaSim's `concept/kernel` page). @@ -85,6 +34,26 @@ release. failing when optional deps or `roboverse_data` assets are absent. - `RELEASING.md`: branches, PR gates, SemVer, release checklist, PyPI publishing, branch protection. `pr-title.yml`, `changelog.yml`, `release.yml`, `CODEOWNERS`. +- `tools/bench/verify_submission.py` and the weekly `verify-submissions` workflow: every reproducible leaderboard submission is re-run from its files inside the evaluation image, the per-task success rates compared within a tolerance, and the outcome recorded next to it as `VERIFIED.json` (`reproduced` / `partial` / `failed`), which the leaderboard page shows; a served policy is skipped with the command that would verify it (`--policy-url` re-runs it against a server). +- `roboverse_pack/suites/manifests/tabletop-mujoco.json`, frozen by `tools/assets/freeze_suite_manifest.py --suite tabletop-mujoco` (`--check` compares the local files): the 73 files the suite's five tasks load on MuJoCo (the Franka MJCF with its meshes, one demo file per task) with their sha256 and the Hub revision they were fetched at. The suite pins its downloads to that revision, a run on other bytes is refused, and `tests/test_suites.py` checks the manifest against the local assets where they exist. +- `requirements/bench-cpu.lock.txt` (`tools/release/lock.sh`, checked for drift by the `lock` CI job): the resolved benchmark environment (MuJoCo on CPU, the engine versions pinned to the `tested` ones of `metasim/sim/_versions.py`). The evaluation container installs from it on a digest-pinned base, with the two RoboVerse packages added `--no-deps`, carries the version, commit, result schema and wire protocol in its OCI labels and its `pip freeze` in `IMAGE_FREEZE.txt`; the publish step writes the image digest to the run summary and moves `latest` for final releases only. +- `tools/release/changelog_check.py`: both CHANGELOGs must name the version being released (every PR, in `release-dry-run`) and leave nothing under `[Unreleased]` (on the tag); it also writes the release notes. `CITATION.cff` for GitHub's "Cite this repository" and Zenodo. +- The nightly gate's MuJoCo lane runs on a hosted runner inside the evaluation image built from the checkout (the Isaac Sim lane keeps the self-hosted runner, with the interpreter path as a repository variable and a fail-fast check); a red night opens or updates a `nightly-gate` tracking issue with the health table (`tools/gate/report_failure.sh`), and the README carries the gate and tests badges. +- The leaderboard page ends each submission with a provenance table, one row per result file: tier, episodes, seed, episode cap and its source, seconds per episode (the run's wall clock over its episodes, for budgeting), checkpoint hash, usage counters (model calls, tokens, tool calls) and the recorded command, so a row can be judged for comparability and re-run from the page alone; `tools/bench/leaderboard.py` is now driven by `tests/test_leaderboard_generator.py` (layout rule, schema failure, `--check`). +- `docker/eval/Dockerfile`: the evaluation container (MuJoCo on CPU, EGL / OSMesa headless rendering, entry point `python -m metasim`), built from the checkout with CPU torch; `.github/workflows/eval-image.yml` builds it on every pull request that touches it, scores the replay baseline on one task inside it with `--video`, validates the result file, and publishes `ghcr.io/roboverseorg/roboverse-eval:` on a release tag. One command in, result files out, for a CI job or an air-gapped machine with a mounted asset directory. +- `tests/test_roboverse_robot_cfg_validation.py` checks that every robot config's asset fields name a file of their format (`usd_path` a USD, `mjcf_path` an MJCF, `urdf_path` a URDF; `metasim.utils.asset_check.check_asset_fields`): the mjlab g1, go1, YAM and cartpole configs pointed `usd_path` and `urdf_path` at their MJCF, which Isaac Sim 6 spawned as an empty prim ("no rigid bodies under the prim"). +- `docs/source/dataset_benchmark/tasks/inventory.md`, generated from the task registry by `generate_task_docs.py` (every registered name with its module, by pack; the suites; the number of distinct retired tasks by family) with a `--check` step in CI. It replaces the hand-written `descriptions.md` and `task_groups.md` and the 42 per-task pages the Sphinx build used to generate under `tasks_md/`, which described retired source families with placeholder text and were in no toctree; the build-time hook is gone. +- `results/robots/`: the robot kit's result files (`--check/robots.json` from `robot check --all`, `-parity--/.json` from `robot parity`), and `generate_robot_docs.py` renders the newest of each into the Robots page (self-check and cross-engine parity tables) with a `--check` step in CI, so the robot numbers in the docs are generated like the leaderboard's. First entries: the MuJoCo sweep (42 robots, 17 pass) and the MuJoCo vs Isaac Sim 6 parity runs of 2026-11-28. +- `docs/source/start/add_a_robot.md`: the robot kit route (`robot add` from the MJCF, the six-row self-check with the new `actuators` row, `robot parity` MuJoCo vs Isaac Sim 6) with the measured Franka and YAM results and the parity sweep of every dual-asset robot (Franka, UR5e, UR10e, Z1 and Gen3 agree within 0.04 rad at 0.63 rad/s, Franka within 0.004 rad at 1.5 rad/s; H1 reported not judged; iiwa14's USD does not build); `robot_template.py` points at it. +- `FrankaCfg` docstring: the measured MuJoCo vs Isaac Sim 6 tracking agreement (within 0.005 rad), the unpinned effort limits (MJCF +-40 N m vs USD 87 / 12 N m, no `effort_limit_sim` set) and why they stay unpinned (pinning them drops the MuJoCo replay baseline of stack_cube to 0.6). +- `SECURITY.md`: private vulnerability reporting through GitHub, acknowledgement in 3 working days, coordinated disclosure within 90 days, supported versions. +- `tools/assets/check_manifest.py`: every `roboverse_data/...` literal in the content packs must exist on the Hub (or locally); runs in the `task-contract` workflow on every pull request. It would have caught the 2587 generated ManiSkill tasks whose assets never existed. +- `tests/test_task_contract_static.py`: the task contract checked in source on every pull request: unique registered names, one registration per class, at most 16 registered classes per module (variants are parameters, not generated classes), a class-level scenario or a pack base class, `traj_filepath` under `roboverse_data/`. +- `.github/workflows/nightly-gate.yml` + `tools/gate/nightly.sh`: the nightly task gate (`bench health --floor --repeat 2`) on MuJoCo and Isaac Sim 6 for every registered task, on the self-hosted GPU runner, with the health table as the job summary. +- `results/`: the results registry (one dated directory per submission, every file validated against the result schema) and `tools/bench/leaderboard.py`, which generates `docs/source/dataset_benchmark/benchmark/leaderboard.md` from it (methods x tiers per suite, per-submission tables with provenance); CI fails when the page is stale. First submission: the 2026-11-27 methods x perspectives proof of concept (45 result files). +- Three start pages (`docs/source/start/`): evaluate a policy in ten minutes, add a task, add a robot: the contract and the commands, with the gate as the review. +- `docs/source/dataset_benchmark/dataset/generate_robot_docs.py` regenerates `robots.md` from the robot configs; the hand-written table listed robots that had no config. +- `roboverse_learn/vla/bench_policy.py`: `EEDeltaPolicy` turns an end-effector-delta VLA (image + instruction -> translation, rotation, gripper) into joint targets through the robot's kinematics, and `OpenVLAPolicy` wraps `openvla/openvla-7b` for `python -m metasim bench serve`, so an off-the-shelf generalist is scored on the tabletop suite under the `visual` tier with the same protocol as every other method. ### Changed - `tools/install/isaacsim6.sh` replaces `isaacsim5.sh`: the Isaac backend is installed as Isaac Sim 6.0.1 + Isaac Lab release/3.0.0 (Python 3.12, torch 2.11+cu130), verified on RTX 5090 with the 595 driver. See MetaSim's changelog for the handler changes. @@ -108,6 +77,18 @@ release. - MetaSim dependency renamed to `roboverse-metasim @ git+...` (MetaSim's distribution was renamed; import name `metasim` unchanged). The pin moves to a MetaSim tag with the next release. +- Docs: the landing page leads with "Evaluate a policy in ten minutes", the benchmark page and the leaderboard; `dataset_benchmark/index.md` lists the suites that exist (`bench suite list`) instead of invented ones; `benchmark/overview.md` is the canonical page on what is scored, what a result file guarantees, the baselines and how a row enters; the new `benchmark/remote_protocol.md` is the observation and action contract (paths, dtypes, shapes, units, frames per tier; routes; usage; auth; failure semantics) a served policy implements; the ten-minute page has the real install (Python range, clone, CPU torch, repository root, asset download, data and GL variables), scores ten episodes rather than one, and ends with the six-step submission; the usage page's health table names every status and its stale replay and matrix copies point at the generated leaderboard; the MetaSim README (the PyPI page) describes the monorepo install and the engines actually verified; CONTRIBUTING installs pre-commit with pip and links the task and robot guides; the README shows the first command. +- Release pipeline: the GitHub Release is cut only after PyPI accepted the wheels (or publishing was skipped on purpose through the `PYPI_PUBLISH` variable, which the notes then say), never after a failed upload; a pre-release is recognised by its PEP 440 segment, not by the letter `a` anywhere in the tag; the lock must be current. Every workflow references its actions by commit SHA with the version in a comment and runs with a read-only token unless a step needs more; the `develop` branch is gone from the triggers; the docs deploy follows a green `Tests` run on main and publishes a frozen copy per release tag. RELEASING.md §6 now describes the ruleset that actually protects `main`, the checks it must require, and the variables and secrets the pipeline reads. Dependabot gets a group for the lock. +- The leaderboard generator is the submission gate. A result file under `results//-/` must be reproducible from its contents (`metasim.bench.submission_problems`: the suite's protocol on the suite's backend, a clean commit, the recorded command, the instance-pool hash, the policy's weights or model), or the submission carries a `PROVISIONAL.md` saying why and is rendered in its own section, never pooled with or ranked against the reproducible rows. A file anywhere else under `results/` (except `results/robots/`), a submission directory that is not `-`, an unknown suite, a byte-identical duplicate or a schema failure fails the build instead of being skipped. The headline matrix judges partial task coverage against the suite's task list, every cell is escaped, each submission lists every commit its files came from (dirty trees starred) and shows the nightly runner's `VERIFIED.json` when there is one. The three existing submissions (`2026-11-27-poc`, `2026-11-28-isaacsim-twin`, `2026-11-28-il-ddpm-dit`) are marked provisional: all were produced from dirty working trees under protocol revision 1 without the command recorded, and the learned `lift_peg_upright` row was scored on a locally corrected demo file under the task's cap rather than the suite's. +- Dependency floors raised past the open advisories: `torch>=2.6` at run time, `setuptools>=78.1.1` at build time, the `robosplatter` extra no longer pins `setuptools==59.5.0`. + +### Removed +- Five more robot configs whose asset paths point outside the Hub tree or declare no asset (aloha, iiwa, ur5e_2f85, h1_2_without_hand, vega): nothing could fetch them, so no backend could load them (`RETIRED_TASKS.md`, second batch). `iiwa14` is the KUKA arm that is on the Hub. +- The pure passthrough packs `dm_control`, `gym_robotics`, `metaworld`, `myosuite` and `robosuite` (with `tools/robosuite_integration/`): they re-registered another library's `gym` ids under a RoboVerse prefix, registered no MetaSim task, bridged no data and had no tests or docs page. A pack earns its place by registering tasks the gate runs or by bridging an external benchmark's data or environments into MetaSim formats with tests and a docs page (the RoboTwin, LIBERO-plus, ManiSkill and mjlab integrations stay). `roboverse_pack/tasks/RETIRED_TASKS.md` lists them with the restore commit. +- `libero_90.kitchen_scene4_close_the_bottom_drawer_of_the_cabinet` and with it the `libero_90` pack: its demo file stores `panda_finger_joint2` in robosuite's sign (-0.034 in a [0, 0.04] joint), which the gate's `invalid` status now rejects, and with the sign mirrored into range the demos replay at 0.78 over 50 episodes (threshold 0.80). Restore commit in `RETIRED_TASKS.md`. +- Robot configs whose asset files exist neither on the Hub nor in a checkout (agibot_a2, allegrohand, ant, anymal, brainco hands, cartpole, go2, inspire hands, kinova_gen3, psihand, walker, g1_feet) and the dead `mjx_mjcf_path` of aloha / h1_body_collision; dead alternate asset paths on the kept tasks (a config now declares only files that exist). Listed in `roboverse_pack/tasks/RETIRED_TASKS.md`. +- **Task registry curated to what passes the release gate.** Every registered task class was run through `python -m metasim bench health --floor --repeat 2` (its demos replay at or above 0.80 on their own backend, the hold policy scores 0, two replays agree; demo-less RL tasks must build, step and reset) on MuJoCo, and on Isaac Sim 6 where MuJoCo cannot build the assets. 3021 of 3083 classes failed and are removed from `roboverse_pack`; 62 remain (9 demo tasks: pick_cube, stack_cube, push_cube, pull_cube, lift_peg_upright, plug_charger, rlbench.close_box, libero.pick_butter, libero_90 kitchen_scene4 close-bottom-drawer; 52 RL / dense-reward tasks). The two generated ManiSkill variant families (`pick_single_egad_*`, 1588 classes with no demos or assets on the Hub; `peg_insertion_side_*`, 999 classes whose USD assets are not on the Hub) are 86 % of the removals; the LIBERO ports (242 classes) replay their own demos at 0.00 to 0.65; the RLBench USD ports fail to build their articulations on Isaac Sim 6. Nothing is lost: `roboverse_pack/tasks/RETIRED_TASKS.md` and `retired_tasks.csv` list every retired class with its registry names, file, reason and the commit to restore it from (`git checkout 56a0e67b -- `). +- With the tasks: the SIMPLER (SAPIEN-only) task package and its parity tools, the bimanual multi-agent dataset example and page, the robosuite wrappers, and the tests that existed only for retired tasks. `docs/source/dataset_benchmark/benchmark/results.md` no longer carries the 2025 imitation-learning table (unreproducible under the protocol; kept in git history) and points at the methods x perspectives matrix instead. ### Fixed - Every comment, docstring, doc page and SVG id in the repository is English (24 files carried Chinese comments, full-width punctuation or Illustrator layer names; `metasim/utils/viser/README.md` is rewritten in English). `tests/test_repo_text_is_english.py` keeps it that way. @@ -161,6 +142,17 @@ release. - Red flags: SSH submodule URL, dangling `release/metasim` symlink, silent `except: pass` around passthrough registration, hard-coded personal paths in scripts/tests, untruthful `requires-python >= 3.8` (now 3.10), wheels missing LIBERO json/npz bundles, stale ruff ignores. +- `tools/release/lock.sh --check` starts from the committed lock, so the lock gate is red only when the inputs changed, not whenever a transitive dependency publishes a release. `tools/assets/freeze_suite_manifest.py` hashes what the launched handler loads (robots, objects and a scene, through the same enumeration as the provenance) and resolves a demo directory by the loader's rule, so a manifest cannot disagree with the provenance of the runs it checks. +- The weekly backend-compat run could never file its issue (the `backend-compat` label did not exist) and its PyBullet lane failed on collecting a MuJoCo test module; the label is created on demand, collection errors no longer fail the lane, and the version report is uploaded as an artifact. The MetaSim pre-merge workflow's integrity check guarded a file that does not exist. +- The task registry no longer reports an import failure for `beyondmimic.tracking_g1` on an install without `wandb`: the RSL-RL tracking config imports it only when a run path has to be resolved. `.gitignore` covers `bench_results/`, `gate_out/`, coverage files, `scratch*/` and `wt/`. +- H1, H1-wrist, H1-hand and H1-simple-hand spawn standing: the four configs declare `default_position` (pelvis at 1.14 / 1.20 m) because their MJCF roots the pelvis at the origin, so a bare scenario (robot check, a gallery render, a first run on the robot) put the legs 1.1 to 1.2 m below the floor. Tasks were unaffected (their initial states carry the root pose). `tests/test_roboverse_robot_cfg_validation.py` now judges every floating-base robot with an MJCF at its default pose. +- Eight robot configs that `robot check` failed in the config row now carry what the handlers were silently falling back to: `default_joint_positions` for fetch, sawyer, unitree_dex3_1_left, kinova_gen3_robotiq_2f85, h1_simple_hand and h1_hand (the zero pose clamped into the limits, or the MJCF defaults when there is an MJCF; the Franka home pose for franka_with_gripper_extension), `joint_limits` for the 48 Shadow-hand joints of h1_hand (from its MJCF) and for google_robot_static (from its URDF). +- `MjlabG1Cfg` loads the 29-dof g1 USD and URDF on the Hub (`roboverse_data/robots/g1/`, the same joint names as its mjlab MJCF) on Isaac Sim and the URDF backends; `MjlabGo1Cfg`, `MjlabYamCfg` and `MjlabCartpoleCfg` declare no USD or URDF (none exists on the Hub) and are `n/a` on those backends instead of failing with an unrelated error. +- The iiwa14 USD on the Hub is a shell over `usd/configuration/*.usd`; MetaSim now fetches a USD's folder (and, on a USD backend, its composition), so the robot builds on Isaac Sim 6 from a fresh machine and passes `robot check --sim isaacsim`. +- Docs build warnings: the SmolVLA page linked a pi0 README outside the docs tree (now the repository link); the orphan Dreamer page described a method that is not in the tree and is removed. The build is warning-free on the pages this release touches. +- `tools/bench/leaderboard.py` skips `results/robots/` (robot check and parity runs are not benchmark results; the check crashed on them). `tools/assets/check_manifest.py` keeps checking a static `roboverse_data/...` literal when the same path also appears in an f-string elsewhere (it used to drop it). The nightly gate uploads the whole gate directory (robot sweep tables, child logs) and no longer forces `MUJOCO_GL=egl`; the entry rule in `metasim.sim.gl` decides. +- The benchmark task base asks `metasim.sim.gl.apply_headless_gl()` for a headless MuJoCo render backend instead of forcing `MUJOCO_GL=egl` on its own (one rule, probed for the library, Linux only). +- Robot configs corrected by `python -m metasim robot check` (2026-11-28 sweep of all 43 configs on MuJoCo): so_arm100, koch_1, ur5e, ur10e, lite6 and arx_l5 named a tool body (`tool0`) their MJCF does not have and now name the real last link; so_arm100, koch_1, gen3 and iiwa14 carried another arm's joint limits and now match their MJCF ranges (so_arm100's wrist default was 0.7 rad outside the reachable range); the ARX L5 gripper actuator is keyed by its joint (`joint7`). `AlohaAgilexCfg`, `ArxL5Cfg` and `Z1Cfg` are exported from `roboverse_pack.robots` (they were unreachable by name). The sweep table and the remaining backlog are in `docs/source/start/add_a_robot.md`. ### Security - `hydra-core` pinned to 1.3.4 in the dp / vita / fm IL policy requirements (Dependabot: `hydra.utils.instantiate` code execution with untrusted configs in <=1.3.3). diff --git a/RELEASING.md b/RELEASING.md index d30b221b0..0d0a7ab1a 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -114,11 +114,22 @@ JSON gh api -X PATCH repos/RoboVerseOrg/RoboVerse -F allow_squash_merge=true -F allow_merge_commit=false \ -F allow_rebase_merge=false -F delete_branch_on_merge=true -f squash_merge_commit_title=PR_TITLE \ -f squash_merge_commit_message=PR_BODY -# Actions: read-only default token, only the actions this repo uses, SHA pinning required +# Actions: read-only default token (jobs that write declare it); "create and approve pull requests" on, so the +# weekly verify-submissions job can open its PR; only the actions this repo uses; SHA pinning required gh api -X PUT repos/RoboVerseOrg/RoboVerse/actions/permissions/workflow -f default_workflow_permissions=read \ - -F can_approve_pull_request_reviews=false + -F can_approve_pull_request_reviews=true +gh api -X PUT repos/RoboVerseOrg/RoboVerse/actions/permissions -F enabled=true -f allowed_actions=selected \ + -F sha_pinning_required=true +gh api -X PUT repos/RoboVerseOrg/RoboVerse/actions/permissions/selected-actions -F github_owned_allowed=true \ + -F verified_allowed=true -f 'patterns_allowed[]=amannn/action-semantic-pull-request@*' \ + -f 'patterns_allowed[]=softprops/action-gh-release@*' -f 'patterns_allowed[]=pypa/gh-action-pypi-publish@*' \ + -f 'patterns_allowed[]=cloudflare/wrangler-action@*' ``` +Every call above needs a token with the `administration:write` repository permission (a classic token with +`repo` + `admin:repo_hook` is not enough; the fine-grained one used for day-to-day work gets `403 Resource not +accessible by personal access token`). The Settings UI does the same with the account's own rights. + Also under Settings → Code security: secret scanning, push protection, Dependabot security updates and private vulnerability reporting (SECURITY.md points at it) all on. The workflows reference every action by commit SHA with the version in a trailing comment; Dependabot keeps both current. diff --git a/packages/metasim/CHANGELOG.md b/packages/metasim/CHANGELOG.md index 5425c73f1..d952d4a6f 100644 --- a/packages/metasim/CHANGELOG.md +++ b/packages/metasim/CHANGELOG.md @@ -7,73 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Added -- `evaluate` validates the instance pool's initial states against the robot's joint limits and records the offenders in `notes.instance_problems` (a warning at run time); `submission_problems` refuses such a result, so a suite run on a demo file with an unphysical start (the shipped `lift_peg_upright` demos) is scored but cannot enter the leaderboard. Before, only `bench health` judged this. -- `bench run|suite run|serve --checkpoint-url URL`: where the hashed checkpoint can be fetched, recorded as `policy.checkpoint_url` next to `checkpoint_sha256` (a leaderboard row of a learned policy requires both; nothing wrote the URL before). `bench submit` keeps two output directories that share file names (two seeds of one policy) under `__`, decides every destination before copying, and never replaces a file with other contents (`--force` adds to a submission). -- `bench summarize --json` and `bench matrix [--suite NAME] --json` write the pooled rows and the methods x tiers cells as data instead of Markdown (`metasim.bench.summarize_rows`, `metasim.bench.matrix_cells`; the Markdown tables are rendered from them). `bench matrix --suite` judges the macros against the suite's full task list. -- Assets can be pinned. `metasim.utils.hf_util.set_hub_revision` / `ROBOVERSE_HUB_REVISION` make every Hub download (files, folders, companions) come from one revision, and every result records it (`provenance.hub`). `BenchmarkSuite.manifest` carries a suite's frozen asset manifest (every file its tasks load with sha256 and size, plus the Hub revision); `bench suite run` pins downloads to it and exits 1 when the loaded assets or the demo file differ (`--allow-unpinned-assets` for a local experiment; the result then carries `notes.asset_check`), and `metasim.bench.manifest_problems` / `submission_problems` refuse such a result for the leaderboard. Results record the demo file the instances came from (`notes.demo_file`: path, sha256, size). -- `python -m metasim bench submit --suite --name [--results-dir results] [--provisional WHY] [--force]`: assembles a leaderboard submission directory from a `bench suite run` output, runs the schema and suite checks the page build runs, writes `PROVISIONAL.md` when asked, and prints the pooled tables the page will show with the next step (commit, regenerate, pull request). -- `python -m metasim -v` (or `LOGURU_LEVEL`) for debug output; the default log level is now INFO, so one episode of `bench run` prints its episode and score lines instead of 300 per-step checker messages (the per-step distance log is at TRACE). `doctor` prints a legend for `ok` / `untested` / `missing` / `unsupported`. -- `metasim.bench.PolicyError`: a policy failure (a served policy's time-out, 5xx, lost connection or malformed reply; an adapter's crash) ends the episodes in flight as time-outs with `EpisodeResult.policy_error` set and the run goes on, so an unstable policy loses the episode instead of the run; after `--max-policy-errors` (default 3) consecutive failures the run aborts. `bench run|suite run --policy-timeout S --policy-retries N` reach the server settings that were fixed at 180 s / 3 before. -- Wire protocol additions, all optional and advertised in `/metadata` as `features`: `/act` replies may carry `"usage"` deltas (`llm_calls`, `llm_tokens`, `tool_calls`), which `RemotePolicy.usage()` sums so the agent tiers work with a served policy (the result records `policy.usage_source: "self-reported"`); `bench serve --token` / `RemotePolicy(token=...)` (both default to `ROBOVERSE_BENCH_TOKEN`) require `Authorization: Bearer` on every request, and `bench serve` warns when bound beyond localhost without one. A policy's `metadata` dict (model id, weights revision) is merged into the result's policy record and into `/metadata`. -- `bench run|suite run` write an agent policy's decision transcripts to `.transcripts.jsonl` (`notes["transcripts"]`), and `--demos` records the override as `{path, sha256, bytes, files}` instead of a bare path. -- `metasim.bench.submission_problems(result, suite)` and `python -m metasim bench validate --suite [--json] `: what the leaderboard requires of a row beyond the schema: the task is in the suite and was run by `bench suite run` under the suite's protocol (any access tier) on the suite's backend, from a clean commit, with the command, the instance-pool hash and, for a learned policy, its weights (`checkpoint_url` + hash, or the served policy's checkpoint / model revision) recorded, and for an agent its model id. `EpisodeResult.policy_error` is reserved for a policy failure that ends an episode. -- Every result `bench run`, `bench suite run` and `bench health` write records the command that produced it (`notes["command"]`, e.g. `python -m metasim bench run --task pick_cube ...`), next to the git commit, the asset hashes and the backend versions the provenance block already carried; a leaderboard row can now be re-run from its file alone. Every `python -m metasim` entry point (`bench list|access|summarize|matrix|validate|suite list|suite report|suite run|health|record|conformance|serve`, `robot list`, the robot sweep table) is driven end to end by `metasim/test/test_cli_entry_general.py` with fakes in place of the simulator and the policy server, so a break in the wiring between parser and library fails the general suite. -- `python -m metasim bench run|health|suite run --video DIR [--video-camera NAME] [--video-episodes N]` (`metasim.bench.video.EpisodeVideoRecorder`): one mp4 per scored episode from a camera the task renders, exactly as rendered for the policy (the `front` preset is added to a task without a camera); files are numbered by episode index and listed in the result's `notes["videos"]`. The evidence behind a leaderboard row or a gate verdict, without a separate rendering tool. -- `metasim.utils.asset_check`: the asset rules decided from the paths alone, before a backend starts. `check_asset_fields(cfg)` requires each asset field to name a file of its format (`usd_path` a `.usd/.usda/.usdc/.usdz`, `mjcf_path` / `mjx_mjcf_path` an `.xml`, `urdf_path` a `.urdf`); `robot check` applies it in the config row (a defect on every backend), so `usd_path` pointing at an MJCF is named instead of Isaac Sim's "no rigid bodies under the prim". `usd_dependencies(path)` / `fetch_usd_dependencies(path)` walk a USD's composition (sublayers, references, payloads, recursively) with the `pxr` the process already has and fetch what is missing from the Hub; the assets row reports an unresolved payload, or that the composition was not judged when no `pxr` is loaded. -- `bench health` status `invalid` and `metasim.bench.validate_instances`: an initial state that puts a robot joint outside its limits fails the gate, and `bench record` refuses to record from one. Every consumer resolves an unphysical start differently (the gate replays it as is, the IL collector settles it first), so the same demos scored 1.0 in one and 0.45 in the other; the shipped `lift_peg_upright` demos (fingers at 1.0 in a 0 to 0.04 range) are the case that found it. -- `python -m metasim bench conformance --policy-url [--robot ]` (`metasim.bench.conformance`): checks a policy server against the `roboverse.bench.remote/1` wire protocol without a simulator (metadata, reset, act shape and finiteness, action chunks, partial reset, malformed body, unknown path; determinism, action box and latency reported). The server now answers 400, not 500, to a body it cannot decode. -- `robot check` rows and reports carry `applicable`: a robot that declares no asset for the backend (a URDF-only robot on MuJoCo, a robot without a USD on Isaac Sim) and a robot without an MJCF in the kinematics row are reported `n/a`; whether a robot is a candidate for the backend is read from the assets row alone (the kinematics row without an MJCF is "not judged", like limits and actuators, so a USD-only robot on Isaac Sim still gets its hold check), and a robot is `n/a` only when no applicable row fails (a config defect fails it on every backend). The nightly robot sweep is red for config defects and for robots that are candidates for the engine and fail, not for robots the engine cannot load at all. In `--isolate` mode the child runs `--hold-only` and the parent keeps its own cheap rows, so nothing is checked twice. -- `python -m metasim robot list` and `robot check --all [--out-dir DIR]` (`metasim.utils.setup_util.list_robots`): every robot config the robot packages define, walking each submodule so an unexported class is listed too; the sweep prints one table (a row per robot, a column per check), writes `robots.json` / `robots.md`, keeps going past a robot that cannot be resolved, and exits 1 when any robot fails. `--isolate auto|always|never` runs each robot's simulator check in its own process on backends that boot once per process (Isaac Sim), with the cheap rows done in the parent so a robot without an asset for that backend costs no boot. The nightly gate runs the sweep on both engines. -- `python -m metasim robot add --mjcf --name ` (`metasim.utils.robot_kit`): generates a `RobotCfg` file from the MJCF (joints and ranges, the MJCF actuators' servo gains and force ranges, a motor as an effort-controlled joint, the `home` keyframe or `--default joint=value` as the default pose, gripper joints by type and name, the tool body as their common parent, a grasp / tool-centre site as `curobo_tcp_rel_pos`; an ``-coupled joint is passive and mirrors its partner), marks every guess `TODO`, imports the file back and runs the self-check on it. The generated Franka and YAM configs reproduce the hand-written limits, gains and tool bodies. -- `robot check` row `actuators` (`check_actuators`): every joint the config drives must exist in the MJCF and be driven by at most one MJCF actuator; a tendon- or site-driven actuator (no action slot) is reported. The actuator's name is free (an actuator named differently from its joint is listed as matched by transmission). `check_robot_cfg(cfg)` runs the checks on a config object. -- `python -m metasim robot parity --sims mujoco isaacsim` (`track_trajectory`, `compare_traces`): the same canned joint trajectory (50 steps settling, then 400 control steps of a phase-shifted sinusoid inside the limits, amplitude capped at 0.3 rad and ramped in over the first period so every joint starts at its default, at a pinned 1 ms x 15 control step) tracked on two backends, compared joint by joint: max and RMS cross-engine difference, each engine's tracking error, a verdict against `--tol` (0.05 rad, hinge) / `--tol-slide` (5 mm, slide). `--save` / `--load` carry a trace between environments when the two engines cannot share a process. -- `python -m metasim robot check [--sim]` (`metasim.utils.robot_check`): the robot self-check a config must pass before a task is built on it: limits and defaults for every actuator, the backend's asset files exist (the asset folder is fetched from the Hub), the MJCF loads and the end-effector body is found with finite forward kinematics, the config's joint limits agree with the MJCF's ranges, and holding the default pose for 200 steps keeps every joint within 0.05 rad and a fixed base within 1 cm. Exit 1 on any failure; `--json` for tooling. -- `python -m metasim bench suite run --isolate auto|always|never`: on a backend that boots once per process (Isaac Sim) each suite task is scored in a child `bench run` with the entry's protocol as flags, and its result file is collected; a child that exits without a result is that task's failure. -- `python -m metasim bench record`: record demos with any policy (the scripted skills by default) into the `{robot: [demos]}` file the task bases load and the gate replays; `bench run` / `bench health --demos PATH` evaluate against another demo file than the task's own, so a recorded set is gated before it is published (`metasim.bench.record_demos`, `RecordingPolicy`, `flatten_initial_state`). -- `python -m metasim bench health --floor --repeat N`: a passing replay must also survive the hold policy scoring zero (`unreliable` otherwise: the checker accepts the initial state) and N identical replays of the same instances (`flaky` otherwise); both fail the gate. -- `python -m metasim bench run|suite run --camera ` adds a named camera (`front`, `side`, `top`; `metasim.bench.cameras.CAMERA_PRESETS`) to a task whose scenario has none, so the visual access tiers have something to observe; the preset names are recorded in the result's `notes["cameras"]`. -- `metasim.bench.skills`: scripted manipulation skills on the policy contract (`ArmModel`: forward kinematics and damped-least-squares IK from the robot's own MJCF; `MoveTo`, `MoveJoints`, `Gripper`; `pick`, `place_on`, `push_to`, `stand_upright` plans) and `ScriptedPolicy`, the privileged "knows the poses" baseline: on the tabletop-mujoco suite it scores 0.90 task-macro over 10 episodes per task (pick 1.0, stack 0.9, push 1.0, pull 0.7, peg 0.9) against the replay ceiling of 0.96. -- `metasim.bench.agent.LLMAgentPolicy`: a language-model agent (Anthropic Messages API, tool use) that plans with the skills as tools and reports `llm_calls` / `llm_tokens` / `tool_calls` for the tier budgets. Under `agent-privileged` (poses + image) it solves the suite with about one model call per episode; under `agent-skills` (image only) it has to estimate positions from the picture and scores near zero, which is the gap the tier is meant to measure. -- `python -m metasim bench matrix `: methods x information-access tiers in one table (task-macro success, task and episode counts, partial task sets starred) plus the per-task rows with Wilson intervals; `BenchmarkResult.policy["family"]` records a policy's method family (`vla`, `il`, `rl`, `agent`, `scripted`, `baseline`) when the policy declares one; `bench serve` advertises it in `/metadata` and `RemotePolicy` carries it, so a served policy is recorded like a local one. - -### Fixed -- A pinned Hub revision (`set_hub_revision`, a suite manifest) is applied to the repository it is a commit of (`REPO_ID`); the mirror repositories are read at their default branch instead of failing with a revision that does not exist there (the manifest hashes still catch a file that differs). `evaluate` refuses, before the first episode, a task, robot or policy name the result file could not carry (the saved file would have been refused on load, after the run). The demo file a result records (`notes.demo_file`) and the manifest freezer resolve a demo directory by the loader's own rule (`_v2.`, `.`, `.npz`), not only `_v2.pkl.gz`, and the freezer hashes what the launched handler loads (robots, objects and a scene) through the same enumeration as the provenance. `--max-policy-errors N` aborts on the Nth consecutive policy failure, as its help says (it tolerated N and aborted on the next). The policy server compares its bearer token in constant time. -- `check_and_download_single` fetches a USD's whole folder from the Hub instead of the one file, and resolves its composition once a USD backend is up: a robot USD is often a shell over `configuration/*.usd` next to it (iiwa14 on the Hub), and the single-file fetch gave Isaac Sim a stage with no rigid bodies. The probe never imports a second `pxr` into a process that will start Isaac Sim (the pip `usd-core` build and the kit build cannot coexist; the launch then fails inside `omni.usd`). -- `validate_instances` (the `invalid` gate status) tolerates 1e-4 outside a joint limit: recorded states went through float32, and the RLBench close_box demos sit 1.3e-6 above the 0.04 m finger limit, which the first nightly run on MuJoCo reported as `invalid`. A finger at 1.0 or -0.034 is still invalid. -- `metasim.bench.instance_pool`: a task whose demo file does not exist yet evaluates (and records) from its own initial states with a warning instead of refusing; a demo file without the robot's entry is still an error. `robot check`: a handler whose `launch()` raises is closed with the others; the two MJCF checks share one parse. `robot check --all --isolate`: a stale child report is removed before the child runs, and the hand-off directory is cleaned up when no `--out-dir` is given. -- `bench suite run` removes a stale `errors.json` when a re-run into the same directory has no failures (found by the new end-to-end CLI tests, which now also cover `suite run` and `record`). -- `metasim.sim.gl`: one rule for MuJoCo's headless render backend, applied once at the process entry (`python -m metasim`), by the MuJoCo backend package before `mujoco` is imported, and by content code that builds a handler headless. On Linux with no display, nothing asked for and a loadable libEGL (or libOSMesa) it sets `MUJOCO_GL=egl` (`osmesa`); otherwise MuJoCo's default stands. Before, MuJoCo's GLFW default died inside the GL library on the first camera render of a `bench health` sweep, and a second, unconditional `setdefault` lived in the benchmark base. -- `get_robot(name)` also resolves a config whose class is not named after the robot (`KochCfg` for `koch_1`, `MjlabG1Cfg` for `g1`): the candidate packages are scanned for a `RobotCfg` whose `name` default matches, so the key every task and result uses always resolves. -- `bench health --isolate` children (Isaac Sim) now receive `--demos`, `--floor` and `--repeat`; before, the isolated gate could never report `unreliable` or `flaky` and always replayed the task's own demos. -- `bench suite run --isolate` writes a custom access tier to `/logs/`, not next to the result files where `bench summarize` and the leaderboard glob `*.json`. -- `bench record` keeps the policy's provenance (`spec`, `args`, `checkpoint`, `checkpoint_sha256`) in the result and the JSON sidecar, refuses an env whose actions are not absolute joint targets (a demo file would replay as garbage), and reads the handler state once per step instead of once per env. -- `robot check` names the asset field per backend (URDF backends check `urdf_path`), exits 1 on a failed check even on Isaac Sim (whose `close()` ends the process with status 0), and drops the unused `--device` flag. -- `bench run` and `bench suite run` save the result before closing the simulator; on Isaac Sim 6 the process ends inside `close()`, so every Isaac result file was lost (only the episode stream survived). A CLI test enforces the order. -- `state_tensor_to_nested` raised `StopIteration` for a scene-only scenario (the articulation in the scene MJCF, no objects, no robots), so every such task crashed at its first `reset`; the batch size now comes from the handler and the env states are empty. -- `bench run` crashed with `AttributeError` when its first episode finished: the per-episode stream (`.episodes.jsonl`) serialised `EpisodeResult` through a `to_dict()` it does not have. It uses `dataclasses.asdict`; a CLI test now drives `_bench_run` through a finished episode. - -### Removed -- The `isaacsim211` extra (Isaac Sim 4.5 with torch 2.5.1+cu118): the Isaac Sim backend targets Isaac Sim 6 / Isaac Lab 3 (`metasim/sim/_versions.py`, `python -m metasim doctor`), so the extra installed a version the handler cannot run. Migration: `pip install "roboverse-metasim[isaacsim]"` or `tools/install/isaacsim6.sh`. - -### Changed -- Command-line failures end in one line, not a traceback: an unknown task names the closest registered names (`did you mean pick_cube?`), `--sim` is checked against the known backends at the parser, an unbuildable policy, an unreachable or mismatched policy server, a missing `--checkpoint`, an unknown suite and a protocol the task cannot run under (an image tier on a task without cameras, an instance outside the pool) all exit 1 with the reason. `bench run` says when it scores the `hold` baseline because no `--policy` was given; `bench health` details a `low` row (which episodes failed, the threshold, the result file); `run`, `record`, `health` and `suite run` show their defaults in `--help`. A content pack shadowing MetaSim's built-in example pack (the shipped Franka) is logged at debug, not as a warning. -- Below the privileged tier the policy no longer learns which instance it is on: `reset` hands it an opaque per-run handle as the index and no seed or state hash (the pool is the task's public demo file, so an index would let a server look the initial state up offline, and a stable id would let it memorise across runs). The result still records the real instance. `notes["access_enforced"]` lists `instance_identity`. -- `LLMAgentPolicy` sends each assistant turn back verbatim (thinking blocks included) and asks for one tool per turn (`disable_parallel_tool_use`) instead of rewriting the turn, raises `max_tokens` to 1024, records its model id and call budget in the result, and keeps its transcripts retrievable (`flush_transcripts()`). `ScriptedPolicy` and the agent resolve their robot from the context's robot name when no scenario is given, so both can be served; the module-level arm registry the skills shared is gone (`offset_current(..., arm)`), and `plan_for` matches a task's registry or class name exactly instead of by suffix. Both constructors take keyword arguments only. -- The result schema is checked against itself. `validate_result` now parses the protocol, requires the episode count to match it, the indices to run `0 .. n-1`, explicit instances to be the ones run, every field to have its type and every number to be finite, a named checkpoint to carry its sha256, and the embedded `summary` to be what the episode rows give; `require_provenance=True` (the submission gate, `bench validate --suite`) also refuses an empty or failed provenance block. `BenchmarkResult.save` writes strict JSON (no NaN); a step reward that is not finite leaves `return_sum` as `null` and is counted in `notes["non_finite_rewards"]`. Task, robot and policy names are restricted to `[A-Za-z0-9_][A-Za-z0-9_.+:-[]]{0,79}` because they are interpolated into generated pages, and `escape_cell` neutralises table syntax in every rendered cell. -- `EvalProtocol.revision` (`metasim.bench.PROTOCOL_REVISION`, now 2) stamps the evaluator rules a protocol was run under and is part of what makes results comparable. Revision 2: episode `i` always runs `pool[i % len(pool)]`; the seed drives the simulator's randomness only, so no seed can start the round-robin on the easy instances. A protocol dict without the field is revision 1 (readable, comparable among its kind, not runnable). `hold_steps` other than 1 is refused outside `success_rule="held"`. -- What makes two results comparable (`result_key`, `summarize`, `matrix`, suite reports) now includes `num_envs` (a handler seeds a batch at once, so the batch size is part of the experiment; `notes["seeding"]` says `per-episode` or `per-batch`), the instance-pool fingerprint (`notes["instance_pool_hash"]`, `metasim.bench.pool_fingerprint`: the states and demo actions the task was scored on) and the protocol revision; `summarize` and `matrix` pool by policy identity (`metasim.bench.policy_identity`: name plus checkpoint hash, server checkpoint or model revision), so two checkpoints that share a name are two rows (`name#`) and the matrix marks a cell `mixed protocols` instead of summing results that are not comparable. `matrix(results, tasks=...)` judges partial coverage against a suite's task list. -- The access tier's `wall_time_s` budget is judged on the time spent inside the policy (`reset` and every `act`), recorded per episode as `EpisodeResult.policy_time_s`; simulator stepping, rendering and recording hooks are no longer charged to the policy. `wall_time_s` stays the episode's full wall clock. `notes["access_enforced"]` / `notes["access_declared"]` say which of the tier's guarantees the harness enforced itself and which only the policy can honour. -- `evaluate` refuses a task that names a demo file whose instances could not be loaded (`allow_default_instances=False`): a run on default resets would pool with runs on the recorded instances. `bench record`, which creates that file, passes `True`; `bench health` reports it as `no-demos`. An explicit `--max-steps` above the task's own time-out is clipped and reported like the demo budget (`episode_cap_source: "task (below the protocol cap)"`, `notes["task_cap"]`). -- `ReplayPolicy` refuses instances without demo actions instead of holding (a task without recorded demos, or a restricted tier that withholds them); `checkpoint_sha256` raises `FileNotFoundError` for a path that is not a file instead of recording `null`. -- `python -m metasim bench validate` takes directories as well as files: every `*.json` under one (the `suite.json` / `errors.json` / `health.json` reports aside) is checked, so a submission directory under `results/` is validated with one argument; an empty directory is a failure, not a pass. -- `evaluate(..., on_observation=None)`: a keyword-only hook called with every observation the policy acts on (after the resets that start episodes and after every step) and `{env slot: episode index}` for the scoring slots; additive, existing callers are unchanged. The video recorder is its first consumer. -- The MuJoCo handler matches an asset's actuators to joints by their transmission (`actuator_trnid`), not by name: an MJCF whose servos are named `lh_A_WRJ2` for joint `lh_WRJ2` (the Shadow hand convention, h1_hand), `gripper` for `joint7` (ARX L5) or `slide` for `slider` (mjlab cartpole) builds and is driven through those actuators instead of failing at launch or receiving a second, synthesized servo. Two actuators on one joint and a tendon- or site-driven actuator under the robot are errors with the joint named. Robots whose actuators already carried their joint's name resolve to the same actuators as before. -- `metasim.bench.remote.PolicyServer.handle_act` takes the decoded arrays as well as the raw request bytes (`bytes | dict[str, np.ndarray]`), so the conformance check and a test can drive it without a socket; existing byte callers are unchanged. -- The `sapien2` extra installs `sapien>=2.2,<3` (the range `doctor` checks) instead of the third-party `mani-skill2==0.5.3` package that used to pull SAPIEN 2 in as a side effect. - - -## [1.0.0] - 2026-11-27 +## [1.0.0] - 2026-11-30 ### Added - Information-access tiers (`metasim.bench.access`): `AccessProfile` names what a policy may see (`observation`: privileged / rgb_depth / rgb, `cameras`, `proprioception`), call (`tools`: none / skills / planner / sim_queries), keep (`memory`: episode / persistent) and spend (`wall_time_s` per episode, `llm_calls` / `llm_tokens` / `tool_calls` budgets). It is part of `EvalProtocol` (`access=`, default: today's unrestricted evaluation) and written into every result; the evaluator filters the observation the policy receives (`restrict_observation`; an image tier on a task without cameras is an error), hands `policy.reset` the instance without its initial state and demo actions, strips the object list from `PolicyContext.extras["scenario"]`, and ends an episode over its wall-clock budget as a time-out scored like the step cap (`EpisodeResult.wall_time_s`, `over_budget`, `summary["over_budget"]`; the clock starts after the reset, and a budget with `num_envs > 1` is warned about because the batch shares the clock); a policy's `usage()` counters (finite numbers only) are recorded against the budgets (`notes["budget"]`). Results of different tiers are never pooled (`result_key` compares the whole profile, `summarize` shows the tier; a suite rejects results from another tier; `bench suite report --access` scores a tiered run). Presets: `privileged`, `visual`, `visual-depth`, `agent-skills`, `agent-planner`, `agent-privileged` (`python -m metasim bench access`; `bench run --access`, `bench suite run --access`, or a JSON file). `PolicyContext.access` tells a served policy its tier. @@ -127,6 +61,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - CI on every PR without a GPU: `ci.yml` (ruff + `-k general` on 3.10/3.11), `pr-title.yml` (Conventional Commit titles), `changelog.yml` (entry required for library changes), `release.yml` (tag → build, GitHub Release, PyPI), `CODEOWNERS`. +- `evaluate` validates the instance pool's initial states against the robot's joint limits and records the offenders in `notes.instance_problems` (a warning at run time); `submission_problems` refuses such a result, so a suite run on a demo file with an unphysical start (the shipped `lift_peg_upright` demos) is scored but cannot enter the leaderboard. Before, only `bench health` judged this. +- `bench run|suite run|serve --checkpoint-url URL`: where the hashed checkpoint can be fetched, recorded as `policy.checkpoint_url` next to `checkpoint_sha256` (a leaderboard row of a learned policy requires both; nothing wrote the URL before). `bench submit` keeps two output directories that share file names (two seeds of one policy) under `__`, decides every destination before copying, and never replaces a file with other contents (`--force` adds to a submission). +- `bench summarize --json` and `bench matrix [--suite NAME] --json` write the pooled rows and the methods x tiers cells as data instead of Markdown (`metasim.bench.summarize_rows`, `metasim.bench.matrix_cells`; the Markdown tables are rendered from them). `bench matrix --suite` judges the macros against the suite's full task list. +- Assets can be pinned. `metasim.utils.hf_util.set_hub_revision` / `ROBOVERSE_HUB_REVISION` make every Hub download (files, folders, companions) come from one revision, and every result records it (`provenance.hub`). `BenchmarkSuite.manifest` carries a suite's frozen asset manifest (every file its tasks load with sha256 and size, plus the Hub revision); `bench suite run` pins downloads to it and exits 1 when the loaded assets or the demo file differ (`--allow-unpinned-assets` for a local experiment; the result then carries `notes.asset_check`), and `metasim.bench.manifest_problems` / `submission_problems` refuse such a result for the leaderboard. Results record the demo file the instances came from (`notes.demo_file`: path, sha256, size). +- `python -m metasim bench submit --suite --name [--results-dir results] [--provisional WHY] [--force]`: assembles a leaderboard submission directory from a `bench suite run` output, runs the schema and suite checks the page build runs, writes `PROVISIONAL.md` when asked, and prints the pooled tables the page will show with the next step (commit, regenerate, pull request). +- `python -m metasim -v` (or `LOGURU_LEVEL`) for debug output; the default log level is now INFO, so one episode of `bench run` prints its episode and score lines instead of 300 per-step checker messages (the per-step distance log is at TRACE). `doctor` prints a legend for `ok` / `untested` / `missing` / `unsupported`. +- `metasim.bench.PolicyError`: a policy failure (a served policy's time-out, 5xx, lost connection or malformed reply; an adapter's crash) ends the episodes in flight as time-outs with `EpisodeResult.policy_error` set and the run goes on, so an unstable policy loses the episode instead of the run; after `--max-policy-errors` (default 3) consecutive failures the run aborts. `bench run|suite run --policy-timeout S --policy-retries N` reach the server settings that were fixed at 180 s / 3 before. +- Wire protocol additions, all optional and advertised in `/metadata` as `features`: `/act` replies may carry `"usage"` deltas (`llm_calls`, `llm_tokens`, `tool_calls`), which `RemotePolicy.usage()` sums so the agent tiers work with a served policy (the result records `policy.usage_source: "self-reported"`); `bench serve --token` / `RemotePolicy(token=...)` (both default to `ROBOVERSE_BENCH_TOKEN`) require `Authorization: Bearer` on every request, and `bench serve` warns when bound beyond localhost without one. A policy's `metadata` dict (model id, weights revision) is merged into the result's policy record and into `/metadata`. +- `bench run|suite run` write an agent policy's decision transcripts to `.transcripts.jsonl` (`notes["transcripts"]`), and `--demos` records the override as `{path, sha256, bytes, files}` instead of a bare path. +- `metasim.bench.submission_problems(result, suite)` and `python -m metasim bench validate --suite [--json] `: what the leaderboard requires of a row beyond the schema: the task is in the suite and was run by `bench suite run` under the suite's protocol (any access tier) on the suite's backend, from a clean commit, with the command, the instance-pool hash and, for a learned policy, its weights (`checkpoint_url` + hash, or the served policy's checkpoint / model revision) recorded, and for an agent its model id. `EpisodeResult.policy_error` is reserved for a policy failure that ends an episode. +- Every result `bench run`, `bench suite run` and `bench health` write records the command that produced it (`notes["command"]`, e.g. `python -m metasim bench run --task pick_cube ...`), next to the git commit, the asset hashes and the backend versions the provenance block already carried; a leaderboard row can now be re-run from its file alone. Every `python -m metasim` entry point (`bench list|access|summarize|matrix|validate|suite list|suite report|suite run|health|record|conformance|serve`, `robot list`, the robot sweep table) is driven end to end by `metasim/test/test_cli_entry_general.py` with fakes in place of the simulator and the policy server, so a break in the wiring between parser and library fails the general suite. +- `python -m metasim bench run|health|suite run --video DIR [--video-camera NAME] [--video-episodes N]` (`metasim.bench.video.EpisodeVideoRecorder`): one mp4 per scored episode from a camera the task renders, exactly as rendered for the policy (the `front` preset is added to a task without a camera); files are numbered by episode index and listed in the result's `notes["videos"]`. The evidence behind a leaderboard row or a gate verdict, without a separate rendering tool. +- `metasim.utils.asset_check`: the asset rules decided from the paths alone, before a backend starts. `check_asset_fields(cfg)` requires each asset field to name a file of its format (`usd_path` a `.usd/.usda/.usdc/.usdz`, `mjcf_path` / `mjx_mjcf_path` an `.xml`, `urdf_path` a `.urdf`); `robot check` applies it in the config row (a defect on every backend), so `usd_path` pointing at an MJCF is named instead of Isaac Sim's "no rigid bodies under the prim". `usd_dependencies(path)` / `fetch_usd_dependencies(path)` walk a USD's composition (sublayers, references, payloads, recursively) with the `pxr` the process already has and fetch what is missing from the Hub; the assets row reports an unresolved payload, or that the composition was not judged when no `pxr` is loaded. +- `bench health` status `invalid` and `metasim.bench.validate_instances`: an initial state that puts a robot joint outside its limits fails the gate, and `bench record` refuses to record from one. Every consumer resolves an unphysical start differently (the gate replays it as is, the IL collector settles it first), so the same demos scored 1.0 in one and 0.45 in the other; the shipped `lift_peg_upright` demos (fingers at 1.0 in a 0 to 0.04 range) are the case that found it. +- `python -m metasim bench conformance --policy-url [--robot ]` (`metasim.bench.conformance`): checks a policy server against the `roboverse.bench.remote/1` wire protocol without a simulator (metadata, reset, act shape and finiteness, action chunks, partial reset, malformed body, unknown path; determinism, action box and latency reported). The server now answers 400, not 500, to a body it cannot decode. +- `robot check` rows and reports carry `applicable`: a robot that declares no asset for the backend (a URDF-only robot on MuJoCo, a robot without a USD on Isaac Sim) and a robot without an MJCF in the kinematics row are reported `n/a`; whether a robot is a candidate for the backend is read from the assets row alone (the kinematics row without an MJCF is "not judged", like limits and actuators, so a USD-only robot on Isaac Sim still gets its hold check), and a robot is `n/a` only when no applicable row fails (a config defect fails it on every backend). The nightly robot sweep is red for config defects and for robots that are candidates for the engine and fail, not for robots the engine cannot load at all. In `--isolate` mode the child runs `--hold-only` and the parent keeps its own cheap rows, so nothing is checked twice. +- `python -m metasim robot list` and `robot check --all [--out-dir DIR]` (`metasim.utils.setup_util.list_robots`): every robot config the robot packages define, walking each submodule so an unexported class is listed too; the sweep prints one table (a row per robot, a column per check), writes `robots.json` / `robots.md`, keeps going past a robot that cannot be resolved, and exits 1 when any robot fails. `--isolate auto|always|never` runs each robot's simulator check in its own process on backends that boot once per process (Isaac Sim), with the cheap rows done in the parent so a robot without an asset for that backend costs no boot. The nightly gate runs the sweep on both engines. +- `python -m metasim robot add --mjcf --name ` (`metasim.utils.robot_kit`): generates a `RobotCfg` file from the MJCF (joints and ranges, the MJCF actuators' servo gains and force ranges, a motor as an effort-controlled joint, the `home` keyframe or `--default joint=value` as the default pose, gripper joints by type and name, the tool body as their common parent, a grasp / tool-centre site as `curobo_tcp_rel_pos`; an ``-coupled joint is passive and mirrors its partner), marks every guess `TODO`, imports the file back and runs the self-check on it. The generated Franka and YAM configs reproduce the hand-written limits, gains and tool bodies. +- `robot check` row `actuators` (`check_actuators`): every joint the config drives must exist in the MJCF and be driven by at most one MJCF actuator; a tendon- or site-driven actuator (no action slot) is reported. The actuator's name is free (an actuator named differently from its joint is listed as matched by transmission). `check_robot_cfg(cfg)` runs the checks on a config object. +- `python -m metasim robot parity --sims mujoco isaacsim` (`track_trajectory`, `compare_traces`): the same canned joint trajectory (50 steps settling, then 400 control steps of a phase-shifted sinusoid inside the limits, amplitude capped at 0.3 rad and ramped in over the first period so every joint starts at its default, at a pinned 1 ms x 15 control step) tracked on two backends, compared joint by joint: max and RMS cross-engine difference, each engine's tracking error, a verdict against `--tol` (0.05 rad, hinge) / `--tol-slide` (5 mm, slide). `--save` / `--load` carry a trace between environments when the two engines cannot share a process. +- `python -m metasim robot check [--sim]` (`metasim.utils.robot_check`): the robot self-check a config must pass before a task is built on it: limits and defaults for every actuator, the backend's asset files exist (the asset folder is fetched from the Hub), the MJCF loads and the end-effector body is found with finite forward kinematics, the config's joint limits agree with the MJCF's ranges, and holding the default pose for 200 steps keeps every joint within 0.05 rad and a fixed base within 1 cm. Exit 1 on any failure; `--json` for tooling. +- `python -m metasim bench suite run --isolate auto|always|never`: on a backend that boots once per process (Isaac Sim) each suite task is scored in a child `bench run` with the entry's protocol as flags, and its result file is collected; a child that exits without a result is that task's failure. +- `python -m metasim bench record`: record demos with any policy (the scripted skills by default) into the `{robot: [demos]}` file the task bases load and the gate replays; `bench run` / `bench health --demos PATH` evaluate against another demo file than the task's own, so a recorded set is gated before it is published (`metasim.bench.record_demos`, `RecordingPolicy`, `flatten_initial_state`). +- `python -m metasim bench health --floor --repeat N`: a passing replay must also survive the hold policy scoring zero (`unreliable` otherwise: the checker accepts the initial state) and N identical replays of the same instances (`flaky` otherwise); both fail the gate. +- `python -m metasim bench run|suite run --camera ` adds a named camera (`front`, `side`, `top`; `metasim.bench.cameras.CAMERA_PRESETS`) to a task whose scenario has none, so the visual access tiers have something to observe; the preset names are recorded in the result's `notes["cameras"]`. +- `metasim.bench.skills`: scripted manipulation skills on the policy contract (`ArmModel`: forward kinematics and damped-least-squares IK from the robot's own MJCF; `MoveTo`, `MoveJoints`, `Gripper`; `pick`, `place_on`, `push_to`, `stand_upright` plans) and `ScriptedPolicy`, the privileged "knows the poses" baseline: on the tabletop-mujoco suite it scores 0.90 task-macro over 10 episodes per task (pick 1.0, stack 0.9, push 1.0, pull 0.7, peg 0.9) against the replay ceiling of 0.96. +- `metasim.bench.agent.LLMAgentPolicy`: a language-model agent (Anthropic Messages API, tool use) that plans with the skills as tools and reports `llm_calls` / `llm_tokens` / `tool_calls` for the tier budgets. Under `agent-privileged` (poses + image) it solves the suite with about one model call per episode; under `agent-skills` (image only) it has to estimate positions from the picture and scores near zero, which is the gap the tier is meant to measure. +- `python -m metasim bench matrix `: methods x information-access tiers in one table (task-macro success, task and episode counts, partial task sets starred) plus the per-task rows with Wilson intervals; `BenchmarkResult.policy["family"]` records a policy's method family (`vla`, `il`, `rl`, `agent`, `scripted`, `baseline`) when the policy declares one; `bench serve` advertises it in `/metadata` and `RemotePolicy` carries it, so a served policy is recorded like a local one. ### Changed - `bench matrix` never pools engines: when the result files span several simulators the method row is suffixed `@` (`replay @mujoco`, `replay @isaacsim`). @@ -161,6 +123,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `list_tasks()` no longer imports every task module (modules that register names in loops are imported to learn them). RoboVerse: cold index 1.1 s, warm 0.04 s, a lookup ~0.1 s, versus 7.3 s and every import-time side effect before. `METASIM_TASK_DISCOVERY=eager` restores the old behaviour. +- Command-line failures end in one line, not a traceback: an unknown task names the closest registered names (`did you mean pick_cube?`), `--sim` is checked against the known backends at the parser, an unbuildable policy, an unreachable or mismatched policy server, a missing `--checkpoint`, an unknown suite and a protocol the task cannot run under (an image tier on a task without cameras, an instance outside the pool) all exit 1 with the reason. `bench run` says when it scores the `hold` baseline because no `--policy` was given; `bench health` details a `low` row (which episodes failed, the threshold, the result file); `run`, `record`, `health` and `suite run` show their defaults in `--help`. A content pack shadowing MetaSim's built-in example pack (the shipped Franka) is logged at debug, not as a warning. +- Below the privileged tier the policy no longer learns which instance it is on: `reset` hands it an opaque per-run handle as the index and no seed or state hash (the pool is the task's public demo file, so an index would let a server look the initial state up offline, and a stable id would let it memorise across runs). The result still records the real instance. `notes["access_enforced"]` lists `instance_identity`. +- `LLMAgentPolicy` sends each assistant turn back verbatim (thinking blocks included) and asks for one tool per turn (`disable_parallel_tool_use`) instead of rewriting the turn, raises `max_tokens` to 1024, records its model id and call budget in the result, and keeps its transcripts retrievable (`flush_transcripts()`). `ScriptedPolicy` and the agent resolve their robot from the context's robot name when no scenario is given, so both can be served; the module-level arm registry the skills shared is gone (`offset_current(..., arm)`), and `plan_for` matches a task's registry or class name exactly instead of by suffix. Both constructors take keyword arguments only. +- The result schema is checked against itself. `validate_result` now parses the protocol, requires the episode count to match it, the indices to run `0 .. n-1`, explicit instances to be the ones run, every field to have its type and every number to be finite, a named checkpoint to carry its sha256, and the embedded `summary` to be what the episode rows give; `require_provenance=True` (the submission gate, `bench validate --suite`) also refuses an empty or failed provenance block. `BenchmarkResult.save` writes strict JSON (no NaN); a step reward that is not finite leaves `return_sum` as `null` and is counted in `notes["non_finite_rewards"]`. Task, robot and policy names are restricted to `[A-Za-z0-9_][A-Za-z0-9_.+:-[]]{0,79}` because they are interpolated into generated pages, and `escape_cell` neutralises table syntax in every rendered cell. +- `EvalProtocol.revision` (`metasim.bench.PROTOCOL_REVISION`, now 2) stamps the evaluator rules a protocol was run under and is part of what makes results comparable. Revision 2: episode `i` always runs `pool[i % len(pool)]`; the seed drives the simulator's randomness only, so no seed can start the round-robin on the easy instances. A protocol dict without the field is revision 1 (readable, comparable among its kind, not runnable). `hold_steps` other than 1 is refused outside `success_rule="held"`. +- What makes two results comparable (`result_key`, `summarize`, `matrix`, suite reports) now includes `num_envs` (a handler seeds a batch at once, so the batch size is part of the experiment; `notes["seeding"]` says `per-episode` or `per-batch`), the instance-pool fingerprint (`notes["instance_pool_hash"]`, `metasim.bench.pool_fingerprint`: the states and demo actions the task was scored on) and the protocol revision; `summarize` and `matrix` pool by policy identity (`metasim.bench.policy_identity`: name plus checkpoint hash, server checkpoint or model revision), so two checkpoints that share a name are two rows (`name#`) and the matrix marks a cell `mixed protocols` instead of summing results that are not comparable. `matrix(results, tasks=...)` judges partial coverage against a suite's task list. +- The access tier's `wall_time_s` budget is judged on the time spent inside the policy (`reset` and every `act`), recorded per episode as `EpisodeResult.policy_time_s`; simulator stepping, rendering and recording hooks are no longer charged to the policy. `wall_time_s` stays the episode's full wall clock. `notes["access_enforced"]` / `notes["access_declared"]` say which of the tier's guarantees the harness enforced itself and which only the policy can honour. +- `evaluate` refuses a task that names a demo file whose instances could not be loaded (`allow_default_instances=False`): a run on default resets would pool with runs on the recorded instances. `bench record`, which creates that file, passes `True`; `bench health` reports it as `no-demos`. An explicit `--max-steps` above the task's own time-out is clipped and reported like the demo budget (`episode_cap_source: "task (below the protocol cap)"`, `notes["task_cap"]`). +- `ReplayPolicy` refuses instances without demo actions instead of holding (a task without recorded demos, or a restricted tier that withholds them); `checkpoint_sha256` raises `FileNotFoundError` for a path that is not a file instead of recording `null`. +- `python -m metasim bench validate` takes directories as well as files: every `*.json` under one (the `suite.json` / `errors.json` / `health.json` reports aside) is checked, so a submission directory under `results/` is validated with one argument; an empty directory is a failure, not a pass. +- `evaluate(..., on_observation=None)`: a keyword-only hook called with every observation the policy acts on (after the resets that start episodes and after every step) and `{env slot: episode index}` for the scoring slots; additive, existing callers are unchanged. The video recorder is its first consumer. +- The MuJoCo handler matches an asset's actuators to joints by their transmission (`actuator_trnid`), not by name: an MJCF whose servos are named `lh_A_WRJ2` for joint `lh_WRJ2` (the Shadow hand convention, h1_hand), `gripper` for `joint7` (ARX L5) or `slide` for `slider` (mjlab cartpole) builds and is driven through those actuators instead of failing at launch or receiving a second, synthesized servo. Two actuators on one joint and a tendon- or site-driven actuator under the robot are errors with the joint named. Robots whose actuators already carried their joint's name resolve to the same actuators as before. +- `metasim.bench.remote.PolicyServer.handle_act` takes the decoded arrays as well as the raw request bytes (`bytes | dict[str, np.ndarray]`), so the conformance check and a test can drive it without a socket; existing byte callers are unchanged. +- The `sapien2` extra installs `sapien>=2.2,<3` (the range `doctor` checks) instead of the third-party `mani-skill2==0.5.3` package that used to pull SAPIEN 2 in as a side effect. + +### Removed +- The `isaacsim211` extra (Isaac Sim 4.5 with torch 2.5.1+cu118): the Isaac Sim backend targets Isaac Sim 6 / Isaac Lab 3 (`metasim/sim/_versions.py`, `python -m metasim doctor`), so the extra installed a version the handler cannot run. Migration: `pip install "roboverse-metasim[isaacsim]"` or `tools/install/isaacsim6.sh`. ### Fixed - The Isaac handler writes config-level quaternions (initial poses of robots and objects, camera mount offsets, light orientations) in Isaac Lab 3's `(x, y, z, w)` order (`_quat_cfg_to_sim`). The tensor paths were converted but the cfg fields were not, so on Isaac Lab 3 every spawn pose, mounted camera and light was a half turn about x off; root poses were repaired by the first `set_states`, mounted cameras and lights were not. Verified on Isaac Sim 6: the cube and the Franka read back the identity after launch and a hand-mounted camera's world orientation equals the hand link's. @@ -236,6 +215,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `gym.make`-style wrappers no longer mutate the task class's shared `scenario` (they update a copy); `ScenarioCfg.replace(**kw)` returns an updated copy for new code. - `get_states(env_ids=...)` returns exactly those envs: the base class slices the full batch when a backend ignores `env_ids` (six did, silently) and raises when a backend returns a batch that is neither the subset nor the full set. - The task-index cache defaults to a per-user directory (`$METASIM_CACHE_DIR`, else `$XDG_CACHE_HOME/metasim`, else `~/.cache/metasim`) instead of the shared temp dir. +- A pinned Hub revision (`set_hub_revision`, a suite manifest) is applied to the repository it is a commit of (`REPO_ID`); the mirror repositories are read at their default branch instead of failing with a revision that does not exist there (the manifest hashes still catch a file that differs). `evaluate` refuses, before the first episode, a task, robot or policy name the result file could not carry (the saved file would have been refused on load, after the run). The demo file a result records (`notes.demo_file`) and the manifest freezer resolve a demo directory by the loader's own rule (`_v2.`, `.`, `.npz`), not only `_v2.pkl.gz`, and the freezer hashes what the launched handler loads (robots, objects and a scene) through the same enumeration as the provenance. `--max-policy-errors N` aborts on the Nth consecutive policy failure, as its help says (it tolerated N and aborted on the next). The policy server compares its bearer token in constant time. +- `check_and_download_single` fetches a USD's whole folder from the Hub instead of the one file, and resolves its composition once a USD backend is up: a robot USD is often a shell over `configuration/*.usd` next to it (iiwa14 on the Hub), and the single-file fetch gave Isaac Sim a stage with no rigid bodies. The probe never imports a second `pxr` into a process that will start Isaac Sim (the pip `usd-core` build and the kit build cannot coexist; the launch then fails inside `omni.usd`). +- `validate_instances` (the `invalid` gate status) tolerates 1e-4 outside a joint limit: recorded states went through float32, and the RLBench close_box demos sit 1.3e-6 above the 0.04 m finger limit, which the first nightly run on MuJoCo reported as `invalid`. A finger at 1.0 or -0.034 is still invalid. +- `metasim.bench.instance_pool`: a task whose demo file does not exist yet evaluates (and records) from its own initial states with a warning instead of refusing; a demo file without the robot's entry is still an error. `robot check`: a handler whose `launch()` raises is closed with the others; the two MJCF checks share one parse. `robot check --all --isolate`: a stale child report is removed before the child runs, and the hand-off directory is cleaned up when no `--out-dir` is given. +- `bench suite run` removes a stale `errors.json` when a re-run into the same directory has no failures (found by the new end-to-end CLI tests, which now also cover `suite run` and `record`). +- `metasim.sim.gl`: one rule for MuJoCo's headless render backend, applied once at the process entry (`python -m metasim`), by the MuJoCo backend package before `mujoco` is imported, and by content code that builds a handler headless. On Linux with no display, nothing asked for and a loadable libEGL (or libOSMesa) it sets `MUJOCO_GL=egl` (`osmesa`); otherwise MuJoCo's default stands. Before, MuJoCo's GLFW default died inside the GL library on the first camera render of a `bench health` sweep, and a second, unconditional `setdefault` lived in the benchmark base. +- `get_robot(name)` also resolves a config whose class is not named after the robot (`KochCfg` for `koch_1`, `MjlabG1Cfg` for `g1`): the candidate packages are scanned for a `RobotCfg` whose `name` default matches, so the key every task and result uses always resolves. +- `bench health --isolate` children (Isaac Sim) now receive `--demos`, `--floor` and `--repeat`; before, the isolated gate could never report `unreliable` or `flaky` and always replayed the task's own demos. +- `bench suite run --isolate` writes a custom access tier to `/logs/`, not next to the result files where `bench summarize` and the leaderboard glob `*.json`. +- `bench record` keeps the policy's provenance (`spec`, `args`, `checkpoint`, `checkpoint_sha256`) in the result and the JSON sidecar, refuses an env whose actions are not absolute joint targets (a demo file would replay as garbage), and reads the handler state once per step instead of once per env. +- `robot check` names the asset field per backend (URDF backends check `urdf_path`), exits 1 on a failed check even on Isaac Sim (whose `close()` ends the process with status 0), and drops the unused `--device` flag. +- `bench run` and `bench suite run` save the result before closing the simulator; on Isaac Sim 6 the process ends inside `close()`, so every Isaac result file was lost (only the episode stream survived). A CLI test enforces the order. +- `state_tensor_to_nested` raised `StopIteration` for a scene-only scenario (the articulation in the scene MJCF, no objects, no robots), so every such task crashed at its first `reset`; the batch size now comes from the handler and the env states are empty. +- `bench run` crashed with `AttributeError` when its first episode finished: the per-episode stream (`.episodes.jsonl`) serialised `EpisodeResult` through a `to_dict()` it does not have. It uses `dataclasses.asdict`; a CLI test now drives `_bench_run` through a finished episode. ## [0.2.0] - 2026-05-31