Cross-event grammar for one atomic governed transaction.
Individual event decoding belongs to ExGAM.Domain.Event, and individual
state transitions belong to ExGAM.GovernedAct.Fold. This module checks
the relationships that only make sense across a complete ledger batch:
Admission adjacency, governance consequences, dispatch cancellation, world
boundary ordering, and Meter reservation/disposition pairing.
It is deliberately pure. The sequencer decides when to append a batch; this validator only proves that replaying it preserves the Governed Act Model.
Summary
Functions
Validates the cross-event grammar of one atomic governed transaction.
Functions
@spec validate(map(), map(), [ExGAM.Domain.Event.t()]) :: :ok | {:error, term()}
Validates the cross-event grammar of one atomic governed transaction.