A canonical, disclosure-approved request for one provider-created draft.
The request binds a verified draft proposal and inert candidate submission to one exact coding-agent handoff and one configured provider destination. Its idempotency key deliberately excludes the renewable disclosure decision, so reauthorization cannot select a second draft. This artifact grants no merge, deployment, credential, or unrestricted repository authority.
Summary
Functions
Builds a request after an authority has approved its exact provider-visible payload.
Returns the exact payload reference a trusted authority must approve.
Validates canonical structure and content identity, not authority authenticity.
Recomputes the provider-visible payload from the exact source artifacts.
Types
Functions
@spec canonical_binary(term()) :: {:ok, binary()} | {:error, Insider.Protocol.Error.t()}
@spec decode(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
@spec decode_map(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
@spec new(term(), term(), term(), term(), term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Builds a request after an authority has approved its exact provider-visible payload.
@spec payload_reference(term(), term(), term(), term()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}
Returns the exact payload reference a trusted authority must approve.
@spec validate(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Validates canonical structure and content identity, not authority authenticity.
@spec validate_with(term(), term(), term(), term(), term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Recomputes the provider-visible payload from the exact source artifacts.