Backplane. AgentRuntime. Command behaviour
(backplane_agent_runtime v1.10.11)
Copy Markdown
Authorized command execution with environment allowlists and output caps.
Shell interpretation is a separate capability. This module never claims OS sandbox guarantees; supported cleanup is declared by the CommandPort backend.
Summary
Functions
Acknowledge consumed cleanup evidence so a backend may retire its pinned receipt.
Reserve a trusted session before launch; legacy adapters retain uncertain cleanup semantics.
Types
@type t() :: map()
Callbacks
@callback acknowledge_release(map(), map()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@callback cancel(map(), map()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@callback cancel_confirmed(map(), map(), pos_integer()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@callback reserve(map(), map()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@callback start(map(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@callback write(map(), map(), map(), binary()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
Functions
Acknowledge consumed cleanup evidence so a backend may retire its pinned receipt.
@spec cancel(t(), map()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@spec cancel_confirmed(t(), map(), pos_integer()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@spec new(map()) :: {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}
Reserve a trusted session before launch; legacy adapters retain uncertain cleanup semantics.
@spec start(t(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec write(t(), map(), map(), binary()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}