pub struct Goal {Show 23 fields
pub id: String,
pub rev: u64,
pub repo: Option<PathBuf>,
pub purpose: String,
pub scope: String,
pub condition: Condition,
pub state: State,
pub step: String,
pub source_turn: usize,
pub owner_input: String,
pub tasks: Vec<String>,
pub launch_turns: Option<usize>,
pub runs: Vec<String>,
pub watches: Vec<String>,
pub evidence: String,
pub wake: u64,
pub handled: u64,
pub started: Option<u64>,
pub wakes: u32,
pub rechecks: u32,
pub last_checked: Option<Timestamp>,
pub fingerprint: String,
pub history: Vec<Revision>,
}Expand description
Restart-safe owner authorization and its bounded event-driven progress.
Fields§
§id: StringStable idempotent goal identity.
rev: u64Monotonic guarded-save revision; stale whole-talk saves cannot replace it.
repo: Option<PathBuf>Explicit task-filing checkout selector result; absent uses the conversation directory.
purpose: StringOutcome requested by the owner.
scope: StringBounds of work the owner authorized.
condition: ConditionObservable end condition, never a model completion assertion.
state: StateCurrent durable lifecycle state.
step: StringNext action or reason for waiting.
source_turn: usizeActual launcher input, never the last owner turn found retrospectively.
owner_input: StringExact persisted input body providing authorization.
tasks: Vec<String>Full task identities included in this goal.
launch_turns: Option<usize>Transcript boundary captured before an automatic goal turn starts.
runs: Vec<String>Full execution identities included in this goal.
watches: Vec<String>Supervised watch identities included in this goal.
evidence: StringMost recent independent evidence summary.
wake: u64Current event generation; stale generations cannot admit effects.
handled: u64Latest generation whose turn was durably settled.
started: Option<u64>Generation recorded before invoking a model turn.
wakes: u32Number of automatic turns consumed under this authorization.
rechecks: u32Independent evidence probes consumed under this authorization.
last_checked: Option<Timestamp>Last independent observation time, for bounded fair scheduling.
fingerprint: StringStable event fingerprint, excluding observation time.
history: Vec<Revision>Earlier accepted authorizations and their last recorded outcomes.
Implementations§
Source§impl Goal
impl Goal
Sourcepub fn effective_repo<'a>(&'a self, conversation_repo: &'a Path) -> &'a Path
pub fn effective_repo<'a>(&'a self, conversation_repo: &'a Path) -> &'a Path
Legacy goals retain their original conversation-relative scope.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Goal
impl<'de> Deserialize<'de> for Goal
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>,
Auto Trait Implementations§
impl Forget for Goal
impl Freeze for Goal
impl Move for Goal
impl RefUnwindSafe for Goal
impl Send for Goal
impl Sync for Goal
impl Unpin for Goal
impl UnsafeUnpin for Goal
impl UnwindSafe for Goal
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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