Refactor onboarding API to retry failed team creation
AI summary
Prevents new teams from getting stranded when the background job times out once. The endpoint now retries before showing an error.
Permission receipt
Permission receipt #1850. AI spotted retry logic and idempotency guards. Merge is safe if duplicate team creation is blocked.