pub fn decide_continuation(
status: GoalRunStatus,
progress: GoalProgress,
budget: GoalBudget,
) -> ContinuationDecisionExpand description
Decide whether a persistent goal run should continue after a turn.
Precedence (most authoritative first):
- A terminal model status (Completed / Blocked) ends the run.
- The configurable continuation backstop stops a pathological loop
(skipped entirely when configured to
0). - Otherwise continue — the loop runs to the completion gate, not to a fixed pass count (#5052). Token/time budgets are advisory telemetry; they are surfaced in the UI but do not stop the run (unbounded).