Inferensys

Glossary

Initial Task Network

An Initial Task Network is the starting set of high-level, abstract tasks that define a Hierarchical Task Network (HTN) planning problem, which the planner must recursively decompose into executable primitive actions.
Product manager reviewing autonomous task execution dashboard on laptop, completed tasks visible, casual work session.
HIERARCHICAL TASK NETWORKS

What is an Initial Task Network?

In Hierarchical Task Network (HTN) planning, the Initial Task Network is the formal starting point for the planner, defining the high-level goal tasks that must be decomposed into executable actions.

An Initial Task Network (ITN) is the root input to an HTN planner, consisting of one or more compound tasks that represent the abstract, high-level goals to be achieved. This network, often a single top-level task, defines the planning problem's objective before any task decomposition occurs. The planner's role is to recursively apply methods to break down these initial tasks into a sequence of primitive tasks (executable actions) that are valid given the current world state.

The ITN is a core component of the formal HTN planning problem, which also includes the domain description (tasks, methods, operators) and the initial state. It represents the 'what' before the 'how.' Unlike classical planning which starts with a goal state, HTN planning begins with this task-centric specification, guiding the search toward solutions that use known, reliable decomposition patterns. This makes it highly effective for modeling complex, procedural knowledge in domains like robotics, logistics, and autonomous agent workflows.

HIERARCHICAL TASK NETWORKS

Core Components of an Initial Task Network

An Initial Task Network (ITN) is the formal starting point for a Hierarchical Task Network (HTN) planning problem. It defines the high-level objectives to be decomposed into executable actions.

01

Goal Task(s)

The ITN contains one or more compound tasks representing the high-level objectives to be achieved. These are abstract, non-executable tasks that serve as the root nodes for the decomposition process.

  • Example: In a logistics domain, the goal task could be DeliverPackage(Package_A, Warehouse_B).
  • The planner's job is to recursively decompose these goal tasks using available methods until only primitive tasks (executable actions) remain.
02

Task Network Structure

The ITN is not just a list of tasks; it is a partially ordered network. This structure defines ordering constraints (temporal precedences) and causal links between the initial goal tasks.

  • Key Property: The network is initially sparse, containing only the high-level goal tasks and any known constraints between them.
  • Purpose: This structure provides the skeleton that the planner will flesh out through decomposition, preserving necessary task orderings (e.g., SecureFunding must occur before InitiateConstruction).
03

Formal Specification

An ITN is defined within the broader HTN Domain Description. It is a tuple, often notated as (T, <), where:

  • T is a set of tasks (initially the goal tasks).
  • < is a set of strict partial order constraints over T.
  • This formal definition allows the planner to reason algorithmically about task decomposition and ordering.
04

Distinction from Initial State

A critical conceptual separation: the Initial Task Network specifies what needs to be done, while the Initial State describes the starting world conditions in which it must be done.

  • Initial State: A set of grounded propositions (facts) true at the start (e.g., RobotIsAt(ChargingStation), BatteryLevel(High)).
  • Interaction: The planner uses the initial state to evaluate the preconditions of methods and operators during decomposition. The ITN and initial state together fully define the planning problem.
05

Role in the Planning Process

The ITN is the input to the HTN planner. The planner's algorithm (e.g., SHOP) performs a recursive task decomposition:

  1. Select a non-primitive (compound) task from the current task network.
  2. Choose an applicable method whose preconditions hold in the current state.
  3. Replace the compound task with the method's subtask network.
  4. Repeat until the network contains only primitive tasks, resulting in a solution plan. The ITN is thus progressively refined into an executable sequence.
06

Example: Software Deployment

Consider an ITN for automating a deployment:

  • Goal Tasks: {DeployMicroservice(AuthService), RunIntegrationTests}
  • Ordering Constraint: DeployMicroservice(AuthService) < RunIntegrationTests

The planner must decompose DeployMicroservice using methods that might add subtasks like BuildContainerImage, PushToRegistry, UpdateK8sManifest, and RolloutDeployment. The ITN provides the target structure the planner must create.

HTN PLANNING

The Role of the Initial Task Network in HTN Planning

The Initial Task Network (ITN) is the formal starting specification for a Hierarchical Task Network (HTN) planning problem, defining the high-level objectives the planner must achieve.

An Initial Task Network is the input to an HTN planner, consisting of one or more abstract compound tasks that represent the overall goal. It is a partially ordered network, not a single task, allowing for the specification of multiple concurrent objectives and temporal constraints from the outset. The planner's core function is to recursively decompose this initial network using methods until only directly executable primitive tasks (operators) remain.

The structure of the ITN directly influences the search space and efficiency of the planning process. A well-designed ITN provides a crucial skeletal plan that guides decomposition. It is defined alongside the initial state of the world and the domain description (containing tasks and methods) to form a complete HTN planning problem. The final output is a solution plan—a fully instantiated sequence of primitive actions derived from the ITN.

INITIAL TASK NETWORK

Frequently Asked Questions

The Initial Task Network (ITN) is the formal starting point for a Hierarchical Task Network (HTN) planning problem. It defines the high-level objectives that an autonomous agent or planning system must achieve through recursive decomposition. This FAQ addresses its core definition, role in planning, structure, and practical implementation.

An Initial Task Network (ITN) is the formal, structured input to a Hierarchical Task Network (HTN) planner, consisting of one or more high-level, non-primitive tasks that define the planning problem's goals. It serves as the root from which the planner begins the recursive task decomposition process, applying methods to break down abstract compound tasks into networks of subtasks until a sequence of executable primitive tasks (or operators) is generated. The ITN, combined with the domain description (methods, operators) and the initial state, fully specifies the HTN planning problem. It is the planner's mandate to transform this initial network of abstract goals into a concrete, executable solution plan.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.