b6212b8729
client_users.email has a UNIQUE constraint. SSO users who already have a CaveauAI account share the same email address, causing provision to fail with "already belongs to another workspace". Fix: SSO-provisioned client_users rows use dbn-sso-{client_id}@dbn.tools.internal as the owner email so they never collide with real account rows. The real email stays on clients.contact_email for display purposes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>