Spectre.GAM.Domain.Sequencer (Spectre v0.4.0)

Copy Markdown View Source

One ordered command mailbox per Domain.

The sequencer owns only the operational work needed to preserve a single ledger order: admission grouping, queue flushes, reconciliation timers and command dispatch. It does not contain governed-act semantics. Pure admission lives in Spectre.GAM.Kernel; append/recovery lives in Spectre.GAM.Domain.Transaction; individual command workflows live below Spectre.GAM.Domain.Command; and external execution routing lives in Spectre.GAM.Execution.Router.

Keeping this module as a thin GenServer is a trust-boundary property as well as a readability choice. Ingress, minds, brokers and executors may share its ordering point, but their callbacks cannot become ledger transitions merely by running in the same process.

Summary

Types

A successful Admission response; internal Acts carry a nil Grant.

Functions

Returns a specification to start this module under a supervisor.

Types

admission_result()

@type admission_result() :: %{
  decision: Spectre.GAM.Decision.t(),
  act: Spectre.GAM.Act.t() | nil,
  grant: Spectre.GAM.Kernel.Grant.t() | nil
}

A successful Admission response; internal Acts carry a nil Grant.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.