AuthorityPort

interface AuthorityPort
authority.ts:134

Members

join

join(partition: PartitionKey, hello: ClientHello) → Promise<Result<Joined, string>>

Enter a partition. Resolves once the authority has accepted or refused.

Refusal is a Result, not a rejection, because a version mismatch is an answer rather than a failure — the save loader treats a newer schema the same way (ADR-0007), and for the same reason: proceeding anyway loses data that looks like it was preserved.

partitionPartitionKey
Undocumented
helloClientHello
Undocumented

leave

leave() → void

status

status() → AuthorityStatus

submit

submit(intent: Intent) → void

Fire-and-forget. Never awaited in the frame loop.

intentIntent
Undocumented

subscribe

subscribe(handler: (update: AuthorityUpdate) → void) → () → void

Authoritative state for entities this client does not own.

Changes only — the current state is status(). A handler is never called with the entities the client said it owns; an authority that echoed a client's own ship back at it would be fighting the local simulation.

handler(update: AuthorityUpdate) → void
Undocumented