pub struct AgentGraphPlan {
pub schema_version: String,
pub protocol_version: String,
pub graph_id: Uuid,
pub parent_session_id: Uuid,
pub parent_contract_id: Uuid,
pub parent_contract_hash: String,
pub parent_state_binding: String,
pub coordinator_authority: AgentAuthority,
pub budget: AgentGraphBudget,
pub nodes: Vec<AgentGraphNode>,
}Expand description
Immutable, content-addressed decomposition and authority graph.
Fields§
§schema_version: StringPublic Proofborne schema identifier.
protocol_version: StringAgent-graph protocol identifier.
graph_id: UuidUnique graph identity.
parent_session_id: UuidCoordinator session that owns the original contract.
parent_contract_id: UuidOriginal confirmed contract identity.
parent_contract_hash: StringCanonical digest of the original contract.
parent_state_binding: StringWorkspace/proof state observed before graph execution.
Coordinator authority; never inherited by child nodes.
budget: AgentGraphBudgetAggregate reservation enforced before the first node starts.
nodes: Vec<AgentGraphNode>Canonically node-ID-sorted graph recipes.
Implementations§
Source§impl AgentGraphPlan
impl AgentGraphPlan
Sourcepub fn new(
parent_session_id: Uuid,
parent: &TaskContract,
parent_state_binding: impl Into<String>,
coordinator_authority: AgentAuthority,
budget: AgentGraphBudget,
nodes: Vec<AgentGraphNode>,
) -> Result<Self, AgentGraphError>
pub fn new( parent_session_id: Uuid, parent: &TaskContract, parent_state_binding: impl Into<String>, coordinator_authority: AgentAuthority, budget: AgentGraphBudget, nodes: Vec<AgentGraphNode>, ) -> Result<Self, AgentGraphError>
Constructs, sorts, and validates a complete graph decomposition.
Sourcepub fn validate(&self, parent: &TaskContract) -> Result<(), AgentGraphError>
pub fn validate(&self, parent: &TaskContract) -> Result<(), AgentGraphError>
Validates versions, decomposition, graph topology, isolation, and budgets.
Sourcepub fn digest(&self, parent: &TaskContract) -> Result<String, AgentGraphError>
pub fn digest(&self, parent: &TaskContract) -> Result<String, AgentGraphError>
Computes the canonical graph digest after full validation.
Sourcepub fn topological_order(&self) -> Result<Vec<String>, AgentGraphError>
pub fn topological_order(&self) -> Result<Vec<String>, AgentGraphError>
Returns the stable Kahn topological order, or fails on a cycle.
Sourcepub fn node(&self, node_id: &str) -> Option<&AgentGraphNode>
pub fn node(&self, node_id: &str) -> Option<&AgentGraphNode>
Looks up one canonical node recipe.
Trait Implementations§
Source§impl Clone for AgentGraphPlan
impl Clone for AgentGraphPlan
Source§fn clone(&self) -> AgentGraphPlan
fn clone(&self) -> AgentGraphPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more