Skip to main content

Node

Struct Node 

Source
pub struct Node {
Show 20 fields pub id: String, pub role: Role, pub instruction: String, pub needs: Vec<Capability>, pub prefer: Option<String>, pub model: Option<String>, pub tools: Vec<String>, pub skills: Vec<String>, pub depends_on: Vec<String>, pub inputs: Vec<String>, pub outputs: Vec<String>, pub budget: NodeBudget, pub evaluator: Option<EvaluatorKind>, pub acceptance: Option<Acceptance>, pub test_ratchet: bool, pub on_fail: Option<String>, pub checkpoint: Option<Checkpoint>, pub complexity_tier: Option<ComplexityTier>, pub matched_exemplar: Option<String>, pub phase: Option<String>,
}
Expand description

One node in the DAG (CONTEXT.md §10 field reference).

Fields§

§id: String§role: Role§instruction: String§needs: Vec<Capability>

Capability requirements the scheduler resolves to a worker.

§prefer: Option<String>

Optional preferred worker, soft, overridable at dispatch (e.g. harness:claude-code, api:gpt-5.5, tool:npm-test).

§model: Option<String>

Optional model for the chosen harness (e.g. sonnet, opus, grok-composer-2.5-fast). The conductor picks the cheapest model that fits the node; resolved against config defaults at dispatch.

§tools: Vec<String>

MCP tools this node is scoped to use, as server.tool ids (e.g. postgres.query). The host path sends these as function definitions; the provision path provisions exactly these into the harness (MCP_SKILLS.md §7 per-node scoping). Only this node’s tools, never the global catalog.

§skills: Vec<String>

Skills attached to this node, by name (e.g. migration-safety). The skill’s SKILL.md body is injected for this node only; the conductor sees only names + descriptions until then (MCP_SKILLS.md §11 progressive disclosure).

§depends_on: Vec<String>§inputs: Vec<String>

Named blackboard artifacts consumed, plus the special diff.

§outputs: Vec<String>

Named blackboard artifacts produced, plus the special diff.

§budget: NodeBudget§evaluator: Option<EvaluatorKind>

Present on evaluator nodes (CONTEXT.md §10, §11). Semantics land in P5.

§acceptance: Option<Acceptance>

For tool evaluators: a command and required exit code.

§test_ratchet: bool

Block any diff that weakens or deletes tests.

§on_fail: Option<String>

Failure policy. Stored raw in P3 (e.g. “loop_back(n2, critique=…)”); parsed and acted on in P5.

§checkpoint: Option<Checkpoint>

A human gate before or after this node.

§complexity_tier: Option<ComplexityTier>

Routing tier assigned by the conductor (T0–T4). The matrix may bump this up.

§matched_exemplar: Option<String>

Closest tier exemplar id from the library (e.g. T2-05).

§phase: Option<String>

Optional phase tag for human checkpoints (build, tests, …).

Implementations§

Source§

impl Node

Source

pub fn parsed_on_fail(&self) -> Option<OnFail>

Parse this node’s on_fail string into a structured policy. Defaults to looping back to the first dependency when the field is absent or unparseable but a dependency exists.

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Node

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Node

Source§

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 Serialize for Node

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Forget for Node

§

impl Freeze for Node

§

impl Move for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnsafeUnpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.