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.
How to read this specification
Each formal section is followed where useful by an informative worked example. The examples use one activity poll throughout:Artifacts
- Data model defines machines, states, scopes, and identifiers.
- Expressions and types defines expression evaluation and static typing.
- Command transitions defines requirements, effects, and atomic commit.
- Concurrency and reads defines per-scope ordering, retries, and reads.
- Views and capabilities defines views and information access.
- Lifecycle distinguishes complete, terminal, closed, and settled.
- Remote execution and security defines local/remote equivalence and resource limits.
- Versioning and compatibility defines compatibility and registered capabilities.
- machine.schema.json defines the serialized envelope and structural grammar.
- test-vectors/ contains implementation-independent examples.
- run_vectors.py executes the vectors against the reference interpreter.
Central semantic promise
For one scope, committed commands form a serial history:Notation
Expression evaluation is written: whereM 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:
- is the persistent, versioned machine-state snapshot. Commands may propose changes to its declared fields.
- is the finite map of actual arguments supplied to this command invocation.
- 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 .
- contains temporary bindings introduced while evaluating collection expressions and disappears after evaluation.
S' is the committed or unchanged state and O is advisory outcome data.
Here and are intentionally separate. The command identifier selects
one definition from the machine’s command map ; supplies the actual input
values for this invocation. For example:
The same command can be invoked many times with different
input maps .
is not part of because it has different semantics. is durable shared
data, has a snapshot ID, participates in concurrency control, and is the target
of atomic transitions. is immutable authority and execution metadata that
may differ for two readers of the same . 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:- accepts every valid test vector for that version;
- rejects every invalid vector with the specified error class;
- produces the specified state, view, completion, and outcome values;
- implements the security and resource requirements in this specification.
