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

Copy Markdown View Source

Replays the obligation lifecycle derived by the Governed Act Model.

A Duty is materialized only when its causal prefix requires it. Disposition must itself be an admitted governed Act, and any suspended Meter reservation is resolved in the same causal lifecycle. Keeping these rules together makes the obligation boundary explicit without coupling it to ledger I/O.

Summary

Functions

Replays exact Duty openings, independent disposal and bound Meter resolution without rewriting the cause.

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 exact Duty openings, independent disposal and bound Meter resolution without rewriting the cause.