When AI Agents Should Repair, Replan, or Abandon: A Threshold Theory of Plan Commitment

Gaurav TewariarXiv 2026

TL;DR

This paper provides the first formal decision theory for "plan commitment"—determining exactly when an AI agent should patch a broken plan, start from scratch, or give up. By modeling how damage propagates through a plan's dependency graph and accounting for the "stability price" of changing intentions, the author derives optimal thresholds that explain why serial plans are brittle, why "patch debt" eventually forces a rebuild, and why the cost of coordination is the only thing preventing agents from replanning constantly as compute becomes cheaper.

What Problem Does This Paper Address?

AI agents operating in the real world frequently encounter "plan breaks": a booked flight is canceled, or an API suddenly returns a 403 error. Currently, agent developers rely on heuristics—like "retry three times" or "always replan from scratch"—but recent benchmarks show that no single strategy works across all scenarios.

The fundamental challenge is plan commitment. Changing a plan isn't just a computational cost; it’s a coordination cost. If a human or another agent has already aligned their actions based on an agent's stated plan, a "fresh start" might be computationally efficient but socially or operationally expensive. This paper seeks to move beyond "vibes-based" agent architecture toward a rigorous, decision-theoretic framework for plan revision.

Methods

The author develops a Threshold Theory of Plan Commitment based on three primary modeling assumptions:

  1. Damage Propagation: Damage is measured as "effective depth" ($d$). If one action fails, every action that depends on it (its "forward cone" in a Directed Acyclic Graph) is also potentially broken.
  2. Revision Instruments: The agent chooses between Repair (a partial reset that stays close to the original plan), Replanning (a full reset to a new optimum), and Abandonment (exiting the task).
  3. Stability Price ($\sigma$): A cost-per-unit of change. This represents the friction of re-coordinating with humans or other systems when a plan changes.

The paper uses a static model to derive thresholds for single disruptions and a sequential model (using Bellman operators and value iteration) to study how agents should behave under repeated shocks.

Datasets

As a theoretical paper, it does not train on a traditional image or text dataset. Instead, it validates its propositions using:

  • Numerical Checker: A custom implementation that ran 1.6 million static-model evaluations and 4,000 randomized model instances to ensure no violations of the derived logic.
  • Graph Enumeration: Testing the "Amplification Law" on 600 random DAGs to see how plan structure affects damage.
  • Qualitative Calibration: The model’s "regime map" was compared against a 2026 benchmark of travel-planning agents (Yuan et al.), successfully reproducing the "regime flips" observed in that empirical study.

Key Insights and Ideas

  • The "Amplification Law": The brittleness of a plan is mathematically tied to its topology. A fully serial plan (one action after another) is significantly more fragile than a parallel one. Specifically, a serial plan hits the "replan" threshold at a raw damage level $w$ times smaller than a plan with $w$ parallel chains.
  • Stability as the Final Frontier: As LLMs make the computational cost of replanning approach zero, the only thing that prevents an agent from being "flighty" (replanning at every minor hiccup) is the stability price. If $\sigma = 0$ and planning is free, agents will (and should) churn constantly.
  • Patch Debt: Every time an agent repairs a plan instead of rebuilding, it incurs "patch debt." This is the planning equivalent of technical debt. Eventually, the accumulated "messiness" of the repairs makes the plan so inefficient that a full rebuild becomes the only optimal choice.
  • Commitment Hysteresis: The optimal policy includes an "inaction band." An agent should often continue executing a slightly degraded plan that it would never choose if it were starting fresh, simply because the friction of revision is too high.

Key Results

  • Proposition 1 (The Threshold): Proves that the optimal policy is a threshold $d^*$ in effective depth. Repair below it; replan or abandon above it.
  • Proposition 2 (Structure): Quantifies the validation footprint as $1 + R(G)/n$, where $R(G)$ is the number of dependency pairs. This provides a concrete metric for "repairability" that architects can use when designing agent prompts.
  • Value of Diagnosis: The model shows that "always replan" is actually the optimal strategy when damage is predictably deep, as the cost of "diagnosing" the damage exceeds the potential savings of a repair.
  • Numerical Verification: The theory held up across 1.6 million evaluations with zero violations of the claimed monotonicity or uniqueness.

Limitations and Future Work

  • Reduced-Form Costs: The model treats the cost of repair ($c_R$) and the quality gap ($\Delta$) as primitives. It doesn't explain how to perform the repair, only when it is worth doing.
  • Linear Stability: The stability price is modeled as linear with respect to plan distance. Real-world coordination costs might be "lumpy" (e.g., any change at all requires a human-in-the-loop re-approval).
  • Single-Agent Focus: While the "stability price" accounts for other agents, the model doesn't capture the strategic, game-theoretic interactions that happen when two agents are both revising plans simultaneously.
  • Refactoring: The model assumes repairs always add "patch debt." In reality, a clever repair might "refactor" a plan to be better than the original, a possibility not covered here.

Summary updated

Abstract

AI agents often discover mid-execution that their plan is broken, for example when an action fails or a tool is withdrawn. Deployed systems use conventions such as retry loops or "always replan," and a recent benchmark finds no fixed strategy dominates. This paper derives the optimal policy. In the model, a disruption destroys the causal support of part of a plan; repair is a partial reset that preserves the plan's structure, replanning is a full reset, and changing a plan is costly because others have conditioned on it. The optimal policy is a threshold in effective disruption depth: repair shallow damage, replan after deep damage, and abandon the goal when even a fresh plan is not worth its cost. Depth depends on plan structure. In expectation, a single broken action forces 1+R(G)/n actions to be revalidated, where R(G) counts the pairs of actions joined by a dependency path; to first order, a fully serial plan switches to replanning at raw damage about w times smaller than a plan of w parallel chains. A closed-form stability-price threshold determines when a worse repaired plan should be kept over a better fresh one. As language-model planners push replanning costs toward zero, the stability price becomes the only force sustaining plan commitment. Under repeated disruptions, revision frictions make commitment hysteresis optimal: the agent keeps executing a plan it would never choose fresh, and each repair adds patch debt until the debt outweighs repair's cost advantage and the agent rebuilds. A value-of-diagnosis result states when measuring damage is worth its compute and shows that "always replan" is optimal when damage is predictably deep and replanning is the better fallback. A separately implemented numerical checker tests each proposition (zero violations; 1.6 million static-model evaluations), and the model's regime map reproduces that benchmark's regime flips qualitatively.
BibTeX
@misc{tewari2026when,
  author = {Gaurav Tewari},
  title = {{When AI Agents Should Repair, Replan, or Abandon: A Threshold Theory of Plan Commitment}},
  year = {2026},
  eprint = {2611.19663},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19663},
}
Figure