ExGAM.Evidence.Derivation (ExGAM v0.1.0)

Copy Markdown View Source

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

conservative_labels(evidence, additional_labels \\ [])

@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.

inherited_labels(evidence)

@spec inherited_labels([ExGAM.Evidence.t()]) ::
  {:ok, [ExGAM.Label.t()]} | {:error, term()}

Returns the stable union of labels carried by all supplied Evidence.

validate(derived, parents)

@spec validate(ExGAM.Evidence.t(), [ExGAM.Evidence.t()]) :: :ok | {:error, term()}

Verifies exact parents and conservative labels for a derived/generated record.