conjurer: add CONJURER_SELF_CALLBACK to both bots (per-origin librarian answers)
Pairs with conjurer#18: each bot advertises its own callback so the shared librarian answers results/pongs back to the bot that asked - test bot http://192.168.1.73:32442, deploy bot :32443. No CONJURER_MAIN_BOT repointing needed for the librarian anymore; DEPLOY-BOT.md updated (only the musician stays single-target). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+11
-5
@@ -68,8 +68,14 @@ tar xzf snapshots/deploy-state-2026-08-03-0417.tgz -C /mnt/.../deploy-bot/data/
|
||||
|
||||
## Routing librarian / musician callbacks
|
||||
|
||||
The librarian (`CONJURER_MAIN_BOT`) and musician push search results and
|
||||
"now playing" events to **one** bot address — currently the test bot's
|
||||
`192.168.1.73:32442`. To make **this** bot receive them, repoint those services'
|
||||
`CONJURER_MAIN_BOT` to `192.168.1.73:32443` (this bot's NodePort). Only one bot
|
||||
can receive them at a time.
|
||||
**Librarian — handled automatically.** Each bot advertises its own
|
||||
`CONJURER_SELF_CALLBACK` (test `…:32442`, this bot `…:32443`) on every query and
|
||||
ping, and the librarian answers each result/pong back to the bot that asked. One
|
||||
librarian serves both bots — no `CONJURER_MAIN_BOT` repointing needed. (The
|
||||
librarian keeps `CONJURER_MAIN_BOT: http://bot:5000` only as a fallback for a bot
|
||||
that doesn't send a callback.)
|
||||
|
||||
**Musician — still single-target.** The musician pushes "now playing" events to
|
||||
its one `CONJURER_MAIN_BOT` (currently the test bot, `192.168.1.73:32442`). Only
|
||||
one bot gets radio events; repoint the musician's `CONJURER_MAIN_BOT` to
|
||||
`192.168.1.73:32443` if the production bot should show them instead.
|
||||
|
||||
Reference in New Issue
Block a user