pub struct SchedulerReceipt {
pub schema_version: String,
pub protocol_version: String,
pub graph_hash: String,
pub decisions: Vec<SchedulerDecision>,
pub terminal_node_states: BTreeMap<String, AgentNodeState>,
pub outcome: AgentGraphOutcome,
pub final_workspace_generation: String,
}Expand description
Offline-verifiable terminal scheduler receipt.
Fields§
§schema_version: StringPublic Proofborne schema identifier.
protocol_version: StringAgent-graph protocol identifier.
graph_hash: StringCanonical digest of the immutable graph plan.
decisions: Vec<SchedulerDecision>Complete hash-chained decision history.
terminal_node_states: BTreeMap<String, AgentNodeState>Final state for every graph node.
outcome: AgentGraphOutcomeRecomputed graph outcome.
final_workspace_generation: StringParent workspace generation after terminal fan-in.
Implementations§
Source§impl SchedulerReceipt
impl SchedulerReceipt
Sourcepub fn validate(
&self,
graph: &AgentGraphPlan,
parent: &TaskContract,
) -> Result<(), AgentGraphError>
pub fn validate( &self, graph: &AgentGraphPlan, parent: &TaskContract, ) -> Result<(), AgentGraphError>
Replays the decision chain and verifies the claimed terminal outcome.
Sourcepub fn digest(
&self,
graph: &AgentGraphPlan,
parent: &TaskContract,
) -> Result<String, AgentGraphError>
pub fn digest( &self, graph: &AgentGraphPlan, parent: &TaskContract, ) -> Result<String, AgentGraphError>
Computes the canonical terminal receipt digest.
Trait Implementations§
Source§impl Clone for SchedulerReceipt
impl Clone for SchedulerReceipt
Source§fn clone(&self) -> SchedulerReceipt
fn clone(&self) -> SchedulerReceipt
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 SchedulerReceipt
impl Debug for SchedulerReceipt
Source§impl<'de> Deserialize<'de> for SchedulerReceipt
impl<'de> Deserialize<'de> for SchedulerReceipt
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 SchedulerReceipt
Source§impl PartialEq for SchedulerReceipt
impl PartialEq for SchedulerReceipt
Source§impl Serialize for SchedulerReceipt
impl Serialize for SchedulerReceipt
impl StructuralPartialEq for SchedulerReceipt
Auto Trait Implementations§
impl Freeze for SchedulerReceipt
impl RefUnwindSafe for SchedulerReceipt
impl Send for SchedulerReceipt
impl Sync for SchedulerReceipt
impl Unpin for SchedulerReceipt
impl UnsafeUnpin for SchedulerReceipt
impl UnwindSafe for SchedulerReceipt
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