# `Spectre.GAM.Fallback.Policy`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/fallback/policy.ex#L1)

Portable refusal policy embedded in a governed Surface declaration.

Templates omit occurrence identity, proposer and Scope. Those values are
bound to the refused Decision's authenticated context at materialization.
Evidence, consent, Presentation and requested Mandate default to empty/nil
rather than being copied from the refused proposal.

# `mode`

```elixir
@type mode() :: :silence | :candidate_template | :governed_handoff
```

# `t`

```elixir
@type t() :: %Spectre.GAM.Fallback.Policy{
  mode: mode(),
  schema_version: 1,
  template: map() | nil
}
```

# `canonical`

```elixir
@spec canonical(t()) :: map()
```

Returns the exact value embedded in a Surface.

# `from_canonical`

```elixir
@spec from_canonical(map()) :: {:ok, t()} | {:error, term()}
```

Restores a policy while rejecting noncanonical templates.

# `new`

```elixir
@spec new(t() | map() | keyword() | atom()) :: {:ok, t()} | {:error, term()}
```

Builds and validates a fallback policy.

---

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