pub struct GoalConfig {
pub max_continuations: Option<u32>,
pub max_steps: Option<u32>,
pub continuation_delay_seconds: Option<u64>,
pub enforce_token_budget: Option<bool>,
pub complete_judge: Option<bool>,
pub blocked_judge: Option<bool>,
}Expand description
Persistent-goal loop controls ([goal] table in config.toml, #5052).
Fields§
§max_continuations: Option<u32>Optional safety backstop on automatic goal continuation passes. Goals are unlimited by default; token/time budgets are telemetry only.
None uses the built-in default
(codewhale_runtime::goal_loop::DEFAULT_MAX_GOAL_CONTINUATIONS, currently 0);
0 disables the backstop entirely so only terminal status or user
control ends the run.
max_steps: Option<u32>Optional per-engine-turn step ceiling while a goal is active (#6512).
Like ordinary turns, None or 0 leaves model steps uncapped;
positive values are preserved. This bounds each turn, never
the number of continuation passes; explicit per-invocation ceilings
(exec --max-turns, child-worker caps) still win.
continuation_delay_seconds: Option<u64>Optional quiet period between successful cross-turn continuations.
0 preserves immediate continuation. Positive values make long-lived
coordinator goals yield visibly between turns instead of sleeping
inside a provider turn.
enforce_token_budget: Option<bool>Make a goal’s token_budget a hard stop instead of advisory telemetry
(#6013). false/None preserves current behavior: crossing the budget
logs and continues. true stops the run with BudgetLimit once
tokens_used >= token_budget; goals created without a token budget
stay unbounded either way.
complete_judge: Option<bool>Gate update_goal status=complete behind one independent adversarial
critique of the completion claim. Upheld completes; refuted or any
unusable verdict keeps the goal active with the gaps recorded, so a
persistent outage ends in the NoProgress pause. false/None keeps
the ungated behavior.
blocked_judge: Option<bool>Gate update_goal status=blocked behind one independent critique of
the blocker. Upheld blocks; refuted keeps the goal active; an
unusable verdict hands the goal back as a yield (needs input).
false/None keeps the ungated behavior.
Trait Implementations§
Source§impl Clone for GoalConfig
impl Clone for GoalConfig
impl Copy for GoalConfig
Source§impl Debug for GoalConfig
impl Debug for GoalConfig
Source§impl Default for GoalConfig
impl Default for GoalConfig
Source§impl<'de> Deserialize<'de> for GoalConfig
impl<'de> Deserialize<'de> for GoalConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for GoalConfig
Source§impl PartialEq for GoalConfig
impl PartialEq for GoalConfig
impl StructuralPartialEq for GoalConfig
Auto Trait Implementations§
impl Forget for GoalConfig
impl Freeze for GoalConfig
impl Move for GoalConfig
impl RefUnwindSafe for GoalConfig
impl Send for GoalConfig
impl Sync for GoalConfig
impl Unpin for GoalConfig
impl UnsafeUnpin for GoalConfig
impl UnwindSafe for GoalConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.