Agent Tool-Planning Evaluation in Dual-Control Environments

    This article explains why static benchmarks fail to capture the real capabilities of AI agents and introduces a dual-control evaluation design that supports both single-control and interactive modes. It covers the four key parts of the evaluation loop—environment modeling with state snapshots, task sets with difficulty tiers, metric design, and reproducibility—along with common failure patterns such as parameter hallucination, rigid planning, state misreading, poor interaction, and long-horizon forgetting. Readers will find practical guidance for building a verifiable, traceable, and regression-friendly evaluation pipeline.

    1. Why Traditional Benchmarks Fall Short for Agents

    Model capability has traditionally been measured with static question-answering benchmarks: provide an input, compare the output, and score it with simple, direct logic. Agents (AI Agents) work in a fundamentally different way. They must observe environment state, select tools, parse return values, and revise plans across multiple turns until the task goal is met. This “decide—act—observe feedback” loop means single-turn text matching cannot reflect an agent’s true capability.

    This creates three evaluation challenges. The first is statefulness: the environment changes as a result of the agent’s actions, so the same prompt executed at different moments can produce different outcomes. Evaluation therefore needs a stateful, dynamic environment rather than a stateless function. The second is long-horizon execution: a task may require dozens of tool calls, and a single wrong parameter at any step can cascade and amplify into final failure. The third is interactivity: in real business settings, users are not passive waiters—they may operate on the same data themselves, coupling their behavior with the agent’s.

    A benchmark with “dual-side control” is designed precisely for these challenges. It allows an agent to hold exclusive control and complete the full workflow, and it also allows the user and the agent to call tools in turn while jointly operating a shared, dynamic environment. The rest of this article centers on that design.

    2. Dual-Control Modes: How Single-Control and Interactive Differ

    Single-Control Mode

    The agent holds full control. From reading the initial state to writing the final result, it completes every tool call on its own. The user only provides the task description and does not intervene in execution. This mode is suited to measuring end-to-end autonomous planning. Its metrics are clear and its runs are reproducible, making it the most common setup for comparing models side by side.

    Interactive (Dual-Control) Mode

    The user and the agent share the same dynamic environment, and both can call tools. A typical flow is: the agent requests information that needs user confirmation or asks the user to perform an action; the user completes the operation in their own interface; the environment state change becomes visible to the agent; and the agent continues from there. This is closer to real scenarios such as customer support, service counters, and collaborative operations.

    The key difference between the two lies in the “information acquisition path.” In single-control mode, the agent can obtain facts only through tool return values. In interactive mode, it can also proactively ask for clarification and delegate some actions to the user. Interactive mode therefore additionally assesses three abilities: when to ask, what to ask, and how to avoid pushing actions to the user that the agent could complete itself. A common pitfall is an agent that over-asks, treating interaction as a way to offload decisions; this is explicitly penalized in evaluation.

    3. Four Key Parts of the Evaluation Loop

    3.1 Environment Modeling and State Snapshots

    The evaluation environment must model business objects (orders, accounts, inventory, tickets, and so on), executable actions, and business rules in a verifiable form. Generate a state snapshot before and after each tool call to make failure attribution easier. A schematic environment interface can be abstracted as:

    1. class Env:
    2. def snapshot(self) -> State: ... # Current state snapshot
    3. def apply(self, action: Action) -> Result: # Execute an action and return an observable result
    4. def check(self, goal: Goal) -> bool: ... # Determine whether the goal is met

    The key point is that actions must be idempotent and traceable, and illegal actions must be rejected by rules rather than silently ignored. Otherwise, evaluation would reward a “try anything” strategy.

    3.2 Task Sets and Difficulty Tiers

    Tasks should cover cases with incomplete information, conflicting rules, multi-tool chaining, and user-supplied supplements, and should be tiered by the number of call steps and branches. Keeping only simple tasks inflates scores and provides little discrimination.

    3.3 Metric Design

    Common metrics include task success rate, key-action hit rate, the proportion of invalid or redundant calls, average interaction turns, and whether business constraints are violated (such as unauthorized modification). Success rate must be based on final-state verification, not text similarity.

    3.4 Reproducibility

    Fixed random seeds, pinned tool and data versions, and complete call traces are prerequisites for third-party review of results. Evaluation conclusions without trace logs are essentially unusable.

    4. Common Failure Modes and Optimization Directions

    • Parameter hallucination: fabricating nonexistent field values when calling a tool. This can be mitigated with parameter schema constraints and enumerated value validation.
    • Rigid planning: after the initial plan fails, the agent does not replan and repeatedly retries the same action. This requires an explicit retry limit and fallback strategy.
    • State misreading: ignoring error codes returned by tools and continuing with subsequent steps. Prompts and workflows should enforce “verify first, then act.”
    • Poor interaction: redundant questions or over-delegation in interactive mode, which lowers collaboration efficiency.
    • Long-horizon forgetting: losing earlier constraints after many turns. This can be addressed with external memory or a structured task checklist.

    From an engineering standpoint, it is advisable to build evaluation as a pipeline: check task sets and data versions into a repository, collect complete traces during the run, land results in logging and monitoring/alerting systems, and automatically cluster and archive failure samples. This forms a “evaluate—attribute—fix—regress” loop. To support large-scale concurrent evaluation, you can use a container platform for elastic scaling, object storage to hold traces and snapshots, and a message queue to smooth out peaks.

    5. Implementation Recommendations

    First, build the environment before comparing models; when the environment is unstable, any ranking is meaningless. Second, run both single-control and interactive setups: the former shows the upper bound of autonomous capability, and the latter shows collaboration usability. Third, include the constraint-violation rate and redundant-call rate as gating metrics so that a “successful but costly” strategy is not selected. Fourth, keep the task set continuously updated to prevent overfitting. In its practice related to agent evaluation, Baidu AI Cloud likewise emphasizes three foundational capabilities—verifiable environments, traceable trajectories, and regression-friendly metrics—which are also the general prerequisites for building a trustworthy evaluation system.