Durable champion/challenger lifecycle for portable optimizer outputs.
Artifacts contain checksummed Imp.Saving program states or explicit
parameter-only snapshots and redacted provenance. Applying a candidate copies
only optimizable predictor parameters onto a compatible live program,
preserving its runtime LMs, adapters, and trusted callbacks. Persisted names
remain strings and are resolved against that trusted live program; artifact
bytes never create atoms or depend on unrelated modules preloading them.
Summary
Functions
Applies one candidate's portable parameters and canonical report to a compatible live program.
Builds a checksummed candidate from a portable optimizer output.
Compares candidate scores and named predictor parameters.
Captures the selected parameters and attached report from an optimized program.
Returns an operational summary without rehydrating program callbacks.
Creates a versioned artifact from one champion and zero or more challengers.
Builds a checksummed candidate containing only named predictor parameters.
Promotes a challenger and records the prior champion for rollback.
Reads and validates a supported optimizer artifact schema.
Restores the most recently preserved champion.
Returns one selected portable value without restoring executable code.
Builds a checksummed candidate containing one canonical JSON value.
Atomically writes a validated artifact as owner-readable JSON.
Types
Functions
Applies one candidate's portable parameters and canonical report to a compatible live program.
Builds a checksummed candidate from a portable optimizer output.
Compares candidate scores and named predictor parameters.
Captures the selected parameters and attached report from an optimized program.
This is the shared durable handoff for program optimizers. The returned
artifact contains no consumer module or runtime binding; deploying code must
reconstruct a trusted compatible program and call apply/4.
Returns an operational summary without rehydrating program callbacks.
Creates a versioned artifact from one champion and zero or more challengers.
Builds a checksummed candidate containing only named predictor parameters.
Use this for consumer-defined multi-predictor modules that cannot and should
not be serialized as arbitrary structs. The artifact retains each predictor's
signature, demonstrations, and config, but never the consumer module, LM,
adapter, callbacks, or other runtime state. Reconstruct the trusted program in
the deploying application, then pass it to apply/4.
Promotes a challenger and records the prior champion for rollback.
Reads and validates a supported optimizer artifact schema.
Restores the most recently preserved champion.
Returns one selected portable value without restoring executable code.
Builds a checksummed candidate containing one canonical JSON value.
Atomically writes a validated artifact as owner-readable JSON.