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.
Type Parameters
Section titled “Type Parameters”State extends string
Event extends string
Properties
Section titled “Properties”
readonlyedges: readonlyobject[]
Defined in: packages/core/src/state-machine/index.ts:30
events
Section titled “events”
readonlyevents: readonlyEvent[]
Defined in: packages/core/src/state-machine/index.ts:28
readonlyid:string
Defined in: packages/core/src/state-machine/index.ts:25
The XState machine id, used in diagnostics.
initial
Section titled “initial”
readonlyinitial:State
Defined in: packages/core/src/state-machine/index.ts:26
states
Section titled “states”
readonlystates: readonlyState[]
Defined in: packages/core/src/state-machine/index.ts:27
terminal
Section titled “terminal”
readonlyterminal: readonlyState[]
Defined in: packages/core/src/state-machine/index.ts:29