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.
DexHand: Carry a tray with two filled glasses around a bottle to the other counter
Carry the serving tray with the two filled glasses from the source counter (centre x = 0.35 m) to the receiving counter (centre x = 0.78 m). Two dexterous hands, each on its own six-axis wrist stage, start above the two ends of the tray's long axis; the tray rim has open handle slots under the rim bar at both of those ends. Carry the tray around the steel bottle standing on the source counter at (0.52, 0.22) m and across the 30 mm gap between the counters, set it down on the receiving counter and let go. The liquid is not simulated: a glass counts as spilled when its axis tilts more than 15 degrees from vertical. Glass positions are measured in the tray frame, whose origin is the bottom centre of the tray floor (the floor's top surface is at height +2 mm in that frame). A glass is seated when its base centre lies inside the tray footprint ellipse (semi-axes 0.165 m x 0.23 m) and at a height between -3 mm and +8 mm in the tray frame. Success requires, in this order: (1) lift-off: the tray touches neither counter, its base is at least 30 mm above the counter top (z >= 0.91 m) and both glasses are seated; (2) placement: the tray rests on the receiving counter only, its centre within 20 mm in x and 30 mm in y of (0.78, 0.00) m, tray tilt at most 5 degrees, tray yaw within 10 degrees of its start orientation (long axis along y), both glasses seated; (3) release: the placement conditions plus no hand touching the tray or a glass, both glasses within 6 degrees of vertical, tray and glasses at rest (every linear speed at most 0.02 m/s and every angular speed at most 0.2 rad/s), held for 50 consecutive controls (1 s). The episode ends with success at that moment; a partial transfer never counts. The episode ends immediately with failure, checked after every 2 ms physics step, when a glass tilts more than 15 degrees (spilled); a glass base centre leaves the footprint ellipse, or its height in the tray frame exceeds +22 mm (20 mm above the floor's top surface) or falls below -10 mm; the bottle touches the tray, a glass or a hand; the tray touches the source counter again after lift-off; the tray touches the receiving counter while its centre is more than 40 mm in x or 50 mm in y from (0.78, 0.00) m (no dragging); the tray or a glass moves downward faster than 0.6 m/s (dropped; a free fall of about 18 mm), or faster than 0.2 m/s while unsupported (the tray touching no hand and no counter; a glass touching neither the tray, the other glass, a hand nor a counter); the tray tilts more than 35 degrees; the tray or a glass goes below z = 0.86 m, touches the floor or leaves the workspace box x in [0, 1.15] m, y in [-0.6, 0.6] m, z in [0.86, 1.12] m (so the tray cannot be lifted over the bottle); or the physics becomes unstable. Later actions cannot undo a failure. Only actuator targets of the two wrist stages and hands are commanded: no object teleports, grasp welds, scripted object motion or applied forces. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
You control two dexterous hands, each mounted on its own six-DoF wrist positioning stage (three prismatic and three serial revolute joints, no arm). The left hand hangs above the +y end of the tray, the right hand above the -y end, fingers pointing down and palms facing the tray. Stages and fingers are position actuated in the physics engine under native force bounds; lifting, carrying and setting down the tray require physical contact. The controller runs at 50 Hz, with ten 2 ms physics substeps.
Hands
Two genuine manufacturer hand models are available: sharpa (Sharpa Wave, 22 finger actuators; the default) and wuji (Wuji Hand 2.2, 20 finger actuators). The task, scene, mount, objects and success predicate are the same for both; only one hand is used per episode.
Two hands of the selected model, each on its own six-axis wrist stage (no arm): the left hand at the +y end of the tray, the right hand at the -y end. Every row holds both stages' targets and both hands' finger targets (layout below).
Choose the hand with Session(..., hand="wuji") or the environment variable DEXHAND_HAND=wuji (default sharpa). Action rows are 56 wide for sharpa and 52 wide for wuji; s.actuator_names gives the exact order. s.save_trajectory(actions, path) records the hand in the archive (hand member). The verifier rebuilds the scene with the recorded hand (default sharpa when the member is absent) and rejects a trajectory whose width does not match that hand; rows are never padded, truncated or converted between hands.
Action layout
Each row is one 50 Hz control and holds, in this order:
- the left wrist stage:
l_wrist_x, l_wrist_y, l_wrist_z(metres, displacement along the world axes from the stage base at (0.35, 0.272, 1.15) m) andl_wrist_rx, l_wrist_ry, l_wrist_rz(radians, serial XYZ hinges at the wrist); - the right wrist stage:
r_wrist_x ... r_wrist_rz(same, stage base at (0.35, -0.272, 1.15) m); - the left hand's finger targets, then the right hand's finger targets, in radians:
sharpa: 56 values; 22 Sharpa Wave finger targets per hand,l_hand_thumb_CMC_FE ... l_hand_pinky_DIP, thenr_hand_thumb_CMC_FE ... r_hand_pinky_DIP(the left hand is the mirrored Wave);wuji: 52 values; 20 Wuji Hand 2.2 finger targets per hand,l_wuji_l_THJ0..3, l_wuji_l_FFJ0..3, ..., l_wuji_l_LFJ0..3, thenr_wuji_r_THJ0..3 ... r_wuji_r_LFJ0..3.
Every target must lie within s.model.actuator_ctrlrange. Both hands start with every target at 0 clipped into its
range (stages at their base pose, open hands).
Deliverable
Save /app/output/trajectory.npz with a finite numeric actions array of shape (T, 56) for sharpa or (T, 52)
for wuji, at most 3000 rows, plus the hand member (s.save_trajectory writes both), and
/app/output/gen.py, the script that produced it. The separate verifier rebuilds the frozen scene with the recorded
hand and replays only these motor targets in two fresh processes; both replays must succeed and end in the identical
state hash. A replay stops at the first success or the first failure; later rows are not executed. Object poses,
configuration overrides, pickled arrays and success claims are not deliverables and are never read.
Save the archive compressed (numpy.savez_compressed; s.save_trajectory does): an archive file larger than 64 MB is rejected with reward 0.
Tooling
from rcb_dexhand import Session
s = Session("tray_glass_carry") # default hand: DEXHAND_HAND or "sharpa"
s = Session("tray_glass_carry", hand="wuji") # explicit hand
s.hand, s.action_dim, s.actuator_names # selected hand, row width and exact row order
s.hold_action() # current motor targets
s.model.actuator_ctrlrange # native target limits
s.model, s.data # privileged MuJoCo model and state
s.status() # success, done, reason, steps, stage (0..3), hold_steps, features
s.step(row) # ten 2 ms physics substeps; a no-op once the episode is done
s.snapshot(), s.restore(snap) # save / restore the simulator and predicate state
s.render_frame("overview") # RGB uint8 (480, 640, 3); also "side", "top", "handle_left"
s.reset() # exact frozen reset
s.replay(actions) # reset, run rows until the episode ends, return status()
s.save_trajectory(actions, "/app/output/trajectory.npz")
In this mode you may read the complete simulator state (s.model, s.data: object poses, contacts, velocities) and
the predicate progress (s.status(): stage 0 start, 1 lifted, 2 placed, 3 released and held; hold_steps counts
the 50-control release window; reason names the first failure). Read /opt/tools/task.json, scene.py,
checker.py and runtime.py for the complete geometry, failure checks and predicate. The world frame has z up; lengths are in metres and angles in radians. Both counter tops are at z = 0.88 m;
the tray's body frame sits at the bottom centre of its floor, its long axis along world y.
External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
Resources
Your container: 2 CPUs, 7 GiB of memory, 2048 processes and threads and 10 GiB of disk (new files under /app, /tmp and /root). Your container has no GPU. CPU only slows you down; a process that goes over any other cap can be killed. Usage and caps: /run/rcb-limits/usage.json.
Time limit
You have 3600 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.
This is wall-clock time from the start of your session; the time a simulator takes to start counts. When it is up you are stopped without warning and only what is in /app/output/ at that moment is graded, so save a deliverable as soon as you have one and overwrite it whenever you have a better one. Your session started when you received this task. /run/rcb-limits/usage.json, rewritten every few seconds, gives the time left on this limit (time_left_s) and its end (deadline_utc), counted from a little before your session started, so it never gives you more time than you have: read it (or run date) before you decide that time is short, never guess. Waiting counts too: a tool call that sends input to a process that keeps running (an interactive interpreter, a simulator loop, a server) can wait for the whole wait or yield time you give it even when the answer is printed at once, so give such calls a short wait and poll again if the output is not complete, or run one-shot scripts that exit when they are done. Installing packages is not cheating (## External material above).