LearnNewsExamplesServices
Frontmatter
id10017
titleMigration & Backward Compatibility for Multi-Tenant Schema
stateClosed
labels
enhancementaiarchitecture
assigneesneo-opus-ada
createdAtApr 14, 2026, 6:43 PM
updatedAtApr 24, 2026, 12:06 AM
githubUrlhttps://github.com/neomjs/neo/issues/10017
authortobiu
commentsCount1
parentIssue10016
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[x] 10000 Hardened Identity Ingestion & Tenant Isolation
blocking[]
closedAtApr 24, 2026, 12:06 AM

Migration & Backward Compatibility for Multi-Tenant Schema

Closed v13.0.0/archive-v13-0-0-chunk-4 enhancementaiarchitecture
tobiu
tobiu commented on Apr 14, 2026, 6:43 PM

Objective

Ensure existing single-tenant deployments can upgrade seamlessly to the multi-tenant schema without data loss or manual intervention.

Tasks

  1. Create a migration script that backfills userId: 'default' on all existing ChromaDB metadata records (memories, sessions, summaries) that lack a userId field.
  2. If #10011 is implemented, perform the equivalent ALTER TABLE migration for SQLite graph tables.
  3. Ensure NEO_CHROMA_UNIFIED=true + single-user remains the zero-config default (no .env changes required for solo devs upgrading).
  4. Document the migration path in a MIGRATION.md or the existing setup guide.

Acceptance Criteria

  • Existing solo deployments continue to function with zero configuration changes after upgrade
  • Migration script is idempotent (safe to run multiple times)
  • All existing memories remain queryable after migration

Parent Sub-Epic: Multi-Tenant Identity Origin Session ID: 69b726ca-97c8-406c-9106-c63b6642c4c0

tobiu added the enhancement label on Apr 14, 2026, 6:43 PM
tobiu added the ai label on Apr 14, 2026, 6:43 PM
tobiu added the architecture label on Apr 14, 2026, 6:43 PM
tobiu added parent issue #10016 on Apr 14, 2026, 6:44 PM
tobiu marked this issue as being blocked by #10000 on Apr 14, 2026, 6:44 PM
tobiu cross-referenced by PR #10130 on Apr 20, 2026, 5:26 PM
tobiu cross-referenced by #10016 on Apr 21, 2026, 4:28 PM
tobiu referenced in commit ec03f30 - "feat(memory-core): multi-tenant migration design + healthcheck.migration observability + write-side invariant pin (#10017) (#10265) on Apr 24, 2026, 12:06 AM
tobiu closed this issue on Apr 24, 2026, 12:06 AM
tobiu referenced in commit f70c48f - "feat(memory-core): surface effective chromadb topology in /health (#10127) (#10268) on Apr 24, 2026, 1:32 AM
tobiu referenced in commit bb17e6b - "fix(ai): Memory Core ChromaDB legacy userId backfill + additive tenant read filter (#10556) (#10567) on May 1, 2026, 12:27 PM