Skip to content

Control surfaces

Control surfaces are peers that represent humans or human-facing clients. The dashboard, Telegram bot, and Slack bot all route through the same daemon primitives as agent peers: ask, ack, notify_peer, and broadcast.

Human framing

There is one human. The dashboard, the app, Telegram and Slack are doors to it, not peers: a message sent through any of them is the human's, and agents see it as @human whichever surface it came from. Repowire frames it as a direct user instruction at delivery time. dashboard, telegram and slack still work as addresses and resolve to the human, and the Telegram and Slack bridges are left out of peer listings.

Everything sent to the human is one inbox item, shown on every surface, and reading it on one surface reads it everywhere. Only the push is routed: an answer to the human's ask, or a reply in a thread the human started, is pushed only to the surface that message came from (the dashboard serves both the web and the app). When that surface is not live, it is pushed to every surface as usual, so an answer is never stranded. Everything else is pushed per human.surfaces. A surface that reconnects catches up on the unread items it missed, so it can still receive a narrowed answer that was never read elsewhere.

The aliases are addresses only: they resolve when a message is sent to or from them, never for a lifecycle, identity or settings change. repowire peer unregister slack with no Slack bridge registered is a 404, not the human, and so is setting slack's message delivery, wire visibility or MCP servers. The names are reserved: no agent is renamed to dashboard, telegram, slack, human or the human peer's own name (a runtime session name is suffixed -2; an explicit rename is refused).

Human surfaces have the human role. That role bypasses circle filtering so the human can see and address the mesh without being trapped in one project circle.

The human inbox

With a human peer registered (the default), the phone bridges are surfaces, not addressees. A message to telegram, slack, or the human's name is stored in the human inbox and pushed to every live surface, including any open dashboard. A reply from any surface acks the ask behind it, and read state is shared across surfaces. Agents never need to know which surface the human is using.

Surface state

Control surfaces are clients of the routing API, not sources of truth. The daemon owns peer state, message routing, ask lifecycle, session bindings, and durable state. If a surface crashes or reconnects, it recovers by reading daemon state rather than reconstructing the mesh itself.

When the daemon unregisters a connected control-surface peer, it also closes that peer's WebSocket. Long-lived service clients treat the close as a reconnect signal, so registry removal cannot leave them blocked forever on a socket the daemon no longer routes.

Session-targeted controls

Peer-targeted routes address live peer identity. Session-targeted controls address durable repowire_session_id bindings. That distinction matters because display names and runtime session ids are not stable routing identities.

The session-control invariant is: resolve from a durable Repowire session binding, then act on the current executor if one exists or resume through backend-native session data if supported. Do not guess from display name, path, or runtime-local ids.