This is the Draft 0.1 language specification. Its conformance requirements include targets beyond the current implementation, such as complete static typing and resource bounds. The execution contracts describe the guarantees implemented today.
Per-scope serializability
Committed commands for one scope and machine MUST be equivalent to a total serial order. A command’s input snapshot is the committed snapshot immediately preceding it in that order. Different scopes MAY execute concurrently. This specification imposes no global ordering across scopes.Conflicts and retries
An implementation MAY use locks, compare-and-swap, optimistic concurrency, or a single-writer service. These mechanisms are not observable semantics. After a conflict, the runtime MAY retry only by reevaluating the entire command against the new committed snapshot, including its requirement, effect expressions, and registered algorithms. It MUST NOT reuse a proposed state computed from a stale snapshot. If a proposal computed from loses a commit race to , retry is a new evaluation judgment over : Commands SHOULD carry an idempotency key. Repeating one accepted command event with the same key MUST NOT create a second logical command.Read operation
An explicit read is: where is scope, machine, snapshot selector, view, and viewer context. It returns a rendered view plus a read event containing:- read ID;
- scope key;
- machine name and version;
- exact snapshot ID;
- view name or version;
- permitted viewer-context identity;
- interview and survey position.
