Immutable Candidate admitted by the activation boundary.
Bootstrap Candidates are authored by trusted host code or compiled Definition
lowering. Governed Candidates additionally bind verified governance state
produced by the host Composer/review pipeline. Both forms point at an
already-published Definition, Manifest, and publication receipt; activation
always re-reads the value from the Store by Candidate.Ref.
Summary
Functions
Decodes and validates canonical Candidate bytes.
Returns the stable Candidate digest.
Encodes the Candidate into canonical portable bytes.
Restores a Candidate from decoded canonical data.
Builds a Candidate from a verified Definition resolution.
Builds and validates a Candidate from normalized attributes.
Builds a Candidate or raises with the stable validation reason.
Returns the Candidate's content-addressed Ref.
Returns the Candidate schema version.
Returns portable canonical data.
Types
@type source() :: :compiled | :trusted_host | :governed_host
@type t() :: %Spectre.Definition.Candidate{ created_at: non_neg_integer(), definition_ref: Spectre.Definition.Ref.t(), governance: Spectre.Governance.CandidateState.t() | nil, manifest_digest: String.t(), parent_ref: Spectre.Definition.Candidate.Ref.t() | nil, provenance_refs: [String.t()], publication_id: String.t(), schema_version: pos_integer(), source: source() }
Functions
Decodes and validates canonical Candidate bytes.
Returns the stable Candidate digest.
Encodes the Candidate into canonical portable bytes.
Restores a Candidate from decoded canonical data.
Builds a Candidate from a verified Definition resolution.
Builds and validates a Candidate from normalized attributes.
Builds a Candidate or raises with the stable validation reason.
@spec ref(t()) :: Spectre.Definition.Candidate.Ref.t()
Returns the Candidate's content-addressed Ref.
@spec schema_version() :: pos_integer()
Returns the Candidate schema version.
Returns portable canonical data.