Skip to content

Multi-space support #6

Description

@brylie

Compendium currently supports exactly one space — everything lives in a single flat pool of Documents and Collections. Multi-space means a workspace can hold several independent top-level spaces a user switches between, each with its own Document/Collection tree.

This is independent of multi-tenant support (#3) — it's not the tenancy/auth boundary, it's an organizational one within a single tenant's workspace (think "separate top-level areas," not "separate customers"). Sequence relative to #3 only if a shared implementation detail (e.g. how permission scoping keys off space) makes that cheaper once #3 is designed — don't assume a dependency by default.

  • Data model: a Space concept that owns a set of Documents/Collections (see data-model.md for where this plugs into the existing Record/Document/Collection shapes)
  • UI: a space switcher, and the sidebar tree scoped to the active space
  • MCP: token scoping extends to space-level, not just individual Document/Collection IDs (see mcp-tools.md)
  • Decide default behavior for existing single-space workspaces on migration (auto-create one default space, presumably)

Done when: a user can create a second space, and Documents/Collections in one space never appear in the other's sidebar, search, or MCP token scope.

See prd.md for product rationale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions