MAX_NODES

Constant MAX_NODES 

Source
pub const MAX_NODES: usize = 8;
Expand description

Maximum number of nodes a TaskGraph may contain per subgraph.

This limit applies independently to each nested subgraph (including the top-level graph and every TaskNodeKind::Team subgraph). It does not constrain the aggregate node count across all subgraphs; see MAX_TOTAL_NODES for the soft aggregate budget (Phase J).

Keeping each subgraph small ensures that no single LLM planning call ever needs to reason about more than ~8 sibling nodes.