Spectre.Morph.DSL (Spectre v0.3.0)

Copy Markdown View Source

Declares the closed proposal surface of a compiled Agent.

morph(
  may_propose: [:mount_skill, :replace_skill, :disable_skill],
  within: [scopes: [:agent], prompt_tokens: 512],
  approval: :human
)

The declaration is lowered into a must-understand canonical component. It cannot grant authority: it only narrows what Spectre.Morph may submit to the normal governance pipeline.

Summary

Functions

Declares the immutable proposal ceiling of the current Agent.

Functions

morph(opts)

(macro)
@spec morph(keyword()) :: Macro.t()

Declares the immutable proposal ceiling of the current Agent.

:may_propose accepts only :mount_skill, :replace_skill, and :disable_skill. The :within keyword requires non-empty :scopes and a positive :prompt_tokens ceiling. :approval is either :human or :host_policy; it never delegates approval authority to the Agent.