Lesson 6 of 8 · 5 min read
Task Decomposition Trees: AND, OR and Local Fallbacks
A task decomposition tree breaks a goal into subgoals and those into smaller subgoals until each leaf is a single tool call. Two kinds of inner node carry the structure: AND nodes succeed only if every child succeeds, in an order that respects their dependencies; OR nodes succeed if any one child succeeds, tried in order of preference. The model proposes the split one node at a time; code validates it, bounds the depth and the branching, and runs the leaves. The design pays off at failure time: an OR node absorbs a failed child by trying the next alternative locally, so a single dead tool does not force a replan of the whole task, and an AND node that cannot complete reports exactly which requirement failed. Compared with a flat plan, the tree costs more model calls for the splits and buys locality of failure, a readable record of what was tried, and a natural place for budgets per subtree.
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal