Insider.Sentinel.RepairReport.Manifest (Insider Lab v0.1.0)

Copy Markdown View Source

A bounded, content-addressed summary of completed repair evidence.

Standalone validation proves structural integrity only. The report becomes evidence-bearing only after validate_with_evidence/4 recomputes it from the exact incident capsule, pre-execution Sentinel manifest, and verification record named by sources.

Summary

Types

t()

@type t() :: %Insider.Sentinel.RepairReport.Manifest{
  causal_summary: term(),
  diffs: term(),
  id: term(),
  integrity: term(),
  matrix: term(),
  proof: term(),
  provenance: term(),
  redactions: term(),
  reproduction: term(),
  schema: term(),
  sources: term(),
  uncertainty: term(),
  verdict: term()
}

Functions

canonical_binary(report)

@spec canonical_binary(term()) ::
  {:ok, binary()} | {:error, Insider.Protocol.Error.t()}

decode(binary)

@spec decode(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}

decode_map(wire)

@spec decode_map(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}

new(capsule, sentinel_manifest, verification)

to_wire_map(report)

@spec to_wire_map(t()) :: map()

validate(report)

@spec validate(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}

validate_with_evidence(report, capsule, sentinel_manifest, verification)

@spec validate_with_evidence(term(), term(), term(), term()) ::
  {:ok, t()} | {:error, Insider.Protocol.Error.t()}

Validates and recomputes a report from the exact evidence graph.