Stopping Conditions
In this article
- Name the six reasons a run can end, and tell a pause for approval apart from a stop.
- Spot a run that is going nowhere from its trace, and pick the reason it should end with.
- Pair a check on the model's "done" with hard limits on steps, time and cost, run before every next step.
- Describe a stop that hands back a partial result or passes the case to a person.
- Terms defined here: terminal reason, no-progress detection, escalation, partial result, stopping condition.
Overview
A loop that lets the model choose the next action has no natural end. So somebody has to decide when a run is over, and somebody has to write down why it ended, so the caller knows whether to celebrate, retry or call a person. Leave that decision to the model and you can get two failures: runs that spin until they burn the budget, and runs that stop because the model said "done" when nothing was done. You will learn to read a looping trace, pick the reason it should end with, and write two checks that would have caught it: one that tests the model's claim against the real state, and one hard limit that no claim can bypass.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- A run that will not end on its own
- Six ways a run can end
- Noticing the loop
- The cap as the backstop
- When the model says "refunded"
- The checks, in order
- Stopping well
- Sources
- Check yourself, 13 questions