Table of Contents
Fetching ...

Correct-by-Construction Design of Contextual Robotic Missions Using Contracts

Piergiuseppe Mallozzi, Pierluigi Nuzzo, Nir Piterman, Gerardo Schneider, Patrizio Pelliccione

TL;DR

The paper tackles the challenge of robustly specifying and implementing robotic missions across changing contexts by introducing a compositional framework built on assume-guarantee contracts and the Contract-Based Goal Graph (CGG). Each context-driven sub-mission is synthesized into an independent controller, and CROME orchestrates transitions between them to preserve correctness under context switches. Key contributions include the CGG formalism, a timed-automata-based orchestration layer with activation-aware Mealy controllers, and evidence of substantial synthesis-time improvements over monolithic LTL approaches. The approach enables scalable, correct-by-construction contextual missions with practical tooling and demonstrated case-study results, suggesting strong impact for industrial and safety-critical robotic applications.

Abstract

Effectively specifying and implementing robotic missions poses a set of challenges to software engineering for robotic systems. These challenges stem from the need to formalize and execute a robot's high-level tasks while considering various application scenarios and conditions, also known as contexts, in real-world operational environments. Writing correct mission specifications that explicitly account for multiple contexts can be tedious and error-prone. Furthermore, as the number of contexts, and consequently the complexity of the specification, increases, generating a correct-by-construction implementation (e.g., by using synthesis methods) can become intractable. A viable approach to address these issues is to decompose the mission specification into smaller, manageable sub-missions, with each sub-mission tailored to a specific context. Nevertheless, this compositional approach introduces its own set of challenges in ensuring the overall mission's correctness. In this paper, we propose a novel compositional framework for specifying and implementing contextual robotic missions using assume-guarantee contracts. The mission specification is structured in a hierarchical and modular fashion, allowing for each sub-mission to be synthesized as an independent robot controller. We address the problem of dynamically switching between sub-mission controllers while ensuring correctness under predefined conditions.

Correct-by-Construction Design of Contextual Robotic Missions Using Contracts

TL;DR

The paper tackles the challenge of robustly specifying and implementing robotic missions across changing contexts by introducing a compositional framework built on assume-guarantee contracts and the Contract-Based Goal Graph (CGG). Each context-driven sub-mission is synthesized into an independent controller, and CROME orchestrates transitions between them to preserve correctness under context switches. Key contributions include the CGG formalism, a timed-automata-based orchestration layer with activation-aware Mealy controllers, and evidence of substantial synthesis-time improvements over monolithic LTL approaches. The approach enables scalable, correct-by-construction contextual missions with practical tooling and demonstrated case-study results, suggesting strong impact for industrial and safety-critical robotic applications.

Abstract

Effectively specifying and implementing robotic missions poses a set of challenges to software engineering for robotic systems. These challenges stem from the need to formalize and execute a robot's high-level tasks while considering various application scenarios and conditions, also known as contexts, in real-world operational environments. Writing correct mission specifications that explicitly account for multiple contexts can be tedious and error-prone. Furthermore, as the number of contexts, and consequently the complexity of the specification, increases, generating a correct-by-construction implementation (e.g., by using synthesis methods) can become intractable. A viable approach to address these issues is to decompose the mission specification into smaller, manageable sub-missions, with each sub-mission tailored to a specific context. Nevertheless, this compositional approach introduces its own set of challenges in ensuring the overall mission's correctness. In this paper, we propose a novel compositional framework for specifying and implementing contextual robotic missions using assume-guarantee contracts. The mission specification is structured in a hierarchical and modular fashion, allowing for each sub-mission to be synthesized as an independent robot controller. We address the problem of dynamically switching between sub-mission controllers while ensuring correctness under predefined conditions.
Paper Structure (36 sections, 7 theorems, 11 equations, 7 figures, 1 table)

This paper contains 36 sections, 7 theorems, 11 equations, 7 figures, 1 table.

Key Result

Lemma 5.1

Initially, only a context automaton can transition out of idle, and precisely one context can transition to the active state.

Figures (7)

  • Figure 1: Running example map consisting of five regions and two contexts.
  • Figure 2: Example of two contextual tasks active at different points in time.
  • Figure 3: CGG created for the running example.
  • Figure 4: Depiction of task and transition controllers, incorporating activation inputs.
  • Figure 5: Timed automata modeling interactions among the orchestrator, contexts, and controllers. Gray states indicate committed locations.
  • ...and 2 more figures

Theorems & Definitions (32)

  • Definition 3.1: Behavior
  • Definition 3.2: Mission Context
  • Definition 3.3: Robot Behavior
  • Definition 3.4: Projected Robot Behavior
  • Definition 3.5: LTL Contract
  • Definition 3.6: Goal Context
  • Definition 3.7: Goal
  • Remark : Operations on Goals
  • Definition 3.8: Mission
  • Definition 3.9: Mission Scenario
  • ...and 22 more