Skip to content

SyncStorageDeclaration

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

The registry’s storage contract (ADR-0049 decision 1, ADR-0047). Storage is PART OF THE DATA CONTRACT: whether losing the last not-yet-flushed action is acceptable, and whether OPFS may be used at all, is decided by what the data IS — so it is declared once on the registry, not at any minting/open site.

  • durability defaults to "relaxed" and binds every toolkit-minted open of every store the registry mints (its own boot AND the provision/spare path). No open-site option exists to contradict it; a capability fallback keeps the declared mode. A no-op on memory clones.
  • backend defaults to "opfs" and scopes the BROWSER store only; Node/file and memory clones are unaffected. "idbfs" opts the store out of the capability/election machinery.

optional backend?: StorageBackend

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


optional durability?: StorageDurability

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