pub enum DelegationFailure {
DelegateUnreachable {
url: String,
message: String,
},
CapabilityMismatch {
requested: String,
available: Vec<String>,
},
PolicyDenied {
policy_id: String,
reason: String,
},
ApprovalRequired {
prompt: String,
},
BudgetExceeded {
limit: f64,
actual: f64,
unit: String,
},
TrustCrossingDenied {
from_domain: String,
to_domain: String,
},
VerificationFailed {
check: String,
message: String,
},
ToolDependencyFailed {
tool: String,
error: String,
},
PartialCompletion {
completed_steps: usize,
total_steps: usize,
output: Option<Value>,
},
FallbackInvoked {
original_delegate: String,
fallback_delegate: String,
reason: String,
},
Timeout {
deadline_secs: u64,
elapsed_secs: u64,
},
}Expand description
Canonical delegation failure variants.
Serialises with "type" as the tag field, e.g.
{"type": "delegate_unreachable", "url": "...", "message": "..."}.
Variants§
DelegateUnreachable
The delegated agent could not be reached.
CapabilityMismatch
The requested capability is not among those the delegate advertises.
PolicyDenied
A governance policy denied the delegation.
ApprovalRequired
The delegation requires human approval before it can proceed.
BudgetExceeded
The delegation would exceed an allocated budget.
TrustCrossingDenied
A trust-boundary crossing was denied.
VerificationFailed
A verification check (signature, hash, attestation) failed.
ToolDependencyFailed
A tool dependency required by the delegate failed.
PartialCompletion
The delegation partially completed before failing.
FallbackInvoked
The runtime fell back to an alternate delegate.
Timeout
The delegation timed out.
Trait Implementations§
Source§impl Clone for DelegationFailure
impl Clone for DelegationFailure
Source§fn clone(&self) -> DelegationFailure
fn clone(&self) -> DelegationFailure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DelegationFailure
impl Debug for DelegationFailure
Source§impl<'de> Deserialize<'de> for DelegationFailure
impl<'de> Deserialize<'de> for DelegationFailure
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 PartialEq for DelegationFailure
impl PartialEq for DelegationFailure
Source§impl Serialize for DelegationFailure
impl Serialize for DelegationFailure
impl StructuralPartialEq for DelegationFailure
Auto Trait Implementations§
impl Freeze for DelegationFailure
impl RefUnwindSafe for DelegationFailure
impl Send for DelegationFailure
impl Sync for DelegationFailure
impl Unpin for DelegationFailure
impl UnsafeUnpin for DelegationFailure
impl UnwindSafe for DelegationFailure
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