Skip to main content

GoalOrchestration

Struct GoalOrchestration 

Source
pub struct GoalOrchestration {
Show 36 fields pub goal_id: String, pub objective: String, pub status: GoalStatus, pub phase: GoalPhase, pub token_budget: Option<i64>, pub elapsed_ms: u64, pub created_at: String, pub current_subagent_id: Option<String>, pub current_subagent_role: Option<String>, pub total_worker_rounds: u32, pub total_verify_rounds: u32, pub budget_limit_reported: bool, pub token_baseline: i64, pub tokens_used_high_water: i64, pub parent_tokens_spent: i64, pub last_session_tokens_seen: Option<i64>, pub history: Vec<GoalHistoryEntry>, pub pause_message: Option<String>, pub classifier_stall_count: u32, pub classifier_runs_attempted: u32, pub rounds_since_verify: u32, pub consecutive_not_achieved: u32, pub last_strategist_fired_at: u32, pub strategist_cap_bonus: u32, pub last_strategy_path: Option<String>, pub last_strategy_recommendation: Option<String>, pub changes_baseline_commit: Option<String>, pub last_gap_fingerprint: Option<String>, pub live_subagent_tokens: u64, pub live_tokens_by_model: Vec<(String, u64)>, pub live_context_window: u64, pub live_context_pct: u8, pub live_turn_count: u32, pub live_tool_call_count: u32, pub planning_in_flight: bool, pub verifying_in_flight: bool,
}
Expand description

Full persisted state for a goal orchestration.

Fields§

§goal_id: String

Unique identifier for the goal.

§objective: String

Human-readable objective description.

§status: GoalStatus

Current lifecycle status.

§phase: GoalPhase

Current execution phase.

§token_budget: Option<i64>

Optional token budget cap.

§elapsed_ms: u64

Elapsed wall-clock time in milliseconds.

§created_at: String

ISO-8601 creation timestamp.

§current_subagent_id: Option<String>

Currently executing subagent ID, if any.

§current_subagent_role: Option<String>

Role of the current subagent.

§total_worker_rounds: u32

Total worker rounds executed.

§total_verify_rounds: u32

Total verification rounds executed.

§budget_limit_reported: bool

Whether the budget limit notification has already been emitted.

§token_baseline: i64

Baseline token count when the goal started.

§tokens_used_high_water: i64

High-water mark for tokens used.

§parent_tokens_spent: i64

Tokens spent by the parent session before this goal started.

§last_session_tokens_seen: Option<i64>

Last observed session token count.

§history: Vec<GoalHistoryEntry>

Ordered history of lifecycle events.

§pause_message: Option<String>

User-facing pause message, if any.

§classifier_stall_count: u32

Number of consecutive classifier stall detections.

§classifier_runs_attempted: u32

Total classifier run attempts.

§rounds_since_verify: u32

Rounds since the last verification pass.

§consecutive_not_achieved: u32

Consecutive not-achieved verdicts.

§last_strategist_fired_at: u32

Turn at which the strategist last fired.

§strategist_cap_bonus: u32

Bonus tokens granted by the strategist.

§last_strategy_path: Option<String>

Path of the last strategy recommendation, if any.

§last_strategy_recommendation: Option<String>

Last strategy recommendation text, if any.

§changes_baseline_commit: Option<String>

Commit hash at the last strategy change baseline, if any.

§last_gap_fingerprint: Option<String>

Fingerprint of the last gap signature, if any.

§live_subagent_tokens: u64

Live token count for active subagents.

§live_tokens_by_model: Vec<(String, u64)>

Live token usage broken down by model.

§live_context_window: u64

Live context window size in tokens.

§live_context_pct: u8

Live context window utilization percentage (0-100).

§live_turn_count: u32

Live turn count for the current goal.

§live_tool_call_count: u32

Live tool call count for the current goal.

§planning_in_flight: bool

Whether a planning pass is currently in flight.

§verifying_in_flight: bool

Whether a verification pass is currently in flight.

Trait Implementations§

Source§

impl Clone for GoalOrchestration

Source§

fn clone(&self) -> GoalOrchestration

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GoalOrchestration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GoalOrchestration

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GoalOrchestration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.