ExGAM.Erasure.Analysis.Facts (ExGAM v0.1.0)

Copy Markdown View Source

Typed, read-only inputs for causal erasure analysis.

Live callers use from_state/1. Historical consumers may construct a prefix with the same decoded record maps. This keeps canonical maps at the ledger boundary and prevents erasure semantics from guessing atom keys, string keys, structs or lists on every access.

Summary

Functions

Builds the erasure view of a complete folded Domain state.

Types

t()

@type t() :: %ExGAM.Erasure.Analysis.Facts{
  acts: %{optional(String.t()) => ExGAM.Act.t()},
  attempts: %{optional(String.t()) => ExGAM.Attempt.t()},
  availability_index: ExGAM.Erasure.Index.t() | nil,
  decisions: %{optional(String.t()) => ExGAM.Decision.t()},
  declassifications: %{optional(String.t()) => ExGAM.Declassification.t()},
  duties: %{optional(term()) => ExGAM.Duty.t()},
  erasures: %{optional(String.t()) => ExGAM.Erasure.t()},
  evidence: %{optional(String.t()) => ExGAM.Evidence.t()},
  outcomes: %{optional(String.t()) => ExGAM.Outcome.t()},
  presentations: %{optional(String.t()) => ExGAM.Presentation.t()},
  terminal_dispatches: map()
}

Functions

from_state(state)

@spec from_state(ExGAM.GovernedAct.State.t()) :: t()

Builds the erasure view of a complete folded Domain state.