-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Goal
Move TelegramChannel from Cortex to Wilson, consolidating all channel implementations in one place.
Current state
- TelegramChannel lives in
cortex/src/channels/telegram/ - Config (
telegramBotToken,telegramAllowedUserIds) lives in~/.config/cortex/config.json - Telegram is "realtime" (p0) — messages bypass thalamus buffering and go directly to cortex inbox
Why move
- Wilson owns all external I/O (channels are adapters, not brain logic)
- Calendar, Email, Web channels already live/will live in Wilson
- Keeps Cortex focused on reasoning (brain), Wilson on sensing/acting (organism)
- Centralizes secrets (bot tokens) in Wilson config
Migration plan
- Copy
src/channels/telegram/from Cortex to Wilson - Add
channels.telegramconfig in Wilson:{ enabled, botToken, allowedUserIds, ... } - Wire TelegramChannel into Wilson's ChannelRegistry
- Telegram ingestion: POST to cortex
/receive(like CalendarChannel) - Telegram delivery: poll cortex outbox (new endpoint or existing
/outbox/poll) - Remove Telegram from Cortex (delete channel code, remove config fields)
- Update production configs on Mac Mini
Open questions
- Should Telegram poll outbox like other effectors, or use a push/webhook model?
- How to handle the "realtime" priority routing (currently in-process thalamus.receive())?
Dependencies
- Wave 2.5 merged (done)
- Outbox polling for external effectors (may need new endpoint or auth changes)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request