Skip to content

feat(hub)!: delete dead mounts run-key-history, preferences, bench-model-policy, resolved-offerings (CL-8158) - #759

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-8158-dead-mounts
Sep 17, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-8158-dead-mounts

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

CL-8155's inventory found zero web callers for four apps/hub/src/index.ts mounts. Hard cutover, no fallbacks:

  • run-key-history — deleted outright, package and all: the mount was diagnostics-only (no web caller), and its agent.deploy.ack listener/store go with it.
  • preferences — deleted outright: the client was built but never imported by anything reachable from web. Its one real caller, packages/chat-ui's dormant WorkbenchSettingsSurface / NotificationsSection, is itself unreachable from apps/web (superseded by packages/settings-ui's own notifications section) — that dead notifications wiring is removed too so the package deletion is a clean cutover, not a fallback left dangling.
  • bench-model-policy — the HTTP mount is deleted, but the store and bench_model_policy table stay: a workflow-catalog read still uses benchModelPolicy.store.getPolicy.
  • catalog/resolved-offerings — deleted; its only caller was packages/onboarding's seed CLI, dead since T7.

scripts/db-setup.ts drops the run_key_history and preferences Postgres schemas forward-only (mirrors the existing routines-schema handoff pattern). Updated the no-product-tenancy and browser-safe-subpaths check allowlists, regenerated tsconfig.build.json's project references, and updated docs/package-migrations.md.

Not in this PR: the checklist's fifth item — folding createWorkflowDetailRoute onto the stock vendor/intx/hub-api definitions route — is a distinct, larger-blast-radius change (the stock route has no per-definition detail endpoint at all; folding it means either patching vendored code or dropping steps/lifecycle/grants/credential-bindings from the workflow detail page). Left alone rather than guessed at; flagging for a follow-up.

Test plan

  • bun run typecheck — clean (two pre-existing, unrelated failures in packages/chat-ui/test/{connect-github-block-container,tool-activity-view}.test.tsx already present on origin/main at the branch point)
  • bun run lint — clean
  • bun run check:structural — clean (report-error: 0 new findings, 0 stale baseline entries)
  • bun --cwd apps/web test — 919 pass
  • bun --cwd packages/chat-ui test — 904 pass
  • bun --cwd packages/inference-catalog test — 71 pass, 4 DB-gated skipped locally
  • bun --cwd apps/hub test — 203 pass, 31 DB-gated skipped locally (no local Postgres port free; CI provisions one)

https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG

…del-policy, resolved-offerings (CL-8158)

CL-8155's inventory found zero web callers for four apps/hub/src/index.ts
mounts. Hard cutover, no fallbacks:

- @corbits/run-key-history (diagnostics-only mount plus its
  agent.deploy.ack listener) and @corbits/preferences (a client built but
  never imported — the only caller, chat-ui's dormant
  WorkbenchSettingsSurface/NotificationsSection, is unreachable from web)
  are deleted outright, packages and all.
- bench-model-policy's HTTP mount is deleted; the store and
  bench_model_policy table stay, since a workflow-catalog read still
  uses them.
- catalog/resolved-offerings is deleted; its only caller
  (packages/onboarding's seed CLI) is dead post-T7.

scripts/db-setup.ts drops the run_key_history and preferences Postgres
schemas forward-only, mirroring the routines-schema handoff. Updated the
no-product-tenancy and browser-safe-subpaths check allowlists and
regenerated tsconfig.build.json's project references.

Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

CL-8158

@TheGreatAxios
TheGreatAxios merged commit 993921a into main Sep 17, 2026
20 of 22 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