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.
Complete
complete(S) is a pure predicate indicating that the machine has enough data
for its intended activity. Completion does not itself modify state or prohibit
writes.
Terminal
A terminal state prohibits ordinary commands except those explicitly declared as terminal-safe. Negotiation acceptance and walking away are common terminal events. A machine MAY define terminal as identical to complete, but this MUST be explicit.Closed
Close is an explicit, uniquely identified transition. It prevents further ordinary writes and evaluates close effects against one committed snapshot. Close MUST be idempotent by event ID. Retrying the same close event cannot apply settlement twice. A second distinct close request SHOULD return the already closed snapshot without rerunning effects.Settled
A machine is settled after all close effects and registered settlement algorithms have committed successfully. Closed but unsettled is a recoverable operational state only when an implementation cannot make close and settlement one transaction; it MUST NOT be exposed as successful closure.State diagram
Views over lifecycle
The context capabilitycurrent.closed is false before close and true only for
the committed closed snapshot. It supports sealed views without giving recipes
write authority over lifecycle metadata.