# `Spectre.GAM.Domain.Sequencer`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/domain/sequencer.ex#L1)

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.

# `admission_result`

```elixir
@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.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
