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

Copy Markdown View Source

A self-contained, bounded repair request derived from confirmed evidence.

The handoff contains only canonical evidence and a fixed output contract. It grants no execution or repository authority and accepts no caller-authored instructions or causal claims. A valid handoff proves that the bound defect was reproduced twice; it says nothing about any future candidate repair.

Summary

Types

t()

@type t() :: %Insider.Sentinel.CodingAgent.Handoff{
  controls: term(),
  evidence: term(),
  id: term(),
  integrity: term(),
  kind: term(),
  request: term(),
  schema: term()
}

Functions

canonical_binary(handoff)

@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, manifest, regression, confirmation_runs)

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

to_wire_map(handoff)

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

validate(handoff)

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

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

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

Recomputes the handoff from the exact evidence graph before accepting it.