Deadlock-Free Parallel Regions for Projected Workflows
Abstract
Projected workflow languages describe a distributed protocol once and compile it to one local program per participant. Many agent workflows are not purely sequential: independent streams of tasks may proceed at the same time while sharing some participants, such as a user or a calendar service. The ZipperGen workflow language gives deadlock-freedom guarantees for sequential coordination, in particular for LLM-agent workflows, but its core language has no parallel construct. We add such a construct: a structured parallel-region operator whose branches are full workflows and may share lifelines. Projection assigns separate branch-local channel names to messages in different branches, although no channel annotations are written in the source program. A shared lifeline is projected to one local program with a local interleaving operator over the corresponding branch projections. We define the semantics using message sequence charts (MSCs), which record local event orders and message matching. A parallel region admits those interleavings of branch executions in which all messages are matched in FIFO order and the induced causal relation is acyclic. This check includes the broadcasts generated by projection to communicate control decisions. The broadcasts are erased only from the final observation, which retains channel names. For this combination of shared lifelines, asynchronous FIFO communication, generated control messages, and branch-local channels, we prove exact MSC correspondence and deadlock-freedom of the projected programs.
Create a lesson
Metadata
- Categories
- cs.PL, cs.FL
- Journal
- EPTCS 458, 2026, pp. 76-96
- Comments
- In Proceedings EXPRESS/SOS 2026, arXiv:2611.38883
Related papers
Named Commutative Blocks for Parallelization
Shared title terminologycs.PLParisa Fathololumi, Adam Chen, Maurice Herlihy et al.
A Compilation Model for Divergent Parallel Workloads
Shared title terminologycs.PLAlexander J Root, Christophe Gyurgyik, Devanshu Ladsaria et al.
CompCert4Lean: Porting a Verified C Compiler to Lean in Six Weeks with Parallel Coding Agents
Shared title terminologycs.PLCong Wang, Zhiyang Chen, Fan Long et al.