arXiv:2610.34668cs.AIOct 2026

Manuscript Offprint

arXiv:2610.34668

Hierarchical Task Network planning in the Goal Lifecycle

Paola Rizzo, Hector Munoz-Avila, David W. Aha

Abstract

Goal reasoning (GR) is the process by which intelligent agents continually reason about the goals they are pursuing, which may lead to goal change, for instance when opportunities arise, or when events cause discrepancies among expected and actual outcomes of actions planned to achieve goals. In this paper we investigate whether Hierarchical Task Network (HTN) planning can provide a uniform implementation of the Goal Lifecycle, a flexible process model for goal reasoning in dynamic environments. The Goal Lifecycle progressively refines goals by adding constraints to them through a series of strategies (e.g., formulate, select, expand) and uses other strategies (e.g., defer, re-expand, repair) to resolve the current goal when an event impacts it. We present a novel GR agent architecture that employs HTN planning in this Goal Lifecycle. In addition to using HTN planning for the expand and re-expand strategies, as is frequently done in GR and planning research, we also use it in the formulate strategy, to obtain a uniform planning approach that provides several benefits (e.g., the possibility to formulate new goals in view of achieving higher level overarching goals). We also explain how we use an enhanced HTN action representation to process discrepancies among expected and actual action outcomes that can trigger the transition from one goal to another. Finally, we empirically demonstrate that our GR architecture enables simulated autonomous vehicles to adaptively conduct missions in dynamic environments.

1. Introduction

Goal reasoning (GR) is “the process by which intelligent agents continually reason about the goals they are pursuing, which may lead to goal change [and] has been studied, using different terminology, in multiple disciplines for several decades” (Aha, 2018). GR is at the core of the cognitive systems paradigm (Langley, 2012), in that it requires high-level cognition abilities and a system-level approach to address the multiple aspects of goal formulation and management. GR is needed for agents that interact in dynamic environment scenarios where there is a continuous choice of which goals to pursue and benefits accrue from intelligent goal selection. This is especially relevant to scenarios in which it is impossible or infeasible to specify a priori which goal should be pursued for every contingency that the agent may encounter, such as when the environment is characterized

© 20XX Cognitive Systems Foundation. All rights reserved.

by partial observability, actions have stochastic effects, or there can be dynamic changes. The latter happens when other agents or processes affect changes in the environment that are not under the agent's control. As described in Ghallab et al. (2025), several systems of various types use goal reasoning features (e.g., Muscettola et al. (1998), Myers (1999), Molineaux et al. (2010)). In this paper we address the problem of how to develop a simple yet effective agent architecture endowed with GR capabilities founded on a uniform planning approach based on HTNs.

There are many ways to formulate and manage goals; a flexible model is the Goal Lifecycle (GL) from Roberts et al. (2014), which prescribes an iterative sequence of strategies, namely, formulate, select, expand, commit, dispatch, evaluate, and finish to progressively refine goals by adding constraints to them. GL also includes strategies (e.g., defer, re-expand, repair), similar to iterative repair (Chien et al., 2000), which resolve the current goal when the evaluate strategy finds that an event has positively or negatively impacted the goal. Applying a strategy on a goal changes its mode; the modes of a goal refer to successively smaller candidate sets towards eventual execution. The authors label each set with a mode from among the set {Formulated, Selected, Expanded, Committed, Dispatched, Evaluated, Finished}.

A key challenge in realizing the Goal Lifecycle is determining whether its different goal refinement and resolution strategies should be realized through specialized mechanisms or whether they can instead be supported by a common reasoning framework. We selected the GL as our GR model because it deliberately leaves this design choice open, making it an ideal basis for investigating a common planning framework. We investigate this question by using Hierarchical Task Network (HTN) planning as the underlying reasoning substrate throughout the Goal Lifecycle. HTNs are naturally suited to implementing the expand and re-expand strategies because they capture hierarchical goal decomposition.

Our main contribution is a uniform HTN-based architecture for implementing the Goal Lifecycle, in which HTN planning supports not only the expand and re-expand strategies, but also the formulate strategy, allowing new operational goals to be generated through the hierarchical refinement of higher-level objectives. This yields a coherent planning architecture in which goal formulation, refinement, and adaptive reformulation following execution discrepancies are all expressed within the same planning formalism. Besides simplifying the architecture, this approach facilitates the evolution of domain knowledge, avoids integrating heterogeneous planning and execution mechanisms, and preserves the expressive advantages of HTN planning, including support for representing preferences over goals and methods (Baier & McIlraith, 2009). Another contribution of this paper is that we extend the HTN representation with explicit expectations about action outcomes, enabling the architecture to detect execution discrepancies and trigger appropriate transitions between goals.

The paper is structured as follows. Section 2 describes how we implemented the expand, re-expand and formulate strategies of the GL through HTN planning. Section 3 describes two empirical evaluations of our agent architecture in task domains involving 2D grid dynamic environments, where autonomous vehicles conduct search & rescue and survey missions by switching between goals. Section 4 summarizes related work. Finally, in Section 5 we discuss directions for future work.