StatifierPersistence.Serialization.AdapterLock (StatifierPersistence v0.1.0)

Copy Markdown View Source

The default StatifierPersistence.Serialization strategy (ADR-0004 decision 5): per-run ordering as the storage adapter's own lock.

Its config is the StatifierPersistence.Storage handle itself. with_run/3 delegates to the adapter's optional StatifierPersistence.Storage.Adapter.lock_run/3 when the adapter exports it, and refuses with {:error, {:serialization, :not_supported}} when it does not - an adapter without a lock provides no ordering, and a silent fallback here would be the loop pretending otherwise.