# `Spectre.GAM.GovernedAct.State`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/governed_act/state.ex#L1)

Disposable state derived from a verified governed history.

This struct is a read model, never an authority store. Every field can be
rebuilt from the append-only ledger through `Spectre.GAM.GovernedAct.Fold`.
Keeping the container separate from the reducer lets transition modules share
one explicit shape without turning the fold itself into a mutable domain
object.

Governed declarations live together in `Spectre.GAM.GovernedAct.Catalog`;
execution, information lineage and accounting stay on this state. Both
containers have fixed shapes and share their immutable records, but their
historical collections still grow with the Domain. This is not a bounded
hot cache or a trusted snapshot that can bypass ledger verification.

# `admission`

```elixir
@type admission() :: %{decision_ref: String.t(), act_ref: String.t() | nil}
```

# `dispatch_cancellation`

```elixir
@type dispatch_cancellation() :: Spectre.GAM.GovernedAct.DispatchState.cancellation()
```

# `meter_recontainment`

```elixir
@type meter_recontainment() :: %{
  outcome_ref: String.t(),
  cause_key: term(),
  recontained: %{optional(String.t()) =&gt; pos_integer()},
  deficits: %{optional(String.t()) =&gt; pos_integer()},
  disposition_act_ref: String.t() | nil
}
```

# `meter_reservation`

```elixir
@type meter_reservation() :: %{
  mandate_ref: String.t(),
  amounts: %{optional(String.t()) =&gt; non_neg_integer()},
  status: reservation_status()
}
```

# `reservation_status`

```elixir
@type reservation_status() :: :reserved | :suspended | :settled | :released
```

# `t`

```elixir
@type t() :: %Spectre.GAM.GovernedAct.State{
  acts: %{optional(String.t()) =&gt; Spectre.GAM.Act.t()},
  admissions: %{optional(String.t()) =&gt; admission()},
  attempts: %{optional(String.t()) =&gt; Spectre.GAM.Attempt.t()},
  catalog: Spectre.GAM.GovernedAct.Catalog.t(),
  constitution: map(),
  consumed_nonces: MapSet.t(String.t()),
  decisions: %{optional(String.t()) =&gt; Spectre.GAM.Decision.t()},
  declassifications: %{optional(String.t()) =&gt; Spectre.GAM.Declassification.t()},
  declassifications_by_evidence: %{optional(String.t()) =&gt; String.t()},
  domain_ref: String.t(),
  duties: %{optional(term()) =&gt; Spectre.GAM.Duty.t()},
  duty_meter_resolutions: MapSet.t(String.t()),
  erasures: %{optional(String.t()) =&gt; Spectre.GAM.Erasure.t()},
  event_metadata: %{
    optional(String.t()) =&gt; Spectre.GAM.Domain.Event.Metadata.t()
  },
  evidence: %{optional(String.t()) =&gt; Spectre.GAM.Evidence.t()},
  head_digest: String.t(),
  mandate_successors: %{optional(String.t()) =&gt; String.t()},
  mandates: %{optional(String.t()) =&gt; Spectre.GAM.Mandate.t()},
  meter_devolutions: MapSet.t(String.t()),
  meter_owner_aliases: %{optional(String.t()) =&gt; String.t()},
  meter_recontainments: %{optional(String.t()) =&gt; meter_recontainment()},
  meter_reservations: %{optional(String.t()) =&gt; reservation_status()},
  meters: %{optional(String.t()) =&gt; Spectre.GAM.Kernel.Meter.accounts()},
  outcomes: %{optional(String.t()) =&gt; Spectre.GAM.Outcome.t()},
  pending_dispatches: MapSet.t(String.t()),
  presentations: %{optional(String.t()) =&gt; Spectre.GAM.Presentation.t()},
  read_index: Spectre.GAM.GovernedAct.ReadIndex.t(),
  recorded_at: non_neg_integer(),
  revision: non_neg_integer(),
  revocations: %{optional(String.t()) =&gt; Spectre.GAM.Mandate.Revocation.t()},
  terminal_dispatches: %{
    optional(String.t()) =&gt; Spectre.GAM.GovernedAct.DispatchState.terminal()
  }
}
```

# `host_profile`

```elixir
@spec host_profile(t()) :: Spectre.GAM.HostProfile.t() | nil
```

Returns the current HostProfile from its single historical collection.

# `new`

```elixir
@spec new(String.t(), map()) :: t()
```

Creates an empty read model; it contains no recognized Genesis, authority or execution history.

# `surface`

```elixir
@spec surface(t()) :: Spectre.GAM.Surface.t() | nil
```

Returns the current Surface from its single historical collection.

---

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