Skip to main content
QUICK REVIEW

[Paper Review] Choreographies for Automatic Recovery

Claudio Antares Mezzina, Emilio Tuosto|arXiv (Cornell University)|May 26, 2017
Neurological disorders and treatmentsMedicine10 references6 citations
TL;DR

This paper introduces a reversible choreographic model based on global graphs and communicating finite-state machines (CFSMs), enabling automatic recovery in distributed systems through condition-based reversion of communication branches. By extending global graphs with reversion guards and enhancing CFSMs with history tracking, the model ensures causal consistency and allows runtime reversal without explicit instrumentation, offering a conservative, semantics-driven approach to fault tolerance and debugging in concurrent systems.

ABSTRACT

We propose a choreographic model of reversible computations based on a conservative extension of global graphs and communicating finite-state machines. The main advantage of our approach is that does not require to instrument models in order to control reversibility but for a minor decoration of branches. We show that our models are conservative extensions of existing ones and that the reversible semantics guarantees causal consistency.

Motivation & Objective

  • To enable automatic, semantics-driven recovery in communication-centric distributed applications without requiring explicit reversibility primitives.
  • To address limitations in existing reversible computation models that rely on complex instrumentation or restrict expressiveness in concurrent and looped interactions.
  • To provide a conservative extension of global graphs and CFSMs that supports reversible choices while preserving forward semantics.
  • To ensure causal consistency in backward computation, preventing unreachable or inconsistent system states during rollback.
  • To support practical recovery policies through configurable reversion guards and reversible transition semantics in a distributed setting.

Proposed method

  • Extends global graphs with reversion guards φ on choice branches, allowing backward computation when conditions are met.
  • Introduces reversible CFSMs (r-CFSMs) that track execution history in configurations to enable runtime reversal of communications.
  • Employs a conservative extension of standard CFSM semantics by decorating configurations with reversion labels and control points.
  • Projects reversible global graphs onto r-CFSMs using a modified version of the standard choreographic projection, with explicit handling of loop boundaries.
  • Defines backward semantics that identifies valid reversal points based on configuration history and guard conditions.
  • Uses a forget function to relate r-CFSM configurations to standard CFSMs, ensuring causal consistency by preserving reachability under forward-only execution.

Experimental results

Research questions

  • RQ1How can reversible computation be integrated into choreographic models of distributed systems without requiring explicit instrumentation?
  • RQ2What is the minimal extension to global graphs and CFSMs that enables automatic, condition-driven reversal of communication branches?
  • RQ3How can backward transitions be safely computed at runtime while preserving causal consistency?
  • RQ4To what extent does the proposed model preserve the forward semantics of existing CFSM and global graph models?
  • RQ5How does the model handle loops and iterative interactions in the context of reversible computation?

Key findings

  • The forward semantics of r-CFSMs is a conservative extension of standard CFSM semantics, as proven by Theorem 1 and Theorem 2, which show that forgetting reversion decorations recovers the original semantics.
  • The backward semantics ensures causal consistency: every reversed configuration is reachable via forward computation, as formalized in Theorem 3.
  • The model supports iterative choreographies and reversible loops, unlike prior work that restricts reversibility to the last loop iteration or prohibits it entirely.
  • Reversion guards are decoupled from the core model, allowing flexible policy expression (e.g., propositional logic), and the reverse function ρ is designed to undo only one event at a time for simplicity and safety.
  • The framework avoids forcing unrelated participants into checkpoints or reversions, unlike global types with checkpoints, thus reducing unnecessary coordination overhead.
  • The approach enables automatic recovery in adaptive systems, such as service migration under performance degradation, by dynamically reverting to better communication branches when conditions are met.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.