SCOPE-001: DB-level workspace isolation via workspace_id #112
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "093-scope-001-workspace-id-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements Spec 093 (SCOPE-001) workspace isolation at the data layer.
What changed
workspace_idto 12 tenant-owned tables and enforces correct binding.tenant_idchanges (immutability) on tenant-owned records.tenantpilot:backfill-workspace-ids) with OperationRun + AuditLog observability.workspace_id→workspaces.id+ composite FK(tenant_id, workspace_id)→tenants(id, workspace_id)), plus audit_logs invariant.UI / operator visibility
Tests
vendor/bin/sail artisan test --compact tests/Feature/WorkspaceIsolationNotes
vendor/bin/sail artisan queue:work).Spec package
specs/093-scope-001-workspace-id-isolation/(plan, tasks, contracts, quickstart, research)