Skip to content

refactor(core): remove namespace isolation from documents (#614) - #615

Merged
ajianaz merged 3 commits into
developfrom
fix/614-doc-global-no-namespace
Jul 8, 2026
Merged

ajianaz merged 3 commits into
developfrom
fix/614-doc-global-no-namespace

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Remove namespace isolation from the documents system — documents are now global with unique slugs across all namespaces.

Changes

Layer Files What Changed
Schema schema.rs Migration v12→v13: add author column, deprecate namespace, migrate duplicate slugs (slug-nsname), global unique slug index
Store store.rs, documents.rs Remove namespace params from all document CRUD queries
Core API lib.rs Remove namespace from all doc_* functions, fix DocumentSummary init, fix recall_unified_* callers
CLI commands/doc.rs Remove namespace args from create/update/search/list commands
Server handlers.rs, types.rs Remove namespace from request structs and handlers
MCP lib.rs Remove namespace from tool definitions and executors

Verification

  • cargo check ✅ 0 errors
  • cargo clippy -- -D warnings ✅ 0 errors
  • cargo fmt --check ✅ clean
  • Cora rule-based scan ✅ no issues

Closes #614

- Migration v12→v13: add author column, deprecate namespace on documents,
  migrate duplicate slugs across namespaces to slug-nsname format,
  create global unique slug index
- Remove namespace params from all doc_* functions in lib.rs and store
- Remove namespace fields from server request structs and MCP tools
- Update CLI commands to not accept namespace args
- Fix DocumentSummary initializer (add author field)
- Fix recall_unified_* callers (remove stale Some(ns) from doc_search)
- All consumers verified: CLI, server, MCP — zero namespace references remain
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

ajianaz and others added 2 commits July 8, 2026 13:58
- Update 4 migration tests that still asserted CURRENT_SCHEMA_VERSION=12
- Fix clippy warning: unused variable config in doc command
@ajianaz
ajianaz merged commit a8d3363 into develop Jul 8, 2026
8 checks passed
@ajianaz
ajianaz deleted the fix/614-doc-global-no-namespace branch July 9, 2026 14:26
ajianaz added a commit that referenced this pull request Aug 13, 2026
refactor(core): remove namespace isolation from documents (#614)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove namespace isolation from document engine — make docs global

1 participant