pub struct Node {Show 15 fields
pub id: String,
pub role: Role,
pub instruction: String,
pub needs: Vec<Capability>,
pub prefer: Option<String>,
pub model: Option<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>,
}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.
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.