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

Pure read operations over folded governed state.

The fold owns transitions; this module owns derived views and exact lookups.
Keeping them separate prevents query convenience from becoming part of the
authority state and lets the kernel, Domain facade and recovery reuse the
same calculations without duplicating indexes or policy.

# `authority`

```elixir
@spec authority(Spectre.GAM.GovernedAct.State.t()) ::
  Spectre.GAM.Kernel.Authority.Facts.t()
```

Returns the authority-only facts consumed by resolution.

# `blocked_effect_digests`

```elixir
@spec blocked_effect_digests(Spectre.GAM.GovernedAct.State.t()) ::
  MapSet.t(String.t())
```

Returns consequence digests held by unresolved containment Duties.

# `blocked_mandate_refs`

```elixir
@spec blocked_mandate_refs(Spectre.GAM.GovernedAct.State.t()) :: MapSet.t(String.t())
```

Returns Mandates blocked by unresolved Meter recontainment deficits.

# `candidate_decision`

```elixir
@spec candidate_decision(Spectre.GAM.GovernedAct.State.t(), String.t()) ::
  {:ok, Spectre.GAM.Decision.t()} | :not_found | {:error, term()}
```

Looks up the durable Decision selected by a Candidate identity key.

# `decision_act`

```elixir
@spec decision_act(Spectre.GAM.GovernedAct.State.t(), Spectre.GAM.Decision.t()) ::
  {:ok, Spectre.GAM.Act.t() | nil} | {:error, term()}
```

Looks up the Act paired with a durable Decision.

# `definition`

```elixir
@spec definition(Spectre.GAM.GovernedAct.State.t(), String.t()) ::
  {:ok, Spectre.GAM.Definition.t()} | {:error, term()}
```

Looks up one immutable governed Definition by its exact content reference.

# `duty`

```elixir
@spec duty(
  Spectre.GAM.GovernedAct.State.t(),
  {:cause_key, term()} | {:ref, String.t()}
) ::
  {:ok, Spectre.GAM.Duty.t()} | :not_found | {:error, :invalid_duty_lookup}
```

Looks up a Duty by idempotent cause key or durable reference.

# `evidence_set`

```elixir
@spec evidence_set(Spectre.GAM.GovernedAct.State.t(), [String.t()]) ::
  {:ok, [term()]} | {:error, term()}
```

Fetches an Evidence set in caller order.

# `meter_accounts`

```elixir
@spec meter_accounts(Spectre.GAM.GovernedAct.State.t(), String.t()) ::
  {:ok, Spectre.GAM.Kernel.Meter.accounts()} | {:error, term()}
```

Returns physical Meter accounts for a logical Mandate revision.

# `observation_context`

```elixir
@spec observation_context(
  Spectre.GAM.GovernedAct.State.t(),
  Spectre.GAM.SubmissionContext.t(),
  Spectre.GAM.Evidence.t()
) :: {:ok, Spectre.GAM.Scope.Opening.t()} | {:error, term()}
```

Validates an observation, allowing only exact Presentation responses from another authenticated recipient.

# `scope_context`

```elixir
@spec scope_context(
  Spectre.GAM.GovernedAct.State.t(),
  Spectre.GAM.SubmissionContext.t()
) ::
  {:ok, Spectre.GAM.Scope.Opening.t()} | {:error, term()}
```

Checks an authenticated context against its durable Scope opening.

---

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