ExGAM.GovernedAct.AuthorityIndex (ExGAM v0.1.0)

Copy Markdown View Source

Rebuildable indexes for authority reads at one folded prefix.

The index keeps references, not a second copy of governed records. Terminal Duties and resolved Meter debts leave its active sets; unrelated admissions need not scan those histories again. Several independent causes may block the same consequence or Meter owner, so disposing one never clears the rest.

This is a fold-owned read model, not a cache supplied by a persistence adapter or a permission matrix. Resolution still checks the exact Mandate lineage.

Summary

Types

t()

@type t() :: %ExGAM.GovernedAct.AuthorityIndex{
  aliases_by_owner: map(),
  counts:
    {non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer()}
    | nil,
  debt_owners: map(),
  debts_by_owner: map(),
  effects: map(),
  mandates_by_holder: map(),
  open_duty_causes: MapSet.t(),
  selection: term(),
  version: pos_integer()
}