Repository navigation
Description
Part of the launch (#416). HITL: Allison does this in the Clerk dashboard. It needs the production instance from #480.
Why
Decided 2026-10-02: the beta is private, and people join a waitlist. Today anyone who signs in can create a company (packages/companies/src/Join.ts:111), and each company gets its own Postgres database and can start tier 2 machines.
Sign-in already goes through Clerk's hosted pages (packages/auth/src/Session.ts, signInUrl), so Clerk's Waitlist sign-up mode is the gate. People join the waitlist, Allison approves them in the Clerk dashboard, Clerk emails them an invitation, and they create their company. Their colleagues come in through Patchy's own invites from /company.
Steps
- Turn on Waitlist mode on the production instance (2026-10-02).
- Approve Patchy's own founder: Allison, 2026-10-04. The second founder is approved when they join.
- Company invitations get past the waitlist: fix(companies): invited colleagues cannot sign up while the waitlist is on #526, merged as fix(companies): invited colleagues can sign up while the waitlist is on #528. Checking this found that Patchy's invites sent their link to
/join, which can't use Clerk's invitation ticket, so invited colleagues landed on the waitlist. - Email branding is deferred: custom templates need Clerk Pro, and we're staying on the free plan for now. The app shows as Patchy Cloud on Clerk's pages and in its emails.
To check on production (in #416's list)
- An account that hasn't been approved cannot create a company.
- An approved founder can create one.
- A colleague invited from
/companycan sign up (fix(companies): invited colleagues can sign up while the waitlist is on #528). - Someone on the waitlist who lands on the signed-out door at
/sees copy that makes sense. The door now names the private beta, points newcomers to their invitation email and offers Join the waitlist (fix(ui): the signed-out door tells a new person where their account starts #527, merged as fix(ui): the signed-out door offers the waitlist and says where a new account starts #529).
Done when
Waitlist mode is on, Allison is approved, and the checks above pass on production.
Activity
allisonmahmood commentedon Oct 2, 2026
Waitlist mode is on for the production instance (2026-10-02,
auth_access_control.sign_up_mode = "waitlist"). People join at https://accounts.patchyhq.com/waitlist.docs(ops): the Clerk settings Patchy needs, so a new instance can sig…
fix(companies): invited colleagues can sign up while the waitlist is …
allisonmahmood commentedon Oct 4, 2026
Setup is done: Waitlist mode is on, Allison is approved, company invitations get past the waitlist (#528), and the door names the private beta (#529). Email branding is deferred. The production checks need the deploy, so they moved into #416's "Before the first partner signs in" list as The private-beta gate.