ExGAM.GovernedAct.Transition.Scope (ExGAM v0.1.0)

Copy Markdown View Source

Transition for durable Scope openings.

A Scope is an application-facing context boundary, but its opening is still a governed fact. This module checks parentage, principals, disposition authorities, SubmissionContext reconstruction, and the optional authorizing Act before adding the restored opening to disposable state.

Summary

Functions

Replays a Scope opening and its parent-authority/promise constraints without creating a separate authority owner.

Functions

apply(projection, event, revision)

@spec apply(
  ExGAM.GovernedAct.State.t(),
  ExGAM.Domain.Event.t(),
  non_neg_integer() | nil
) ::
  {:ok, ExGAM.GovernedAct.State.t()} | {:error, term()}

Replays a Scope opening and its parent-authority/promise constraints without creating a separate authority owner.