Lesson 06.03 · Phase 06 · Planning & Reasoning

Task decomposition trees

Split a goal into subgoals until every leaf is one tool call. Mark which splits need everything (AND) and which need any one option (OR), bound the tree, and let failures fall back locally instead of sinking the whole plan.

Learning objectives

  • Build a decomposition tree recursively, with one decomposer call per node, AND/OR node types, and primitive leaves bound to real tools.
  • Bound the tree with a depth limit, a fan-out limit and a node budget, and reject leaves that aren't tools.
  • Execute the tree depth-first: AND nodes stop at the first failing child, OR nodes stop at the first success.
  • Explain how a tree localises failures that a flat plan can't handle without replanning.

Lesson 2's plan was a flat list. Flat lists work when every step is known up front and nothing has alternatives. "Organise the team offsite" isn't like that:

Loading the full lesson…