--- status: accepted date: 2026-07-16 --- # Store sessions per principal A session belongs to an authenticated principal identified by `(issuer, subject)`, never by email or username. On a server, sessions, artifacts, the decision ledger and preferences are stored in a private PostgreSQL schema protected by forced row-level security, a runtime role without `BYPASSRLS` and a transaction-local actor context; database failures fail closed. A local installation keeps them on the filesystem, with no fallback or synchronization between the two. Only artifacts and the ledger are durable: chat and SSE remain runtime memory, as required by ADR-0002. ## Consequences Users in the configured administrators group can manage every session; any other unauthorized access returns 404. Sessions get no embeddings or vector columns.