Severity: Medium — breaks the multi-tenant isolation invariant documented in docs/MULTI-TENANT.md. Found during a docs-accuracy audit (2026-06-24).
Problem
docs/MULTI-TENANT.md (Google-Drive step) instructs operators to run the dashboard with AUGMENTAGENT_DB=<tenant>.db so a tenant's data lands in a separate DB. But the Node dashboard never reads AUGMENTAGENT_DB — initDb() is called with no argument, so it always opens the default data.db. Result: tenant drive_accounts (and anything else the dashboard persists) are written into the production DB, silently violating the doc's "zero shared state" invariant.
Locations
src/db.ts:15 — export function initDb(dbPath?: string) already accepts an optional path…
src/dashboard-server.ts:14 — …but calls initDb() with no argument
src/index.ts:123 — same
Fix (one of)
Acceptance
Launching the dashboard with AUGMENTAGENT_DB=foo.db writes to foo.db, not data.db.
Filed from a docs-accuracy audit, 2026-06-24.
Severity: Medium — breaks the multi-tenant isolation invariant documented in
docs/MULTI-TENANT.md. Found during a docs-accuracy audit (2026-06-24).Problem
docs/MULTI-TENANT.md(Google-Drive step) instructs operators to run the dashboard withAUGMENTAGENT_DB=<tenant>.dbso a tenant's data lands in a separate DB. But the Node dashboard never readsAUGMENTAGENT_DB—initDb()is called with no argument, so it always opens the defaultdata.db. Result: tenantdrive_accounts(and anything else the dashboard persists) are written into the production DB, silently violating the doc's "zero shared state" invariant.Locations
src/db.ts:15—export function initDb(dbPath?: string)already accepts an optional path…src/dashboard-server.ts:14— …but callsinitDb()with no argumentsrc/index.ts:123— sameFix (one of)
initDb(process.env.AUGMENTAGENT_DB)(default insideinitDbalready falls back todata.db).docs/MULTI-TENANT.md.Acceptance
Launching the dashboard with
AUGMENTAGENT_DB=foo.dbwrites tofoo.db, notdata.db.Filed from a docs-accuracy audit, 2026-06-24.