diff --git a/.gitignore b/.gitignore index f60080f79..08f10a6f6 100644 --- a/.gitignore +++ b/.gitignore @@ -152,3 +152,6 @@ gate_out/ coverage.xml scratch*/ wt/ + +# benchmark instance sets ship with the repository (gzip JSON, ~250-650 KB each; the *.gz rule above would hide them) +!roboverse_pack/suites/instances/**/*.json.gz diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79baea5a5..6a489de03 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,7 @@ repos: exclude: '(^third_party|.*\.md|.*\.rst)' - id: check-added-large-files exclude: '^(docs/source/_static/|packages/metasim/metasim/data/)' # tutorial videos / MetaSim example assets (tracked debt: move to a CDN) + args: ['--maxkb=800'] # a suite instance set (50 demos as gzip JSON) is up to ~650 KB - id: debug-statements # check for debugger imports or `breakpoint()` exclude: '^roboverse_learn/' - id: check-yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 2672cdf4d..1379aae5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ release. ## [Unreleased] +### Added +- The tabletop-mujoco suite scores each task on a frozen instance set shipped with the repository (`roboverse_pack/suites/instances/tabletop-mujoco//franka_v2.json.gz`, 50 instances, one per protocol episode): the first published instances whose initial state is inside the joint limits and whose reference demo replays on MuJoCo, written by `tools/bench/freeze_instances.py` with a sidecar that names the source file and every skipped instance. This replaces the Hub demo files as the scoring set (the shipped lift_peg_upright start was unphysical; pick_cube's demos replayed at 0.8) and is hashed in the suite manifest. + ## [1.0.0] - 2026-11-30 ### Added diff --git a/docs/source/dataset_benchmark/benchmark/leaderboard.md b/docs/source/dataset_benchmark/benchmark/leaderboard.md index f4b61527c..74e44cef5 100644 --- a/docs/source/dataset_benchmark/benchmark/leaderboard.md +++ b/docs/source/dataset_benchmark/benchmark/leaderboard.md @@ -92,51 +92,51 @@ Listed for the record, not comparable with the rows above and not ranked: each s Why these files are not reproducible from their contents: -- `agentpriv_llm/core__lift_peg_upright__franka__llm-agent.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentpriv_llm/core__pick_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentpriv_llm/core__pull_cube__franka__llm-agent.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentpriv_llm/core__push_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentpriv_llm/core__stack_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentskills_llm/core__lift_peg_upright__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentskills_llm/core__pick_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentskills_llm/core__pull_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentskills_llm/core__push_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `agentskills_llm/core__stack_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_hold/core__lift_peg_upright__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_hold/core__pick_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_hold/core__pull_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_hold/core__push_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_hold/core__stack_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_random/core__lift_peg_upright__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_random/core__pick_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_random/core__pull_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_random/core__push_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_random/core__stack_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_replay/core__lift_peg_upright__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_replay/core__pick_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_replay/core__pull_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_replay/core__push_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_replay/core__stack_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_scripted/core__lift_peg_upright__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_scripted/core__pick_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_scripted/core__pull_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_scripted/core__push_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `priv_scripted/core__stack_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_hold/core__lift_peg_upright__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_hold/core__pick_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_hold/core__pull_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_hold/core__push_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_hold/core__stack_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_openvla/core__lift_peg_upright__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_openvla/core__pick_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_openvla/core__pull_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_openvla/core__push_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_openvla/core__stack_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_random/core__lift_peg_upright__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_random/core__pick_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_random/core__pull_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_random/core__push_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `visual_random/core__stack_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__lift_peg_upright__franka__llm-agent.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__pick_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__pull_cube__franka__llm-agent.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__push_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__stack_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__lift_peg_upright__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__pick_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__pull_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__push_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__stack_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__lift_peg_upright__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__pick_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__pull_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__push_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__stack_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__lift_peg_upright__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__pick_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__pull_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__push_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__stack_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__lift_peg_upright__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__pick_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__pull_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__push_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__stack_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__lift_peg_upright__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__pick_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__pull_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__push_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__stack_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__lift_peg_upright__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__pick_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__pull_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__push_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__stack_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__lift_peg_upright__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__pick_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__pull_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__push_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__stack_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__lift_peg_upright__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__pick_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__pull_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__push_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__stack_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) | task | robots | simulator | rule | access | policy | runs | episodes | success rate | 95% CI | mean steps | |---|---|---|---|---|---|---|---|---|---|---| @@ -246,11 +246,11 @@ Provenance, one row per result file: Why these files are not reproducible from their contents: -- `core__lift_peg_upright__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); demo_budget_factor=None (suite: 3.0); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); notes.demos names a demo file without its sha256; a local demo file is not reproducible; a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) -- `core__pick_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) -- `core__pull_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) -- `core__push_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) -- `core__stack_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) +- `core__lift_peg_upright__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); demo_budget_factor=None (suite: 3.0); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; notes.demos names a demo file without its sha256; a local demo file is not reproducible; a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) +- `core__pick_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file) +- `core__pull_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) +- `core__push_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) +- `core__stack_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) | task | robots | simulator | rule | access | policy | runs | episodes | success rate | 95% CI | mean steps | |---|---|---|---|---|---|---|---|---|---|---| @@ -280,16 +280,16 @@ Provenance, one row per result file: Why these files are not reproducible from their contents: -- `replay/core__lift_peg_upright__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `replay/core__pick_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `replay/core__pull_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `replay/core__push_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `replay/core__stack_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `scripted/core__lift_peg_upright__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `scripted/core__pick_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `scripted/core__pull_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `scripted/core__push_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest -- `scripted/core__stack_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__lift_peg_upright__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__pick_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__pull_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__push_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__stack_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__lift_peg_upright__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'lift_peg_upright' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__pick_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pick_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__pull_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'pull_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__push_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'push_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__stack_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); scored on the task's own demos; the suite scores 'stack_cube' on its instance set roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz; the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest | task | robots | simulator | rule | access | policy | runs | episodes | success rate | 95% CI | mean steps | |---|---|---|---|---|---|---|---|---|---|---| diff --git a/docs/source/dataset_benchmark/benchmark/overview.md b/docs/source/dataset_benchmark/benchmark/overview.md index 228d9ca52..d93155725 100644 --- a/docs/source/dataset_benchmark/benchmark/overview.md +++ b/docs/source/dataset_benchmark/benchmark/overview.md @@ -7,9 +7,15 @@ This page says what is scored and what a number means; [usage](usage.md) lists e ## What is scored -An **episode** starts from a fixed **instance** (an initial state from the task's recorded demos, with a -content-addressed id) and runs the policy until the task reports success, the task's own time-out, or the -protocol's episode cap. The task's per-step success predicate becomes one verdict per episode through the +An **episode** starts from a fixed **instance** (an initial state with a content-addressed id and a reference +demo) and runs the policy until the task reports success, the task's own time-out, or the protocol's episode +cap. A suite scores each task on an **instance set that ships with the repository** +(`roboverse_pack/suites/instances///_v2.json.gz`, gzip JSON, one instance per protocol +episode), frozen by `tools/bench/freeze_instances.py` from the task's published demos: the first instances in +file order whose initial state is inside the robot's joint limits and whose reference demo replays on the +suite's engine, with a sidecar naming the source file, the kept indices and every skipped one with its reason. +The replay baseline of a set is therefore 1.0 by construction, and a number does not depend on what a path on +the Hub holds today. The task's per-step success predicate becomes one verdict per episode through the protocol's **success rule** (`first`: held at any step; `final`: at the last step; `held`: for *n* consecutive steps). A run's **success rate** is the fraction of solved episodes, always reported with a 95% Wilson interval; a suite's number is the **task-macro** mean over its tasks and is `INCOMPLETE` until @@ -62,7 +68,9 @@ Assets live on the Hugging Face Hub, where a path can change under a name. A sui `tools/assets/freeze_suite_manifest.py`): every file its tasks load with its sha256, and the Hub revision. `bench suite run` pins downloads to that revision and exits 1 when the loaded bytes differ from the manifest (`--allow-unpinned-assets` for a local experiment, which the result then says); the leaderboard refuses such a -row. Re-publishing an asset or a demo set means re-freezing the manifest in the same pull request. +row, and a row scored on anything but the suite's instance set. Re-publishing an asset, or re-freezing an +instance set, means re-freezing the manifest in the same pull request; a new instance set is a new instance +pool, so earlier rows stop being comparable with new ones. Two results are **comparable** (`metasim.bench.result_key`) when task, robots, simulator, `num_envs`, instance pool and protocol agree; `bench summarize` pools exactly those, and names a policy with its diff --git a/docs/source/dataset_benchmark/benchmark/usage.md b/docs/source/dataset_benchmark/benchmark/usage.md index 92ccce91e..1d010f098 100644 --- a/docs/source/dataset_benchmark/benchmark/usage.md +++ b/docs/source/dataset_benchmark/benchmark/usage.md @@ -150,9 +150,18 @@ The replay ceiling of every suite task on its backend is a row of the [leaderboa the committed result files; this page keeps no copy of it. Only tasks whose demos replay on the suite's backend belong in a suite. `bench health` is the gate. A suite -also freezes the bytes it is scored on: `roboverse_pack/suites/manifests/.json` lists every asset and -demo file with its sha256 and the Hub revision (`tools/assets/freeze_suite_manifest.py --suite `); -`bench suite run` pins downloads to it and refuses a run on other bytes unless `--allow-unpinned-assets`. +scores each task on its own **instance set**, shipped with the repository as gzip JSON +(`roboverse_pack/suites/instances///_v2.json.gz`, one instance per protocol episode) and +frozen by `tools/bench/freeze_instances.py --suite ` from the task's published demos: the first instances in +file order whose initial state is inside the robot's joint limits and whose reference demo replays on the backend; +the sidecar `.json` next to each set names the source file and every skipped instance with its reason, and +`--source TASK=PATH --note TASK=WHY` records a re-recorded source when the published demos cannot be used. +`bench suite run` evaluates on the set (`notes.demos`), and a result scored on anything else is refused by +`bench validate --suite` and the leaderboard. A suite also freezes the bytes it is scored on: +`roboverse_pack/suites/manifests/.json` lists every asset and instance set with its sha256 and the Hub +revision (`tools/assets/freeze_suite_manifest.py --suite `); `bench suite run` pins downloads to it and +refuses a run on other bytes unless `--allow-unpinned-assets`. Re-freezing an instance set changes the +instance-pool hash, so earlier rows stop being comparable with new ones. In `tabletop-mujoco` the demo budget tightens push_cube (216 steps), pull_cube (237) and lift_peg_upright (534). pick_cube and stack_cube keep their 250-step time-out, because their recorded demos run that long even when the task is solved by about step 120. Every task in the suite has a diff --git a/packages/metasim/CHANGELOG.md b/packages/metasim/CHANGELOG.md index d952d4a6f..7e86a6a9d 100644 --- a/packages/metasim/CHANGELOG.md +++ b/packages/metasim/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- `SuiteTask.demos`: the instance set a suite scores a task on, a repository-relative demo file that `bench suite run` applies in both execution modes and records as `notes.demos`; `submission_problems` refuses a result scored on anything else (or on a `--demos` override the suite does not define). `metasim.utils.demo_util` reads and writes `.json.gz` trajectory files (gzip JSON: readable, no pickle), the format the repository's instance sets use. + ## [1.0.0] - 2026-11-30 ### Added diff --git a/packages/metasim/metasim/__main__.py b/packages/metasim/metasim/__main__.py index 4a3841537..8ce873f3f 100644 --- a/packages/metasim/metasim/__main__.py +++ b/packages/metasim/metasim/__main__.py @@ -605,6 +605,8 @@ def _suite_task_isolated(entry, protocol, args: argparse.Namespace, sim: str, ou cmd += ["--access", access_path] for robot in entry.robots: cmd += ["--robot", robot] + if entry.demos: # the suite's instance set; `bench run` records it under notes.demos + cmd += ["--demos", entry.demos] for cam in getattr(args, "camera", None) or (): cmd += ["--camera", cam] if getattr(args, "video", None): @@ -715,6 +717,7 @@ def _bench_suite_run(args: argparse.Namespace) -> int: device=args.device, cameras=cameras, ) + _apply_demos_override(env, entry.demos) # the suite's instance set, when it ships one try: robots = "+".join(r.name for r in (getattr(env.scenario, "robots", None) or [])) or "norobot" recorder = None @@ -739,6 +742,8 @@ def on_episode(ep, recorder=recorder) -> None: ) result.notes["suite"] = {"name": suite.name, "split": split} result.notes["command"] = _command_line() + if entry.demos: + result.notes["demos"] = _demos_note(entry.demos) if cameras: result.notes["cameras"] = list(cameras) if recorder is not None: diff --git a/packages/metasim/metasim/bench/suite.py b/packages/metasim/metasim/bench/suite.py index 8133243c4..df9d3e893 100644 --- a/packages/metasim/metasim/bench/suite.py +++ b/packages/metasim/metasim/bench/suite.py @@ -36,12 +36,18 @@ class SuiteTask: protocol: Field overrides on the suite protocol for this task (``{"episodes": 50}``). dimensions: Capability tags the task tests (``"precision"``, ``"long_horizon"``, ``"articulation"``, …); the report aggregates task-macro success per tag so a policy's profile is visible, not one number. + demos: The instance set the suite scores this task on, as a path relative to the repository root + (``roboverse_pack/suites/instances///_v2.json.gz``), instead of the task's own demo + file. A benchmark's instances are part of the benchmark: shipping them with the code, hashed in the + suite manifest, makes a number independent of what a path on the Hub holds today. ``None`` = the task's + own demos. """ task: str robots: tuple[str, ...] = () protocol: Mapping[str, Any] = field(default_factory=dict) dimensions: tuple[str, ...] = () + demos: str | None = None def __post_init__(self) -> None: object.__setattr__(self, "robots", tuple(self.robots)) @@ -291,6 +297,18 @@ def submission_problems(result: BenchmarkResult, suite: BenchmarkSuite) -> list[ problems.append("the command that produced it was not recorded (notes.command)") if not notes.get("instance_pool_hash"): problems.append("the instance pool was not fingerprinted (notes.instance_pool_hash)") + entry = next( + (e for _, e in suite.entries() if e.task == result.task and (not e.robots or tuple(e.robots) == tuple(robots))), + None, + ) + scored_on = notes.get("demos", {}).get("path") if isinstance(notes.get("demos"), dict) else None + own = "the task's own demos" + if entry is not None and entry.demos and scored_on != entry.demos: + problems.append( + f"scored on {scored_on or own}; the suite scores {result.task!r} on its instance set {entry.demos}" + ) + elif entry is not None and not entry.demos and scored_on: + problems.append(f"scored on a --demos override ({scored_on}) the suite does not define for {result.task!r}") if notes.get("instance_problems"): problems.append( f"{len(notes['instance_problems'])} instance(s) start outside the robot's joint limits " diff --git a/packages/metasim/metasim/test/test_bench_general.py b/packages/metasim/metasim/test/test_bench_general.py index e15c5184b..c6a8d9dbb 100644 --- a/packages/metasim/metasim/test/test_bench_general.py +++ b/packages/metasim/metasim/test/test_bench_general.py @@ -1020,11 +1020,12 @@ def fake_run(cmd, check, stdout, stderr): instances=(1, 4), access=AccessProfile(name="visual", observation="rgb"), ) - entry = SuiteTask(task="t", robots=("franka",)) + entry = SuiteTask(task="t", robots=("franka",), demos="roboverse_pack/suites/instances/s/t/franka_v2.json.gz") result = cli._suite_task_isolated(entry, protocol, args, "isaacsim", str(tmp_path / "r.json")) cmd = calls[-1] assert cmd[1:6] == ["-m", "metasim", "bench", "run", "--task"] and "isaacsim" in cmd for flag, value in ( + ("--demos", "roboverse_pack/suites/instances/s/t/franka_v2.json.gz"), ("--episodes", "2"), ("--seed", "3"), ("--demo-budget", "2.0"), diff --git a/packages/metasim/metasim/test/test_bench_suites_general.py b/packages/metasim/metasim/test/test_bench_suites_general.py index 3d82ff03a..5e9a1174d 100644 --- a/packages/metasim/metasim/test/test_bench_suites_general.py +++ b/packages/metasim/metasim/test/test_bench_suites_general.py @@ -1068,3 +1068,47 @@ def fake_record(env_, policy, protocol, *, out, success_only, task_name, on_epis == 0 ) assert calls["success_only"] is False + + +def test_submission_gate_holds_a_result_to_the_suites_instance_set(): + from metasim.bench import SuiteTask, submission_problems + + pinned = BenchmarkSuite( + name="pinned", + splits={"core": (SuiteTask("t", demos="roboverse_pack/suites/instances/pinned/t/bot_v2.json.gz"), "u")}, + simulator="fake", + ) + result = _result("t", 1, 1) + result.notes["demos"] = {"path": "roboverse_pack/suites/instances/pinned/t/bot_v2.json.gz", "sha256": "a" * 64} + assert not any("instance set" in p or "--demos override" in p for p in submission_problems(result, pinned)) + result.notes["demos"]["path"] = "scratch/my_demos/bot_v2.pkl.gz" + assert any("the suite scores 't' on its instance set" in p for p in submission_problems(result, pinned)) + result.notes.pop("demos") + assert any("scored on the task's own demos; the suite scores 't'" in p for p in submission_problems(result, pinned)) + other = _result("u", 1, 1) + other.notes["demos"] = {"path": "scratch/x/bot_v2.pkl.gz", "sha256": "a" * 64} + assert any("--demos override" in p for p in submission_problems(other, pinned)) + + +def test_gzip_json_is_a_trajectory_format(tmp_path): + """The repository's instance sets are gzip JSON: readable, pickle-free, and resolved like any other demo file.""" + from metasim.utils.demo_util import load_traj_file, save_traj_file + from metasim.utils.demo_util.demo_util import _resolve_traj_file + from metasim.utils.demo_util.loader import TRAJ_SUFFIXES + + assert ".json.gz" in TRAJ_SUFFIXES + data = { + "bot": [ + { + "init_state": {"bot": {"pos": [0.0, 0.0, 0.0], "rot": [1.0, 0.0, 0.0, 0.0], "dof_pos": {"j0": 0.5}}}, + "actions": [{"bot": {"dof_pos_target": {"j0": 0.6}}}], + "states": None, + } + ] + } + folder = tmp_path / "v2" + folder.mkdir() + save_traj_file(data, str(folder / "bot_v2.json.gz")) + assert load_traj_file(str(folder / "bot_v2.json.gz")) == data + assert _resolve_traj_file(str(folder), "bot") == str(folder / "bot_v2.json.gz") + assert (folder / "bot_v2.json.gz").read_bytes()[:2] == b"\x1f\x8b", "gzip, not a pickle" diff --git a/packages/metasim/metasim/test/test_cli_entry_general.py b/packages/metasim/metasim/test/test_cli_entry_general.py index 57966b179..8f47c2824 100644 --- a/packages/metasim/metasim/test/test_cli_entry_general.py +++ b/packages/metasim/metasim/test/test_cli_entry_general.py @@ -68,7 +68,16 @@ def suite(monkeypatch): s = BenchmarkSuite( name="cli-test", - splits={"core": (SuiteTask("t_a", dimensions=("precision",)), "t_b")}, + splits={ + "core": ( + SuiteTask( + "t_a", + dimensions=("precision",), + demos="roboverse_pack/suites/instances/cli-test/t_a/bot_v2.json.gz", + ), + "t_b", + ) + }, protocol=EvalProtocol(episodes=2), simulator="mujoco", description="two fake tasks", @@ -124,6 +133,16 @@ def result(task, ok=True, *, tagged=True, dirty=False): "command": "python -m metasim bench suite run --suite cli-test", "instance_pool_hash": "ab" * 32, **({"suite": {"name": "cli-test", "split": "core"}} if tagged else {}), + **( + { + "demos": { + "path": "roboverse_pack/suites/instances/cli-test/t_a/bot_v2.json.gz", + "sha256": "0" * 64, + } + } + if task == "t_a" + else {} + ), # t_a is scored on the suite's instance set }, ) @@ -326,6 +345,9 @@ def test_suite_run_in_process_writes_tagged_results_and_the_report(suite, monkey monkeypatch.setattr(bench, "evaluate", _fake_evaluate({"t_a": (True, False), "t_b": (True, True)})) monkeypatch.setattr(cli, "_make_env", lambda *a, **k: _Env()) monkeypatch.setattr(cli, "_make_policy", lambda args: (HoldPolicy(), {})) + overrides = [] + monkeypatch.setattr(cli, "_apply_demos_override", lambda env, demos: overrides.append(demos)) + monkeypatch.setattr(cli, "_demos_note", lambda demos: {"path": demos, "sha256": "0" * 64, "bytes": 1, "files": 1}) out_dir = tmp_path / "suite" argv = ["bench", "suite", "run", "--suite", "cli-test", "--policy", "hold", "--isolate", "never", "--device", "cpu"] assert cli.main([*argv, "--out-dir", str(out_dir)]) == 0 @@ -333,6 +355,14 @@ def test_suite_run_in_process_writes_tagged_results_and_the_report(suite, monkey assert files == ["core__t_a__bot__hold.json", "core__t_b__bot__hold.json", "suite.json", "suite.md"] a = json.loads((out_dir / "core__t_a__bot__hold.json").read_text()) assert a["notes"]["suite"] == {"name": "cli-test", "split": "core"} + assert a["notes"]["demos"]["path"] == "roboverse_pack/suites/instances/cli-test/t_a/bot_v2.json.gz", ( + "the suite's instance set is recorded as what the task was scored on" + ) + assert overrides == ["roboverse_pack/suites/instances/cli-test/t_a/bot_v2.json.gz", None], ( + "the env of t_a was pointed at the instance set; t_b has none" + ) + b = json.loads((out_dir / "core__t_b__bot__hold.json").read_text()) + assert "demos" not in b["notes"] assert a["notes"]["command"].startswith("python -m metasim bench suite run --suite cli-test"), ( "a result records the command that produced it" ) diff --git a/packages/metasim/metasim/utils/demo_util/loader.py b/packages/metasim/metasim/utils/demo_util/loader.py index 96f766562..de9fe6e4b 100644 --- a/packages/metasim/metasim/utils/demo_util/loader.py +++ b/packages/metasim/metasim/utils/demo_util/loader.py @@ -7,7 +7,9 @@ import yaml #: File extensions the loader dispatches on; the directory resolver searches the same set. -TRAJ_SUFFIXES = (".pkl", ".pkl.gz", ".json", ".yaml", ".yml") +TRAJ_SUFFIXES = (".pkl", ".pkl.gz", ".json", ".json.gz", ".yaml", ".yml") +"""``.json.gz`` is the format the benchmark instance sets in the repository use: gzip-compressed JSON, so a +reviewer can read it and nothing executes on load (a pickle does).""" class TrajectoryFileError(RuntimeError): @@ -33,6 +35,9 @@ def load_traj_file(path: str): elif path.endswith(".pkl.gz"): with gzip.open(path, "rb") as f: return pickle.load(f) + elif path.endswith(".json.gz"): + with gzip.open(path, "rt", encoding="utf-8") as f: + return json.load(f) elif path.endswith(".json"): with open(path) as f: return json.load(f) @@ -56,6 +61,9 @@ def save_traj_file(data: dict, path: str): elif path.endswith(".pkl.gz"): with gzip.open(path, "wb", compresslevel=1) as f: pickle.dump(data, f) + elif path.endswith(".json.gz"): + with gzip.open(path, "wt", encoding="utf-8", compresslevel=9) as f: + json.dump(data, f, separators=(",", ":")) elif path.endswith(".json"): with open(path, "w") as f: json.dump(data, f) diff --git a/roboverse_pack/suites/__init__.py b/roboverse_pack/suites/__init__.py index cdb0ae76d..7adc2fb45 100644 --- a/roboverse_pack/suites/__init__.py +++ b/roboverse_pack/suites/__init__.py @@ -3,6 +3,13 @@ A suite is a fixed task list in splits under one protocol (``metasim.bench.suite``). Only tasks whose demos replay on the suite's backend belong in it: a task the replay baseline cannot solve would measure the task, not the policy (``python -m metasim bench health`` is the gate). + +A suite scores every task on an **instance set that ships with the repository** +(``instances///_v2.json.gz``, frozen by ``tools/bench/freeze_instances.py`` from the task's +published demos: the first N instances whose initial state is inside the robot's joint limits and whose reference +demo replays on the suite's backend, with a sidecar saying which were skipped and why). The benchmark's instances +are therefore versioned with the code and hashed in the suite manifest, and a number does not depend on what a +path on the Hub holds today. """ from __future__ import annotations @@ -10,7 +17,18 @@ import json from pathlib import Path -from metasim.bench import BenchmarkSuite, EvalProtocol, register_suite +from metasim.bench import BenchmarkSuite, EvalProtocol, SuiteTask, register_suite + +ROOT = Path(__file__).resolve().parents[2] +INSTANCES = Path(__file__).parent / "instances" +"""Frozen instance sets, one file per (suite, task): the demos the suite scores on, as gzip JSON.""" + + +def _instances(suite: str, task: str, robot: str = "franka") -> SuiteTask: + """The suite entry for ``task``, scored on its frozen instance set (a repository-relative path).""" + path = INSTANCES / suite / task / f"{robot}_v2.json.gz" + return SuiteTask(task=task, demos=path.relative_to(ROOT).as_posix()) + MANIFESTS = Path(__file__).parent / "manifests" """Asset manifests, one per suite (``tools/assets/freeze_suite_manifest.py``): every file a suite's tasks load with @@ -28,15 +46,18 @@ def _manifest(name: str) -> dict | None: name="tabletop-mujoco", simulator="mujoco", description=( - "Single-arm Franka tabletop manipulation on MuJoCo: the ManiSkill-derived tasks whose demos " - "replay at >= 0.9 on MuJoCo (bench health, 2026-10-25). Scored task-macro over 50 episodes " - "each. The episode cap is 3x the 75th-percentile recorded demo length, clipped to the task's " - "own time-out: it tightens push_cube (216), pull_cube (237) and lift_peg_upright (534); pick_cube " - "and stack_cube keep their 250-step time-out because their recorded demos run that long. Every " - "task carries a prompt bank, so --prompt-split heldout measures instruction generalisation." + "Single-arm Franka tabletop manipulation on MuJoCo: five ManiSkill-derived tasks, each scored on a " + "frozen set of 50 instances taken in order from the published demos (initial states inside the joint " + "limits, reference demo replays on MuJoCo; suites/instances/tabletop-mujoco//*.json.gz, " + "sidecar lists what was skipped). Task-macro over 50 episodes, one per instance. The episode cap is " + "3x the 75th-percentile demo length of the set, clipped to the task's own time-out. Every task " + "carries a prompt bank, so --prompt-split heldout measures instruction generalisation." ), splits={ - "core": ("pick_cube", "stack_cube", "push_cube", "pull_cube", "lift_peg_upright"), + "core": tuple( + _instances("tabletop-mujoco", t) + for t in ("pick_cube", "stack_cube", "push_cube", "pull_cube", "lift_peg_upright") + ), }, protocol=EvalProtocol(episodes=50, demo_budget_factor=3.0, demo_budget_quantile=0.75, seed=0), manifest=_manifest("tabletop-mujoco"), diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz b/roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz new file mode 100644 index 000000000..05ce6dbf2 Binary files /dev/null and b/roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz differ diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz.json b/roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz.json new file mode 100644 index 000000000..c12f77339 --- /dev/null +++ b/roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz.json @@ -0,0 +1,72 @@ +{ + "suite": "tabletop-mujoco", + "task": "lift_peg_upright", + "robot": "franka", + "simulator": "mujoco", + "count": 50, + "source": { + "path": "scratch_poc/demos100_fixed/lift_peg_upright/v2/franka_v2.pkl.gz", + "sha256": "31535275c7b0245175ac60cb08db85736db46a813a305df0a3d5c48ef95b546b", + "instances": 84, + "note": "the 10 published demos all start the Franka fingers at 1.0 in a 0 to 0.04 joint (unphysical), so the set is frozen from 84 demos recorded on 2026-11-28 with bench record and the scripted skills from the task's own initial-state distribution (franka_v2.pkl.gz.json next to it records the run); the published file is not used" + }, + "kept_source_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49 + ], + "skipped": {}, + "file": { + "path": "roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz", + "sha256": "141be78c36a059ebd49fa42dce9970d081db101bc3092d3a4e03f1c69f58ee47", + "bytes": 663657 + }, + "frozen": "2026-11-30" +} diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz b/roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz new file mode 100644 index 000000000..533faffdb Binary files /dev/null and b/roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz differ diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz.json b/roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz.json new file mode 100644 index 000000000..f28493ae7 --- /dev/null +++ b/roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz.json @@ -0,0 +1,85 @@ +{ + "suite": "tabletop-mujoco", + "task": "pick_cube", + "robot": "franka", + "simulator": "mujoco", + "count": 50, + "source": { + "path": "roboverse_data/trajs/maniskill/pick_cube/v2/franka_v2.pkl.gz", + "sha256": "edcc2d469b8fb5ea538a1bdf13b45e6c8e9f7278b5b642f5cb2f62ff849cbe63", + "instances": 1000 + }, + "kept_source_indices": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 16, + 17, + 19, + 20, + 21, + 22, + 23, + 25, + 26, + 27, + 29, + 30, + 32, + 33, + 34, + 35, + 37, + 38, + 39, + 40, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 50, + 53, + 54, + 55, + 56, + 57, + 58, + 60, + 61, + 62 + ], + "skipped": { + "0": "reference demo does not replay on the suite's backend", + "14": "reference demo does not replay on the suite's backend", + "15": "reference demo does not replay on the suite's backend", + "18": "reference demo does not replay on the suite's backend", + "24": "reference demo does not replay on the suite's backend", + "28": "reference demo does not replay on the suite's backend", + "31": "reference demo does not replay on the suite's backend", + "36": "reference demo does not replay on the suite's backend", + "41": "reference demo does not replay on the suite's backend", + "49": "reference demo does not replay on the suite's backend", + "51": "reference demo does not replay on the suite's backend", + "52": "reference demo does not replay on the suite's backend", + "59": "reference demo does not replay on the suite's backend" + }, + "file": { + "path": "roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz", + "sha256": "693b2e4a8b524bf9e011be8d284aea00d79c9b1805bb92108cfadf85815696ac", + "bytes": 376314 + }, + "frozen": "2026-11-30" +} diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz b/roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz new file mode 100644 index 000000000..5e5882e59 Binary files /dev/null and b/roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz differ diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz.json b/roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz.json new file mode 100644 index 000000000..d110f3d58 --- /dev/null +++ b/roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz.json @@ -0,0 +1,71 @@ +{ + "suite": "tabletop-mujoco", + "task": "pull_cube", + "robot": "franka", + "simulator": "mujoco", + "count": 50, + "source": { + "path": "roboverse_data/trajs/maniskill/pull_cube/v2/franka_v2.pkl.gz", + "sha256": "498ea44b2ea6c12e65d237a6a19a6847d85570abd9bb813b7f7ff031f3217ed8", + "instances": 184 + }, + "kept_source_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49 + ], + "skipped": {}, + "file": { + "path": "roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz", + "sha256": "f641bea238a2af5b542cd6668be7d1dfaceca689f1553b94699c6c7f33b103d3", + "bytes": 271951 + }, + "frozen": "2026-11-30" +} diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz b/roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz new file mode 100644 index 000000000..ffb158d3b Binary files /dev/null and b/roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz differ diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz.json b/roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz.json new file mode 100644 index 000000000..95618c248 --- /dev/null +++ b/roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz.json @@ -0,0 +1,71 @@ +{ + "suite": "tabletop-mujoco", + "task": "push_cube", + "robot": "franka", + "simulator": "mujoco", + "count": 50, + "source": { + "path": "roboverse_data/trajs/maniskill/push_cube/v2/franka_v2.pkl.gz", + "sha256": "98972f43119f089cc8e9c9a730879757b947ec855518c841107f7c73f5cdafc6", + "instances": 995 + }, + "kept_source_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49 + ], + "skipped": {}, + "file": { + "path": "roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz", + "sha256": "c3d7a472263261fd2258577c9a3c14c479f2c479b387492be3a32bee6783faf7", + "bytes": 243220 + }, + "frozen": "2026-11-30" +} diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz b/roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz new file mode 100644 index 000000000..adb637562 Binary files /dev/null and b/roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz differ diff --git a/roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz.json b/roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz.json new file mode 100644 index 000000000..74743c9bc --- /dev/null +++ b/roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz.json @@ -0,0 +1,74 @@ +{ + "suite": "tabletop-mujoco", + "task": "stack_cube", + "robot": "franka", + "simulator": "mujoco", + "count": 50, + "source": { + "path": "roboverse_data/trajs/maniskill/stack_cube/v2/franka_v2.pkl.gz", + "sha256": "b8c3f59fc418dc69f2aba8f2bd601211a22cccfd67d862ecb7eb762fa86acda8", + "instances": 1000 + }, + "kept_source_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51 + ], + "skipped": { + "6": "reference demo does not replay on the suite's backend", + "35": "reference demo does not replay on the suite's backend" + }, + "file": { + "path": "roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz", + "sha256": "cf5f77a41d45e3d4eb93fc39a9a59d5b204949d24ff177b552b203f0374cdcab", + "bytes": 487771 + }, + "frozen": "2026-11-30" +} diff --git a/roboverse_pack/suites/manifests/tabletop-mujoco.json b/roboverse_pack/suites/manifests/tabletop-mujoco.json index dc4a8659b..227fd96f9 100644 --- a/roboverse_pack/suites/manifests/tabletop-mujoco.json +++ b/roboverse_pack/suites/manifests/tabletop-mujoco.json @@ -275,25 +275,25 @@ "sha256": "1414ff6358dda4f1c66d8021d473a7940ddbcbece66e0ab61156af395112d3a2", "bytes": 14690 }, - "roboverse_data/trajs/maniskill/lift_peg_upright/v2/franka_v2.pkl.gz": { - "sha256": "9f78e4adcd17457e67fb414a2f236caab1a206c6d2d07ca1ef641707d1ca5e4d", - "bytes": 55279 + "roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz": { + "sha256": "141be78c36a059ebd49fa42dce9970d081db101bc3092d3a4e03f1c69f58ee47", + "bytes": 663657 }, - "roboverse_data/trajs/maniskill/pick_cube/v2/franka_v2.pkl.gz": { - "sha256": "edcc2d469b8fb5ea538a1bdf13b45e6c8e9f7278b5b642f5cb2f62ff849cbe63", - "bytes": 7586193 + "roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz": { + "sha256": "693b2e4a8b524bf9e011be8d284aea00d79c9b1805bb92108cfadf85815696ac", + "bytes": 376314 }, - "roboverse_data/trajs/maniskill/pull_cube/v2/franka_v2.pkl.gz": { - "sha256": "498ea44b2ea6c12e65d237a6a19a6847d85570abd9bb813b7f7ff031f3217ed8", - "bytes": 474958 + "roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz": { + "sha256": "f641bea238a2af5b542cd6668be7d1dfaceca689f1553b94699c6c7f33b103d3", + "bytes": 271951 }, - "roboverse_data/trajs/maniskill/push_cube/v2/franka_v2.pkl.gz": { - "sha256": "98972f43119f089cc8e9c9a730879757b947ec855518c841107f7c73f5cdafc6", - "bytes": 2228838 + "roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz": { + "sha256": "c3d7a472263261fd2258577c9a3c14c479f2c479b387492be3a32bee6783faf7", + "bytes": 243220 }, - "roboverse_data/trajs/maniskill/stack_cube/v2/franka_v2.pkl.gz": { - "sha256": "b8c3f59fc418dc69f2aba8f2bd601211a22cccfd67d862ecb7eb762fa86acda8", - "bytes": 6332794 + "roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz": { + "sha256": "cf5f77a41d45e3d4eb93fc39a9a59d5b204949d24ff177b552b203f0374cdcab", + "bytes": 487771 } }, "tasks": { @@ -302,35 +302,35 @@ "assets": [ "roboverse_data/robots/franka/mjcf/panda.xml" ], - "demo_file": "roboverse_data/trajs/maniskill/pick_cube/v2/franka_v2.pkl.gz" + "demo_file": "roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz" }, "stack_cube": { "split": "core", "assets": [ "roboverse_data/robots/franka/mjcf/panda.xml" ], - "demo_file": "roboverse_data/trajs/maniskill/stack_cube/v2/franka_v2.pkl.gz" + "demo_file": "roboverse_pack/suites/instances/tabletop-mujoco/stack_cube/franka_v2.json.gz" }, "push_cube": { "split": "core", "assets": [ "roboverse_data/robots/franka/mjcf/panda.xml" ], - "demo_file": "roboverse_data/trajs/maniskill/push_cube/v2/franka_v2.pkl.gz" + "demo_file": "roboverse_pack/suites/instances/tabletop-mujoco/push_cube/franka_v2.json.gz" }, "pull_cube": { "split": "core", "assets": [ "roboverse_data/robots/franka/mjcf/panda.xml" ], - "demo_file": "roboverse_data/trajs/maniskill/pull_cube/v2/franka_v2.pkl.gz" + "demo_file": "roboverse_pack/suites/instances/tabletop-mujoco/pull_cube/franka_v2.json.gz" }, "lift_peg_upright": { "split": "core", "assets": [ "roboverse_data/robots/franka/mjcf/panda.xml" ], - "demo_file": "roboverse_data/trajs/maniskill/lift_peg_upright/v2/franka_v2.pkl.gz" + "demo_file": "roboverse_pack/suites/instances/tabletop-mujoco/lift_peg_upright/franka_v2.json.gz" } } } diff --git a/tests/test_leaderboard_generator.py b/tests/test_leaderboard_generator.py index 69c22e047..c0ae59abc 100644 --- a/tests/test_leaderboard_generator.py +++ b/tests/test_leaderboard_generator.py @@ -89,6 +89,7 @@ def _result( "command": COMMAND, "instance_pool_hash": "ab" * 32, **({"demo_file": demo_file} if demo_file else {}), + **({"demos": demo_file} if demo_file else {}), # the suite's instance set, as `bench suite run` records it **({"suite": {"name": SUITE, "split": "core"}} if tagged else {}), **(notes_extra or {}), } @@ -190,7 +191,7 @@ def test_an_unreproducible_file_fails_the_build_unless_the_submission_says_it_is (True,), notes_extra={ "demo_file": { - "path": "roboverse_data/trajs/maniskill/pick_cube/v2/franka_v2.pkl.gz", + "path": "roboverse_pack/suites/instances/tabletop-mujoco/pick_cube/franka_v2.json.gz", "sha256": "f" * 64, "bytes": 1, } diff --git a/tests/test_suites.py b/tests/test_suites.py index c8d4be45f..8cd01b072 100644 --- a/tests/test_suites.py +++ b/tests/test_suites.py @@ -59,3 +59,41 @@ def test_the_tabletop_suite_carries_its_frozen_asset_manifest(): if local.is_file(): # on a machine with the assets, the manifest matches them (CI has none: skipped) digest = hashlib.sha256(local.read_bytes()).hexdigest() assert digest == meta["sha256"], f"{path} differs from the frozen manifest; re-freeze deliberately" + + +@pytest.mark.parametrize("name", list_suites()) +def test_every_suite_task_ships_its_instance_set(name): + """The instances a suite scores on live in the repository as gzip JSON with a sidecar that says where they came from.""" + import json + from pathlib import Path + + from metasim.utils.demo_util import load_traj_file + + root = Path(__file__).resolve().parents[1] + suite = get_suite(name) + for _, entry in suite.entries(): + assert entry.demos, f"{name}/{entry.task}: no instance set; run tools/bench/freeze_instances.py" + path = root / entry.demos + assert path.is_file() and path.name.endswith("_v2.json.gz"), f"{entry.demos} is missing or not gzip JSON" + data = load_traj_file(str(path)) + sidecar = json.loads(path.with_name(path.name + ".json").read_text()) + (robot,) = data.keys() + demos = data[robot] + assert len(demos) == sidecar["count"] == suite.protocol_for(entry).episodes, "one instance per protocol episode" + assert sidecar["file"]["path"] == entry.demos and sidecar["source"]["sha256"] + assert len(sidecar["kept_source_indices"]) == len(demos) + cls = get_task_class(entry.task) + limits = {r.name: (r.joint_limits or {}) for r in cls.scenario.robots} + for demo in demos: + assert demo["actions"], "a reference demo travels with every instance (the replay baseline needs it)" + for rname, lim in limits.items(): + for joint, value in demo["init_state"].get(rname, {}).get("dof_pos", {}).items(): + if joint in lim: + lo, hi = lim[joint] + assert lo <= value <= hi, ( + f"{entry.task} instance starts {rname}.{joint}={value} outside [{lo}, {hi}]" + ) + if name == "tabletop-mujoco": + assert suite.manifest and entry.demos in suite.manifest["assets"], ( + "the instance set is hashed in the manifest" + ) diff --git a/tools/assets/freeze_suite_manifest.py b/tools/assets/freeze_suite_manifest.py index fae2cad21..7440f0459 100644 --- a/tools/assets/freeze_suite_manifest.py +++ b/tools/assets/freeze_suite_manifest.py @@ -39,7 +39,7 @@ def _sha256(path: Path) -> str: def _relative(path: Path, configured: str) -> str: """The manifest key: the configured ``roboverse_data/...`` path, or the path relative to the data root.""" - if configured.startswith("roboverse_data/"): + if configured.startswith(("roboverse_data/", "roboverse_pack/")): # Hub assets, or instance sets in the repository return configured text = path.as_posix() marker = "roboverse_data/" @@ -73,6 +73,8 @@ def add(configured: str, path: Path) -> str: if entry.robots: scenario = scenario.replace(robots=list(entry.robots)) env = cls(scenario, device) + if entry.demos: # the suite scores on its own instance set, so that is the demo file to freeze + env.traj_filepath = entry.demos try: loaded: list[str] = [] # the launched handler's scenario, the one provenance hashes: a task may add objects or a scene on construction diff --git a/tools/bench/freeze_instances.py b/tools/bench/freeze_instances.py new file mode 100644 index 000000000..1928c81ab --- /dev/null +++ b/tools/bench/freeze_instances.py @@ -0,0 +1,237 @@ +#!/usr/bin/env python +"""Freeze a suite's instance sets: the demos each task is scored on, shipped with the repository. + +A benchmark's instances are part of the benchmark. The published demo files are large (up to 1000 demos per +task, several MB) and live on the Hub, where a path can change under a name; some ship initial states outside +the robot's joint limits, and some reference demos do not replay on the suite's backend. This tool takes, per +task, the published demos in file order, drops an instance whose initial state is outside the limits or whose +reference demo does not replay on the suite's backend, keeps the first ``--count`` that pass, and writes them as +gzip JSON (no pickle; a reviewer can read it) under ``roboverse_pack/suites/instances///``, with a +sidecar that names the source file (path, sha256), the kept source indices and every skipped one with its reason:: + + python tools/bench/freeze_instances.py --suite tabletop-mujoco # all tasks, 50 instances each + python tools/bench/freeze_instances.py --suite tabletop-mujoco --task pick_cube --count 50 + +Run from the repository root with the published demos downloaded (one `bench run` per task does it). Then +re-freeze the suite manifest (``tools/assets/freeze_suite_manifest.py --suite ``) so the new files are +hashed, and commit both. A re-freeze is a protocol change for the suite: the instance-pool hash of every result +changes, so existing rows are no longer comparable with new ones (``result_key`` keeps them apart). +""" + +from __future__ import annotations + +import argparse +import copy +import hashlib +import json +import sys +import tempfile +from datetime import datetime, timezone +from pathlib import Path + +REPO = Path(__file__).resolve().parents[2] +sys.path.insert(0, str(REPO / "packages" / "metasim")) +sys.path.insert(0, str(REPO)) +INSTANCES = REPO / "roboverse_pack" / "suites" / "instances" + + +def _sha256(path: Path) -> str: + digest = hashlib.sha256() + with open(path, "rb") as f: + for chunk in iter(lambda: f.read(1 << 20), b""): + digest.update(chunk) + return digest.hexdigest() + + +def _out_of_limits(state: dict, robots) -> list[str]: + """``"robot.joint=value outside [lo, hi]"`` for every joint of a flat v2 state outside its declared limits.""" + found = [] + for cfg in robots: + limits = getattr(cfg, "joint_limits", None) or {} + dof = (state.get(cfg.name) or {}).get("dof_pos") if isinstance(state.get(cfg.name), dict) else None + if not limits or not isinstance(dof, dict): + continue + for joint, value in dof.items(): + lo_hi = limits.get(joint) + if lo_hi is not None and not (lo_hi[0] <= float(value) <= lo_hi[1]): + found.append(f"{cfg.name}.{joint}={float(value):.3f} outside [{lo_hi[0]:.3f}, {lo_hi[1]:.3f}]") + return found + + +def freeze_task( + suite, entry, *, count: int, margin: int, device: str, out: Path, source: str | None = None, note: str | None = None +) -> dict: + """Write the instance set of one suite task and return its sidecar record. + + ``source`` replaces the task's published demo file (a re-recorded set when the published one cannot be used); + ``note`` says why, and both go into the sidecar. + """ + import torch + + from metasim.bench import EvalProtocol, ReplayPolicy, evaluate, instance_pool + from metasim.bench.record import _to_plain, flatten_initial_state + from metasim.task.registry import get_task_class + from metasim.utils.demo_util import load_traj_file, save_traj_file + from metasim.utils.trajectory import resolve_demo_file + + cls = get_task_class(entry.task) + scenario = cls.scenario.replace(simulator=suite.simulator, num_envs=1, headless=True) + if entry.robots: + scenario = scenario.replace(robots=list(entry.robots)) + env = cls(scenario, device) + try: + robots = list(env.scenario.robots) + robot = robots[0].name + if source: + env.traj_filepath = source + env.__dict__.pop("_bench_instance_pool", None) + source = getattr(env, "traj_filepath", None) + if not isinstance(source, str) or not source: + raise SystemExit(f"{entry.task}: the task ships no demo file; nothing to freeze") + found = resolve_demo_file(source, [r.name for r in robots]) + if found is None: + raise SystemExit(f"{entry.task}: demo file {source} is not on this machine; run the task once to fetch it") + source_path, source_file = found + pool = instance_pool(env) + if not pool: + raise SystemExit(f"{entry.task}: no instances could be read from {source_path}") + # the demos as the file carries them (the pool wraps actions per robot; the file layout is what is written back) + published = load_traj_file(str(source_file))[robot] + if len(published) != len(pool): + raise SystemExit( + f"{entry.task}: {len(published)} demos in {source_path} but {len(pool)} instances in the pool" + ) + print(f"[{entry.task}] {len(pool)} published instances in {source_path}", flush=True) + + # pass 1: joint limits, in file order, up to count + margin candidates + skipped: dict[int, str] = {} + candidates: list[tuple[int, dict]] = [] + for inst in pool: + if len(candidates) >= count + margin: + break + state = flatten_initial_state(inst.state) if isinstance(inst.state, dict) else None + if state is None or not inst.actions: + skipped[inst.index] = "no initial state or no demo actions" + continue + problems = _out_of_limits(state, robots) + if problems: + skipped[inst.index] = "initial state outside the joint limits: " + "; ".join(problems) + continue + demo = published[inst.index] + candidates.append(( + inst.index, + {"init_state": state, "actions": _to_plain(demo["actions"]), "states": None}, + )) + if len(candidates) < count: + raise SystemExit( + f"{entry.task}: only {len(candidates)} of the first {count + margin} published instances are inside the " + f"joint limits; {count} were asked for. Fix the published demos or lower --count" + ) + + # pass 2: the reference demo replays on the suite's backend (the replay ceiling of the set is then 1.0) + with tempfile.TemporaryDirectory() as tmp: + trial = Path(tmp) / f"{robot}_v2.json.gz" + save_traj_file({robot: [copy.deepcopy(d) for _, d in candidates]}, str(trial)) + env.traj_filepath = str(trial) + env.__dict__.pop("_bench_instance_pool", None) + protocol = EvalProtocol(episodes=len(candidates), seed=0, name=f"freeze-{suite.name}") + result = evaluate(env, ReplayPolicy(), protocol, task_name=entry.task, policy_info={"spec": "replay"}) + replayed = {ep.instance_index: bool(ep.success) for ep in result.episodes} + kept: list[tuple[int, dict]] = [] + for position, (source_index, demo) in enumerate(candidates): + if len(kept) >= count: + break + if replayed.get(position): + kept.append((source_index, demo)) + else: + skipped[source_index] = "reference demo does not replay on the suite's backend" + if len(kept) < count: + raise SystemExit( + f"{entry.task}: only {len(kept)} of {len(candidates)} candidates replay on {suite.simulator}; " + f"{count} were asked for. Raise --margin or lower --count" + ) + del torch + finally: + env.close() + + target = out / suite.name / entry.task / f"{robot}_v2.json.gz" + target.parent.mkdir(parents=True, exist_ok=True) + save_traj_file({robot: [d for _, d in kept]}, str(target)) + record = { + "suite": suite.name, + "task": entry.task, + "robot": robot, + "simulator": suite.simulator, + "count": len(kept), + "source": { + "path": source_path, + "sha256": _sha256(source_file), + "instances": len(pool), + **({"note": note} if note else {}), + }, + "kept_source_indices": [i for i, _ in kept], + "skipped": {str(i): why for i, why in sorted(skipped.items()) if i <= max(i for i, _ in kept)}, + "file": { + "path": target.relative_to(REPO).as_posix(), + "sha256": _sha256(target), + "bytes": target.stat().st_size, + }, + "frozen": datetime.now(timezone.utc).strftime("%Y-%m-%d"), + } + target.with_name(target.name + ".json").write_text(json.dumps(record, indent=2) + "\n") + print( + f"[{entry.task}] kept {len(kept)} (source indices {record['kept_source_indices'][0]}..{record['kept_source_indices'][-1]}), " + f"skipped {len(record['skipped'])}: {target.relative_to(REPO)} ({record['file']['bytes']} bytes)", + flush=True, + ) + return record + + +def main(argv: list[str] | None = None) -> int: + ap = argparse.ArgumentParser( + description=__doc__.split("\n\n")[0], formatter_class=argparse.RawDescriptionHelpFormatter + ) + ap.add_argument("--suite", required=True) + ap.add_argument("--task", action="append", help="freeze these tasks only (repeatable; default: every task)") + ap.add_argument("--count", type=int, default=50, help="instances per task (the suite protocol's episode count)") + ap.add_argument("--margin", type=int, default=30, help="extra candidates to replay beyond --count") + ap.add_argument("--device", default="cpu") + ap.add_argument("--out", default=str(INSTANCES), help="root of the instance sets") + ap.add_argument( + "--source", + action="append", + metavar="TASK=PATH", + help="freeze TASK from this demo file instead of its published one (repeatable; say why with --note)", + ) + ap.add_argument("--note", action="append", metavar="TASK=WHY", help="recorded in the sidecar next to the source") + args = ap.parse_args(argv) + sources = dict(kv.split("=", 1) for kv in args.source or ()) + notes = dict(kv.split("=", 1) for kv in args.note or ()) + from metasim.bench import get_suite + + suite = get_suite(args.suite) + if not suite.simulator: + raise SystemExit(f"suite {args.suite!r} names no simulator") + out = Path(args.out).resolve() + records = [] + for _, entry in suite.entries(): + if args.task and entry.task not in args.task: + continue + records.append( + freeze_task( + suite, + entry, + count=args.count, + margin=args.margin, + device=args.device, + out=out, + source=sources.get(entry.task), + note=notes.get(entry.task), + ) + ) + print(f"{len(records)} instance set(s) written under {out.relative_to(REPO) if out.is_relative_to(REPO) else out}") + return 0 + + +if __name__ == "__main__": + sys.exit(main())