# `ExGAM.Kernel.Authority.Effective`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/kernel/authority/effective.ex#L1)

Immutable authority resolution for one admission decision.

This is a capability-free, non-durable value. Both forms retain the exact
content-addressed Candidate reference checked by Authority, preventing a
successful resolution from being reused for another proposal. The ordinary
form otherwise points to the already-validated Mandate instead of copying
all of its fields; the retained-controller form adds only its controller.

Keeping this distinct from `ExGAM.Mandate` prevents an ephemeral narrowing
from masquerading as a content-addressed durable Mandate with a stale ref.

# `snapshot`

```elixir
@type snapshot() :: ExGAM.Mandate.t() | map()
```

# `t`

```elixir
@type t() :: %ExGAM.Kernel.Authority.Effective{
  candidate_ref: String.t(),
  controller_ref: String.t() | nil,
  mandate: ExGAM.Mandate.t(),
  mode: :ordinary | :retained_revocation
}
```

# `from_mandate`

```elixir
@spec from_mandate(ExGAM.Mandate.t(), ExGAM.Candidate.t()) :: t()
```

Projects an ordinary durable Mandate into the Decision boundary.

# `ref`

```elixir
@spec ref(t()) :: String.t()
```

Returns the durable Mandate identity represented by this resolution.

# `retained_revocation`

```elixir
@spec retained_revocation(ExGAM.Mandate.t(), ExGAM.Candidate.t(), String.t()) :: t()
```

Builds the one-operation authority retained by a revocation controller.

# `revision`

```elixir
@spec revision(t()) :: pos_integer()
```

Returns the durable Mandate revision represented by this resolution.

# `snapshot`

```elixir
@spec snapshot(t(), ExGAM.Candidate.t()) :: {:ok, snapshot()} | {:error, term()}
```

Materializes the exact authority fields consumed by Decision.

---

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