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.
Table tennis (G1): rules
Task tabletennis-g1-match-engineer (Table tennis (G1) · Fixed opponent · Engineer). Part A, the match rules, is generated from the sport's declaration (sports/tabletennis_g1/sport.toml, revision g1tt-10+core-0.5) and is part of the Task's frozen release. When this match belongs to a competition, Part B (the competition's rules: how results count, the standings or ratings, continuity) follows Part A; without Part B the match stands on its own.
Part A: the match rules
The match
Robot table tennis by two Unitree G1 humanoids (29 joints within Unitree's URDF limits and the motors' torque-speed curves, physical self-collision, falls), each holding a real racket, in a continuous world running in real time; Engineer track: your program drives every joint of your G1 itself (joint position targets at 100 Hz with your own PD gains (any non-negative kp / kd, clipped at the simulator's stability bound) on the joint sensors' noisy reading; no walking service: the legs are the program's too) and sees the ball only through two cameras (a frame every 10 ms control step, 20 ms old); one game to 5 points (lead by 2 from 4:4, at 6:6 the next point wins); the players' robots serve by the ITTF service laws with a toss device (a service must bounce at least 0.3 m from the net and at most 0.6 m from the centre line); format match: you against a G1 opponent driven by the platform (levels 1-3 and a BOSS level 4, the same joint interface), format duel: two players.
Rulebook: ITTF Laws of Table Tennis (ITTF Statutes 2025, chapter 2), version 2025 (effective 1 January 2025) (https://db.ittf.com/sites/default/files/public/2025-02/ITTF_Statutes_2025_tracked_changes_version.pdf). The match follows it except for the deviations below.
- Format
match: seats A; against a G1 opponent driven by the platform (the same robot, racket and joint interface as yours; seeopponentbelow); levels 1, 2, 3, 4. - End of the match: The winner: a player's third undue-delay fault loses it the match; else the first player to 5 points with a lead of 2, or the first to 7, wins the game (the match); a let scores no point (at most 2 service lets in a row); if 16 points (lets included) are played, the player ahead wins and at a level score the player who won the last point (last resort, not from the rulebook); there are no draws.
- Winner: a player's third undue-delay fault loses it the match; else the first player to 5 points with a lead of 2, or the first to 7, wins the game (the match); a let scores no point (at most 2 service lets in a row); if 16 points (lets included) are played, the player ahead wins and at a level score the player who won the last point (last resort, not from the rulebook). There are no draws.
- Continuous score
point_share(larger is better): points won / points played in the game (lets do not count); a side that forfeits gets 0.0.
Rule texts and constants
rules: after exactly one bounce on your half, hit the ball once so that it lands on your opponent's half, directly or after touching the net (the upper table edges count, the vertical sides do not); the same holds for your opponent's returns. You lose the point for a volley, a double hit, two bounces, a miss, a ball that lands on your own half or out, the ball touching any part of your robot but the blade while it is over or travelling towards your half, or your robot or racket touching the net assembly (touching the table is allowed); and the receiver's 13th good return in a rally wins it the point, as does a point not decided 30 s after its serve opened (expedite rule)serve: the players serve (ITTF 2.6; state.you_serve, state.serve): you serve the first 2 points, your opponent the next 2, and so on; from 4:4 the service changes after every point. state.serve: phase waiting -> open (0.8 s after the previous point) -> tossed -> done; deadline_in_s. Toss within 5 s of the serve opening, else a failed service (the third loses the match). Toss: {type: toss, pos: [x, y, z], height}: the ball rests at pos for 0.1 s, then rises height metres (0.16 <= height <= 1.0); pos behind your end line and above the table (y <= -1.39, 0.02 <= z <= 0.9), within 0.9 m of your pelvis horizontally. Strike it with your racket as it falls, behind your end line and above the table; it must bounce on your court and then directly on your opponent's court, at least 0.3 m from the net (D13) and at most 0.6 m from the centre line (D14, the service zone). A service that touches the net and is otherwise good is a let, at most 2 in a row. Faults are reported as serve_fault:: undue_delay, dropped, in_front, position, toss_touched, not_projected, rising, double_hit, not_own_court, out, undecided, repeated_let, short (closer than 0.3 m), wide (farther than 0.6 m from the centre line)opponent: format match: your opponent is a G1 like yours in the world (sim/opponent.py), driven by the platform through the same joint interface with the same limits: a learned whole-body striker at 50 Hz; every command of its own (the striker's joint targets, the toss, the stroke, its rally decisions) takes effect at the next control step after it is decided, as yours do after they arrive. It chooses each stroke by its own striker's measured capability (the contact, aim and outgoing speed it executes best), preferring its level's aim. Levels 1-2 see the ball as you do: its position at 100 Hz at your cameras' latency (2 control steps) with an error of 2.0 / 0.6 cm per axis, and the contacts it hears; they decide 0.34 / 0.26 s after your contact (level 1 re-plans up to 3 times, level 2 up to 11 times, every 0.03 s, correcting the arc after its bounce); every rally decision is used 60 ms after the view it was planned from (its planning time) and aim deep and central (level 1: 0.95 m from the net, 0.05 m off the centre line) or shorter and wider (level 2: 0.75 m, 0.40 m, away from where you struck). Level 3 knows more than a camera shows (declared asymmetry TP1): the ball's true position and velocity as your cameras would show them (2 steps old, 0.6 cm and 5 cm/s error) and its true spin; it decides 0.14 s after your contact and aims 0.80 m, 0.45 m away. Level 4 (BOSS, TP2) reads the ball's true state with no latency and no error and decides 0.10 s after your contact. Levels 2-4 vary their choice among nearly equal strokes and their serve order by the match seed. It serves a G1 repertoire (level 1: one central serve; 2: two; 3-4: three). Its level sets only what it perceives and decides, never its robot or controllerduel: format duel: both players serve by the same rules; the first server serves the first 2 points; every point starts with both robots standing still in the ready pose at home; both players get this document and see the game in their own frameworld: metres; your frame: x to your right, y towards the opponent, z up; table top z = 0, |x| <= 0.7625, |y| <= 1.37; net at y = 0, top z = 0.1525; your half y < 0; floor z = -0.76. Your robot is a Unitree G1 (about 1.3 m tall) holding a racket in its right hand; home: the pelvis at (-0.30, -1.52) (0.15 m behind your end line), facing +y. The joints, their order, ranges, speed and torque limits, the motor curves, the PD law, the gains' stability bound and the joint sensors' noise are in game spec interfaceball: radius 0.02 m, orange; gravity 9.81 m/s^2; air drag about 0.13 |v| v; spin bends the flight by a few cm; a bounce keeps about 90 % of the vertical and 87 % of the horizontal speed (a ball dropped from 30 cm bounces back to about 23 cm, ITTF 2.1.3); a ball takes about 0.6-0.9 s from the opponent to youblade: 15 x 15 cm, 1.5 cm thick (the racket 0.22 kg with its wrist connector); the ball meets it with normal restitution 0.80 and friction 0.8: with n the unit face normal the ball leaves with about v_out = v_paddle - 0.80((v_in - v_paddle).n)n + the tangential part of (v_in - v_paddle) reduced by the rubber's gripobservation: observe: one PNG of one camera frame, a frame every 10 ms control step, 2 control steps (20 ms) old: its two 480 x 360 tiles side by side (left the camera behind your robot, right the camera at the side), with the frame's control step (observation.view_steps); observe every step to see every frame; no ball coordinates; yellow marks every 0.25 m along the table edges; cameras' poses and intrinsics in game spec (pinhole, 45 degree vertical field of view, focal length 434.6 px). Your robot's state (state latency 0): q, qd, tau, q_target, kp, kd (29 joints), imu {quat, gyro, gravity} (the pelvis IMU), pelvis {pos, vel, yaw} (the venue's motion capture), paddle_pos, paddle_normal, robot {fallen, reflex, ...}, ownersaction_low: joint-level actions only (no skill, no stroke planner): joints {q: 29 targets or 17 (waist and arms), one row or up to 300 rows (one per 10 ms control step from the step the act takes effect; the last row held), optional kp / kd (one number or one per column; any non-negative value, clipped at the simulator's numerical-stability bound), qd (velocity targets)}; toss {pos, height} (your service). Targets are saturated at the joint ranges and at the speed limits from the previous step's target; the PD runs at 1 kHz through the motors' torque-speed curves; no gravity compensation on the joints you command. No walking service: walk is refused, the legs are yours from every point's startreal_time: the world runs on its own clock in real time (timing.slowdown = 1 in game spec); it never waits for you; a command takes effect at the next control step after it reaches the match server (action.layer_delay_steps = 0 at the joint layer: e = r + L), and the time your program takes to compute and send it is yours; one act per robot in flight; after each point the world freezes until every player has sent game ready WHY PLANscatter_and_seed: the opponent's perception errors are drawn from the seed; there is no execution scatter on your commands (your control is your own)
Deviations from the rulebook
| id | rulebook | deviation | changes the result |
|---|---|---|---|
| D1 | ITTF 2.11, 2.12 | one game to 5 points (from 4:4 a lead of 2 is needed, at 6:6 the next point wins: 7 points at most) instead of a best-of-games match with games to 11 | yes |
| D2 | ITTF 2.6.1, 2.6.2, 2.6.4, 2.6.5 | the robot holds its racket and has no free hand: a toss device on the robot makes the toss. The server sends toss {pos, height}: the ball rests stationary at pos for 0.1 s (2.6.1), then it is projected straight up with no spin so that it rises height metres above pos (2.6.2: 0.16 <= height <= 1.0); pos must be behind the end line and above the playing surface (the whole ball, 2.6.4), within 0.9 m of the server's pelvis horizontally and at most 0.9 m above the table (the device's reach). Until the toss the ball waits out of sight. Not judged: the ball hidden from the receiver (2.6.4; the toss happens in view of both cameras), the free arm (2.6.5). Judged as in the Laws: the toss must fall without touching anything until it is struck, as it falls, behind the end line and above the playing surface (2.6.2-2.6.4, checked at every physics step), and the service must touch the server's court and then directly the receiver's (2.6.3); a dropped toss or any other failed service is the receiver's point (2.10.1.1) | yes |
| D3 | ITTF 2.5.7 | only the blade can strike the ball: the ball touching any other part of the robot (the handle, the arm, the body) loses the point | yes |
| D4 | ITTF 2.10.1.9-2.10.1.11 | as in the Laws, the robot or its racket touching the playing surface (or the floor) is not a fault; touching the net assembly loses the point (2.10.1.10). The table cannot be moved (2.10.1.9 never applies); the robot's free (left) hand touching the playing surface is not judged (2.10.1.11); the robot's collision reflex protects it (rule G2) | yes |
| D5 | ITTF 2.10.1.7 | any double hit loses the point, deliberate or not | yes |
| D6 | ITTF 2.15.4 | the expedite rule's 13-return limit applies from the first point: the receiver's 13th good return in a rally wins it the point (this bounds every rally); the service still changes every 2 points (one each from 4:4) | yes |
| D7 | ITTF 2.9.1.3 (let) | faults by both players at the same instant (both robots touching the net, or both touching the ball in the same millisecond) are a let | yes |
| D8 | - (cost limit, not from the rulebook) | if 16 points (lets included) are played the game ends: the player ahead wins; at a level score the player who won the last point (a game has at most 13 scored points; the bound keeps the session within its time limit, sport.toml [termination]) | yes |
| D15 | ITTF 2.15 (expedite system; cost limit) | a point not decided 30 s (game time) after its serve opened is the receiver's: the expedite rule in time (ITTF 2.15 lets the receiver win on its 13th return once a game has run 10 minutes); with the 13-return limit (D6) it bounds every point, so the session has a finite worst case (sport.toml [termination]). The longest point of 615 screening matches took 24 s | yes |
| D10 | - (ITTF chapter 3 regulates delay with warnings and penalty points; not in the Laws) | undue delay has a fixed limit: the server must toss within 5 s (game time) after the serve opens (0.8 s after the previous point), else it is a failed service (serve_fault:undue_delay); a player's third such fault loses it the match | yes |
| D11 | ITTF 2.13.1, 2.13.2 | no lot for the first service: format match - you serve first; format duel - the runner plays both orders of the first server | yes |
| D12 | ITTF 2.9.1.1 (let), 2.13.3; ITTF chapter 3: 3.4.4.1, 3.5.2.1-3.5.2.3 | a service that touches the net assembly and is otherwise good is a let, at most 2 in a row: the server's third service let since the last point scored is a failed service (serve_fault:repeated_let), in place of chapter 3's sanctions for delaying play (a program could replay a net-clipping service indefinitely) | yes |
| D13 | ITTF 2.6.3 (a good service: the server's court, then the receiver's court) | the service's bounce on the receiver's court must be at least 0.3 m from the net (the ball's centre at the contact), else it is a failed service (serve_fault:short); a short service that touches the net is a fault, not a let. The G1's feasibility gate (screen/b9.py: this world and joint interface, the upper-bound receiver with the learned striker, strict: a self-collision above 20 N or a fall fails; record tests/b9_record.json of 2026-10-21, measured when a command took effect one control step later than it does now): of the library's legal services 92.1 % are returned with 0.3 m and 75.5 % with 0.2 m (the Franka sport's value since its revision 16/13 is 0.3 m too) | yes |
| D14 | ITTF 2.6.3 (singles: the service may bounce anywhere on the receiver's court) | the service zone: the service's bounce on the receiver's court must be at most 0.6 m from the centre line (the ball's centre; the court is 0.7625 m wide each side), else it is a failed service (serve_fault:wide). Rallies are not restricted. The G1's feasibility gate: with D13 and D14 the upper-bound receiver, from one ready stance (the pelvis at (-0.30, -1.65)), returns 93.5 % (88.7-96.3) of the library's legal services and 90.9 % (86.6-93.9) of the synthetic legal services (fast, spinning, every depth); without D14 92.1 % and 84.4 % (the misses are wide services the G1 cannot reach from one stance) | yes |
| G1 | - (embodiment, not from the rulebook) | the player is a Unitree G1 humanoid (29 joints: Unitree's URDF joint ranges, speeds and torques, the motors' torque-speed curves; physical self-collision) holding a real racket (0.22 kg with its wrist connector) in its right hand, standing behind its end line. Engineer track: the program commands every joint (position targets at 100 Hz, its own PD gains (clipped at the simulator's stability bound), no feed-forward, on the joint sensors' reading; saturated at the ranges and speed limits), the legs too: there is no walking service. A human player is not limited this way | yes |
| G2 | - (the table-tennis family's real-limit rules on the G1) | joint-velocity reflex: a joint faster than 1.05 x its URDF speed stops the robot (its joints hold the pose of the trigger for 1 s, commands refused, then it holds that pose until its next command); collision reflex: the robot's links or racket pressing on the table with more than 20 N do the same; a fall (pelvis below 0.45 m above the floor or tilted more than 60 degrees) leaves the robot lying until the point ends | yes |
| G3 | - (a humanoid can fall) | every point starts with both robots standing still in the ready pose at home (the pelvis 0.15 m behind the end line, 0.30 m left of the centre line), whatever happened in the point before; the body holds the legs, waist and arms at the ready pose (its own joint PD) until each program commands its robot | yes |
| G4 | - (the toss device) | before the toss the ball waits out of sight; the toss device's reach is measured from the server's pelvis | yes |
The platform opponent's timing and information
The opponent the platform runs plays under your timing and your information. Its action timing always equals yours: its commands take effect as many control steps after the world state they answer as your actions do after they arrive, at every level and with no exception (slower is allowed: a level's reaction delay). It sees the world only through what your seat gets, with the same latency; the exceptions, which concern information only, are declared here:
| id | levels | what | exception |
|---|---|---|---|
| TP1 | L3 | observation (truth) | level 3 reads the ball's true position and velocity as your cameras would show them (6 control steps old, with an error of 0.6 cm and 5 cm/s per axis) and the ball's true spin, which no camera shows, and rolls them out in the venue's own ball model; its commands still take effect at the next control step after they are decided, as yours after they arrive, and it never reads your robot's commands |
| TP2 | L4 | observation (truth) | the BOSS (level 4) reads the ball's true position, velocity and spin at its decision step instead of your cameras' frames (no camera latency, no measurement error) and rolls them out in the venue's own ball model; its commands still take effect at the next control step after they are decided, as yours after they arrive, and it never reads your robot's commands |