Insider.Sentinel.CodingAgent.CandidateSubmission (Insider Lab v0.1.0)

Copy Markdown View Source

A bounded, inert candidate returned for independent verification.

This artifact binds existing Verification.Candidate data to one exact coding-agent handoff. It does not apply the candidate and cannot claim that the candidate repairs anything.

Summary

Types

t()

@type t() :: %Insider.Sentinel.CodingAgent.CandidateSubmission{
  candidate: term(),
  controls: term(),
  handoff: term(),
  id: term(),
  integrity: term(),
  kind: term(),
  schema: term(),
  status: term()
}

Functions

candidate(submission)

@spec candidate(term()) ::
  {:ok, Insider.Sentinel.Verification.Candidate.t()}
  | {:error, Insider.Protocol.Error.t()}

canonical_binary(submission)

@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(handoff, candidate)

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

to_wire_map(submission)

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

validate(submission)

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

validate_with_evidence(submission, handoff, candidate, capsule, manifest, regression, confirmation_runs)

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

Revalidates the exact handoff graph and candidate binding.