Skip to content

Kill hub boot default-tenant ensure - #705

Merged
TheGreatAxios merged 5 commits into
mainfrom
cl-7580-kill-hub-boot-default-tenant-ensure
Sep 10, 2026
Merged

Kill hub boot default-tenant ensure#705
TheGreatAxios merged 5 commits into
mainfrom
cl-7580-kill-hub-boot-default-tenant-ensure

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Linear: CL-7580

Summary

Hub boot no longer mints a root tenant or an admin account. ensureDefaultTenant and apps/hub/src/default-tenant.ts are gone. A fresh database has zero tenants; /status and auth still serve. First signup (CL-7578) remains the 0→1 path.

Env-credential plant is unchanged (sign-in only, retries until a bench exists). packages/seeding stays. Tests that assumed a boot alice now sign her up through the same auth API the UI uses.

Test plan

  • bun test apps/hub/test/boot-does-not-seed.test.ts — process + createHub scratch DB, zero tenant rows, alice sign-in is not 200
  • bun test apps/hub/test/signup-genesis.test.ts — first signup still mints the root without a skip seam
  • bun run check exit 0

An empty database is a valid hub. Process boot and createHub must
serve health and auth with zero tenant rows and no boot admin.
First signup remains the 0 to 1 path without a skip seam.
createHub no longer calls ensureDefaultTenant. A fresh database has zero
tenants; first signup remains the 0→1 path. Tests that assumed a boot
alice now sign her up through the same auth API the UI uses.
Empty database is the default after boot. First signup is genesis.
@linear-code

linear-code Bot commented Sep 10, 2026

Copy link
Copy Markdown

CL-7580

@TheGreatAxios
TheGreatAxios merged commit 9ce6426 into main Sep 10, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant