An iterative task is a type of compound task within a Hierarchical Task Network (HTN) that involves repeating a subtask or a network of subtasks until a specified termination condition is satisfied. Unlike a simple sequence, it introduces a looping construct into the planning process, allowing an autonomous agent to model repetitive operations like "monitor until stable" or "retry until successful." The termination condition is a logical precondition evaluated against the dynamic world state.
