Conservative lineage rules for derived or generated Evidence.
ExGAM cannot know which individual source influenced an output. A value produced from a context therefore inherits the union of every label in that context. This module only computes and verifies that lower bound; removing a label remains a separately governed declassification Act.
Summary
Functions
Adds optional stricter labels without permitting inherited labels to disappear.
Returns the stable union of labels carried by all supplied Evidence.
Verifies exact parents and conservative labels for a derived/generated record.
Functions
@spec conservative_labels([ExGAM.Evidence.t()], [ExGAM.Label.t() | map() | keyword()]) :: {:ok, [ExGAM.Label.t()]} | {:error, term()}
Adds optional stricter labels without permitting inherited labels to disappear.
@spec inherited_labels([ExGAM.Evidence.t()]) :: {:ok, [ExGAM.Label.t()]} | {:error, term()}
Returns the stable union of labels carried by all supplied Evidence.
@spec validate(ExGAM.Evidence.t(), [ExGAM.Evidence.t()]) :: :ok | {:error, term()}
Verifies exact parents and conservative labels for a derived/generated record.