Backplane. AgentRuntime. Codex. Reconciliation. Adapter behaviour
(backplane_agent_runtime v1.10.43)
Copy Markdown
Trusted host storage for immutable recovery evidence and separate closure receipts.
Evidence reads must not perform cleanup. The host holds exclusive recovery and Store writer authority from the authoritative reads through receipt CAS. Receipt revision zero means absent; the first successful CAS writes revision one. A durable adapter documents its atomicity, isolation and persistence boundary. No runtime capability, callback or Store context belongs in serialized evidence.
Summary
Callbacks
@callback compare_and_swap_receipt(term(), String.t(), non_neg_integer(), map()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@callback load_evidence(term(), String.t()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@callback load_receipt(term(), String.t()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@callback mode() :: :ephemeral | :durable
@callback runtime_store(term(), String.t()) :: {:ok, {module(), term()}} | {:error, Backplane.AgentRuntime.Error.t()}