feat(tenants): staff may create the "breakpilot" workspace #128

Merged
sharang merged 1 commits from feat/staff-brand-slug into main 2026-11-12 17:04:59 +00:00
Owner

Sharang's decision of 12.11.: the company's own workspace is app.breakpilot.com/breakpilot. It replaces the use of bp-smoketest for Breakpilot's own documents; bp-smoketest stays the prod verification account.

The slug breakpilot has been reserved since #32, so that no customer can pose as Breakpilot.

Change: staffOnlySlugs = {"breakpilot"}. POST /v1/tenants accepts it only when the request names a staff member through the admin client (staffActor).

  • Without a named staff member it's reserved_slug as before.
  • Staff may still not take the other reserved slugs (admin, api, …).
  • The trial offer's freeSlug keeps skipping breakpilot.

Test: TestCreateTenant_brandSlugOnlyForStaff covers non-staff → 400, staff + admin → 400, and staff + breakpilot → 201. All registry tests pass.

Next: stage, then a prod promotion (the registry only). Then a staff member creates the workspace in the admin UI.

🤖 Generated with Claude Code

Sharang's decision of 12.11.: the company's own workspace is `app.breakpilot.com/breakpilot`. It replaces the use of bp-smoketest for Breakpilot's own documents; bp-smoketest stays the prod verification account. The slug `breakpilot` has been reserved since #32, so that no customer can pose as Breakpilot. **Change:** `staffOnlySlugs = {"breakpilot"}`. `POST /v1/tenants` accepts it only when the request names a staff member through the admin client (`staffActor`). - Without a named staff member it's `reserved_slug` as before. - Staff may still not take the other reserved slugs (admin, api, …). - The trial offer's `freeSlug` keeps skipping `breakpilot`. **Test:** `TestCreateTenant_brandSlugOnlyForStaff` covers non-staff → 400, staff + `admin` → 400, and staff + `breakpilot` → 201. All registry tests pass. **Next:** stage, then a prod promotion (the registry only). Then a staff member creates the workspace in the admin UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-11-12 16:58:54 +00:00
feat(tenants): staff may create the "breakpilot" workspace
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 5m52s
ci / image (pull_request) Skipped
fb7aea76a9
The slug "breakpilot" was reserved (#32) so no customer could pose as
Breakpilot. Sharang decided (12.11.) that the company's own workspace
is app.breakpilot.com/breakpilot. Staff (a named staff member on the
admin client) may now create exactly this slug; everyone else, and
the trial offer's slug choice, still get reserved_slug. The other
reserved slugs stay closed to staff too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit 6789e8053a into main 2026-11-12 17:04:59 +00:00
Sign in to join this conversation.