# `ExGAM.Domain.Event.Builder`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/domain/event/builder.ex#L1)

Canonical constructors for Domain event envelopes.

Builders validate records and causal bindings before producing the plain maps
accepted by the ledger writer. Decoding and acquisition-time checks remain in
`ExGAM.Domain.Event`; this module contains no replay semantics.

# `definition_revised`

```elixir
@spec definition_revised(ExGAM.Act.t(), ExGAM.Definition.t()) ::
  {:ok, map()} | {:error, term()}
```

Encodes a governed Definition revision; publishing data alone does not activate it.

# `dispatch_cancelled`

```elixir
@spec dispatch_cancelled(
  ExGAM.Act.t(),
  ExGAM.Act.t() | ExGAM.Duty.t() | ExGAM.Mandate.t(),
  atom()
) ::
  {:ok, map()} | {:error, term()}
```

Encodes the causal cancellation of a pending dispatch, not cancellation of an already-attempted effect.

# `dispatch_ready`

```elixir
@spec dispatch_ready(ExGAM.Act.t()) :: map()
```

Encodes readiness for a committed world Act; creating this map does not mint a Grant.

# `duty_disposed`

```elixir
@spec duty_disposed(ExGAM.Act.t(), term()) :: {:ok, map()} | {:error, term()}
```

Links disposal of the exact causal opening to its disposition Act; the fold verifies the closing route.

# `host_profile_revised`

```elixir
@spec host_profile_revised(ExGAM.Act.t(), String.t(), ExGAM.HostProfile.t()) ::
  {:ok, map()} | {:error, term()}
```

Links a HostProfile revision to its predecessor and governance Act, without proving deployment isolation.

# `mandate_restricted`

```elixir
@spec mandate_restricted(ExGAM.Act.t(), String.t(), ExGAM.Mandate.t()) ::
  {:ok, map()} | {:error, term()}
```

Links a subtractive Mandate successor to its predecessor and governance Act.

# `mandate_revoked`

```elixir
@spec mandate_revoked(ExGAM.Act.t(), String.t()) :: {:ok, map()} | {:error, term()}
```

Binds revocation to the governance Act's effective time without changing past Acts or observations.

# `meter`

```elixir
@spec meter(:reserve | :settle | :release | :suspend, ExGAM.Act.t()) ::
  {:ok, map()} | {:error, term()}
```

Encodes the Act's exact reservation movement; the fold verifies the permitted accounting transition.

# `meter_devolved`

```elixir
@spec meter_devolved(ExGAM.Act.t(), String.t(), map()) ::
  {:ok, map()} | {:error, term()}
```

Encodes return of child allocation; ancestry and available quantity remain fold checks.

# `meter_duty_resolved`

```elixir
@spec meter_duty_resolved(
  ExGAM.Act.t(),
  ExGAM.Act.t(),
  ExGAM.Duty.t(),
  :settle | :release,
  map()
) :: {:ok, map()} | {:error, term()}
```

Binds a Meter resolution to its cause, open Duty and disposition Act; does not authorize disposal.

# `meter_recontained`

```elixir
@spec meter_recontained(ExGAM.Act.t(), ExGAM.Outcome.t(), map(), map()) ::
  {:ok, map()} | {:error, term()}
```

Encodes recontainment and its deficit after Evidence contradicts a no-effect Outcome.

# `principal_registered`

```elixir
@spec principal_registered(ExGAM.Act.t(), ExGAM.Principal.t()) ::
  {:ok, map()} | {:error, term()}
```

Encodes Principal registration under an Act, not authentication or a new Mandate.

# `record`

```elixir
@spec record(atom(), struct()) :: {:ok, map()} | {:error, term()}
```

Validates a typed record and encodes its envelope; authorization and batch completeness remain fold checks.

# `scope_opened`

```elixir
@spec scope_opened(ExGAM.Scope.Opening.t()) :: {:ok, map()} | {:error, term()}
```

Encodes a validated Scope opening; parent authority and promise semantics remain governed checks.

# `surface_revised`

```elixir
@spec surface_revised(ExGAM.Act.t(), String.t(), ExGAM.Surface.t()) ::
  {:ok, map()} | {:error, term()}
```

Links a Surface successor and its exact predecessor to the governance Act.

---

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