A Domain Description is the core knowledge base for an HTN planner, formally encoding the operators (executable actions), compound tasks (abstract goals), and methods (decomposition recipes) available to an agent. It defines the legal transformations of the world state through operator preconditions and effects, and it specifies how high-level objectives can be recursively broken down into executable steps. This specification is entirely separate from a specific problem instance, making it a reusable blueprint for a class of planning challenges, such as logistics, manufacturing, or robotic manipulation.
Glossary
Domain Description (HTN)

What is a Domain Description (HTN)?
A Domain Description in Hierarchical Task Network (HTN) planning is the formal, declarative specification that defines the capabilities and rules for an autonomous agent or planning system within a specific problem area.
The precision of a domain description directly determines the soundness and efficiency of the resulting plans. It constrains the planner's search space by providing structured decomposition knowledge, which is more efficient than exploring all possible primitive action sequences. A well-engineered domain description balances expressiveness with computational tractability, often incorporating ordering constraints and logical conditions on method applicability. This formalism is foundational to systems like SHOP and is a critical component for building reliable, goal-directed autonomous agents in complex, structured environments.
Core Components of an HTN Domain Description
An HTN Domain Description is the formal specification that defines the capabilities and logic for a Hierarchical Task Network planner. It acts as a rulebook, detailing what tasks can be performed, how complex goals can be broken down, and the conditions under which actions are valid.
Task Schemas
Task schemas are templates that define the classes of tasks the planner can reason about. They are the fundamental building blocks of the domain.
- Primitive Task Schemas define directly executable actions, analogous to operators in classical planning. Example:
drive(vehicle, location_a, location_b). - Compound Task Schemas define high-level, abstract goals that require decomposition. Example:
deliver_package(package, destination). Each schema includes a name and a set of typed parameters, establishing the vocabulary for the planning problem.
Operators
Operators provide the executable semantics for primitive tasks. An operator is a grounded instance of a primitive task schema, defined by:
- Preconditions: Logical conditions that must be true in the current world state for the action to be applicable. Example:
At(vehicle, location_a) ∧ HasFuel(vehicle). - Effects: The changes applied to the world state upon successful execution. Effects add and delete predicates. Example:
Add: At(vehicle, location_b); Delete: At(vehicle, location_a). Operators are the leaves of the decomposition tree, representing the actual steps in a final executable plan.
Methods
Methods are the core decomposition rules for compound tasks. A method specifies one way to achieve a high-level goal by breaking it into a network of smaller subtasks.
- Each method is associated with a specific compound task schema.
- It contains method preconditions that must hold for this decomposition to be valid.
- Its body is a task network: a set of subtasks (which can be compound or primitive) and ordering constraints between them.
For the compound task
deliver_package(pkg, dest), a method might decompose it into:1. load(pkg, truck) → 2. drive(truck, warehouse, dest) → 3. unload(pkg, truck).
Initial State & Task Network
These components define a specific planning problem instance within the domain.
- Initial State: A complete snapshot of the world before planning begins, expressed as a set of grounded, true logical predicates. Example:
{At(Truck1, Depot), In(PackageA, Warehouse), HasFuel(Truck1)}. - Initial Task Network (ITN): The goal specification for the planner. It is the set of high-level compound tasks that need to be accomplished. For a simple goal, the ITN might contain a single task like
[deliver_package(PackageA, CustomerSite)]. The planner's job is to decompose this ITN into a sequence of executable operators.
Constraints
Constraints impose necessary relationships and limitations on the planning process, ensuring generated plans are logically consistent and feasible.
- Ordering Constraints: Specify temporal precedence between subtasks within a method's network (e.g.,
A < Bmeaning A must precede B). - Logical Constraints (Preconditions): Ensure tasks and methods are only applied in valid states.
- Resource Constraints: (In extended HTN formulations) Limit the use of consumable or reusable assets (e.g.,
battery_level > 20,uses(robot, gripper)). These constraints are evaluated during decomposition to prune invalid search paths.
Domain vs. Problem
A critical distinction in HTN planning separates the reusable domain knowledge from the specific scenario.
- Domain Description: The permanent rulebook containing the task schemas, operators, and methods. It encodes the know-how for a field (e.g., logistics).
- Planning Problem: The transient instance combining the domain with a specific initial state and initial task network. It asks: "Given these rules and this starting situation, how do I achieve this goal?" This separation allows a single, well-engineered domain description to solve an infinite variety of specific problems.
How an HTN Domain Description Enables Planning
A Hierarchical Task Network (HTN) Domain Description is the formal, declarative blueprint that defines an agent's capabilities and the rules for structuring complex work.
An HTN Domain Description is a formal specification that defines the vocabulary and rules for a planning problem, enabling an agent to decompose abstract goals into executable actions. It comprises a task library of primitive tasks (executable operators) and compound tasks (abstract goals), linked by decomposition methods that act as recipes. This specification provides the planner with a structured knowledge base of what can be done and how high-level objectives can be systematically broken down, given logical preconditions and effects.
By encoding domain expertise into this declarative structure, the description separates strategic knowledge (the methods) from procedural control. The planner's algorithm, such as SHOP, uses this static domain model alongside a dynamic initial state and initial task network to perform task decomposition. This process recursively refines a skeletal plan into a hierarchical plan of primitive actions, ensuring every step is grounded in the domain's defined constraints and capabilities.
Frequently Asked Questions
A Domain Description is the formal specification that defines an HTN planning problem. It provides the rules and vocabulary for how an agent can decompose abstract goals into executable actions. Below are key questions about its structure and role in agentic systems.
An HTN Domain Description is the formal, declarative specification that defines the rules for a Hierarchical Task Network planning problem. It provides the complete set of task schemas, decomposition methods, and planning operators that an autonomous agent uses to reason about how to achieve complex, high-level goals by breaking them down into executable steps.
Think of it as the "rulebook" or "knowledge base" for a planning agent. It doesn't contain the specific problem to solve (the initial state and goal tasks), but rather the general capabilities and logic for solving any problem within its domain. A complete planning problem is created by combining this domain description with an initial state and an initial task network.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
A Domain Description formally defines the components of an HTN planning problem. It is the blueprint that specifies what tasks can be performed, how they can be decomposed, and what actions change the world.
Planning Problem (HTN)
A Planning Problem is the complete formal instance given to an HTN planner. It consists of three core components:
- Domain Description: The library of tasks, methods, and operators.
- Initial State: A snapshot of the world's starting conditions (e.g.,
RobotAt(Kitchen),CoffeeBeansAvailable). - Initial Task Network: The high-level goal task(s) to be decomposed (e.g.,
DeliverCoffee(Office)). The planner's job is to use the domain's rules to transform the initial task network into an executable sequence of actions, given the initial state.
Task Library
A Task Library is the curated collection of all task schemas, methods, and operators for a specific application domain. It is the reusable knowledge base of an HTN system.
- Encodes Domain Expertise: It captures the known procedures for achieving goals in that domain (e.g., manufacturing, logistics, software deployment).
- Promotes Modularity: Libraries can be versioned, shared, and extended. A
KitchenOperationslibrary might be imported into a largerHomeAssistantdomain. - Defines Capability Boundaries: The planner can only generate plans using the tasks and decompositions defined in the library, ensuring solutions are grounded in known, safe procedures.
Operator
An Operator is the formal representation of a primitive, executable action. It is the atomic unit of change in the planning world.
- Preconditions: Logical statements that must be true for the action to be legal (e.g.,
Has(robot, package)to executeUnload(robot, package)). - Effects: The changes applied to the world state upon execution. Effects add new facts (
At(package, destination)) and delete outdated ones (~Has(robot, package)). In HTN planning, operators are the leaves of the decomposition tree. A plan is only executable when all abstract tasks have been decomposed down to a sequence of operators.
Task Schema
A Task Schema is a template that defines a class of tasks, abstracting over specific instances. It specifies the task's name and parameters.
- Parameterized Definition:
Navigate(robot, from, to)is a schema.Navigate(Robot1, Kitchen, Office)is an instance. - Unifies Representation: Both primitive and compound tasks are defined by schemas. The domain description declares whether a schema is primitive (mapped to an operator) or compound (decomposed by methods).
- Enables Constraint Propagation: Constraints on parameters (e.g.,
from != to) defined in the schema can be propagated during decomposition to prune invalid plans early.
Skeletal Plan
A Skeletal Plan is a partially specified, hierarchical plan generated during the intermediate stages of HTN decomposition. It contains a mix of:
- Primitive Actions: Already-resolved operators.
- Abstract (Compound) Tasks: High-level tasks that still require further decomposition.
- Ordering & Binding Constraints: Temporal relations and variable assignments established so far. Skeletal plans are refined iteratively. They represent the planner's current hypothesis about the plan's structure before all details are finalized, allowing for flexible refinement and repair.
Plan Verification
Plan Verification is the formal process of checking that a generated plan is valid. For an HTN-derived plan, this involves verifying:
- Executive Validity: Every primitive action's preconditions are satisfied at the moment of execution, given the predicted state progression.
- Goal Achievement: The final state after executing the plan satisfies the goals implicit in the initial task network.
- Constraint Satisfaction: All ordering, resource, and binding constraints in the fully decomposed plan are respected. Verification provides a critical safety check, ensuring the plan is not just syntactically correct but will work as intended when executed.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us