pub struct StewardConfig {
pub enabled: bool,
pub cadence: String,
pub model: Option<String>,
pub per_mob: bool,
pub runs_per_day: u32,
pub min_signals: u32,
}Expand description
Steward config block (§8.5: mechanism from MobKit, enablement from the
app). enabled defaults off; flipping the default is a
calibration-scorecard decision (§11).
Fields§
§enabled: bool§cadence: StringDream cadence, in the scheduling subsystem’s interval-marker grammar
(*/6h, */30m, … — the same syntax schedules.toml uses).
Cron expressions are not accepted here until the loop re-homes onto
the scheduling subsystem (module docs).
model: Option<String>Optional model override applied to the embedded default profile.
per_mob: boolDream granularity knob (§8.5). false (default): one dream per
realm covering every scope. true requests per-mob dreams; the
current host (the rpc gateway) runs exactly one mob, where the two
granularities coincide — the realm dream already sees the one mob’s
context through MobPurposeSource. Honest limit: a multi-mob
host would need scope partitioning this engine does not do yet
(TODO(§8.5 per-mob): partition orient/gather/consolidate per
MobContext when a multi-mob host exists).
runs_per_day: u32§8.1 hard cap on dream runs per realm per 24h window.
min_signals: u32Event gate: ≥K sessions-or-proposals accumulated since the last dream before a run is considered.
Implementations§
Source§impl StewardConfig
impl StewardConfig
Sourcepub fn parse_cadence(cadence: &str) -> Result<Duration, StewardError>
pub fn parse_cadence(cadence: &str) -> Result<Duration, StewardError>
Validate a cadence expression against the scheduling subsystem’s interval-marker grammar; returns the tick interval.
pub fn cadence_interval(&self) -> Result<Duration, StewardError>
Trait Implementations§
Source§impl Clone for StewardConfig
impl Clone for StewardConfig
Source§fn clone(&self) -> StewardConfig
fn clone(&self) -> StewardConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StewardConfig
impl Debug for StewardConfig
Source§impl Default for StewardConfig
impl Default for StewardConfig
impl Eq for StewardConfig
Source§impl PartialEq for StewardConfig
impl PartialEq for StewardConfig
Source§fn eq(&self, other: &StewardConfig) -> bool
fn eq(&self, other: &StewardConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StewardConfig
Auto Trait Implementations§
impl Freeze for StewardConfig
impl RefUnwindSafe for StewardConfig
impl Send for StewardConfig
impl Sync for StewardConfig
impl Unpin for StewardConfig
impl UnsafeUnpin for StewardConfig
impl UnwindSafe for StewardConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more