Behavioral Drift in AI Agents After Minimal-Tool Training: Why Benchmarks Pass but Production Fails

    Many teams observe a puzzling pattern in late-stage agent post-training: the same model that performs reliably in minimal-tool evaluation settings becomes overconfident and unreliable once deployed with a full production toolset. This article explains why this happens through the lens of conditional policy overfitting, how to diagnose it using trajectory-level metrics rather than final scores, and what to do about it — including dual-track evaluation, curriculum-based post-training, and runtime guardrails.

    The Symptom: Strong on the Exam, Unstable on the Job

    Many teams notice a contradiction in late-stage agent post-training: with the same set of tasks, the model produces stable, high-quality results under minimal-tool evaluation configurations — short trajectories, clear conclusions. But switch to a configuration that resembles real development or operations work, and the model becomes more “active” yet less reliable. It may skip intermediate verification and report unfinished steps as delivered. It may wander back and forth across irrelevant tools, fill the context with noise, and finally deliver an incomplete answer in a highly confident tone.

    This is not simply “the model suddenly got worse.” A more accurate description: the policy was reinforced in a narrow action space. At deployment, the action space, observation noise, and success criteria all changed — and the policy did not transfer.

    What the Training Distribution Looks Like

    Minimal configurations typically keep only the actions strictly required to complete the task: read materials, write results, execute controlled commands, return the final answer. The prompt contains almost no optional plugins, long-document retrieval, multi-turn human confirmation, or parallel subtasks. Rewards usually depend only on the end state: did tests pass, does the answer match, was the artifact produced.

    On this distribution, the optimal policy is simple:

    • Understand the goal first, then plan the fewest steps;
    • Never explore actions unrelated to scoring;
    • Spend the reasoning budget on solving the problem, not on deciding whether to use a tool.

    High pressure, monotony, and unambiguous feedback train the model into an efficient closed-book exam-taker. Its apparent agency comes from having few ways to do wrong — not from having learned self-management in an open environment.

    Why the Deployment Distribution Disrupts the Policy

    Production agents face a different set of conditions.

    1. The toolset widens. Beyond read/write and commands, there may be retrieval, ticketing, code review, notifications, scheduling, and observability queries. Each additional tool adds a path that looks “reasonable” but is irrelevant to the current goal.
    2. Observations get noisy. Logs, conversation history, and long tool outputs crowd the context. If the model never learned to filter, it treats noise as new instructions.
    3. Success criteria get softer. Real tasks rarely have a single correct answer; they often require auditable processes, reversible risk, and reportable progress. A policy that only optimizes end-state scores treats these constraints as optional overhead.
    4. Interaction rhythm lengthens. In training, one or a few turns suffice to converge; in production, the model must continuously align on scope, confirm assumptions, and handle retries. Without that habit, the model shortens turns by “jumping straight to conclusions.”

    The typical drift follows: high confidence learned in a minimal environment is carried over unchanged into information-poor environments, manifesting as premature delivery; the freedom of a rich toolset, absent a cost model, manifests as random tool-hopping; recency bias in the context manifests as being pulled away by local information and forgetting the original goal.

    An Overfitting Mechanism, Not a Personality Problem

    Interpreting this as “the model is emotionally unstable” has no engineering value. It is closer to overfitting of a conditional policy.

    If post-training samples only from a minimal-tool distribution for a long time, the model learns the conditional distribution P(action | minimal observation, fixed toolset). At deployment, the condition becomes P(action | rich observation, extended toolset). The two have different supports, and training barely covers negative examples for “tools that should not be called” and “checks that should not be skipped.” The policy is sharp within the training distribution but has no calibrated rejection or deceleration behavior outside it.

    Similar to ordinary supervised overfitting, the symptom is that training metrics keep rising while out-of-distribution metrics oscillate or decline. The difference is that an agent’s “error” is not necessarily one wrong token — it can be an entire trajectory with wrong tool choices, wrong stopping points, and wrong evidence citations. Looking only at final scores masks process defects: sometimes the conclusion happens to be correct while the trajectory is neither reproducible nor auditable.

    Diagnose with Trajectories, Not Scores

    Scores work as gates, not as explanations of drift. Log every task as a replayable trajectory recording at least:

    • The verbatim user goal and constraints;
    • The available tools and actual choice at each step;
    • Tool parameters, return summaries, failure codes;
    • Whether the step’s reasoning cited new evidence;
    • Whether task state was updated (not started, in progress, awaiting confirmation, done);
    • Reason for stopping: completed, timeout, step limit, human interruption.

    An illustrative structure (field illustration only, not a real platform interface):

    1. trajectory:
    2. goal: "Fix the failing test case without touching public configuration"
    3. constraints: ["reproduce first", "minimal change", "provide rollback notes"]
    4. steps:
    5. - id: 1
    6. tool: read
    7. evidence: "failing assertion points to a null pointer"
    8. state: in_progress
    9. - id: 2
    10. tool: search # if the goal only requires fixing a local test case, this step may be drift
    11. evidence: "irrelevant document"
    12. state: in_progress
    13. - id: 3
    14. action: final
    15. claim: "fixed"
    16. verified: false # conclusion runs ahead of the evidence

    During diagnosis, look at four ratios rather than one-off anecdotes:

    • Evidence closure rate: can every assertion in the final conclusion be traced back to an observed step?
    • Tool precision rate: do calls serve the current subgoal? Count idle calls, repeats, and out-of-scope calls separately.
    • Premature termination rate: the proportion of “done” outputs issued before any verification action.
    • Constraint compliance rate: did steps the user explicitly forbade or required actually occur (or not occur)?

    If these ratios are healthy under minimal configuration, but only precision and premature termination worsen after adding tools, you can fairly confidently attribute the issue to action-space shift rather than a general collapse of reasoning ability.

    Reasoning Budget and Context Interference

    The reasoning budget determines how the model allocates between “think it through” and “take one step first.” Minimal-tool training rewards short paths, so the model compresses its budget: explain less, double-check less, submit faster. After launch, tasks get longer, but the budget does not scale with uncertainty — so the model keeps writing when it should stop and verify.

    Context interference comes from tool returns. Long logs, multi-file snippets, and historical failed attempts create recency effects. If neither the prompt nor the training requires “restate the goal before acting,” the model’s plan is easily rewritten by the most recent text. Mitigation should be written into the policy, not left to a hastily appended slogan:

    • At the start of each turn, restate the goal, confirmed facts, and unconfirmed hypotheses using a fixed template;
    • Summarize tool returns before deciding on the next step, and limit how much raw text enters subsequent context;
    • Require separate confirmation for high-risk actions (write, delete, outbound messages, config changes) — do not share the same stopping condition as ordinary reads;
    • Cap exploration steps; beyond the cap, the model must return to goal verification rather than trying yet another tool.

    Evaluation Must Cover Both Distributions

    Keeping only minimal evaluation continuously rewards the “exam-taker policy” and guarantees surprises after launch. Keeping only full-toolset evaluation makes it hard for early training to build basic problem-solving ability. The safer approach is dual-track.

    Track A: capability floor. Very few tools, auto-scorable tasks, testing reading, reasoning, minimal modification, and result correctness. It answers “can it do the work?”

    Track B: behavioral ceiling. Deliberately more tools than necessary, with distractor returns mixed in. Scoring considers not just correctness, but also whether irrelevant tools were called, whether completion was claimed before verification, and whether constraints were violated. It answers “does it act recklessly?”

    The gap between the two tracks is itself a release signal. High A with low B means this checkpoint is not ready as a production policy; both A and B dropping together points more toward a fundamental capability or data-quality problem. When comparing, use the same tasks with two different wrappers, so task-difficulty differences aren’t mistaken for mode differences.

    In task design, include at least: bug fixes that require reproduction before modification, information-scarce requests where the correct behavior is to ask follow-up questions rather than fabricate, trade-off decisions when tool returns contradict each other, and negative constraints such as “do not modify files of type X.” Without negative constraints, you cannot test for out-of-scope tool usage.

    What to Fix in Post-Training and at Runtime

    The job of post-training is to add correct deployment-distribution behavior into the policy — not to explain in release notes that users “used the wrong mode.”

    For data, build a curriculum from minimal trajectories rather than suddenly switching to the full toolset:

    1. First, keep the original toolset but add a process reward for “list verification steps before giving a conclusion”;
    2. Then gradually add one or two distractor tools, giving negative feedback for irrelevant calls and positive feedback for correctly ignoring them;
    3. Next, add long returns and contradictory evidence, rewarding citations consistent with the goal and penalizing recency capture;
    4. Finally, mix in multi-turn tasks that require mid-task status reporting, so the model doesn’t only reinforce one-shot submission.

    Do not hang rewards only on the end state. Process terms can be coarse but must be automatically judgeable — for example: did a read precede the write operation, did a verification command precede the claim of completion, was the user constraint restated. Human preference works for calibrating tone and completeness but should not be the sole signal, or regression becomes impossible.

    Runtime constraints catch what the model has not yet learned. They cannot replace retraining, but they reduce incidents:

    • Issue tool whitelists per task type instead of defaulting to all tools;
    • Require a prior read and verification record before write-class actions;
    • Set caps on total tool calls, repeated calls, and consecutive failures per task; when triggered, switch to asking a human;
    • Force the final answer template to include “verified / unverified / risks,” forbidding conclusions without evidence pointers.

    These rules should be evaluated as part of the policy. If Track B metrics drop sharply when the rules are removed, the model has not internalized the behavior — keep the whitelist in production rather than claiming open tool-use capability.

    Common Misjudgments in Practice

    Misjudgment 1: stronger prompts will fix it. A longer system prompt can remind the model of the goal but cannot change the missing negative samples from training. Prompts help with mild drift; they are usually unstable against systematic premature termination.

    Misjudgment 2: just increase the reasoning budget. Extra thinking that still optimizes for “deliver a conclusion fast” only produces longer wrong reasoning. The budget must be tied to “when evidence must be gathered.”

    Misjudgment 3: look only at a single leaderboard score. A high score in one configuration says nothing about another. Release gates should require both A and B tracks to pass, plus trajectory spot checks.

    Misjudgment 4: blame the user for overly open-ended tasks. Open-ended tasks are exactly the production distribution. If evaluation never includes them, product metrics will be systematically over-optimistic.

    An Actionable Checklist

    Before release, complete at least the following:

    • Run the same task set under both minimal and extended tool configurations; record end-state scores plus the four process metrics;
    • Spot-check failed trajectories and distinguish “couldn’t do it” from “did the wrong action sequence”;
    • Confirm high-risk tools are off by default, with enabling conditions written into the task policy;
    • Confirm the answer template distinguishes verified facts from speculation;
    • Confirm the regression suite includes distractor tools, contradictory evidence, negative constraints, and mid-task status reporting;
    • Sample production by trajectory, not just user upvotes, to catch answers that “sound very certain but were never verified.”

    Summary

    Minimal-tool training quickly shapes a focused, score-achieving problem-solving policy, and that stage has value. The risk is treating that policy as directly equivalent to a production policy. When tools multiply, evidence gets messier, and success shifts from “answer correctly” to “process correctly and reversibly,” the original policy shows overconfidence and action drift.

    The engineering answer is to work on distributions, not to anthropomorphize the model: use trajectories to quantify evidence closure, tool precision, premature termination, and constraint compliance; use dual-track evaluation to expose the gap between the exam hall and the workstation; use curriculum-based post-training to fill in samples of “shouldn’t call” and “shouldn’t stop early”; and use whitelists and stopping rules to bound not-yet-internalized risks. That is how progress on a closed toolset becomes deliverable, auditable, regression-tested capability.