MongoDB is the system of record for organizations, users, channels, messages, tasks, simulation settings, consequence events, and most operational records.

Access

Go through repository helpers in src/memory/repositories.py so indexing, transactions, and tests stay consistent.

Tenancy

Documents are almost always scoped with organization_id (or an equivalent field). Queries from admin or support tooling must respect those boundaries unless you are on an audited super-admin path that is intended to be cross-org.