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: boolBlock 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, …).