Introduction
Hierarchical Task Network (HTN) planning is a powerful paradigm for automated planning, where complex high-level tasks are recursively decomposed into simpler subtasks. Despite its popularity, HTN planning faces a significant theoretical hurdle: in its most general form, the plan-existence problem is undecidable. To address this, researchers previously introduced "Task Insertion" (TIHTN), which allows the planner to insert primitive actions outside the strict decomposition hierarchy, rendering the problem decidable. However, these TIHTN models often lacked the expressivity to handle complex state constraints—requirements that certain conditions must hold during or between tasks.
This paper introduces TIHTNS, a new formalism that bridges this gap by integrating state constraints into the TIHTN framework. The authors demonstrate that this added expressivity does not come at the cost of increased computational complexity.
The TIHTNS Formalism
The core of the TIHTNS framework is the introduction of State Constraint Triples. These are represented as $(t_i, \phi, t_j)$, signifying that a propositional formula $\phi$ must hold in all states between the completion of task $t_i$ and the start of task $t_j$.
By using a special nil symbol to represent the boundaries of the plan (immediately before the first task or after the last), the framework can model various requirements:
- Maintenance Goals: Ensuring a condition (like a robot's battery level) remains true throughout a task's execution.
- Pre- and Post-conditions: Defining specific states that must exist before or after abstract tasks.
- Inter-task Constraints: Enforcing conditions that must persist between the execution of two distinct subtasks.
Methodology: Acyclic Progression
To prove the decidability and complexity of TIHTNS, the authors focus on acyclic decompositions. They demonstrate that if a solution to a TIHTNS problem exists, it can be found using an acyclic decomposition tree.
The authors adapt a progression operator to handle these constraints. This algorithm tracks the current state of the world and the remaining tasks to be performed. In TIHTNS, the progression must also maintain a set $\Sigma$ of active state constraints. Every time an action is performed, the planner must verify that all active constraints in $\Sigma$ are satisfied. This systematic approach allows the planner to navigate the hierarchy while ensuring that no state constraints are violated during task insertion or decomposition.
Complexity and Key Results
The most significant theoretical contribution of the paper is the analysis of the plan-existence problem's complexity. The authors establish several key findings:
- Expressivity is "Free": Adding state constraints does not increase the computational complexity of the TIHTN plan-existence problem. It remains 2-NEXPTIME-complete.
- Decidability: The problem is decidable for any domain, regardless of whether the decomposition methods are recursive, provided the task insertion property is maintained.
- Framework Unification: The authors show that TIHTNS is a highly versatile language. It can mathematically embed other planning frameworks, such as Hierarchical Goal Networks (HGN) and Goal-Task Networks (GTN), without requiring the creation of "dummy" operators to simulate state transitions.
Discussion and Future Work
While this paper settles the theoretical complexity of TIHTNS, it opens several doors for future research. The current state constraints are limited to propositional formulas; extending this to Linear Temporal Logic (LTL)—similar to the PDDL3 standard—would allow for even more sophisticated temporal requirements.
Additionally, the paper focuses on task insertion (adding primitive actions). A potential extension is "method insertion," which would allow a planner to dynamically introduce new ways to decompose compound tasks. Finally, as this is a theoretical work, the practical performance of a TIHTNS planner in real-world, resource-constrained environments remains an area for empirical evaluation.
Summary updated