Skip to content

feat(hub): compose notify delivery deps with mailbox read-back - #735

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7238-hub-wiring
Sep 17, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-7238-hub-wiring

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Composes the hub's notify deps through a single factory that wires the workbench mailbox delivery together with the crash-window read-back from #734, so redelivered store rows resolve to queued dispatches on the prod path.

Related to CL-7238

Summary

  • apps/hub/src/notify-delivery.ts: new createHubNotifyDeliveryDeps factory — delivery adapter + addressing + dispatch store + sink registry, with resolveExistingMailIds wired from the composed mailbox db.
  • apps/hub/src/index.ts: hub composes notify: through the factory; drops the inline literal and the dead plain-sink import.
  • apps/hub/test/notify-delivery.test.ts: prod-closure test through the composed deps — seeds a queued row, resolves via composed read-back, queues dispatch.

Verification

  • bun test apps/hub/test/notify-delivery.test.ts: 3 pass (green on first run against wired deps; red proven pre-wiring in PR feat(inbox): wire CL-7238 mail id read-back through the real adapter #734's e2e).
  • bun test packages/inbox packages/notify apps/hub: 375 pass, 6 fail — the 6 are pre-existing on pristine origin/main 739a87e (verified via detached baseline worktree, same 6 fail with zero changes).
  • bun run typecheck: clean. prettier --check + eslint on touched files: clean.

@linear-code

linear-code Bot commented Sep 16, 2026

Copy link
Copy Markdown

CL-7238

Rebase onto origin/main (post tenancy deletion) mis-resolved the
notify import block, keeping references to files already removed on
main (tenant-create-guard, access-policy, memory-mount, skills-mount).
Restore main's direct createHubNotifyDeliveryDeps composition.

Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
@TheGreatAxios
TheGreatAxios merged commit aea55cb into main Sep 17, 2026
0 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