pub enum AgentError {
Show 34 variants
UnsupportedSchema(String),
UnsupportedProtocol(String),
EmptyAuthority,
AuthorityDigest,
WorkspaceDigest,
EmptyLease,
InvalidLeasePath(String),
WriteOutsideReadScope(String),
InvalidBudget,
EmptyCriterionSubset,
UnknownDelegatedCriterion,
EmptyConstraint,
InvalidParentContract,
InvalidChildContract,
ParentBinding,
InvalidWorkerRole,
EmptyStateBinding,
ChildContractWidened,
InvalidActionAuthority,
InvalidChange(String),
DuplicateChange(String),
UnsortedChanges,
ChangeOutsideLease(String),
HandoffBinding,
UnverifiedHandoff,
MissingEvidence,
ReviewBinding,
ReviewerNotIndependent,
ReviewDisposition,
InvalidFinding,
MergeBinding,
Serialization,
InvalidationBinding,
InvalidInvalidationObservation,
}Expand description
Fail-closed delegation or handoff validation error.
Variants§
UnsupportedSchema(String)
Public schema is not supported by this runtime.
UnsupportedProtocol(String)
Delegation protocol is not supported by this runtime.
EmptyAuthority
Authority contains an empty public identity field.
AuthorityDigest
Authority hash does not match its canonical material.
WorkspaceDigest
A workspace generation or lease hash is malformed.
EmptyLease
A lease omits its read scope.
InvalidLeasePath(String)
A lease path is absolute, ambiguous, or traverses a parent.
WriteOutsideReadScope(String)
A write scope is not contained by a read scope.
InvalidBudget
At least one hard budget limit is zero.
EmptyCriterionSubset
Delegation selected no acceptance criterion.
UnknownDelegatedCriterion
Delegation references a criterion absent from the parent.
EmptyConstraint
An additive child constraint is empty.
InvalidParentContract
Parent contract fails its own validation.
InvalidChildContract
Derived child contract fails its own validation.
ParentBinding
Plan does not bind the confirmed parent contract.
InvalidWorkerRole
Delegated execution authority is not a worker.
EmptyStateBinding
Parent proof-state binding is absent.
ChildContractWidened
Child contract widened or altered a parent obligation.
InvalidActionAuthority
Child authority contains a forbidden or empty action set.
InvalidChange(String)
Handoff change has inconsistent digest fields.
DuplicateChange(String)
Handoff names one path more than once.
UnsortedChanges
Handoff changes are not canonically path-sorted.
ChangeOutsideLease(String)
Handoff includes a path outside delegated write authority.
HandoffBinding
Handoff metadata does not match its plan.
UnverifiedHandoff
Worker did not satisfy the child proof gate.
MissingEvidence
Worker or reviewer receipt omits runtime evidence.
ReviewBinding
Review digest does not bind the handoff.
ReviewerNotIndependent
Reviewer shares worker identity or authority.
ReviewDisposition
Review decision and finding set are inconsistent.
InvalidFinding
Review finding is empty or outside delegated scope.
MergeBinding
Merge receipt does not bind an approved current handoff.
Serialization
Canonical serialization failed.
InvalidationBinding
Invalidation receipt does not bind the immutable delegation.
InvalidInvalidationObservation
Invalidation reason lacks its required canonical observation.
Trait Implementations§
Source§impl Clone for AgentError
impl Clone for AgentError
Source§fn clone(&self) -> AgentError
fn clone(&self) -> AgentError
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 AgentError
impl Debug for AgentError
Source§impl Display for AgentError
impl Display for AgentError
impl Eq for AgentError
Source§impl Error for AgentError
impl Error for AgentError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()