A compound task is a non-primitive task within an HTN that represents a complex goal requiring further breakdown. It is defined by a task schema and is resolved through task decomposition, where a method (HTN) is selected to replace it with a network of subtasks. These subtasks can themselves be compound or primitive tasks, which are directly executable actions. The process continues recursively until only primitive tasks remain, forming an executable plan.
