Skip to content

StorageDurability

StorageDurability = "relaxed" | "strict"

Defined in: packages/contracts/src/config.ts:130

The registry-declared durability mode (ADR-0047; ADR-0049 decision 9). relaxed (default) returns a write before its durable flush and schedules the flush asynchronously — the local-first “instant write” the toolkit exists to deliver. strict reinstates the synchronous flush boundary (a ~50ms+ per-statement floor on idb; cheap on opfs-repacked). It binds EVERY open of EVERY store minted from the registry, so no minting/open site takes a durability option to contradict it, and an opfs→idbfs capability fallback keeps the declared mode.