Evaluating Coding Agents That Control Robots: Pinpointing Failures Across 1,156 Tasks
This article explains how to evaluate coding agents that control robots. It covers why final success rate alone is not enough, how a benchmark of about 1,156 tasks across 35 task sets and 47 robot morphologies can be organized, three evaluation modes with increasing constraints, a unified run framework, scoring methods beyond success rate, and how to trace a failure to a specific stage such as perception, planning, or control.
1. Why Final Success Rate Is Not Enough for Robot Agents
Traditional robot benchmarks usually target a fixed type of policy model. The input is images, depth data, or sensor readings, and the output is an action sequence. The model’s role is relatively clear. As long as the dataset, execution environment, and evaluation metrics are unified, system quality can be judged by success rate, trajectory error, or completion time.
Coding agents work in a more open way. They may call robot control interfaces directly, write a control program, or first generate a training pipeline that trains another policy model to run the task. Different implementation paths may use very different intermediate states, tool-calling methods, and planning steps.
This creates a core problem. If the evaluator requires one specific implementation method, the test may only measure whether the agent can adapt to that interface. It may not measure whether the agent can actually solve the robot task.
A more reasonable set of principles is:
- Specify the task goal only, not the implementation path;
- Unify the environment, observation boundaries, and resource limits;
- Allow multiple control methods to take part in the comparison;
- Record not only whether the task succeeded, but also where and why it failed.
In other words, the object of evaluation should not be a single action policy. It should be a complete system that understands the task, organizes steps, calls tools, and completes closed-loop control.
2. Task Scale: From Single Grasping to Multiple Types of Embodied Manipulation
A representative benchmark can include about 1,156 tasks, covering 35 task sets and 47 robot morphologies. This scale is meant to test generalization across different physical constraints, sensor configurations, and operational goals, not simply to add more samples.
Task design should cover at least the following categories.
1. Object manipulation
These tasks include grasping, placing, pushing, arranging, inserting, rotating, and opening or closing. They look simple, but they require precise control of end-effector position, gripper pose, collision detection, and contact force.
For example, “place the specified object into the target area” is not complete just because the arm touches the object. The system must identify the target, approach it, grasp it, hold it, move it, and release it. The final position must also satisfy the task constraints.
2. Multi-step composite tasks
Composite tasks require the agent to complete several subgoals in sequence. For example, it might open a container, take out an object, and then place that object at a specified location. A failure at any step can cause the final result to fail.
These tasks test whether the agent can:
- Break a goal down into subgoals;
- Plan the order of actions;
- Judge intermediate states;
- Recover after a failure;
- Keep adapting to changes in the environment.
3. Spatial relation tasks
Task goals can be described by relative position, direction, distance, or topological relationships instead of fixed coordinates. This reduces dependence on one particular scene layout. It also checks whether the agent understands constraints such as “on the left,” “near the edge,” or “inside.”
4. Dynamic interaction tasks
Targets in the environment may move, or the agent may need to wait for a state change before continuing. These tasks place higher demands on real-time observation, action timing, and feedback control.
If an agent can only generate a complete action sequence once and cannot revise its plan based on new observations, it often fails in dynamic environments.
3. Three Evaluation Modes: Adding Real-World Constraints Step by Step
To separate the sources of capability, the same task can be run in up to three modes. The modes do not change the final task goal. They progressively restrict the information the agent can access and the interaction conditions it can use.
1. Privileged information mode
In this mode, the agent can access relatively complete environment state. This may include the target object’s position and pose, available space, or some hidden state. The environment may also allow looser execution conditions.
The purpose of this mode is not to simulate real deployment. It establishes a capability ceiling. If the agent still fails often in this mode, the problem may lie in task decomposition, action generation, control programs, or tool-calling logic, not necessarily in visual perception.
2. Standard observation mode
The standard mode provides only the observations the task actually allows, such as camera images, depth information, joint states, and publicly available sensor readings. The agent cannot read the environment’s internal state directly, and it cannot bypass the perception process to get the answer.
This mode is closer to the working conditions of a typical robot system. It suits the evaluation of how well perception, reasoning, and control work together.
3. Real-time interaction mode
The real-time mode adds time constraints and interaction limits. The environment does not wait indefinitely for the agent to produce the next action, and the system cannot be paused or reset at will. The agent must observe, decide, and act within a set time.
This mode exposes problems that offline evaluation often hides, such as:
- Slow inference;
- Too many action calls;
- Inability to process continuous observations;
- Plans falling out of sync with execution;
- Failure to correct deviations in time.
Together, the three modes form a clear capability profile. They show whether the agent can finish a task when it knows the environment state, whether it can finish when it relies only on normal observations, and whether it can finish reliably under real-time limits.
4. A Unified Run Framework: Isolating Model Differences and Keeping Experiments Reproducible
To compare different coding agents, the differences among the model, the agent framework, the control method, and the simulation environment must be isolated.
A general run framework can be divided into five layers:
- Task layer: defines the goal, initial state, termination conditions, and constraints;
- Observation layer: specifies the images, sensor readings, and state information the agent can read;
- Decision layer: generates the plan, program, or next action;
- Execution layer: converts actions into control commands the robot can execute;
- Recording layer: stores observations, actions, timing, errors, and stage results.
Ideally, starting an experiment requires only specifying the task set and the agent configuration. The framework handles everything else. When the model, decision strategy, or control mode changes, the tasks themselves should stay the same. Otherwise, the results lose comparability.
A unified abstraction of control methods
A coding agent can use at least three control paths:
- Direct control: the agent continuously outputs actions based on observations;
- Program generation: the agent writes control logic that an executor runs;
- Policy training: the agent designs or invokes a training pipeline, and the trained policy then executes the task.
These approaches differ internally, but each should be tested through the same task interface. Each should also follow the same safety boundaries, such as action ranges, collision rules, maximum execution steps, and timeout limits.
5. Scoring System: Recording Process Quality Beyond Success Rate
Final success rate is still the most important metric, but it should not be the only one. At minimum, record the following.
1. Task success rate
This measures whether the system reaches the final goal. For repeated runs, report the average and track variation across different random initial states.
2. Stage completion rate
Split the task into stages such as perception, planning, approach, grasp, transport, placement, and verification. Measure the completion rate of each stage. This shows whether the system failed to understand the task from the start or failed during the final fine-grained control.
3. Action efficiency
Record the number of actions, the planning length, repeated calls, and the share of ineffective operations. A system that succeeds with highly redundant actions may cost more to deploy.
4. Time and resource consumption
Track decision latency, total execution time, compute usage, and the number of tool calls. Real-time robot systems must not only get the task right. They must also get it right in time.
5. Safety metrics
These include collision counts, boundary violations, the share of dangerous actions, and the number of abnormal terminations. For physical hardware, safety constraints should have their own priority. A high success rate should not hide safety problems.
6. Breaking a Failure Into an Explainable Chain
Failure localization is the most valuable part of this kind of evaluation. A failed task does not necessarily mean the agent is generally weak. Only by splitting the task into stages can the real bottleneck be found.
The following diagnostic chain can be used:
Task understanding → Scene perception → Target localization → Action planning → Control execution → State verification → Failure recovery
For example, if a robot fails to place an object into the target area, there could be several causes:
- It did not identify the correct object;
- It identified the object correctly, but its position estimate was off by a large margin;
- The planned path went through an obstacle;
- The approach pose was unsuitable for grasping;
- After grasping, it did not confirm whether the object was held firmly;
- A collision occurred during transport;
- The placement met the geometric condition but not the semantic requirement of the task;
- After failing, it k
