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.
Summary
Functions
Builds a capability-free view for an already opened Scope.
Selects one public collection without building the entire Scope view.
Types
@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() }
Functions
@spec from_projection(ExGAM.Domain.Projection.t(), String.t()) :: {:ok, t()} | {:error, term()}
Builds a capability-free view for an already opened Scope.
@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.