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

Copy Markdown View Source

Replays the world-side transitions of an admitted governed Act.

dispatch_ready is the last ledger-side state before capability use. attempt_started consumes the grant nonce and rechecks authority at the actual start time. outcome_recorded then binds observation to that exact Attempt and validates its attested Evidence.

This module is deliberately pure: executors and other I/O live outside the governed-act fold.

Summary

Functions

Replays dispatch, one-time Attempt and accounting transitions; a recorded Attempt is never permission to retry.

Functions

apply(state, event, revision)

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

Replays dispatch, one-time Attempt and accounting transitions; a recorded Attempt is never permission to retry.