Replanning is a critical capability within Hierarchical Task Network (HTN) planning and other automated planning systems, triggered when a monitoring function detects a deviation from expected world state or a plan execution failure. Unlike initial planning, replanning often occurs under time pressure and must leverage the current, possibly degraded, state of the world. The process involves invalidating the failed portion of the plan, potentially backtracking to a viable point in the decomposition tree, and then generating a new sequence of actions or a revised task decomposition to achieve the original or adapted goal.
