Migrating to SuperClaw's Native Slack Channel — Migration Checklist
Status at conception (2026-09-23): planning — none of the cutover steps had been executed yet.
Goal: retire the custom node bridge as the Slack front end and let SuperClaw's native messaging channel own it, so Slack availability follows SuperClaw itself — no separate process, no catherder cat, no boot hook, no duplicate-connection risk. All current slash commands carry over.
Status: planning. Nothing is executed until the agents below exist and the parity table is agreed.
1. Why this migration
- Lifecycle coupling is the win. Today the bridge is a separate node process: it needs a catherder cat entry, a boot hook, a pidfile, a staleness rule, and a host-side watchdog. On 2026-09-23 a container rebuild wiped the boot hook and the bridge was the only thing still up — precisely because it lives outside. With the native channel, SuperClaw up means Slack up.
- Honest trade-off: the coupling works both ways. When SuperClaw is down, Slack goes quiet. Accepted: a bridge without an agent can only queue anyway.
- One session store. No bridge
sessions.jsondiverging from SuperClaw's own session list — removes a whole class of split-brain risk.
2. Pre-flight inventory (what the bridge does today)
Slash commands — exact semantics (must all carry over)
| Command | Bridge behavior | Native plan |
|---|---|---|
/new [title] | Start a fresh conversation for the channel; optional title becomes the session title | Verify native equivalent; else register as a custom command mapped to "new session" |
/resume [n] | With no arg: list the newest 10 archived sessions for this channel. With n: switch back to that session (reconciled against the store each time) | Verify; likely needs emulation or a documented break |
/status | Show which SuperClaw session the channel is bound to, the active turn, and how many sessions are archived | Verify; else an Ops agent answers it |
/stop | Abort the in-flight turn | Verify — must have a hard stop |
/add <message> | Stop the in-flight turn and queue a follow-up in one step | Verify; else document /stop then send |
Non-command features — decide port / emulate / retire
| Feature | Where it lives | Recommendation |
|---|---|---|
| Task registry (jobs, states, results) | slack-bridge/registry.js + delegation/data/tasks.jsonl (222 jobs to date) | Retire as a live system; keep the data file as a record. Revisit only if a job log is wanted again |
| Herder/cat ACL | delegation/acl.py, SLACK_HERDER_USER / SLACK_CAT_USERS | Retire — it served the delegation experiment |
| Budget gate | delegation/budgets.py, config.json | Retire (OpenRouter widget is the live spend view) |
| Media delegation + vision specialist | delegation/media.py, specialist model config | Retire unless a Media agent is created (see §3) |
| Turn monitors (lifetime/check-interval, dry-run) | TURN_* env vars | Replace with native turn handling; keep the intent (no runaway turns) |
| Pet speech hooks | delegation/pet_hooks.py | Retire — cues now live in AGENTS.md and are fired by the agent directly |
| Session history + store reconciliation | index.js session store | Superseded by native session management |
3. Agents to create first (prerequisite — agreed roster)
Agents are how the migrated channel keeps its capabilities: the front end routes messages to sessions, and agents do the work. Two tiers — four cheap daily drivers, three on-demand specialists.
Daily drivers (cheap model — GLM-flash class)
| Agent | Mode | Description (the routing key — write it as "Use when…") | Tools |
|---|---|---|---|
| Ops | primary + subagent | "Use when asked about daemon health, catherder status, uptime, restarts, or anything operational on the box." | read, bash, grep |
| Site | subagent | "Use when drafting, staging, or deploying site documents and running the private-area pipeline." | read, write, edit, bash |
| Reviewer | subagent | "Use when a draft, diff, or PR needs review before it ships — read-only, no edits." | read, grep (no write) |
| Research | subagent | "Use when a question needs live web information or source verification." | web search |
Specialists (expensive / specialist model — invoked on demand)
| Agent | Mode | Description (the routing key — write it as "Use when…") | Model | Tools |
|---|---|---|---|---|
| Unity programmer | subagent | "Use when working on Unity/C# code or the Mate Engine app — MonoBehaviours, input and rendering, prefabs, shaders, VRM loading, and window behavior on macOS (e.g. the screen-dragging defect)." | frontier | read, grep, edit, bash, web search |
| macOS/Python/Bash expert | subagent | "Use when diagnosing macOS/Python/bash environment failures — installs, venvs, LaunchAgents and plists, PATH/env issues, and dependency errors whose surface symptom misleads (e.g. a missing ffmpeg surfacing as torch errors)." | frontier | read, grep, bash, web search |
| Image examiner | subagent | "Use when an image or video frame needs examination — objects, shadows, trees, occlusion, lighting, gauges, or text in a snapshot; camera frames and print-cam stills." | vision specialist (qwen/qwen2.5-vl-72b-instruct, already configured as the media-delegation specialist) | read (images), bash (frame extraction), specialist call |
Why these three, and how they pair
- The Unity agent and the macOS expert are complementary halves of the same bug class. The Mate Engine drag defect is engine-side (MonoBehaviour/input/render pipeline) and platform-side (macOS window behavior, transparent/click-through windows, Retina coordinates, plists and entitlements). The Unity agent supplies the engine half; the macOS expert supplies the platform half. If nested delegation is available, the Unity agent can hand platform questions to the macOS expert; otherwise the main session runs both in parallel and I hand results across.
- The macOS/Python/Bash expert is justified precisely by the SoVITS loop. The failure mode was anchoring on the surface error (torch) while the root cause was a missing system dependency (ffmpeg). A stronger model with a "question the symptom" brief breaks that loop — and the same brief helps it resist the same trap in Unity build/toolchain errors.
- The Image examiner reuses the existing specialist rather than adding a new dependency: the vision endpoint, its key location, and the probe/route/gate logic already exist in the media-delegation module. Keep frames downsampled — vision calls are the expensive part.
- Cost placement: the specialists are exactly what the frontier envelope exists for (hard debugging and public-facing work). They are subagents so they never clutter primary selection, and they are invoked only when the task matches their description.
- Harness constraint for the Unity agent: the Unity Editor runs on the Mac, not in this container — the agent works on source, diffs, and build scripts; the actual editor/play-mode testing happens on the Mac side.
4. Slack app configuration (verify in the Slack app settings)
- Same app, same tokens:
SLACK_BOT_TOKEN+SLACK_APP_TOKEN(Socket Mode). One consumer only — the host-side bridge must be stopped before the native channel is enabled, or Slack will split events between the two connections. - Confirm: Socket Mode enabled; scopes
chat:write,im:history,im:read,app_mentions:read, pluscommandsif slash commands are registered app-side. - Event subscriptions: direct messages + app mentions.
- Custom slash commands are registered on the Slack app, not in code — they must be re-pointed/registered for the native channel, or replaced by text commands. This is the item most likely to surprise us.
5. Cutover sequence
- Agents first — create the roster in §3 and test one delegation ("have the Reviewer check this") to confirm routing works.
- Freeze the bridge — announce the cutover; the catherder order for
slack-bridgeis already DISABLED. - Stop the host-side bridge and its watchdog (host-side, outside this container — confirm the process is gone, not just quiet).
- Configure the native channel with the same tokens; enable it.
- Verify, in this order: DM reply → app mention →
/statusequivalent →/new→/stopmid-turn →/add-style follow-up → a long turn survives without runaway. - Confirm no duplicate replies — if two replies appear, a second consumer is still connected; find and stop it before proceeding.
- Keep the bridge code as cold standby for one week (do not delete
slack-bridge/or the delegation data). - Cleanup after the standby week: decommission the
slack-bridgecat (or remove its config entry), updateDAEMONS.md, remove the host-side watchdog, and archive the delegation notes.
6. Rollback plan
- Re-enable the bridge:
catherder.py enable slack-bridgeon the container side, restart the host-side bridge + watchdog, and disable the native channel. Because the tokens are shared, the native channel must be turned off first. - The delegation data and bridge code stay untouched for a week precisely so rollback is a restart, not a rebuild.
7. Open questions to confirm before executing
- Does the native channel support custom slash commands, or do the five commands become text commands / agent behaviors?
- Does it keep per-channel session binding like the bridge does (
/statusshows one bound session per channel)? - Is there an equivalent of
/stopthat reliably aborts an in-flight turn? - Threading behavior: does it reply in-thread like the bridge, and does that change how the pet cues land?
- Where does the native channel keep its session store, and does it survive a container rebuild?
8. What stays regardless
- Catherder remains for
handshake-daemon(the Mac's pet LAN bridge on 30051),shelly-tracker, andprint-cam-tracker— none of them are affected by this migration. - The boot-hook chain (
start-backend.sh→start_daemons.sh→ daemons + herder) stays essential: those three daemons still need to come back after a container rebuild.
Updates
Post-publication actions are appended here as dated entries, oldest first.
2026-09-23 — Bridge frozen, native channel enabled, first message through
Steps 1 through 6 all executed this day. The roster of agents was written and consolidated; the catherder order disabling the slack-bridge cat was issued at 11:18; Slack credentials were verified and the native channel adapter started at 14:50; and the first real message arrived over the native channel at 22:35. Note this draft was written mid-morning, before most of that — so the "status at conception: planning" line above describes the drafting moment, not the state of the work at the end of the day.
A note on timestamps: the host-side half of that day carries no clock time in this log. The bridge itself was stopped on the host machine, outside this container, so its exact stop moment is not recoverable from here — it is recorded undated rather than guessed. The same will apply to removing the host-side watchdog when that happens.
2026-09-24 — Roster tightened
Identity/roles documentation written; the image-examiner agent refined after its first vision tests failed on a model without image input, then passed.
2026-09-25 — First durable records
The workspace repository's first commit landed, making the bridge disable and the DAEMONS.md note durable rather than mtime-only; notifyd's first route was recorded; the notification-router agent was added.
2026-10-02 — Agent files re-synced
All eight agent files were rewritten, resetting their modification times. Their original creation times are now recoverable only from a pre-save backup copy.
2026-10-23 — Notification routes regenerated
The routing record was last regenerated; the most recent Slack route change sent a printer notification to the staff channel.
2026-10-31 — Article published; status line corrected
This article was published today. Its opening status line was then reworded from "status at publication (2026-10-31)" to "status at conception (2026-09-23)", because the status describes when the document was drafted, not when it went live.
2026-10-31 — Step 8 cleanup executed
The bridge is now fully decommissioned, not merely disabled. Its cat definition was removed from catherder and the stale disabled order cleared with it; the bridge source and its watchdog script were archived rather than deleted, so the change stays reversible — restoring them means re-adding the cat and turning the native channel off first, because the tokens are shared and there must only ever be one consumer. The daemon inventory was rewritten to describe Slack as it actually works now: SuperClaw's native Slack channel, with no custom node process, no cat, no boot hook, and no watchdog. One latent dependency surfaced during the cleanup — the herder's own Slack user id was being read out of the bridge's environment file, so the notification daemon's herder routing was repointed at a config file that is not going away. The health check had also been reporting a dead bridge for weeks; it reads green for the first time since the cutover.
Outstanding
- Step 8 cleanup — done (2026-10-31). The cat was decommissioned, the daemon inventory reconciled, and the bridge code archived rather than deleted, so the whole step is reversible.
- One action remains outside this container: the running watchdog lives on the host, so a human has to stop it there. Archiving the local copy did not stop it, and a duplicate Slack consumer is the failure mode if it is left running.
- Minor residue: the old delegation ledger is snapshotted, but the dispatch tooling still points at it, so it is retired in name only until that reference is repointed.