Skip to content

feat(hub)!: drop inbox snooze sweep, longevity-sim (CL-8185) - #788

Merged
TheGreatAxios merged 5 commits into
mainfrom
cl-8185-hub-sweep-1
Sep 17, 2026
Merged

TheGreatAxios merged 5 commits into
mainfrom
cl-8185-hub-sweep-1

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

Owner ruling: snooze is dropped, unused packages are deleted. (The
third item in this ticket — routine run-now going client-driven — was
already landed on main by #787 (CL-8160) before this branch rebased
onto it; nothing left to do there.)

  • Delete apps/hub/src/inbox-unsnooze-sweep.ts and its wiring in
    apps/hub/src/index.ts.
  • Delete snooze in packages/inbox: the /:id/snooze route, its
    snooze-store and schema, the snoozed status value, and forward-drop
    the inbox.snooze table in a new migration. No web UI ever grew a
    snooze affordance, so there is nothing else to cut over.
  • Delete packages/longevity-sim (no importers — verified with git grep longevity), its tsconfig/.changeset/.prettierignore
    references.
  • Regenerate the report-error baseline (fewer catch clauses now that
    dead files are gone; 0 new findings, 0 stale entries).

Deleted tests

  • apps/hub/test/inbox-unsnooze-sweep.test.ts
  • apps/hub/test/inbox-unsnooze-sweep-report-error.test.ts
  • packages/inbox/test/snooze-store.test.ts
  • packages/inbox/test/routes.test.ts's POST /:id/snooze rejects before touching the database suite (the route is gone)
  • packages/longevity-sim/src/*.test.ts (whole package deleted)

Test plan

  • bun run typecheck
  • bun run lint
  • bun run check:structural
  • bun --cwd apps/hub test (146 pass, 24 skip — DB-gated, no
    DATABASE_URL locally)
  • bun --cwd packages/inbox test (46 pass; 1 pre-existing failure
    in thread-client.test.ts, unrelated to this change and present
    on main)
  • bun --cwd apps/web test (771 pass)

Snooze is dropped per owner ruling — the /:id/snooze route and its
own snooze-store are gone in the next commit, so their tests go too;
the bulk test's snoozed fixture becomes an ordinary open row.
Snooze is dropped per owner ruling: delete the hub's unsnooze sweep,
@corbits/inbox's /:id/snooze route, its snooze-store and schema, and
the 'snoozed' status value from the inbox vocabulary. The inbox.snooze
table is forward-dropped in a new migration — no web UI ever grew an
affordance for snooze, so there is nothing else to cut over.
No importers anywhere in the repo (verified with git grep longevity);
drop it and its .changeset ignore-list / .prettierignore entries.
Deleted files (native-workflow-routine-launch's removed function,
inbox-unsnooze-sweep, longevity-sim) carried baselined catch clauses;
regenerate so the ledger only lists what still exists.
AGENTS.md and mailbox-timeline.test.ts had accumulated formatting
drift from main that failed prettier --check; fix it so lint is green
for this branch.
@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

CL-8185

@TheGreatAxios
TheGreatAxios merged commit 1a7868c into main Sep 17, 2026
5 of 9 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