Storage Adapter Interface

Vorliq now has a storage adapter interface for future scalability work. Production still uses hardened JSON storage. This interface is preparation only and does not switch runtime storage to PostgreSQL.

Audit Summary

Interface

The Python interface lives under blockchain/storage_adapters/. It defines domain methods for chain, pending transactions, lending, exchange, governance, treasury, profiles, forum, registry, faucet, price discovery, achievements, and health. The JSON adapter wraps the existing hardened Storage class. The PostgreSQL adapter is experimental and shadow-only.

Production Contract

Production readiness must continue to report storage_backend: json, active_storage_adapter: json, postgres_active: false, postgres_adapter_enabled: false, and postgres_write_mode: disabled. No production route should connect to a production PostgreSQL database in this release.

Related