Status: Superseded by 0020 (realtime runtime) and 0021 (tiers), 2026-11-27.
Kept from this ADR (still valid for the API service, doc workers, compactor and MCP):
postgres (postgres.js) driver: zero dependencies, pipelining, COPY support, tagged-template parameterized SQL.db/migrations/NNNN_name.sql with a ~60-line runner (schema_migrations table).crypto.argon2 for passwords, node:zlib gzip for snapshots, node:test for tests.node:http + small router (stateless JSON; not the hot path).Changed: the WebSocket server is uWebSockets.js in a threaded realtime process (not ws), and compaction runs in separate compactor processes (not worker_threads inside the WS process).