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.
Observable equivalence
For the same versioned machine, initial state, ordered command events, contexts, and registered capability versions, local and remote runtimes MUST produce the same:- committed states;
- views;
- completion and terminal values;
- close settlement;
- semantic outcome classifications.
Untrusted recipes
Serialized machines are untrusted data. Parsing MUST NOT execute expressions or registered algorithms. Before execution, both submitting client and server MUST perform:- envelope and schema validation;
- DSL and capability version resolution;
- operator and reducer allowlisting;
- reference resolution;
- recursive type checking;
- context and information-flow checking;
- static complexity analysis;
- literal and declared-limit validation.
Resource limits
A runtime MUST enforce configured maxima for:- AST nodes and depth;
- literal and string bytes;
- state bytes;
- collection items and nesting;
- generated collection items;
- sort input size;
- evaluation steps;
- command and close wall time;
- event and rendered-view bytes;
- registered algorithm memory and time.
Numeric behavior
NaN and infinity are invalid. Division by zero, overflow beyond the supported numeric domain, invalid indexing, and invalid empty reductions MUST produce a deterministic validation or evaluation error and commit no state.Registered algorithm isolation
Registered algorithms are trusted implementation code and part of the trusted computing base. They MUST:- be allowlisted by exact name and version;
- accept and return plain typed values;
- be deterministic;
- have no ambient filesystem, network, subprocess, environment, or credential access;
- run within stricter time and memory limits;
- validate their whole proposed output before commit;
- include conformance, invariant, and adversarial tests.
Results provenance
Results.shared_state SHOULD contain incoming and outgoing snapshot references,
read events, write events, machine versions, and capability versions. Public
serialization MUST redact private inputs, store credentials, and administrative
context unless explicitly requested by an authorized reader.
