MobilityReadingGroup

π-calculus, Session Types research at Imperial College

Practical interruptible conversations: Distributed dynamic verification with multiparty session types and Python
Romain DEMANGEON, Kohei HONDA, Raymond HU, Rumyana NEYKOVA, Nobuko YOSHIDA
Formal Methods in System Design. p. 1 - 29

The rigorous and comprehensive verification of communication-based software is an important engineering challenge in distributed systems. Drawn from our industrial collaborations on Scribble, a choreography description language based on multiparty session types, and its theoretical foundations, this article proposes a dynamic verification framework for structured interruptible conversation programming. We first present our extension of Scribble to support the specification of asynchronously interruptible conversations. We then implement a concise API for conversation programming with interrupts in Python that enables session types properties to be dynamically verified for distributed processes. Finally, we expose the underlying theory of our interrupt mechanism, studying its syntax and semantics, its integration in MPST theory and proving the correctness of our design. Our framework ensures the global safety of a system in the presence of asynchronous interrupts through independent runtime monitoring of each endpoint, checking the conformance of the local execution trace to the specified protocol. The usability of our framework for describing and verifying choreographic communications has been tested by integration into the large scientific cyberinfrastructure developed by the Ocean Observatories Initiative. Asynchronous interrupts have proven expressive enough to represent and verify their main classes of communication patterns, including asynchronous streaming and various timeout-based protocols, without introducing any implicit synchronisations. Benchmarks show conversation programming and monitoring can be realised with little overhead.

@article{DHHNY2015,
  author = {Romain Demangeon and Kohei Honda and Raymond Hu and Rumyana Neykova and Nobuko Yoshida},
  title = {{Practical interruptible conversations: Distributed dynamic verification with multiparty session types and Python}},
  journal = {FMSD},
  pages = {1--29},
  publisher = {Springer},
  year = 2015
}
@article{DHHNY2015,
  author = {Romain Demangeon and Kohei Honda and Raymond Hu and Rumyana Neykova and Nobuko Yoshida},
  title = {{Practical interruptible conversations: Distributed dynamic verification with multiparty session types and Python}},
  journal = {Formal Methods in System Design},
  pages = {1--29},
  publisher = {Springer},
  doi = "10.1007/s10703-014-0218-8",
  year = 2015
}