Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (self): fix stale memoryBackend module docstring

Adam Eivy700dd0bb3aa4
diff --git a/server/services/memoryBackend.js b/server/services/memoryBackend.js
index e1f136b565..c4e45cb55f 100644
--- a/server/services/memoryBackend.js
+++ b/server/services/memoryBackend.js
@@ -1,8 +1,11 @@
/**
* Memory Backend Switcher
*
- * Selects between file-based (memory.js) and PostgreSQL (memoryDB.js) backends.
- * Checks for MEMORY_BACKEND env var or falls back to DB health check.
+ * Selects the PostgreSQL backend (memoryDB.js) for normal installs. PostgreSQL
+ * is mandatory; when MEMORY_BACKEND is unset we require a healthy DB and do NOT
+ * silently fall back to file storage — an unavailable DB throws. The file
+ * backend (memory.js) is reachable only via the explicit MEMORY_BACKEND=file
+ * escape hatch or NODE_ENV=test (both unsupported for production).
*
* Usage:
* import * as memory from './memoryBackend.js';