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:

  • :restart reconnects to the same durable namespace;
  • :fail_next_commit makes the next staged commit fail before acceptance;
  • :dependent_effect_count reports 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

result()

@type result() :: %{mode: :durable, checks: [atom()]}

Functions

run(impl, context, opts)

@spec run(module(), term(), keyword()) ::
  {:ok, result()} | {:error, Backplane.AgentRuntime.Error.t()}