pub struct HandoffReceipt {
pub schema_version: String,
pub protocol_version: String,
pub delegation_hash: String,
pub child_session_id: Uuid,
pub authority: AgentAuthority,
pub output_workspace_generation: String,
pub changes: Vec<HandoffChange>,
pub evidence_ids: Vec<Uuid>,
pub outcome: RunOutcome,
pub output_digest: String,
}Expand description
Proof-carrying worker output, bound to one delegation plan and child session.
Fields§
§schema_version: StringPublic schema identifier.
protocol_version: StringDelegation protocol version.
delegation_hash: StringDigest of the exact delegation plan.
child_session_id: UuidPersisted child session.
Child authority copied from the plan.
output_workspace_generation: StringChild workspace generation after execution.
changes: Vec<HandoffChange>Stable path-ordered changes.
evidence_ids: Vec<Uuid>Evidence IDs produced by the child proof graph.
outcome: RunOutcomeChild proof-gated outcome.
output_digest: StringDigest of the child provider’s public output text.
Implementations§
Source§impl HandoffReceipt
impl HandoffReceipt
Sourcepub fn validate(
&self,
plan: &DelegationPlan,
parent: &TaskContract,
) -> Result<(), AgentError>
pub fn validate( &self, plan: &DelegationPlan, parent: &TaskContract, ) -> Result<(), AgentError>
Validates all plan bindings, evidence identity, change scope, and outcome.
Sourcepub fn digest(
&self,
plan: &DelegationPlan,
parent: &TaskContract,
) -> Result<String, AgentError>
pub fn digest( &self, plan: &DelegationPlan, parent: &TaskContract, ) -> Result<String, AgentError>
Computes the canonical receipt digest after validation.
Trait Implementations§
Source§impl Clone for HandoffReceipt
impl Clone for HandoffReceipt
Source§fn clone(&self) -> HandoffReceipt
fn clone(&self) -> HandoffReceipt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HandoffReceipt
impl Debug for HandoffReceipt
Source§impl<'de> Deserialize<'de> for HandoffReceipt
impl<'de> Deserialize<'de> for HandoffReceipt
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 HandoffReceipt
impl PartialEq for HandoffReceipt
Source§impl Serialize for HandoffReceipt
impl Serialize for HandoffReceipt
impl StructuralPartialEq for HandoffReceipt
Auto Trait Implementations§
impl Freeze for HandoffReceipt
impl RefUnwindSafe for HandoffReceipt
impl Send for HandoffReceipt
impl Sync for HandoffReceipt
impl Unpin for HandoffReceipt
impl UnsafeUnpin for HandoffReceipt
impl UnwindSafe for HandoffReceipt
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