Spectre.Morph.Change (Spectre v0.3.0)

Copy Markdown View Source

Transient pipeline value for one governed Agent change.

Durable truth remains the published Candidate chain in the Definition Store; this value only carries ergonomic host context between explicit commits. Its source mount index is a read cache for draft ergonomics; Composer and Verifier always re-derive authority and mutations from durable Definitions.

Summary

Types

The host-visible stage of the transient Morph workflow.

t()

A transient view; durable truth remains in the Definition Store.

Types

state()

@type state() :: :draft | :evaluated | :approved | :rejected

The host-visible stage of the transient Morph workflow.

t()

@type t() :: %Spectre.Morph.Change{
  activation: Spectre.Instance.Activation.t() | nil,
  actor_ref: String.t() | nil,
  agent: module() | nil,
  delta: Spectre.Governance.EvaluationDelta.t() | nil,
  error: term() | nil,
  evidence: map(),
  instance: GenServer.server(),
  mount_ids: [String.t()],
  operations: [map()],
  reason: String.t() | nil,
  ref: Spectre.Definition.Candidate.Ref.t() | nil,
  report: Spectre.Projection.HumanReport.t() | nil,
  source_definition_ref: Spectre.Definition.Ref.t() | nil,
  source_mount_index: Spectre.Morph.Surface.MountIndex.index(),
  state: state(),
  store: Spectre.Definition.Store.config() | nil,
  surface: Spectre.Morph.Surface.t()
}

A transient view; durable truth remains in the Definition Store.