What stop rule should a self-healing AI agent have?

THE SHORT ANSWER

Three fields, decided by the product owner before the loop is switched on: the maximum number of repair attempts, the spend ceiling per incident, and the name of the person the failing case escalates to with the diagnosis attached. Salesforce's Agent Designer, per Sohini Arya and Manish Kumar Jha, limits self-healing to two fix attempts and a $3 ceiling inside a 500-turn orchestrator budget, then stops and escalates. Underneath the three fields sits a domain rule: anything touching money, contracts, individual customers, or decisions that compound gets a human review layer that configuration cannot remove. My autonomous pricing agent had none of this, drifted 14% under benchmark in five weeks, and took two quarters to recover.

Two self-repairing agent systems shipped in the same week, and The Stop Rule is about the one line that separates them: Salesforce's Agent Designer publishes two attempts, $3, and escalate, and LangSmith's Engine v2 publishes a loop that runs until a fix passes. The bill for running the second kind is agent number four in 10 AI Agents I Built That Failed. The Honest Retrospective., and the reason the expected behavior a repair loop tests against has to be written by a person is in The Wince Is the Spec: Bottom-Up Evals a Model Can't Write.

It belongs to the Enterprise AI Agents argument: what matters is how many deployed agents still complete production work after ninety days, and what each outcome costs. A loop with no stop rule has no cost per outcome.

SOURCES

THE LONG VERSION

RELATED ANSWERS

Last reviewed 2026-09-29 · 1 min read