pub enum NodeState {
TaskQueued,
Planning,
Coding,
Verifying,
Retry,
SheafCheck,
Committing,
Escalated,
Completed,
Failed,
Aborted,
Superseded,
}Expand description
Node execution state (from PSP state machine)
Variants§
TaskQueued
Task is queued for execution
Planning
Planning phase
Coding
Coding/implementation phase
Verifying
Verification phase (LSP + Tests)
Retry
Retry loop (convergence)
SheafCheck
Sheaf consistency check
Committing
Committing stable state
Escalated
Escalated to user
Completed
Successfully completed
Failed
Failed after max retries
Aborted
Aborted by user
Superseded
Superseded by a plan amendment (Phase 14)
Implementations§
Source§impl NodeState
impl NodeState
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if this is a terminal state
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the node finished successfully
Sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Check if the node is actively running (non-terminal, non-queued)
Sourcepub fn from_display_str(s: &str) -> Self
pub fn from_display_str(s: &str) -> Self
Parse a state string from the database or display layer.
Handles PascalCase, UPPERCASE, and lowercase variants that appear in
the store, CLI, and dashboard. Unknown strings map to TaskQueued.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeState
impl<'de> Deserialize<'de> for NodeState
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NodeState> for NodeStatus
impl From<NodeState> for NodeStatus
impl Copy for NodeState
impl Eq for NodeState
impl StructuralPartialEq for NodeState
Auto Trait Implementations§
impl Freeze for NodeState
impl RefUnwindSafe for NodeState
impl Send for NodeState
impl Sync for NodeState
impl Unpin for NodeState
impl UnsafeUnpin for NodeState
impl UnwindSafe for NodeState
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.