Tapestry: An Operating System for Physical Collectives
Teams that deploy collectives of physical elements, such as aerial swarms, warehouse fleets, and inspection crawlers, repeatedly rebuild the same coordination infrastructure: replicated state about where each element is, failure detection, membership, and a way to express what the collective should do. Tapestry is an open-source operating system that factors this infrastructure into a seven-layer stack with explicit contracts between layers. Every element runs the full stack, from a hardware abstraction layer to an interpreter for declarative collective applications called Choreos. There is no central coordinator, and the only coordination traffic is periodic gossip. This paper makes three technical contributions. The first is a world model for physical state in which every entry carries its age, with one parameter that trades availability against consistency under partition and a separately replicated table of shared facts. The second is message-free coordination: each element derives leadership, roles, task assignment, and collective goal completion independently from its own copy of the world model, a gossip-replicated table of element state. The third is the use of a Choreo: a declarative, coordinate-free, time-bounded language that every element executes identically to achieve the developer’s goals. We state Tapestry’s failure model and consistency contracts and evaluate the implementation in simulation and on hardware, covering partition behavior, element failure and rejoin, and one Choreo running unchanged on ground robots, quadrotors, and a physics simulator. Tapestry is released under the Apache 2.0 license at https://github.com/tapestry-os.
Authors
- James V. Steele
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24629524
- Primary Topic
- Distributed systems and fault tolerance
- Type
- preprint