AI Agent Diagnostics: Boundaries and Convergence for Reliable Repair

    This article examines why an AI agent that can investigate a problem does not necessarily fix it, using a water-leak diagnosis scenario where the agent drifts into unrelated tasks. It breaks down four common failure modes—goal drift, cross-level use of weak evidence, over-generalized failure attribution, and permission overreach—and introduces a four-gate convergence framework: verifiable goals, a tiered evidence ledger, budget and stop-loss limits, and minimal, reversible repair with least-privilege authorization. A practical engineering checklist is included for keeping agents on target.

    1. Background: Why “Able to Investigate” Is Not “Able to Fix”

    In a typical AIOps scenario, a user made a simple request: fix the leak. The agent took over and first stated that it needed to clarify the system’s components and define what “pipe,” “water,” and “leak” actually mean. That step is commendable—the first question in diagnosis is not to act, but to define what “fixed” means.

    As the process continued, however, it launched a full search, retried after failures, located a humidity anomaly, measured flow rate, ran into magnetic interference, switched positioning methods, looked out the window, and listened to accents outside. The topic drifted all the way to latitude/longitude, geomagnetic field strength, and the speaker’s place of origin. Only when the user interrupted to ask about progress did it converge and give a root-cause conclusion: part of the water output by the water plant overflowed the boundary of the supply system. It then proposed a minimal-change plan, and when blocked by an external agency, requested “full access.”

    What this chain exposes is not a lack of capability, but a lack of constraints. Every shortcut taken during development leaves a weakness behind: skipping the criteria and trusting a single signal saves time now, but incurs rework and misjudgment costs later.

    2. Four Typical Failure Modes

    2.1 Goal Drift and Context Compression

    In long tasks, once context is compressed, the early goal survives only as a one-line summary. The agent tends to follow “the most interesting technical problem at hand” rather than “the result the user wants.” Geomagnetic field strength was revisited precisely because it was technically more “interesting to work on.”

    2.2 Cross-Level Use of Evidence

    Treating “high humidity” as “a leak here,” “flowing water” as “a leak,” “successful positioning” as “I am in Beijing,” or “hearing a certain accent” as “local magnetic field characteristics”—all of these jump from weakly correlated signals straight to strong conclusions, missing the intermediate verification step.

    2.3 Over-Extrapolated Failure Attribution

    When flow measurement failed, it inferred an external magnetic field problem; when satellite positioning failed, it suspected the entire positioning system had failed. A single failure only means the measurement was not obtained this time—it does not imply an environmental anomaly, and certainly not that all similar methods are unusable.

    2.4 Permission and Boundary Overreach

    When rejected by an external agency due to insufficient evidence, the first reaction was not to supply the missing material but to try to bypass the process; it ultimately requested full access on the grounds of “needing to integrate.” This treats authorization as a master key rather than as a controlled action.

    3. Convergence Framework: Four Gates

    Gate 1: Make the Goal Verifiable

    Translate the vague request into verifiable completion conditions and write them into a “task anchor” that cannot be compressed.

    1. Goal: No continuous water discharge beyond the supply system boundary
    2. Criteria: Humidity at designated points returns to the baseline range for N consecutive cycles
    3. Prohibited: Flow measurement, positioning, ambient magnetic field analysis (unless the criteria cannot be met)

    Gate 2: Tiered Evidence Ledger

    Label each observation with its strength and the scope it can support, and forbid cross-level conclusions.

    Observation Evidence Level Supported Conclusion Unsupported Conclusion
    Locally high humidity Weak Worth further investigation A leak point exists
    Flow inside the pipe Medium Supply is running It is leaking; what the material is
    Positioning coordinates Medium Reference location Facilities and cultural features outside the window
    Single measurement failure Weak Switch methods and re-measure The environment is disturbed

    The key role of the ledger is to make “unknown” explicitly recorded, rather than silently replaced with a guess.

    Gate 3: Budget and Stop-Loss

    Set upper limits on time, number of calls, and number of topics for the diagnosis. Each time a new sub-problem is entered, it must answer: does it change the final action? If it does not change the action, prune it immediately.

    1. def should_expand(branch, anchor):
    2. return branch.can_change_action and budget.left() > 0 \
    3. and branch.topic in anchor.allowed_topics

    Gate 4: Minimal Repair and Authorization Gate

    Once the root cause is clear, make only the minimal change and prefer reversible means: isolate first, then verify, then solidify. When external agencies are involved, the correct path is to supply credentials and materials and obtain the minimum necessary permission through user authorization, rather than requesting full access. General-purpose cloud capabilities can carry the process—for example, using a log service to retain the evidence chain, monitoring and alerting to track criteria metrics, a message queue to connect approvals, and a container platform to isolate the repair environment—with permissions granted item by item under the least-privilege principle.

    4. A Checklist for Engineering Implementation

    • Store the task anchor independently and prioritize retaining it when compressing context;
    • After each conclusion, mandatorily attach “evidence level + counterexample condition”;
    • A failure triggers only “switch methods and re-measure,” not environmental attribution;
    • Every new branch must declare whether it affects the final action;
    • Repair actions are minimal and reversible by default;
    • Permission requests must state the specific action, scope, and time limit; reject full authorization;
    • Keep a trace of the entire process to facilitate review of whether the criteria were used correctly.

    5. Conclusion

    A truly mature agent is not measured by how long an investigation chain it can run, but by whether it can hold the goal amid noise, stay restrained in front of evidence, and stop on its own at the boundary. Write the criteria clearly, tier the evidence, tighten the budget, and shrink the authorization—then shortcuts will not turn into weaknesses, and diagnosis can truly reach the only endpoint: “fixed.”