Embodied Evaluation of Coding Agents: Understanding the Open-Book vs. Closed-Book Gap

    This article examines why coding agents that excel at digital tasks often struggle in robot environments, and how a unified embodied benchmark can separate perception, planning, control, and recovery. It explains the benchmark design, the significant gap between privileged access with unlimited resets and sensor-only standard mode, and why failure-stage attribution is more actionable than a single success rate.

    General-purpose coding agents have shown strong task decomposition, code generation, and tool-calling abilities in the digital world. Through programming interfaces, they can also send actions to simulated robots, write control programs, and even train policy models. Yet there is a clear gap between digital tasks and embodied tasks: an agent sees the environment only through limited sensors, actions cannot usually be undone, and the physical world does not pause for reasoning. This raises a basic question: which robot tasks can a general coding agent complete, under which physical constraints, and at which stage does it fail?

    A public evaluation study has built a unified framework to address these questions. It connects multiple coding agents to simulated robot environments, forming a large-scale embodied benchmark with rich task types and clearly separated difficulty levels. Its core value is not a simple leaderboard, but a way to decompose model capability, environment permission, reset semantics, and failure stage into measurable dimensions. This article focuses on why the open-book and closed-book results differ so much, and why adding reset capability can sometimes be more useful than providing complete state information.

    Why Embodied Evaluation Cannot Copy Software Benchmarks

    Software tasks usually support rollback, replay, and serializable state. Agents can use logs, breakpoints, and unit tests to locate problems quickly, and incorrect operations can often be undone or re-executed. Embodied tasks are different in several important ways:

    • Partial observability: The agent can only access sensor readings, not the full physical state. Occlusion, noise, and latency can all cause state estimation errors.
    • Irreversible actions: Movements, grasps, pushes, and pulls change the environment. A bad action can produce an unrecoverable layout shift.
    • Real-time constraints: The environment continues to evolve, so reasoning and control must meet timing requirements and cannot wait indefinitely.
    • Complex physical constraints: Contact, friction, collision, and joint limits are hard to describe in pure language. Strategies must be validated through closed-loop execution.
    • High recovery costs: Real robots often require human intervention for reset. Whether reset is allowed, and how many times, can dramatically change task difficulty.

    Therefore, using final success rate alone can easily confuse perception ability, planning ability, control precision, and recovery ability. The unified benchmark is designed to run the same tasks under different permission settings, so that we can observe how agents behave when they have full visibility, when they can retry, and when they must rely only on sensors.

    The Unified Exam and Permission Tiers

    The evaluation design can be summarized in four layers.

    First, it provides a unified exam. The benchmark contains over a thousand tasks and dozens of robot embodiments. It is not limited to tabletop pick-and-place; it also covers mobile tasks, manipulation tasks, and multi-stage collaboration. The tasks are large in scale, varied in type, and high in difficulty. In the public results, representative coding agents solve only about half of the core tasks in standard mode, which shows that “can write code” does not automatically mean “can control a robot.”

    Second, it uses permission tiers. The framework separates environment permissions into several levels. Two levels are especially informative. One is a privileged mode that allows the agent to read complete simulation state and reset without limit. The other is a standard mode in which the agent relies only on sensor observations and, by default, cannot reset. On the same core tasks, the privileged mode can reach roughly 80% success, while standard mode is only about 47%. That gap is not simply “the model got worse”; it reflects the combined effect of limited perception, error accumulation, and missing recovery capability.

    Third, it provides unified infrastructure. The benchmark can be started with one command. Changing the model or the agent framework requires adjusting only a few parameters. More importantly, the framework does not force a specific way of generating actions. The agent can choose to issue low-level control commands, write a closed-loop control program, or train a policy model when resources allow. The platform records resource budgets and execution trajectories so that different approaches remain comparable.

    Fourth, it performs systematic failure analysis. The benchmark does not only output scores; it also annotates trajectories by stage. Public analysis of thousands of failures across multiple agents found that different agents often fail at the same step. This suggests that many bottlenecks come from the structure of the task and the environment, not from a single model difference.

    Open-Book 80% vs. Closed-Book 47%: Where the Gap Comes From

    In this context, “open-book” means the agent can access complete state and often unlimited resets. “Closed-book” means the agent only has sensor observations and, by default, cannot reset. The gap between them comes from two core features of embodied tasks: error accumulation and irreversibility.

    Complete state reduces the perception burden. The agent can know object positions, joint angles, and contact states more accurately, which reduces state estimation error. But seeing accurately is not the same as acting accurately. Even when the target position is known, the execution layer can still fail because of limited control precision, incorrect action timing, or poor contact force control. In long-horizon tasks, small deviations can accumulate and eventually produce an unrecoverable layout shift.

    Reset provides a different kind of capability: recovery from error and retry. Unlimited reset allows the agent to return to the initial state after failure and try another strategy, preventing one wrong action from locking the rest of the task. In effect, reset changes the recoverability of the task, and recoverability is often the scarcest resource in embodied settings.

    In the benchmark’s controlled comparisons, adding reset capability proved more useful than adding exact state information. The reasons can be summarized as follows:

    • Exact state mainly relieves “not knowing”; reset relieves “cannot undo a wrong action.”
    • Exact state cannot eliminate execution error; reset can interrupt error accumulation.
    • Exact state cannot solve irreversible actions; reset can restore the space of tryable actions.
    • Exact state helps planning; reset helps exploration and strategy correction.

    Therefore, an evaluation should not bundle complete state and unlimited reset into one privileged score. It should report state visibility and reset budget separately. A more useful design is an evaluation matrix: full state versus estimated state, combined with zero reset, finite reset, or unlimited reset. Only then can we tell whether a failure comes from perception, control, or recovery.

    Failure-Stage Annotation: Why Different Agents Fail at the Same Step

    Failure-stage annotation turns a success rate into a process bottleneck. A trajectory can be split into stages such as perception and localization, task planning, approach and alignment, grasp or movement control, anomaly recovery, and task completion. The benchmark labels the first unrecoverable failure point.

    Public analysis of thousands of failures across multiple agents found that different agents often fail at the same stage. This points to common difficulties in the tasks:

    • In the perception stage, occlusion and noise cause target estimation drift.
    • In the planning stage, long-horizon task decomposition lacks physical feasibility checks.
    • In the control stage, action sequences become unstable under contact constraints.
    • In the recovery stage, agents lack anomaly detection and retry strategies.
    • In the completion stage, success conditions are either too loose or too strict.

    This kind of analysis is more useful for engineering than a single score. Developers can decide whether to improve state estimation, introduce closed-loop feedback, or design recovery strategies and safety margins.

    Engineering Suggestions and Pseudocode

    For practical evaluation platforms, it is best to manage task images, trajectory data, execution logs, and metric dashboards in a unified way. Common cloud capabilities such as container platforms, object storage, logging, and monitoring services can support a reproducible evaluation pipeline. The evaluator should record reset counts, intervention counts, execution steps, resource consumption, and failure stage, rather than keeping only the final success rate.

    1. def evaluate(agent, tasks, mode, reset_budget):
    2. records = []
    3. for task in tasks:
    4. env = make_env(task, mode)
    5. obs = env.reset()
    6. for step in range(env.max_steps):
    7. action = agent.act(obs, task)
    8. obs, reward, done, info = env.step(action)
    9. if done:
    10. break
    11. if env.needs_recovery() and reset_budget > 0:
    12. obs = env.reset_soft()
    13. reset_budget -= 1
    14. info["recovered"] = True
    15. records.append(record(task, step, info))
    16. return aggregate(records)

    As coding agents move into embodied scenarios, evaluation should shift from “can the agent generate actions” to “can the agent reliably complete tasks under partial observability, irreversible actions, and limited recovery.” The open-book and closed-book gap reminds us that complete state helps the agent see more clearly, while reset and recovery let it afford mistakes and correct course. Only by including permission levels, reset budgets, and failure stages in a unified evaluation can we move closer to the requirements of real robot deployment.