# But It Was True When I Checked: Compiling SHOP-Style Method Preconditions into Partially-Ordered HTN Planning

DevFeed: [But It Was True When I Checked: Compiling SHOP-Style Method Preconditions into Partially-Ordered HTN Planning](<https://devfeed.tech/articles/but-it-was-true-when-i-checked-compiling-shop-style-method-preconditions-into-partially-ordered-htn-planning-126066.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.11055>)

Author: Harrison Oates

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [AI Research](<https://devfeed.tech/topics/ai-research.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [competition](<https://devfeed.tech/tags/competition.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [order](<https://devfeed.tech/tags/order.md>), [planning](<https://devfeed.tech/tags/planning.md>), [precondition](<https://devfeed.tech/tags/precondition.md>), [semantics](<https://devfeed.tech/tags/semantics.md>), [shop](<https://devfeed.tech/tags/shop.md>)

## AI overview

In HTN planning, SHOP-style method preconditions must hold immediately before a method's first action, while HDDL's auxiliary check can be invalidated by unrelated actions before the method starts under partial order. Earlier compilations of the SHOP-style semantics were limited to total-order planning. The paper reports a compilation into standard partially ordered HTN planning without method preconditions, using two additional facts.

## Source excerpt

arXiv:2611.11055v1 Announce Type: new Abstract: Method preconditions specify when a method may be applied in hierarchical task network (HTN) planning, but their meaning differs under two established semantics. The SHOP planners, like the classical HTN formalism of Erol, Hendler and Nau, require the precondition to hold immediately before the method's first action. HDDL, the input language of the International Planning Competition's HTN track, instead introduces an auxiliary action to check it; under partial order, unrelated actions may invalidate the precondition before the method starts. HDDL's designers adopted this weaker semantics because the first-action reading could not easily be compiled. Subsequent work has repeatedly identified its compilation under partial order as an open question, with existing transformations limited to total order. We give a compilation of the first-action semantics into standard partially ordered HTN planning without method preconditions using only two additional facts, thereby resolving a longstanding question in the HTN planning community.