Pure causal analysis for payload erasure.
The analysis consumes decoded governed records through Analysis.Facts.
It derives the immutable closure affected by deleting a payload and remains
conservative when execution may have touched the external payload store.
Summary
Functions
Returns affected Evidence using the current dynamic causal closure.
Returns every durable record causally affected by one payload.
Returns the Evidence records that remain valid inputs after erasure.
Derives the exact immutable erasure draft from the current fact prefix.
Classifies whether deletion may have touched the named payload.
Rejects duplicate erasure while an earlier request may still have had effect.
Returns all Evidence made unusable by an attempted erasure.
Rejects reuse of Evidence whose causal payload may have been erased.
Checks a supplied draft against the closure derivable at this exact prefix.
Types
@type input() :: ExGAM.GovernedAct.State.t() | ExGAM.Erasure.Analysis.Facts.t()
@type payload_state() :: ExGAM.Erasure.Analysis.Execution.payload_state()
Functions
Returns affected Evidence using the current dynamic causal closure.
Returns every durable record causally affected by one payload.
@spec available_evidence(input()) :: %{optional(String.t()) => ExGAM.Evidence.t()}
Returns the Evidence records that remain valid inputs after erasure.
@spec derive_request(input(), String.t(), String.t(), String.t(), integer()) :: {:ok, map()} | {:error, term()}
Derives the exact immutable erasure draft from the current fact prefix.
@spec execution_state(input(), String.t()) :: {:ok, payload_state()} | {:error, term()}
Classifies whether deletion may have touched the named payload.
Rejects duplicate erasure while an earlier request may still have had effect.
Rejects reuse of Evidence whose causal payload may have been erased.
@spec validate_request(input(), ExGAM.Erasure.t() | map() | keyword()) :: :ok | {:error, term()}
Checks a supplied draft against the closure derivable at this exact prefix.