ExGAM.GovernedAct.Materialization (ExGAM v0.1.0)

Copy Markdown View Source

Materializes built-in governed consequences into their atomic event suffix.

Admission has already frozen and validated the Act before this module runs. These functions construct only the exact ledger records implied by that Act; application-defined executor effects never pass through this materializer.

Summary

Functions

Builds the intrinsic event suffix implied by an admitted Act and its prefix.

Functions

events(projection, act)

@spec events(ExGAM.GovernedAct.State.t(), ExGAM.Act.t()) ::
  {:ok, [map()]} | {:error, term()}

Builds the intrinsic event suffix implied by an admitted Act and its prefix.

Revocation/restriction include cancellation of affected pending dispatches; Duty disposal includes its governed accounting records. Erasure here records a request, not proof that external bytes were deleted. The suffix still has to pass the shared fold and be committed atomically with its causal Act.