A Decomposition Method (or HTN Method) is a formal rule within a Hierarchical Task Network (HTN) that specifies a valid way to break down a single compound task into a network of smaller subtasks, given that certain preconditions in the world state are satisfied. It is the fundamental mechanism for translating abstract goals into concrete, executable steps.
How it works:
- Each method is associated with a specific compound task (e.g.,
DeliverPackage).
- It contains a set of preconditions (logical statements that must be true for the method to be applicable).
- Its body defines a task network—a partially ordered set of subtasks that achieve the compound task. These subtasks can themselves be compound, requiring further decomposition, or primitive tasks that are directly executable.
For example, a DeliverPackage method might decompose into the subtask network: [NavigateToDestination, ConfirmRecipient, HandOverPackage]. The planner recursively applies methods until only primitive tasks remain, forming a complete, executable plan.