Insider.Sentinel.DraftProposal (Insider Lab v0.1.0)

Copy Markdown View Source

A canonical, side-effect-free proposal derived from exact repair evidence.

The artifact is suitable for local agent handoff only. It grants no repository, network, provider, merge, or deployment authority. Publication remains blocked because candidate and verification disclosure have not been attested.

Summary

Types

t()

@type t() :: %Insider.Sentinel.DraftProposal{
  controls: term(),
  disclosure: term(),
  eligibility: term(),
  evidence: term(),
  id: term(),
  integrity: term(),
  kind: term(),
  matrix: term(),
  schema: term(),
  sources: term()
}

Functions

canonical_binary(proposal)

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

decode(value)

@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, repair_report)

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

to_wire_map(proposal)

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

validate(proposal)

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

validate_with_evidence(proposal, capsule, sentinel_manifest, verification, repair_report)

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

Recomputes a proposal from the exact evidence graph before accepting it.