docs: teams / orgs / collaboration implementation plan#5
Merged
Conversation
Comprehensive design doc for multi-tenant organizations, teams, granular RBAC, shared access with pessimistic document locking, and the RLS foundation (also closes the upstream-willchen96#144 security gap). Grounded in Mike's current schema and the cpatpa/PIP reference fork (adapted to keep Supabase Auth per ADR-1). Includes target data model, RLS strategy, backend/frontend surface, zero-loss migration/backfill, an 8-phase delivery plan (~9-12 wk solo / 5-7 wk for two), risks, and a testing strategy centered on tenant isolation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
docs/TEAMS_AND_ORGS_PLAN.md— a full implementation plan for multi-tenantcollaboration, plus a README link.
Locked scope
What the doc covers
user_id text → uuidmigration (issue [Low] Most user_id columns are text — no FK referential integrity to auth.users willchen96/mike#104 / PR fix: migration to convert user_id text → uuid with FK to auth.users willchen96/mike#113) as Phase 0shared_withNotes
🤖 Generated with Claude Code