Backplane. AgentRuntime. StoreConformance
(backplane_agent_runtime v1.6.0)
Copy Markdown
Reusable executable contract for host-provided durable stores.
run/3 uses unique run IDs supplied by the host and exercises the public
Store boundary. The host supplies three small test seams:
:restartreconnects to the same durable namespace;:fail_next_commitmakes the next staged commit fail before acceptance;:dependent_effect_countreports effects launched for a run by the host.
Passing this deterministic harness proves that the adapter exposes the package contract under the injected scenarios. It does not by itself prove a database or filesystem's power-loss durability; consumers must run it against their real adapter and document that backend's acknowledgement boundary.
Summary
Types
@type result() :: %{mode: :durable, checks: [atom()]}
Functions
@spec run(module(), term(), keyword()) :: {:ok, result()} | {:error, Backplane.AgentRuntime.Error.t()}