Versioned, source-bearing prelude candidate stored by PtcRunner.PreludeStore.
The compiled field is intentionally Elixir-only. Lisp-facing and transport
surfaces must project through public_view/2 so the compiled prelude struct
and private environment are never exposed.
Summary
Functions
The candidate checksum. This is the compiled prelude source hash.
Public export names without the namespace prefix, sorted.
Filters untrusted metadata to documented public keys and byte bounds.
Returns a bounded, JSON-safe provenance tag for a candidate origin.
Returns a bounded, public map view of a candidate.
Types
@type t() :: %PtcRunner.PreludeCandidate{ compiled: PtcRunner.Lisp.Prelude.t(), created_at: DateTime.t(), id: String.t(), metadata: map(), origin: origin(), source: String.t(), version: non_neg_integer() }
Functions
The candidate checksum. This is the compiled prelude source hash.
Public export names without the namespace prefix, sorted.
Filters untrusted metadata to documented public keys and byte bounds.
Returns a bounded, JSON-safe provenance tag for a candidate origin.
Returns a bounded, public map view of a candidate.
The view keeps source text because editor workflows need it, but bounds the bytes by option. It never includes the compiled prelude or private env.