Skip to content

The first exam for code agents in the physical world: frozen robot tasks from many benchmark suites, each answered with a program and verified in a separate sandbox. Runs on Harbor.

4.2 KB
Raw Blame

dexjoco-pinch-tongs-i00-privileged

Benchmark DexJoCo
Mode privileged
Twin dexjoco-pinch-tongs-i00-standard
Simulator / robot dexjoco / franka-allegro
Family / instance pinch_tongs / seed 0
Oracle full
Agent time budget 3600 s; tokens: protocol default (docs/protocol/running.md "Official runs")
Base image ghcr.io/mll-lab-nu/efe:dexjoco-0.1.2

Task

DexJoCo pinch_tongs (a Franka Panda arm with a 16-DoF Allegro hand): Pick up the tongs and open and close them three times while holding them up. A pinch counts each time the tongs' hinge goes from open (>= 0.1 rad) to closed (<= -0.07 rad). Success: at least three pinches counted and the tongs at least 0.10 m above the table, held for 30 consecutive control steps. Privileged mode: the agent works in the simulator's container with live object poses, unlimited resets and thin motion primitives, and hands in one trajectory replayed open-loop from the frozen instance.

Difficulty

First-pass rating: medium. Dexterous manipulation with a 16-DoF hand on a 7-DoF arm (23 action values per control step); the primitives only move tcp and hand-joint targets, so grasping, pressing and every other skill is the agent's. The reference (the human teleoperator's demonstration) takes 375 control steps (7.5 s at 50 Hz).

Reference solution

solution/oracle_trajectory.npz = the human demonstration's own actions, rounded to float32 (the standard client's precision; the rounded rows still succeed) and replayed from the frozen instance until the episode ends in success (375 rows). The demonstration is public (DexJoCo-Datasets-Raw on Hugging Face), so agent egress is limited to the model APIs.

Verification

Open-loop replay of /app/output/trajectory.npz from tests/instance.npz, twice in a fresh process in the verifier's own sandbox (no network); pass iff both episodes end in success and their final-state hashes agree (tests/grade.py); plus /logs/verifier/replay.mp4, rendered after the verdict is written. A rebuilt instance that does not match its recorded hash (the image no longer rebuilds the scene) replays nothing and gives no verdict: instance_mismatch, grader_error and infra_error = 1, not the agent's 0. A file that is not a readable trajectory (not an npz, no task / actions, a wrong shape, NaN) or has more than 50,000 rows scores 0 as bad_trajectory: the cap is what two replays of the slowest family fit into the verifier's 3600 s. A verifier that runs fewer than 4 OpenBLAS threads (fewer than 4 CPUs visible to it) replays nothing and gives no verdict: too_few_cpus, grader_error and infra_error = 1, not the agent's 0. Oracle: success after 375 control steps.

Resources

Caps per container (PROTOCOL §6).

Container CPUs Memory Processes GPU memory Disk
main (the agent's) 4 10 GiB 2048 no GPU 10 GiB
verifier no cap no cap no cap no GPU no cap
  • GPU: not needed.

Details

Upstream DexJoCo @ 8d23b0f (brave-eai/dexjoco, MIT) on MuJoCo 3.4.0; CPU physics, OSMesa rendering, no GPU
Instance the initial state of the human demonstration table_tongs_demo_10_2026-03-12_16-30-04_442884 (DexJoCo-Datasets-Raw), restored with DexJoCo's own state restorer; instance sha ad2cfca40d427e20
Resources 4 CPUs, 8 GB, no GPU; OPENBLAS_NUM_THREADS=4 in the agent's container and the verifier's (the simulation's result depends on the thread count below 4: tasks/dexjoco/README.md). The 4 CPUs must be visible to the container (its cpuset / affinity; a cpus: quota does not matter): OpenBLAS runs no more threads than that

Tooling notes

DexJoCo's reset samples object poses from the global RNG and its state restorer edits the MuJoCo model (table height, fixed bodies), so instance.npz stores the full physics state (mjSTATE_INTEGRATION), the mocap targets, the controls, every numeric model array a task can change, and the env's Python-side task state. Its per-step camera rendering, real-time sleep, episode cap and hanoi's wall-clock auto-reset are disabled in the tooling (rcb_dexjoco.py).

Provenance

Generated from the frozen instance (environment/instance.npz), restored from DexJoCo's demonstration of the task.