DocumentationArchitecture
How Impo keeps personal agent tasks running
Follow an Impo task from the first message through a Rebyte Session, an interrupted connection, and a permission-checked tool call.
A personal agent has to keep track of work across devices. If you ask Impo to look at a connected calendar and draft a plan, the task should still be there when you switch from your phone to a browser. Impo stores the request and its conversation state on the server. The Rebyte Agents API runs the agent and stores its execution state.
Follow one delegated task#
- Accept the request. The client sends a message with a stable client message ID. The Impo API checks the account and commits the message before signaling the conversation's workflow. The durable message gives Impo a record it can reconcile if the client retries.
- Give the task its own history. A worker starts or reuses a Rebyte Session for the task and submits the input for a Turn. Follow-up messages in that conversation share its Session. Main Chat has its own Saved Agent and active Session, so the delegated conversation has separate execution history.
- Route the calendar lookup through Impo. Rebyte can request a function call during the Turn. Impo's dispatcher checks that the task can use the account's connected calendar and executes the allowed operation. The worker records the result and returns it to Rebyte. Rebyte can then continue the Turn with the calendar result.
- Recover the result. If the phone loses its connection, its subscription ends. The task can continue on the server. When the browser opens the conversation, it can read saved history and current submission state. An explicit cancellation is a separate command.
What happens when a worker stops?#
The workflow retries the activity, and a replacement worker reconciles against the stored request and the remote execution. Stable IDs and idempotency keys let it find a Rebyte resource even if the first creation response was lost. Impo reads the remote Turn state before it decides what to submit or project back to the client. This matters because a closed network stream can happen while a Turn is still running.
Tool recovery has its own rules. A calendar read can usually be retried. A command that changes an external system or moves a device needs the operation's own receipt or a known outcome before retry. The application decides which operations belong in each conversation context. For example, delegated tasks can use configured server tools, while native-device tools are limited to eligible client contexts.
Where the two systems meet#
Impo owns account access, connected services, conversation ordering, tool permissions, and the history shown on each device. Rebyte owns the managed agent loop, Session and Turn state, and execution events. This division gives Impo one place to enforce its policy across clients and gives workers a common way to recover execution.
See Impo execution and recovery for the worker and retry behavior, tool permissions for the application boundary, and Rebyte Session events for the streaming API. The Rebyte application showcases trace the same execution boundary in other products.