Skip to content

Human inbox

The human is a peer. The daemon registers one human peer per user, and every message sent to that peer lands in a durable inbox. Telegram, the dashboard, and the CLI display that inbox. Senders address the human; they never choose a surface.

Why

Before the inbox, a person on a phone could only be reached by answering a question they had asked. A notify_peer('telegram', ...) went to the Telegram bridge's socket. If the bridge's call to Telegram failed, the message was gone, and nothing in the ledger said so. The inbox removes that asymmetry. notify_peer, ask, answer, and broadcast reach the human the same way they reach any agent, and the sender gets a receipt.

The human peer

Property Value
display_name human.name from config (default human)
role / backend human / human
Status Always online: the inbox always accepts
Surface presence metadata.surfaces ({telegram: {live: true}, dashboard: {live: false}}; a surface with quiet hours adds quiet, quiet_until and held) and metadata.surfaces_live

The peer is registered in-process at daemon start, so liveness sweeps never demote it, and its peer_id stays stable across restarts. Presence is republished when a surface connects or drops; nothing polls.

Surfaces are renderers

A surface is a client that displays the inbox and answers on the human's behalf. Each one behaves the way its medium already does, rather than adding Repowire-specific controls:

Surface Receives pushes Read Reply Buttons
Telegram A chat message per item, threaded as a Telegram reply on its ask Implicit: a message or tap from you in the chat marks read every item already in the chat Telegram's Reply on any message (any chunk of a long one) Only where a bot offers a choice: a choice question's options, or ✓ Ack for an acknowledge question
Dashboard Live in the Inbox view while a dashboard is open, with the unread count in the nav Opening an item The reply box under the item A choice question's options, ✓ Acknowledge for an acknowledge question
CLI No; it reads on demand repowire inbox read repowire inbox reply None

Read state is shared. Marking an item read on one surface marks it read everywhere, and an open dashboard updates as it happens. A reply from any surface acks the open ask behind it, or answers it for a structured question, and marks the item replied. A reply to a progress note filed under an ask you can still answer answers that ask. A reply whose in_reply_to names an open ask the human holds, or names a note from that ask's asker that points at the ask (its in_reply_to or correlation_id), answers the ask on every surface: the app's and the dashboard's Reply, a Telegram swipe-reply or plain text right under the note, and POST /ask from the human (whose response then carries answered and the ask's correlation_id) (#734). A reply to anything else asks its sender back.

The dashboard has no peer of its own. Its channel is the event stream it already holds open (GET /events/stream?surface=dashboard, which the relay tunnels too), so it is a live surface while at least one dashboard is open, and a push to it is receipted once an open stream has flushed the item.

Addressing and the telegram alias

telegram and slack (by name or by the bridge's peer_id) resolve to the human peer. Existing notify_peer('telegram', ...) callers keep working and now get receipts. In the other direction, a message the human types on Telegram comes from the human peer, so an agent's reply lands in the inbox and threads under the original message.

Frames the human peer sends carry from_role: "human". The daemon decides this by peer_id, never by name, so an agent that happens to share the human's display name in another circle is still framed as a peer. Every renderer (Claude hooks and channel, Codex bridge, OpenCode, Pi) frames those as the user's direct instructions, whatever human.name is. The legacy names dashboard, telegram, slack and human keep that framing too. Renderers built before this change frame only those names, so set a custom human.name after updating them (repowire setup re-installs the plugins).

Items

Kind Created by Threaded
notify notify_peer / POST /notify to the human No
ask ask to the human Carries its correlation_id; the ask stays open until the human replies
answer An ack/answer/decline reply to an ask the human sent Yes, under the human's original message
broadcast broadcast, only when human.broadcast: true No

An item is threaded only when its correlation_id names an ask the daemon still tracks (open, or closed within the ask TTL) and the human is one of its parties. A plain notify never creates, acks, or closes an ask. An agent can thread a progress update under an ask by passing that ask's correlation_id to notify_peer or POST /notify. The item stays a notify and is threaded only while the ask is open and the sender asked it or holds it now; otherwise it is stored unthreaded. The dashboard marks a threaded notify with re #<correlation_id>.

A sender can close its own item once the human no longer needs to act on it: it acks its own open ask (withdrawn) or its own notice (resolved). The item leaves needs-reply and unread on every surface at once and stays in history, marked withdrawn or resolved with who did it and why. Any cancel of an ask held by the human (by its sender, the operator or an orchestrator) marks the item withdrawn the same way. An ask that closes without the human any other way says so too (#733): expired when no answer came in time (its lifetime ran out, its asker left the mesh, or a blocking question timed out to its default), closed for any other close (a send failure, a follow-up that superseded it, or an ask the human handed on that its new holder then settled), and lost for one the daemon no longer holds at start (it closed while the daemon was down, or before open asks survived a restart). These read resolved_by: daemon and read_surface: daemon, with why in plain words in resolution_reason. The startup sweep records lost quietly, without posting to surfaces.

Receipts and traces

The sender's synchronous receipt is the stored item and the surfaces a push was started on:

notif-delivery-1a2b3c4d inbox_item=inb-5e6f7a8b surfaces=telegram

Pushes run in the background. Each surface acks its push, and the outcome is recorded on the message's own trace (the notify's delivery_id, or the ask's correlation_id). A trace starts created, then inbox_stored, and every surface stage follows inbox_stored. The request's own resolved_peer breadcrumb is written when the send returns, so it can land before or after a fast surface's surface_pushed. Stages:

Stage Detail
inbox_stored item_id, kind
surface_pushed surface, item_id, verified (false for a legacy bridge that cannot ack). For the dashboard it means an open dashboard stream flushed the item.
surface_failed surface, item_id, error_class (network, rate_limited, rejected, too_long, overloaded, no_receipt, other). A dashboard that closes before its stream flushed the item records no_receipt.
inbox_read surface, item_id
inbox_replied surface, item_id

These stages never carry message text; the text lives in the inbox. (An ask's existing created and closed rows keep their clipped text, as for any ask.) Routing replay counts inbox_stored as delivered.

Broadcast and routing

Broadcasts are opt-in. With human.broadcast: false (the default), a broadcast never reaches the inbox or a phone. With it on, the item is stored, and each surface pushes it only if its own human.surfaces.<name>.broadcast is true.

A routing strategy never picks the human unless routing.allow_human_targets: true. Naming the human always works. See Configuration.

Quiet hours

A surface can be held in a daily window (human.surfaces.<name>.quiet_hours; nothing is held without it). During the window, an item for that surface is stored as usual but not pushed: its push record for the surface says held, and the inbox (CLI, dashboard) shows it at once. A blocking question (an ask with a deadline, such as a tool approval) is pushed anyway by default, since holding it would let its deadline decide; bypass: [blocking, ask] lets every ask through, and bypass: [] holds everything.

The daemon keeps no timer for this. It tells the surface's bridge (surface_hold, with the window's end as an absolute UTC time), and the bridge sends surface_release at that moment. The daemon then checks its own window: an early or duplicate release changes nothing and the hold is announced again. After the window, the held items are pushed oldest first, one release at a time per surface. The next stored item and a reconnect release them too. A reconnect inside the window holds what the surface missed, as a live push would have. A release pushes each held item once even when triggers race (a daemon stopped in the middle of a release may push an item again after it restarts, as any push interrupted by a stop may). A release whose push fails leaves the item held for the next trigger, so a failure does not strand it; the next stored item retries a failing release only after a backoff (1 minute, doubling to 15), while a reconnect or surface_release retries at once. A release skips the items the human already handled (read or replied on any surface, or an ask that was answered or moved). With digest: true, the released items other than asks arrive as one summary message; asks still arrive one by one. Replies to the summary are not threaded: reply on the item to answer it.

Only a bridge that declares the inbox_hold capability is held (the Telegram and Slack bridges do). One that cannot be told when to come back, and the dashboard, which is on screen rather than paged, are pushed at once whatever the configuration. repowire inbox lists the surfaces that are quiet, with the time their window ends and how many items wait.

Failure behaviour

  • A surface that is offline, slow, or failing never blocks the sender, daemon startup, or shutdown. The item is already stored, and the push records surface_failed.
  • Shutdown cancels in-flight pushes and records them as failed before the store closes.
  • A surface that reconnects is sent what it missed. When the Telegram bridge (or another surface peer) connects, the daemon pushes the unread items stored while it was down: those with no push record for it, stored after the newest item it had one for before it reconnected, and not already being pushed to it live. Only the newest 20 go, oldest first; older ones stay in the inbox (the CLI and dashboard show them) and are not sent on later connects. Items already read, and broadcasts the surface did not opt into, are skipped. Each item reaches a surface at most once, even when a catch-up races its own push. Failed pushes are not retried.
  • The Telegram bridge retries network failures and rate limits a bounded number of times before it reports a failure. A network retry can duplicate a message whose response was lost.