Defensive Work in AI Agents: Root Causes and Engineering Countermeasures

    As generative agents move into office automation, data processing, and document editing, a new failure mode is emerging: agents stop over-hedging in their wording and start over-hedging in their execution. This article defines that behavior, which we call "defensive work," walks through a representative case in which an agent treats verification as a reason not to act, and analyzes the five root causes behind it. It then lays out an engineering response: mandatory minimal intermediate artifacts, verification as a post-hoc gate rather than a pre-condition, explicit stop conditions, a task contract that turns vague requests into an executable protocol, an execution state machine in which every state must emit a visible result, prompt templates that require partial delivery, verification gates and metrics for locating where work stalls, and a three-step rollout path from single-task templates to organization-wide standards.

    1. Defining the Problem: From Defensive Writing to Defensive Work

    Once generative agents entered office automation, data processing, and document modification workflows, a behavior pattern worth watching closely began to appear. Agents no longer limit themselves to conservative phrasing that avoids expression risk; they become excessively conservative at the task-execution level. This can be called “defensive work.” The typical symptom is not outright refusal, but continuous confirmation, repeated statements of boundaries, insistence that nothing has been verified yet, and waiting for more information — while never producing a verifiable intermediate result.

    A representative interaction looks like this: a user asks an agent to modify part of a structured spreadsheet file and explicitly says “just try a portion first.” The agent confirms the trial scope but completes no annotation and generates no trial file. When the user asks why nothing was done, the agent admits it made a judgment error and stopped too early, having treated “needs careful verification” as a reason not to execute. The key point of this case is not whether the agent understood the task. It is that the agent mistakenly moved verification — a post-hoc quality gate — in front of the trial as a blocking precondition, leaving the whole task spinning in place.

    From an engineering perspective, defensive work has several shared characteristics:

    1. Confirmation without delivery: the agent frequently restates requirements and confirms scope, but produces none of the minimal artifacts — a file copy, a change list, a sampling result.
    2. Risk warnings substituted for execution: phrases like “there may be a problem,” “this needs verification,” and “I recommend confirming” replace a local trial that could have been completed.
    3. Ambiguous stop conditions: with no definition of when the agent must stop versus when it must keep emitting the completable portion, the model defaults to conservative stopping.
    4. Unobservable intermediate state: external systems cannot tell whether the agent is planning, trialing, self-checking, or waiting for confirmation, making it hard to distinguish blocking from stagnation.
    5. Rising human round-trip cost: users must ask repeatedly to move the task forward one step, and non-essential clarification interrupts the automation pipeline.

    In low-risk draft scenarios, this behavior may be only an efficiency problem. In batch document modification, data annotation, and configuration changes, however, it directly damages task throughput, result traceability, and human-agent trust.

    2. Root Cause Analysis: Why Agents Treat Verification as a Reason Not to Act

    Defensive work is not a single-prompt problem. It is the result of missing pieces across goal definition, risk policy, execution protocol, and verification mechanisms.

    First, the goal and the completion standard are misaligned. When a user says “just try a portion first,” the implied completion standard is “produce a checkable local result.” The agent instead interprets the completion standard as “make sure every detail is correct before starting.” When a trial is not defined as a deliverable that must exist, the agent easily promotes quality verification into a blocking precondition.

    Second, the risk-avoidance policy is too strong. After being told “don’t make mistakes” and “verify carefully,” an agent may adopt a conservative policy: if any uncertainty exists, stop and wait for clarification. The more sound engineering principle is that uncertain items should be recorded, marked, and isolated — not that the entire task should halt.

    Third, explicit stop conditions are missing. If the agent is not told to stop only when input is missing and cannot be recovered from context, when the risk of unauthorized modification exceeds a threshold, or when a non-reversible operation has not been confirmed, it will treat ordinary uncertainty as a stop reason.

    Fourth, there is no minimal intermediate artifact mechanism. A trial phase should produce a file copy, a change list, sampling notes, and a list of uncertain items. Without these artifacts there is nothing to verify, and the agent falls more easily into the loop of “verification is incomplete, so I will not deliver.”

    Fifth, there is no state machine and no observable audit trail. If the execution process has no defined state transitions and no logging, the system cannot distinguish “currently self-checking” from “already stalled.” Nor is there any enforced internal constraint that every state must produce an artifact or an explicit blocking reason.

    3. Engineering Principles: Deliver a Verifiable Minimal Intermediate Artifact First

    Solving defensive work is not about encouraging reckless execution. It is about converting “caution” into a controllable engineering process. The following principles are recommended:

    • Minimal intermediate artifact first: every trial task must define its required artifacts, such as a trial file copy, a list of changed cells, a sampling comparison table, and a list of uncertain items.
    • Verification as a post-hoc gate: verification is a quality gate after the trial, not a blocking precondition before it. Produce first, verify second, then decide whether to go full-scale.
    • Isolate uncertain items instead of halting the task: mark the parts that cannot be judged as uncertain items and keep executing the parts that can be completed.
    • Make stop conditions explicit: stopping is allowed only in a few cases — missing input that cannot be recovered, unauthorized-modification risk above a threshold, or an unconfirmed non-reversible operation.
    • Reversible and auditable: all modifications are based on copies or versioned input, with change summaries, artifact versions, and confirmation records.
    • Risk-tiered human confirmation: low-risk drafts can generate intermediate artifacts automatically; medium-risk modifications require sampling review; high-risk deletions, overwrites, and batch changes require human confirmation.

    4. The Task Contract: Turning Vague Requirements into an Executable Protocol

    Introducing a “task contract” at the task entry point is recommended, using structured fields to constrain agent behavior. Example pseudocode:

    1. task_contract = {
    2. "goal": "Modify a specified region of a structured spreadsheet file",
    3. "input": {"file_version": "v1", "target_region": "target column range in the specified worksheet"},
    4. "non_goals": ["do not modify the header row", "do not modify non-target regions", "do not add unrelated worksheets"],
    5. "trial_definition": {
    6. "scope": "the first N rows of the target region, or a single fragment",
    7. "required_artifacts": ["trial file copy", "change list", "uncertain items list"]
    8. },
    9. "acceptance_criteria": ["changes limited to the target region", "structure validation passes", "sampling results match"],
    10. "stop_conditions": [
    11. "input file missing and not recoverable from context",
    12. "unauthorized modification risk present and above the preset threshold",
    13. "delete or overwrite operation without human confirmation"
    14. ],
    15. "risk_policy": {
    16. "uncertain_items": "complete the completable portion and mark them",
    17. "non_reversible_operations": "prohibited from automatic execution"
    18. },
    19. "confirmation_thresholds": {
    20. "affected_rows": "human confirmation required above the preset threshold",
    21. "delete_operations": "any deletion requires confirmation"
    22. }
    23. }

    The value of the task contract is that it turns “verify carefully” from a vague attitude into a process step: the trial phase must deliver artifacts, and the verification phase then inspects those artifacts. Even when the agent finds uncertain items, it must output “completed portion + uncertain items list + suggested next step” rather than replying only “verification is not complete yet.”

    5. Execution State Machine: Every State Must Produce an Artifact

    Defining an explicit state machine for the agent, with a visible result required from every state, is recommended:

    1. States: receive -> clarify -> plan -> trial -> self_check -> deliver_intermediate_artifacts -> human_confirmation -> full_execution -> acceptance
    2. Rules:
    3. 1. The plan state must output the trial scope, required artifacts, and stop conditions.
    4. 2. The trial state must generate the minimal artifacts; verbal confirmation alone is not allowed.
    5. 3. The self_check state must output validation results and the uncertain items list.
    6. 4. After delivering intermediate artifacts, proceed to full execution if no human confirmation is needed; otherwise wait.
    7. 5. No state may idle on the grounds that "verification is needed"; verification belongs to the self_check gate.
    8. 6. If execution must stop, output the blocking reason, the actions already attempted, and the additional information suggested.

    This state machine moves the agent from free-form conversational execution to protocol-based execution. External systems can record state transitions through a logging service, store trial copies and change lists in object storage, and use monitoring and alerting to detect tasks that remain in one state for too long. In a Baidu AI Cloud environment, an observable execution chain can be built from general-purpose cloud product categories such as object storage, logging services, and monitoring and alerting.

    6. Prompt and Protocol Design: Replace “Don’t Make Mistakes” with “Deliver the Completable Part First”

    Prompts should place less emphasis on “don’t make mistakes” alone and add constraints on deliverables and stop conditions. An example template:

    1. Your task is not to prove first that you will not make mistakes, but to deliver a verifiable minimal intermediate artifact first.
    2. Please execute in the following order:
    3. 1. Restate the goal, scope, non-goals, and trial definition;
    4. 2. Generate a trial file copy or a change list;
    5. 3. Continue executing the completable portion;
    6. 4. Record each uncertain item, describing its impact scope and the information required;
    7. 5. Run self-checks and output the validation results;
    8. 6. Stop only when input is missing and unrecoverable, unauthorized modification risk exceeds the threshold, or a non-reversible operation is unconfirmed.
    9. Do not use "verification is needed" as a reason for not generating trial artifacts.
    10. If you cannot complete everything, you must still output: the completed portion, the incomplete portion, the uncertain items list, and the suggested next step.

    The key of this template is positioning verification as a self-check action after the trial, and mandating that partial results be output even when full completion is impossible. This substantially reduces the probability of “confirm only, never execute.”

    7. Verification Gates and Evaluation Metrics

    Verification gates should cover three levels: structure, scope, and content. Structure validation checks whether the file is readable, whether the target worksheet exists, and whether the change region is legal. Scope validation checks whether non-target regions were modified without authorization. Content validation is completed through sampling comparison, the change list, and a diff summary. All validation results should be delivered together with the intermediate artifacts.

    The following metrics are worth tracking:

    • Time to first intermediate artifact: elapsed time from task receipt to the first verifiable artifact.
    • Idle rate: proportion of tasks that produced no artifact after confirmation or clarification.
    • Clarification rounds: number of human round trips required to complete the task.
    • Intermediate artifact completeness: how complete the trial file, change list, and uncertain items list are.
    • Human rework rate: proportion of intermediate artifacts rejected or redone by humans.
    • Defect escape rate: proportion of scope or content errors discovered only after acceptance.
    • Rollback rate: proportion of tasks requiring rollback after full execution.

    These metrics do not treat the success or failure of a single task as the only criterion. They help teams locate where defensive work occurs: unclear planning, a missing trial, or confirmation thresholds set too high.

    8. Rollout: From a Single-Task Template to an Organization-Wide Standard

    A three-step rollout is recommended. First, choose low-risk, reversible document modification tasks, enforce the task contract and minimal intermediate artifacts, and observe the idle rate and time to first intermediate artifact. Second, build a prompt template library and a state machine protocol, and make the uncertain items list, change list, and sampling comparison standard deliverables. Third, configure human confirmation thresholds by risk tier, and keep refining stop conditions through log audits and retrospectives.

    The point to emphasize is that defensive work is not an “attitude problem” on the agent’s side; it is an incomplete execution protocol. Once the trial definition, required artifacts, stop conditions, verification gates, and observable auditing are all in place, an agent’s caution converts from “blocking action” into “controlling risk,” raising the completion rate of automated tasks while keeping them reversible and traceable.