Skip to main content

AgentGraphError

Enum AgentGraphError 

Source
pub enum AgentGraphError {
Show 31 variants UnsupportedSchema(String), UnsupportedProtocol(String), InvalidParentContract, ParentBinding, CoordinatorRole, InvalidGraphBudget, NodeLimit, NonCanonicalNodeOrder, DuplicateNodeId, InvalidNodeId(String), NodeRole(String), NodeAuthority(String), AuthorityReused(String), UnknownDependency { node_id: String, dependency: String, }, Cycle, ReviewTarget(String), IncompleteProofBarrier(String), UnknownCriterion(String), CriterionAssignedTwice(String), IncompleteDecomposition, WriteOutsideReadScope { node_id: String, path: String, }, SiblingWriteConflict { left_node_id: String, right_node_id: String, left_scope: String, right_scope: String, }, GraphBudgetExceeded, InvalidDecision, InvalidTransition, DecisionDigest, DecisionChain, TerminalStates, ReceiptBinding, Serialization, Delegation(AgentError),
}
Expand description

Fail-closed graph planning, scheduling, or receipt validation error.

Variants§

§

UnsupportedSchema(String)

Public schema is unsupported.

§

UnsupportedProtocol(String)

Graph protocol is unsupported.

§

InvalidParentContract

Parent task contract failed validation.

§

ParentBinding

Parent identity, digest, confirmation, or state binding differs.

§

CoordinatorRole

Graph authority is not a coordinator.

§

InvalidGraphBudget

Aggregate graph limits are zero or inconsistent.

§

NodeLimit

Node count is empty or exceeds the reservation.

§

NonCanonicalNodeOrder

Serialized node order is not canonical.

§

DuplicateNodeId

More than one node uses the same ID.

§

InvalidNodeId(String)

Node ID is empty, oversized, or not portable.

§

NodeRole(String)

Node role conflicts with its recipe.

§

NodeAuthority(String)

Node action or workspace authority is unsafe.

§

AuthorityReused(String)

Agent identity or authority digest is reused.

§

UnknownDependency

A dependency does not exist or points to the node itself.

Fields

§node_id: String

Node containing the invalid dependency.

§dependency: String

Missing or self-referential dependency.

§

Cycle

Dependency graph is cyclic.

§

ReviewTarget(String)

Reviewer/adversary target is missing or not a worker.

§

IncompleteProofBarrier(String)

Worker lacks an exact reviewer plus adversary barrier.

§

UnknownCriterion(String)

Delegated criterion does not exist in the parent.

§

CriterionAssignedTwice(String)

Parent criterion is owned by multiple workers.

§

IncompleteDecomposition

Some parent criterion has no worker owner.

§

WriteOutsideReadScope

A node write scope is not contained by a read scope.

Fields

§node_id: String

Node with the invalid scope.

§path: String

Invalid write scope.

§

SiblingWriteConflict

Concurrent sibling write scopes overlap.

Fields

§left_node_id: String

First sibling node.

§right_node_id: String

Second sibling node.

§left_scope: String

First overlapping scope.

§right_scope: String

Second overlapping scope.

§

GraphBudgetExceeded

Sum of node reservations exceeds the graph reservation.

§

InvalidDecision

Decision material contains malformed identities or digests.

§

InvalidTransition

Decision does not represent an allowed state transition.

§

DecisionDigest

Decision digest is malformed or mismatched.

§

DecisionChain

Decision sequence, previous hash, or source state is inconsistent.

§

TerminalStates

Terminal states or claimed outcome are inconsistent.

§

ReceiptBinding

Receipt does not bind the supplied graph and workspace.

§

Serialization

Canonical JSON material could not be serialized.

§

Delegation(AgentError)

Lower-level P3A delegation contract failed.

Trait Implementations§

Source§

impl Debug for AgentGraphError

Source§

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

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

impl Display for AgentGraphError

Source§

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

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

impl Eq for AgentGraphError

Source§

impl Error for AgentGraphError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AgentError> for AgentGraphError

Source§

fn from(source: AgentError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for AgentGraphError

Source§

fn eq(&self, other: &AgentGraphError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AgentGraphError

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.