[AVAILABLE] for
memory and postgres. supabase is accepted as an
alias for postgres. Declared but unimplemented for sqlite, see below.Providers, precisely
postgres is the name to use. supabase is accepted as an alias for the same implementation, so existing configurations keep working. The implementation is PostgresStorageProvider for historical reasons: it writes through a direct PostgreSQL connection (DATABASE_URL) with the pg driver, not through a Supabase client. A self-hosted PostgreSQL works the same way, and so does a Supabase-hosted database. Both refuse to start without DATABASE_URL. sqlite throws at startup, by design (fails closed rather than silently falling back).
What’s stored
Business Transactions and Execution Trust Records (the append-only ledger behind every Execution Trust Record), Execution Intents, Refusal Records, pending policy changes and their signed approval records, approval issuers, external connectors, the execution and caller audit events, and the single-use nonces for authorizations, approvals and step up envelopes. Each has aMemory* implementation for
tests and a PostgreSQL implementation; see packages/storage/src/index.ts.
The evidence tables are append-only at the database level: the caller audit, execution
audit, policy change approval and refusal record tables reject UPDATE, DELETE and
TRUNCATE through triggers (migration 20261110120000_enforce_append_only_evidence.sql).
See Storage schema for the full list.
Configuration
PARMANA_STORAGE is the only variable read. An older DATABASE_PROVIDER variable existed
briefly as a second, disconnected path to the same setting and is now retired: if it’s
present in the environment, config loading fails at startup naming PARMANA_STORAGE as the
replacement, rather than silently ignoring it. Tests: packages/storage/tests/.
See @parmana/storage for the package’s full export list if you’re
consuming it directly rather than through the default server.