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

arXiv: https://arxiv.org/abs/2611.19663 · HTML: https://mlsanity.com/paper/2611.19663/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 7 of its 44 references that are in the map.
- Submitted 14 Nov 2026.

## Builds on (most cited first, 7 of 7)

- [Verify, Repair, Repeat, or Stop? Robust Stopping for Noisy Verify-Repair Loops in LLM Agents](https://mlsanity.com/paper/2607.17641/) (2026)
- [Toward Safe LLM Agents: A Survey of Specification, Verification, and Enforcement](https://mlsanity.com/paper/2608.14590/) (2026)
- [HTN Plan Repair Algorithms Compared: Strengths and Weaknesses of Different Methods](https://mlsanity.com/paper/2504.16209/) (2025)
- [CASCADE: Cascaded Scoped Communication for Multi-Agent Re-planning in Disrupted Industrial Environments](https://mlsanity.com/paper/2604.00451/) (2026)
- [Replan, Repair, or Edit? A Unified Empirical Evaluation of Travel Agents for Itinerary Revision under Resource Disruptions](https://mlsanity.com/paper/2609.19654/) (2026)
- [The Metrics Matter! On the Incompatibility of Different Flavors of Replanning](https://mlsanity.com/paper/1405.2883/) (2014)
- [The Irrational Machine: Neurosis and the Limits of Algorithmic Safety](https://mlsanity.com/paper/2510.10823/) (2025)

## Abstract (arXiv)

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.
