Why Do AI Agents Perform So Differently in Open-Book vs. Closed-Book Evaluations
This article examines why AI agents show a large performance gap between open-book and closed-book settings, where open-book completion rates can reach roughly 80% while closed-book rates fall below 50%. It breaks down three key variables behind the gap—resettable environments versus precise state descriptions, step-level failure labeling, and tool availability—and offers a reusable checklist covering dual-track evaluation, environment-first design, failure attribution, tool whitelists, and cloud-side support for isolated execution, checkpoint storage, and monitoring.
1. The Phenomenon: One Agent, Two Scores
A counterintuitive pattern often shows up in AI agent evaluations: when an agent is allowed to access external material, retrieval interfaces, or reference implementations, its task completion rate can be very high. Once that external information is cut off and the agent must rely only on its own parameterized knowledge, the completion rate drops sharply. The figures given in the source material are roughly 80% for open-book and under 50% for closed-book. This gap alone shows that a large part of what today’s so-called strongest coding agents can do comes from “externally retrievable” information rather than “internally known” information.
The implication for engineering practice is direct: evaluation results must state their information conditions. If a report does not make clear whether retrieval is allowed, whether execution is allowed, and whether trial and error is allowed, the completion-rate numbers are not comparable.
2. Variable One: A Precise State Is Not an Executable State
In one controlled experiment, giving the agent a “precise state description” produced limited gains, while giving it a “resettable environment” produced clear gains. The reason is straightforward: a precise state solves “seeing accurately,” while a reset solves “acting accurately.” Agent failures are often not cognitive errors but cases where the agent irreversibly enters a wrong branch and cannot roll back.
An environment contract written as pseudocode:
class Env:def reset(self) -> Obs: ... # Must be idempotent and low-costdef step(self, act) -> (Obs, Reward, Done, Info): ...def snapshot(self) -> Handle: ... # Supports rollback to a checkpoint
Engineering essentials: reset must be idempotent and cheap; side effects (writing files, sending requests, modifying databases) must be rollback-able or compensable; and the state representation should include three kinds of information—completed / not completed / failure reason—rather than only a block of natural-language description.
3. Variable Two: Failures Must Be Labeled at the Step Level
After labeling thousands of failure samples across multiple agents stage by stage, one can see that different agents often fail at the same step. This shows that failures are not random noise but shared bottlenecks in the task structure. If you only look at end-to-end success rate, these bottlenecks get masked by the average.
Suggested labeling dimensions: stage number, failure type (understanding error / tool-call error / parameter error / missing validation / timeout), whether it is recoverable, and whether it is caused by an irreversible environment. With step-level labels, you can perform attribution statistics and pinpoint whether the fix should be a better prompt, an additional tool, or more training.
4. Variable Three: Tool Availability Changes the Solution Path
In a soccer-type task with access to compute and training libraries, agents tend to train a policy themselves rather than hardcode rules. The conclusion is not that “giving tools is always better,” but that tool availability reshapes the agent’s problem-solving paradigm. Evaluations must fix the tool list; otherwise you are measuring the environment, not the capability.
5. A Reusable Practice Checklist
- Dual-track evaluation: run both open-book and closed-book, and report the difference;
- Environment first: ensure resettable and rollback-able behavior before pursuing state precision;
- Step-level attribution: build a unified failure-labeling system;
- Tool whitelist: fix and version the available tools;
- Cloud-side general capabilities: use a container platform for isolated execution, object storage for saving checkpoints, and logging and monitoring services for process tracing.
Overall, the order for improving agent reliability should be “environment rollback → failure attribution → tool constraints → iterative training,” rather than endlessly pursuing stronger parameterized knowledge.
