arXiv:2610.18523cs.ROOct 2026

Manuscript Offprint

arXiv:2610.18523

APTree: Extended Behavior Trees for Adaptive and Scalable Automated Robotic Task Planning in Construction

Shermin Sherkat, Thomas Wortmann, Andreas Wortmann

Abstract

Task planning for robots in off-site construction prefabrication is primarily manual, leading to planning inefficiencies and reluctance to adopt robotic solutions. Existing approaches provide limited support for scalable, modular automated task planning and localized runtime replanning. This paper proposes APTree, a model-driven framework that integrates automated task planning with modular task execution using behavior trees as the execution model. APTree repeatedly applies and coordinates heterogeneous symbolic planners to automatically generate and compose modular task plans at runtime. To support this approach, we develop a domain-specific language for the formal specification and validation of task plans, together with a compatible execution engine. We evaluate APTree on the real-world livMatS Biomimetic Shell pavilion, where it models the construction robotic fabrication domain, detects injected specification and planning errors at design time and runtime, and automatically generates large-scale task plans by coordinating three symbolic planners across numerous planning modules. A machine-checked formal analysis further shows that composed execution and local replanning are safe under explicitly stated assumptions, including planner soundness and non-interference of generated plans, providing practitioners with explicit conditions for dependable plan composition. APTree thus enables construction practitioners to leverage automated task planning without requiring detailed knowledge of symbolic planning techniques or APTree's internal implementation.

Keywords: domain-specific language, behavior tree, AI planner, task planning, model-driven engineering, symbolic planner, automated planning, robot programming, software language engineering

1. Introduction

The construction industry faces substantial automation challenges that require robotic solutions [1], particularly in off-site assembly and prefabrication, where components are fabricated in controlled, factory-like environments for on-site assembly [2]; we refer to this domain as construction robotic fabrication (CRF). Robotic solutions depend on both task planning and task execution [3]. Task planning generates plans that specify the tasks and their order to achieve a goal [4]. Task execution realizes these task plans through execution models that control runtime coordination, including timing and conditional switching [5]. CRF problems are inherently complex, involving hundreds of heterogeneous tasks, objects, resources, and constraints [6], making monolithic task planning approaches insufficient and driving the need for modular task plans composed of independently developed modules, potentially generated by different planning methods [7]. Currently, task planning for CRF is typically manual [8], contributing to planning inefficiency and reluctance to adopt robotic solutions [1]. Achieving scalable automated planning and execution of modular task plans requires addressing three key challenges (C):

*Accepted for publication in The Journal of Systems and Software. © 2026. This manuscript version is made available under the CC-BY-NC-ND 4.0 license https://creativecommons.org/licenses/by-nc-nd/4.0/

∗^{*}Corresponding author.

Email address: shermin.sherkat@icd.uni-stuttgart.de (Shermin Sherkat)

(C1) hidden data dependencies arising from composing independently developed execution models without explicit interfaces, leading to runtime crashes due to data type errors or unpredictable behavior;

(C2) limited support for localized runtime replanning, where existing execution models typically require restructuring or regenerating the entire model rather than replacing only the affected task plan module, making execution structures rigid, limiting runtime changes, and preventing dynamic adaptation to changes in the robot’s environment;

and (C3) limited scalability of automated task plan generation, where existing task planning approaches often struggle as planning problems increase in size and complexity, resulting in brittle execution models of limited size.

To address these challenges, this paper proposes APTree, a model-driven approach for scalable and modular automated task planning and execution based on behavior trees (BTs). BTs are tree-like execution models that structure tasks as nodes and control the switching between them to describe the behavior of an autonomous agent, such as a robot [5]. Among existing execution modeling languages, BTs are selected for their modular structure, in contrast to modeling languages such as finite state machines (FSMs) [9]. A BT consists of two main node types: flow nodes, which have one or more child nodes and control the order and conditions under which they are executed, and action nodes, which perform tasks [7].

Specifically, we introduce a novel method for modeling task plans (tasks and their ordering) together with the symbolic planners that generate them (i.e., planners that derive task sequences through logical reasoning). These task plans are then coordinated and composed by execution models (BTs in this work), with a domain-specific language (DSL) serving as their common interface. Rather than coupling a specific task planner to a fixed execution model, our approach provides a planner-independent abstraction that enables symbolic planners to be repeatedly applied and coordinated at different levels of granularity to generate task plan modules (C3). These modules are validated for consistency, transformed into the APTree DSL, and composed into a unified execution model (C1) that supports scalable, localized runtime replanning (C2).

To realize this approach, we leverage model-driven engineering (MDE), which is a software development approach that focuses on creating and exploiting domain models and metamodels (e.g., BTs) [10]. Metamodels define the rules, concepts, and relationships that constitute a model [11]. APTree extends the original BT metamodel with packages for domain types, graph-based plan representation, and planning services. Notably, the concepts captured by these packages are not inherently tied to BTs: the domain types and planning services contain no BT-specific constructs, and the graph-based plan representation is separated from the execution semantics; only their composition into the executable model and the execution engine are BT-specific. Based on the extended metamodel, a text-based DSL enables the specification and validation of APTree models, and an execution engine loads and executes these models (see Figure 1). Using MDE and software language engineering (SLE), we reduce the complexity of large CRF task planning problems, allowing domain users to focus on the problem rather than on the low-level implementation details of individual task planning methods and BT execution. Consequently, this paper makes the following contributions:

  1. A metamodel package for representing domain-specific types, predicates, and tasks that automatically generates a complementary metamodel for design-time validation of task interfaces and runtime validation of task preconditions and effects in execution models. The approach is realized by extending the BT metamodel to describe BT action nodes using the proposed task metamodel (C1, shown in green in Figure 1).

  2. A metamodel package for representing task plans as directed graphs with explicit temporal relations and runtime configurable execution logic, enabling planner-independent task execution and localized runtime replanning. The approach is realized by extending the BT metamodel to enable a BT flow node to describe a task plan (C2, shown in blue in Figure 1).

  3. A metamodel package for representing symbolic planners and their configurations that enables multiple symbolic planners operating at different abstraction levels to be explicitly specified, configured, and invoked within a unified task execution model. The approach is realized by extending the BT metamodel to enable a BT service node to describe a symbolic planner (C3, shown in orange in Figure 1).

  4. A text-based DSL built upon the extended BT metamodel packages, ensuring input consistency and validation of planner-generated execution models.

  5. A BT-based execution engine compatible with the DSL, supporting model loading, symbolic planner invocation, and modular task planning.

We use MontiCore (a software language workbench for developing and processing modular and text-based DSLs [12]) to define and support APTree's DSL (Figure 1). The MontiCore language workbench enables user input

Figure

Figure 1: Overview of the APTree method discussed in the paper. The APTree method extends the existing BT metamodel with four packages, each marked by its corresponding section (S) number in the paper and the challenge it addresses (C).

validation, prevents mismatches and errors during planning, and supports automatic code generation for the execution engine. Additionally, MontiCore generates an abstract syntax tree (AST) from the user input model, which represents the hierarchical structure of the source code. This AST is then used to enable context-aware validation of sub-execution models [12] modeled by the users or generated by symbolic planners before they are injected into the overall execution model, ensuring type correctness and structural consistency.

The methodology of this research is based on the design science research paradigm (DSR) [13], focusing on the development and evaluation of artifacts to solve complex challenges such as automation in CRF task planning. Key artifacts include the BT DSL package, the four DSL packages extending it, and the execution engine.

The APTree method was evaluated using a case study on real-world CRF task planning of the livMatS Biomimetic Shell pavilion [14], whose shell segments were robotically fabricated off-site prior to on-site assembly. The livMatS pavilion is a research demonstrator constructed at the FIT Freiburg Center, Germany, and features a digitally designed segmented shell structure [14]. The APTree DSL enabled modeling and validating the livMatS construction robotic fabrication domain, and the APTree execution engine automatically generated the task plan for assembling the segments using three different symbolic automated task planning tools: ENHSP [15], Metric-FF [16], and LAMA-First [17].

In the remainder of this paper, Section 2 provides background information on the terminology used. Section 3 reviews the related work and identifies the challenges, while Section 4 presents the research questions and evaluation metrics to evaluate APTree based on the challenges. Section 5 describes the APTree DSL packages, and Section 6 presents our case study and how the user can use APTree. Finally, Section 7 presents the evaluation of APTree based on our case study results. Section 8 discusses the findings, and Section 9 concludes the paper. Appendix A and Appendix B contain supplementary evaluation material, and Appendix C provides information to facilitate replication.

References (61)