pub struct ProofHandoff {
pub proof_intent_id: String,
pub failure_class: ProofFailureClass,
pub reason_code: IncidentReasonCode,
pub next_action: NextAction,
pub replay_command: String,
pub detail: String,
}Expand description
The concise, machine-readable proof handoff for Beads / Agent-Mail.
Fields§
§proof_intent_id: StringDurable proof-intent id (see crate::proof_intent).
failure_class: ProofFailureClassThe top-level failure discriminator.
reason_code: IncidentReasonCodeDecisive incident reason code (RCH-Innn).
next_action: NextActionThe next action an agent should take.
replay_command: StringA command the agent can run to retry/replay.
detail: StringConcise human/agent-facing detail.
Implementations§
Source§impl ProofHandoff
impl ProofHandoff
Sourcepub fn for_refusal(
intent_id: impl Into<String>,
command: &str,
refusal: &ProofRefusal,
) -> Self
pub fn for_refusal( intent_id: impl Into<String>, command: &str, refusal: &ProofRefusal, ) -> Self
Build a handoff for a proof refusal.
Sourcepub fn for_queued(intent_id: impl Into<String>, command: &str) -> Self
pub fn for_queued(intent_id: impl Into<String>, command: &str) -> Self
Build a handoff for a proof that was queued (deferred). The replay command reattaches by intent id.
Sourcepub fn is_product_failure(&self) -> bool
pub fn is_product_failure(&self) -> bool
Whether this handoff blames the product (vs infra/admission/fallback).
Trait Implementations§
Source§impl Clone for ProofHandoff
impl Clone for ProofHandoff
Source§impl Debug for ProofHandoff
impl Debug for ProofHandoff
Source§impl<'de> Deserialize<'de> for ProofHandoff
impl<'de> Deserialize<'de> for ProofHandoff
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
impl Eq for ProofHandoff
Source§impl PartialEq for ProofHandoff
impl PartialEq for ProofHandoff
Source§impl Serialize for ProofHandoff
impl Serialize for ProofHandoff
impl StructuralPartialEq for ProofHandoff
Auto Trait Implementations§
impl Freeze for ProofHandoff
impl RefUnwindSafe for ProofHandoff
impl Send for ProofHandoff
impl Sync for ProofHandoff
impl Unpin for ProofHandoff
impl UnsafeUnpin for ProofHandoff
impl UnwindSafe for ProofHandoff
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.