Skip to main content
This is the Draft 0.1 language specification. Its conformance requirements include targets beyond the current implementation, such as complete static typing and registered-algorithm isolation. Derived capability manifests and preflight are implemented locally; live service discovery is a separate deployment task. Local execution quotas are implemented; they do not sandbox registered Python extensions. The execution contracts describe the guarantees implemented today.
Status: Draft 0.1 This specification defines the meaning of the EDSL shared-state DSL independently of any particular local or remote implementation. The normative words MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY have their usual RFC 2119 meanings. Code examples are informative unless a section labels them normative.

How to read this specification

Each formal section is followed where useful by an informative worked example. The examples use one activity poll throughout:
The poll is intentionally simple. It lets the reader connect the same concrete field, command, input, state, and view to the notation in later sections.

Artifacts

Central semantic promise

For one scope, committed commands form a serial history:
Each command evaluates its requirement and every effect expression against one immutable committed input snapshot. It proposes one complete replacement state. The runtime validates and commits all of that state or none of it. Reads name the exact snapshot and viewer context used to render a view. Local and remote implementations MUST produce the same observable result for the same versioned machine, history, context, and registered capabilities.

Notation

Expression evaluation is written: M,S,I,X,L⊢e⇓vM, S, I, X, L \vdash e \Downarrow v where M is the machine, S state, I command inputs, X execution context, L lexical collection locals, e an expression, and v its value. The environments have different ownership and lifetimes:
  • SS is the persistent, versioned machine-state snapshot. Commands may propose changes to its declared fields.
  • II is the finite map of actual arguments supplied to this command invocation.
  • XX is read-only execution context supplied by EDSL, such as authenticated participant identity, group, interview ID, viewer role, run round, and lifecycle status. A machine cannot modify XX.
  • LL contains temporary bindings introduced while evaluating collection expressions and disappears after evaluation.
A command transition is written: M⊢⟨S,c,I,X⟩⟶⟨S′,O⟩M \vdash \langle S, c, I, X \rangle \longrightarrow \langle S', O \rangle where S' is the committed or unchanged state and O is advisory outcome data. Here cc and II are intentionally separate. The command identifier cc selects one definition from the machine’s command map DD; II supplies the actual input values for this invocation. For example: c=voteI={voter↦Amina,activity↦hike}c = \mathit{vote} \qquad I = \{\mathit{voter}\mapsto\text{Amina}, \mathit{activity}\mapsto\text{hike}\} The same command c=votec=\mathit{vote} can be invoked many times with different input maps II. SS is not part of XX because it has different semantics. SS is durable shared data, has a snapshot ID, participates in concurrency control, and is the target of atomic transitions. XX is immutable authority and execution metadata that may differ for two readers of the same SS. Keeping them separate prevents a machine from modifying identity or authorization data and permits viewer-specific views over one shared snapshot.

Conformance

An implementation conforms to a DSL version only if it:
  1. accepts every valid test vector for that version;
  2. rejects every invalid vector with the specified error class;
  3. produces the specified state, view, completion, and outcome values;
  4. implements the security and resource requirements in this specification.
Passing the included reference vectors is necessary but not sufficient for production conformance.