# `ExGAM.Scope.View`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/scope/view.ex#L1)

Read-only application view derived from one Domain projection.

A view is disposable and carries no authority, Grant, credential or executor
handle.  Every collection is selected from the exact Scope and returned in a
deterministic order so callers never need to inspect the kernel projection
directly.

# `t`

```elixir
@type t() :: %ExGAM.Scope.View{
  acts: [ExGAM.Act.t()],
  attempts: [ExGAM.Attempt.t()],
  decisions: [ExGAM.Decision.t()],
  declassifications: [ExGAM.Declassification.t()],
  dispatch_cancellations: [
    %{
      act_ref: String.t(),
      cause_ref: String.t(),
      reason: atom(),
      cancelled_at: non_neg_integer()
    }
  ],
  duties: [ExGAM.Duty.t()],
  erasures: [ExGAM.Erasure.t()],
  evidence: [ExGAM.Evidence.t()],
  opening: ExGAM.Scope.Opening.t(),
  outcomes: [ExGAM.Outcome.t()],
  pending_act_refs: [String.t()],
  presentations: [ExGAM.Presentation.t()],
  revision: non_neg_integer()
}
```

# `from_projection`

```elixir
@spec from_projection(ExGAM.Domain.Projection.t(), String.t()) ::
  {:ok, t()} | {:error, term()}
```

Builds a capability-free view for an already opened Scope.

# `records`

```elixir
@spec records(ExGAM.Domain.Projection.t(), String.t(), atom()) ::
  {:ok, [struct()]} | {:error, term()}
```

Selects one public collection without building the entire Scope view.

Visibility uses the same selectors as `from_projection/2`. In particular,
reading Acts or erasures does not materialize unrelated Evidence, outcomes
or the erasure closure. This is still an explicit full collection read, not
a bounded page or a second authority projection.

---

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