When the plan does not work: re-planning
What starts a re-plan
A re-plan starts in three cases:- A declared check fails on a run that has a plan.
- The evidence gate fails on a run that has a plan, for example a criterion has no evidence. The fresh planner is given the failing items.
- The agent escalates because a step cannot be done as written, needs a file the plan does not name, or is too large for one context.
What the fresh planner sees
A new planner starts, and it does not continue the old one. It is given:- the previous version of the plan,
- the failed check, the escalation or the failing gate items, with a one-line summary of each, and for a check the end of its output,
- the change made so far, as its changed files and its diff.
Attempts
Every failure spends one of the run’s attempts: as many as your project’s Attempts setting gives it, 3 unless an admin changed it, shared with the review’s send-backs, as Rounds and attempts describes. A failing check spends one, a failed evidence gate spends one, an escalation spends one, and a review that sends the change back spends one. A failure that is both, such as a failing check that also leaves the gate failing, spends one attempt and not two. Re-planning has no limit or setting of its own. It follows a failure, and the failure has already spent its attempt. With three attempts, a run re-plans at most twice: the third failure leaves none, and the run does not re-plan.When the attempts run out
When a check or the evidence gate fails, or the agent escalates, and no attempt is left, the run does not re-plan. It becomes Waiting on you with the detail out of attempts.- For a failing check the reason is The checks fail and need you.
- For a failed evidence gate the reason is Evidence gate failed.
- For an escalation the reason is The plan did not cover this.