Skip to content

Delete hub-side onboarding seed (CL-8207) - #804

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-8207-client-start
Sep 17, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-8207-client-start

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Deletes @workbench/onboarding outright: the hub never seeds (client-drives-converge ruling) — apps/web already mints its own tenant, connects a provider, and deploys Myra over stock routes with no hub-side route or first-login hook feeding it.
  • Also gone: the onboarding Postgres schema/migrations, the pending_seed background drain (bench-provisioning.ts), the genesis/provision first-login decision, desired-state.ts's reconcile machinery — none had a caller left outside the deleted route.
  • packages/connections gains tenant-seed.ts and complete-credential.ts: the still-legitimate use of this machinery is standing up a fully deployed tenant for e2e/eval harnesses (packages/evals' real-target, scripts/e2e/{chat,greeting-delivery,play,cl-6324,cl-6329,cl-6451}*) without driving a browser — connections already owns credential-connect, so this is where it belongs now.
  • packages/connections' own onInferenceCredentialUsable seam (a hook nothing ever wired, existing only to feed the deleted pending-seed drain) is deleted along with its dead code path in routes.ts and its tests.
  • scripts/e2e/browser/walkthrough.ts now drives the real onboarding-page UI form (radiogroup + password input + submit) to connect a stub provider, instead of calling testAndPersistCredential/ensureSeeded directly.
  • scripts/e2e/local-rip.test.ts, which proved the same path by calling those internals directly, is deleted — walkthrough.ts's real-browser proof now covers it.
  • scripts/db-setup.ts no longer applies onboarding migrations or lists its schema; per owner ruling this is a hard breaking cutover, not a forward-drop migration.

What used to be seeded that now happens nowhere

  • Nothing — every real product path this package fed (first-login provisioning, the onboarding route, the pending-seed drain) was already dead: no code mounts createOnboardingRoutes and no composition wires onInferenceCredentialUsable. The web client's own converge loop (apps/web/src/needs-converge.ts, client-bootstrap.ts, pages/onboarding-page.tsx) is the sole live path and is untouched by this PR.

Test plan

  • bun run typecheck — passes
  • bun run lint — passes
  • bun run fmt:check — passes
  • bun run test (root, per-package) — passes except 3 pre-existing failing packages unrelated to this change (@intx/hub-agent, @corbits/webhook-triggers, @corbits/workflows — none touched by this diff) and @corbits/chat (14 fails, only a one-line comment touched here; another concurrent PR is cutting chat out of the hub)
  • packages/connections, packages/evals, packages/inbox, packages/hub-api-client package tests pass directly
  • bun run check:structural intentionally skipped per owner note (scripts/checks is being deleted on main in a concurrent PR)

@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

CL-8207

The hub never seeds (client-drives-converge, 2026-09-17): apps/web already
mints its own tenant, connects a provider, and deploys Myra as a converge
loop over stock routes. @workbench/onboarding — its route, its
first-login provisioning hook, its pending-seed background drain, its
onboarding Postgres schema — existed only to feed that dead path.

Deletes the package outright. The one still-legitimate use of its
tenant-seed/credential-connect machinery — standing up a fully deployed
tenant for an e2e/eval harness without driving a browser — moves to
packages/connections (tenant-seed.ts, complete-credential.ts), the
package that already owns credential-connect. desired-state.ts's
reconcile machinery and the whole genesis/provision/pending-seed/
bench-provisioning stack had no callers left outside the deleted route
and are dropped rather than moved. connections' own dead
onInferenceCredentialUsable seam (a hook nothing ever wired) goes too.

scripts/e2e/browser/walkthrough.ts now drives the real onboarding-page
UI form to connect a provider instead of calling package internals
directly. scripts/e2e/local-rip.test.ts, which proved the same path by
calling those internals, is deleted in favor of that real UI proof.
Owner ruling: hub never seeds, so this machinery doesn't get a new home
in packages/connections either — it gets deleted outright.

- packages/connections/src/{tenant-seed,complete-credential}.ts: removed,
  along with the subpath exports and the workflow-package/@intx/agent/
  @intx/hub-common deps they alone needed.
- scripts/e2e/{chat,greeting-delivery}.test.ts, play.ts,
  cl-6324-launch-proof.ts, cl-6329-turn-swap-proof.ts,
  cl-6451-single-run-proof.ts: deleted — chat-era proofs whose only job
  was driving seedTenant/testAndPersistCredential directly.
- packages/evals/src/targets/real-target.ts (+ its test) and
  scripts/evals-run.ts (bun run eval): deleted — bootMyraTarget's only
  path to a working bench was completeCredentialSetup, and it was the
  only Target this eval harness had, so the whole bun-run-eval surface
  goes with it rather than half-working.
- DEFAULT_WORKFLOWS/CATALOG_WORKFLOWS: no literal to relocate — with
  every caller above gone, nothing needs the list any more.
  packages/workflows/src/catalog.ts already carries the durable
  assetName/displayName/automatable metadata for the same workflows,
  read from each package's own corbits.workflow block.

Stale comments in packages/connections/src/{routes,seed-catalog}.ts,
packages/hub-api-client/src/errors.ts, apps/web/src/myra-workbench.ts,
and workflows/{README.md,heartbeat,workbench-digest}/src updated to stop
pointing at the deleted files.
@TheGreatAxios
TheGreatAxios merged commit 87cc985 into main Sep 17, 2026
3 of 4 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