pub struct AgentGraphNode {
pub node_id: String,
pub role: AgentRole,
pub dependencies: BTreeSet<String>,
pub review_target_node_id: Option<String>,
pub delegated_criterion_ids: BTreeSet<String>,
pub added_constraints: Vec<String>,
pub authority: AgentAuthority,
pub read_paths: BTreeSet<String>,
pub write_paths: BTreeSet<String>,
pub budget: AgentBudget,
pub allowed_action_classes: BTreeSet<ActionClass>,
}Expand description
Immutable recipe for one worker, reviewer, or adversary node.
Workspace digests are deliberately absent: the scheduler materializes a
P3A DelegationPlan against the exact parent generation only when a worker
becomes dependency-ready.
Fields§
§node_id: StringStable graph-local identifier.
role: AgentRoleRuntime authority class for this node.
dependencies: BTreeSet<String>Nodes whose proof barriers must complete before this node is ready.
review_target_node_id: Option<String>Worker inspected by a reviewer or adversary node.
delegated_criterion_ids: BTreeSet<String>Exact parent criteria owned by a worker node.
added_constraints: Vec<String>Additive constraints that may narrow, never widen, a worker contract.
Secret-free provider/model identity assigned to this node.
read_paths: BTreeSet<String>Workspace-relative scopes visible to the isolated node.
write_paths: BTreeSet<String>Workspace-relative scopes a worker may mutate.
budget: AgentBudgetHard provider/tool/time reservation for this node.
allowed_action_classes: BTreeSet<ActionClass>Runtime-owned action classes exposed to the node.
Implementations§
Source§impl AgentGraphNode
impl AgentGraphNode
Sourcepub fn derive_delegation(
&self,
parent_session_id: Uuid,
parent: &TaskContract,
input_workspace_generation: impl Into<String>,
leased_input_hash: impl Into<String>,
) -> Result<DelegationPlan, AgentGraphError>
pub fn derive_delegation( &self, parent_session_id: Uuid, parent: &TaskContract, input_workspace_generation: impl Into<String>, leased_input_hash: impl Into<String>, ) -> Result<DelegationPlan, AgentGraphError>
Materializes a P3A worker delegation against the current parent state.
Trait Implementations§
Source§impl Clone for AgentGraphNode
impl Clone for AgentGraphNode
Source§fn clone(&self) -> AgentGraphNode
fn clone(&self) -> AgentGraphNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more