Spectre.Skill.Runtime.Loader (Spectre v0.3.0)

Copy Markdown View Source

Restores the governed Skill runtime for one exact Agent Definition Ref.

Every load resolves the published Definition and Manifest from the Store, verifies optional Run closure evidence, rebuilds runtime Skill definitions from their canonical snapshots, and checks each embedded Ref. There is no fallback to the currently loaded Agent module.

Summary

Types

The verified, exact runtime view restored from a Definition Store.

Functions

Loads the exact runtime view pinned by a Definition Ref.

Types

loaded()

@type loaded() :: %{
  agent: module(),
  runtime: Spectre.Skill.Runtime.t(),
  definition: Spectre.Definition.Canonical.t(),
  manifest: Spectre.Definition.Manifest.t(),
  surface: Spectre.Morph.Surface.t()
}

The verified, exact runtime view restored from a Definition Store.

Functions

load(store, definition_ref, agent, opts \\ [])

@spec load(
  Spectre.Definition.Store.config(),
  Spectre.Definition.Ref.t() | String.t(),
  module(),
  keyword()
) :: {:ok, loaded()} | {:error, term()}

Loads the exact runtime view pinned by a Definition Ref.