Skip to main content

decide_continuation

Function decide_continuation 

Source
pub fn decide_continuation(
    status: GoalRunStatus,
    progress: GoalProgress,
    budget: GoalBudget,
) -> ContinuationDecision
Expand description

Decide whether a persistent goal run should continue after a turn.

Precedence (most authoritative first):

  1. A terminal model status (Completed / Blocked) ends the run.
  2. The configurable continuation backstop stops a pathological loop (skipped entirely when configured to 0).
  3. 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).