pub struct ReviewReceipt {
pub schema_version: String,
pub protocol_version: String,
pub handoff_hash: String,
pub reviewer_session_id: Uuid,
pub authority: AgentAuthority,
pub decision: ReviewDecision,
pub findings: Vec<ReviewFinding>,
pub inspected_paths: BTreeSet<String>,
pub evidence_ids: Vec<Uuid>,
}Expand description
Review receipt produced by a separately authorized reviewer session.
Fields§
§schema_version: StringPublic schema identifier.
protocol_version: StringDelegation protocol version.
handoff_hash: StringDigest of the exact handoff under review.
reviewer_session_id: UuidPersisted reviewer session.
Reviewer authority; must differ from the worker authority.
decision: ReviewDecisionExplicit disposition.
findings: Vec<ReviewFinding>Stable findings; approval requires an empty set.
inspected_paths: BTreeSet<String>Workspace paths actually inspected by successful reviewer read actions.
evidence_ids: Vec<Uuid>Reviewer evidence IDs proving the inspection ran.
Implementations§
Source§impl ReviewReceipt
impl ReviewReceipt
Sourcepub fn validate(
&self,
handoff: &HandoffReceipt,
plan: &DelegationPlan,
parent: &TaskContract,
) -> Result<(), AgentError>
pub fn validate( &self, handoff: &HandoffReceipt, plan: &DelegationPlan, parent: &TaskContract, ) -> Result<(), AgentError>
Validates independence, binding, evidence, finding scope, and disposition.
Sourcepub fn digest(
&self,
handoff: &HandoffReceipt,
plan: &DelegationPlan,
parent: &TaskContract,
) -> Result<String, AgentError>
pub fn digest( &self, handoff: &HandoffReceipt, plan: &DelegationPlan, parent: &TaskContract, ) -> Result<String, AgentError>
Computes the canonical receipt digest after validation.
Trait Implementations§
Source§impl Clone for ReviewReceipt
impl Clone for ReviewReceipt
Source§fn clone(&self) -> ReviewReceipt
fn clone(&self) -> ReviewReceipt
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 ReviewReceipt
impl Debug for ReviewReceipt
Source§impl<'de> Deserialize<'de> for ReviewReceipt
impl<'de> Deserialize<'de> for ReviewReceipt
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 ReviewReceipt
Source§impl PartialEq for ReviewReceipt
impl PartialEq for ReviewReceipt
Source§impl Serialize for ReviewReceipt
impl Serialize for ReviewReceipt
impl StructuralPartialEq for ReviewReceipt
Auto Trait Implementations§
impl Freeze for ReviewReceipt
impl RefUnwindSafe for ReviewReceipt
impl Send for ReviewReceipt
impl Sync for ReviewReceipt
impl Unpin for ReviewReceipt
impl UnsafeUnpin for ReviewReceipt
impl UnwindSafe for ReviewReceipt
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