Skip to main content
This is the canonical shared-state manual. The API is experimental. Read the execution contracts for current persistence, visibility, and compatibility guarantees.
Shared state is data that several EDSL interviews can read and change. It makes group voting, bargaining, discussion boards, forecasting, auctions, and common task pools possible. The execution contracts define the current persistence, retry, definition-binding, and workflow integration guarantees. The language specification provides formal semantics and identifies additional conformance requirements. Use the execution contracts to resolve ambiguities about current behavior. This guide constructs one shared data structure explicitly. Nothing is hidden behind a recipe factory. Once every part is understood, we add grouping, surveys, storage, and convenience constructors.

The mental model

A shared-state system has four distinct layers:
A Machine defines one kind of data structure: what it stores, which writes are legal, and what readers can see. A SharedState is one concrete space containing one or more named machines. For example, the space for family-1 might contain a poll and a message board. A SharedStateMap maps scope keys such as family-1 and family-2 to independent SharedState spaces. A store persists spaces while interviews execute. It may be managed locally or remotely. Storage is separate from the data definitions. We will build these layers in that order.

Example: choosing an activity

Four people will choose among:
We want one vote per person, represented by a dictionary:
Keys are voter names. Values must be one of the four activities. A voter’s first vote wins; retries or later attempts do not replace it. That plain-language description is the specification we will encode.

Manual chapters