Task decomposition is the fundamental process in Hierarchical Task Network (HTN) planning where a compound task is recursively replaced by a network of subtasks using applicable methods. This process continues until all tasks are reduced to primitive tasks, which correspond directly to executable actions defined by operators with specific preconditions and effects. The result is a hierarchical plan or a flat sequence of actions that achieves the initial goal from a given world state.
