# `Spectre.GAM.Kernel.Commit`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/kernel/commit/commit.ex#L1)

Pure construction of the atomic Admission payload set.

Despite its name, this module does not append to a ledger.  It converts a
validated Decision and its optional Act into ordered `Spectre.GAM.Domain.Event`
payloads for a sequencer to commit atomically.  A Decision is always first;
only an admitted Decision may carry an Act.

Executor-mediated Acts add `dispatch_ready`. Execution mode comes from the
frozen executor route, not from an effect-row dimension: a protected read or
disclosure may need an executor without declaring `attempt`. Ledger-internal
governed consequences finish at Admission and cannot enter the Grant path.

# `payload`

```elixir
@type payload() :: map()
```

# `payloads`

```elixir
@spec payloads(
  Spectre.GAM.Domain.Projection.t(),
  Spectre.GAM.Decision.t(),
  Spectre.GAM.Act.t() | nil
) ::
  {:ok, [payload()]} | {:error, term()}
```

Builds the ordered event payloads for one Admission transaction.

---

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