Skip to content

StateMachineTable

Defined in: packages/core/src/state-machine/index.ts:23

Explicit state machines for the parts of Arona whose correctness depends on ordering: a stored message session, its writer lease, and a message target.

The machines are declared with XState 6 (createMachine) and hosted by @xstate/effect where they need to run. The pure tables consumed by stores are derived from those declarations with deriveMachineTable instead of being maintained by hand. machines.test.ts checks each table against its declaration, and actor.test.ts runs the session machine through @xstate/effect.

The session/lease tables are also mirrored by the bounded TLA+ model in specs/SessionStore.tla.

State extends string

Event extends string

readonly edges: readonly object[]

Defined in: packages/core/src/state-machine/index.ts:30


readonly events: readonly Event[]

Defined in: packages/core/src/state-machine/index.ts:28


readonly id: string

Defined in: packages/core/src/state-machine/index.ts:25

The XState machine id, used in diagnostics.


readonly initial: State

Defined in: packages/core/src/state-machine/index.ts:26


readonly states: readonly State[]

Defined in: packages/core/src/state-machine/index.ts:27


readonly terminal: readonly State[]

Defined in: packages/core/src/state-machine/index.ts:29