# `ExGAM.GovernedAct.Transition.Foundation`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/governed_act/transition/foundation.ex#L1)

Transitions for the governed foundation of a Domain.

Genesis fixes the initial identities. Principal registration, HostProfile,
Surface and Definition revisions are then accepted only as consequences of
matching ledger-internal Acts. The module receives canonical events from the
fold and stores restored structs in disposable `GovernedAct.State`.

# `apply`

```elixir
@spec apply(
  ExGAM.GovernedAct.State.t(),
  ExGAM.Domain.Event.t(),
  non_neg_integer() | nil
) ::
  {:ok, ExGAM.GovernedAct.State.t()} | {:error, term()}
```

Replays Genesis-named records and governed revisions; later configuration cannot silently replace the foundation.

# `named_by_genesis`

```elixir
@spec named_by_genesis(ExGAM.GovernedAct.State.t(), atom(), String.t()) ::
  :ok | {:error, term()}
```

Checks that Genesis names a foundation record before it is materialized.

---

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