Spectre.Experience.Redactor (Spectre v0.3.0)

Copy Markdown View Source

Mechanical redaction boundary for opt-in Experience evidence.

Redaction is key based and deterministic. It is deliberately not an LLM and never attempts to infer hidden meaning from values. Hosts may add keys to the fixed constitutional denylist, but cannot remove the built-in entries.

Summary

Functions

Redacts sensitive fields and returns normalized facts plus exact paths.

Types

path()

@type path() :: [String.t() | non_neg_integer()]

Functions

redact(value, opts \\ [])

@spec redact(
  map(),
  keyword()
) :: {:ok, map(), [path()]} | {:error, term()}

Redacts sensitive fields and returns normalized facts plus exact paths.