# Always-on Agents

Internal check-in prompts and their reply/call subtrees are omitted from the conversation DAG using their runtime speaker identity, including older stored turns. Reports and ordinary user messages remain visible; the original execution records are retained.

1. **Ticker** at the next due wake
2. **Wake** at most one thing
3. **Goal** main chain, normal tools or **Check-in** hidden side branch, read-only tools nothing to say: no trace
4. **Report** message, unread dot, desktop, channels

Always-on is the `always_on` section of a saved Agent (`AgentSpec`); no assistant object, no other settings. Every conversation using the Agent is one assistant, with its own Goal, check-ins, [open work](https://fzkuji.github.io/OpenProgram/docs/capabilities/agents.html#open-work) and reports. `openprogram/runtime/conversation/always_on/` decides only which conversations wake, when, what a wake does, and where reports go.

**Where each piece lives**

| Piece | Lives in | Reused from |
| --- | --- | --- |
| Configuration | `agent.json` | Agent management, revisioned saves |
| Assistant | Owner conversation | Session store, chat UI |
| Standing goal | Chat Goal | Goal continuation, verification, budgets |
| Wake schedule | `ticker.py` | Worker service startup |
| Quiet hours, wake days | `schedule.py` | Local clock |
| Check-in | Background turn | `CanonicalAgentAdapter`, `TurnRequest` |
| Reports | Report file, main-chain message, frame | Desktop notification bridge, `SessionStore.append_message` |
| Report preferences | `preferences.json` | New |
| Cost | `last_wake.cost`, daily spend | Usage ledger |
| Channel delivery | `delivery.py` | `runtime.channel_link`, bindings, channel sessions |
| Messages to other conversations | `send_message` | Job runner, notices |
| Learning | Agent's memory space | Memory policy, session-end extraction |
| Rules | Conversation's permission mode and rules | Permission rules, approval cards |
| Status, Wake now | Activity panel | Activity rows and pages |

## Configuration

**All fields**

| Field | Type, default | Meaning |
| --- | --- | --- |
| `enabled` | bool, `false` | Conversations wake on schedule |
| `goal` | string up to 4000, `""` | Standing objective; empty: research only |
| `wake_minutes` | int 5–10080 or `null`, `null` | Fixed interval; `null`: the wake ladder |
| `research` | bool, `true` | Check in when no Goal is unfinished |
| `autonomy` | `"report"` or `"act"`, `"report"` | Whether a check-in may start a Goal |
| `channels` | up to 10 `{channel, account_id, peer_id, label}`, `[]` | Channel conversations that also get each report |
| `quiet_hours` | `{start, end}` differing local `"HH:MM"`, or `null` | Daily stretch without scheduled wakes; end before start crosses midnight |
| `wake_days` | non-empty weekdays, Monday `0`, all seven | Days scheduled wakes may happen |
| `check_in_model` | `""` or `"provider/model"` | Empty: the conversation's model |
| `notify` | `{finding, approval, done}` of `{desktop, channels}`, all `true` | Routes per report kind; omitted stays on |
| `daily_budget_usd` | number above 0 or `null`, `null` | Check-in cap per local day |

Saved through the Agent editor's draft and revision check; normalized by `validate_always_on()` in `agent_registry/manager.py`. Older `agent.json` without the section: disabled. A saved section keeps its `wake_minutes`. Duplicating an Agent forces `enabled` off.

## Which conversations wake

- **Owner conversation**: Not archived, and a web chat (source empty or `web`), channel conversation, or older home conversation (source `always_on`). Never `agent` or imported.
- **Joined**: Has wake state, updated after `enabled_at`, or just switched to the Agent (`POST /api/sessions/{id}/agent` calls `join()`)
- **First wake**: One interval after joining; without one, the ladder's first step (one hour)
- **Stopping one**: Archive it. Every archive path also pauses its Goal of origin `always_on`, `check_in`, `handoff` or `scheduled` under the Goal lock (`chat.pause_always_on`, reason `conversation_archived`). Unarchiving restores it and its next wake is now; with no Goal to restore, a wake already past is rescheduled from now. An ordinary Agent's or sub-agent's conversation is left alone.
- **Turned on again**: A `next_wake_at` before the new `enabled_at` restarts from that moment
- **Older home conversation**: When `enabled_at` is first recorded, `_adopt_home()` copies `applied_goal`, `last_check_in_at`, `last_wake`, `next_wake_at` from `<agent dir>/always_on/state.json`

## Ticker

`ticker.py` starts with the worker. Per enabled Agent, each tick:

1. Record a missing `enabled_at`.
2. List conversations (at most 500).
3. Finish any check-in an earlier worker left.
4. Join newly eligible ones.
5. Wake those past `next_wake_at`.

Disabled Agents: automatic Goals paused with reason `always_on_off`, then `enabled_at` cleared; a Goal whose lock is held keeps it set and is retried next tick. The first tick after turning on restores them. A Goal stopped both ways waits for the last undo. A restart keeps the saved schedule; a per-conversation lock prevents concurrent wakes.

## Wake

`wake(session_id, reason)`, for a due conversation or **Wake now**. Records the outcome and next wake. First match wins. Unknown or non-owner conversation, which includes a Try chat (`agent_trial`): `WakeRefused`. The ticker reads the conversation itself before joining or waking it, so an index row older than the flag changes nothing.

**The ten outcomes**

| Outcome | When | Then |
| --- | --- | --- |
| 1 `disabled` | `enabled` off | Scheduled wakes stop; Wake now refused |
| 2 `quiet` | Scheduled, in quiet time (saved earlier, or the clock moved) | Next wake: end of quiet time |
| 3 `busy` | A turn or check-in is running here, or, for a scheduled wake with `daily_budget_usd` that would start a check-in or a Goal of origin `check_in`, `handoff` or `scheduled`, a check-in of the same Agent is running anywhere | Retry in 5 minutes; a self-set wake stays one. A running check-in keeps its `last_wake`. |
| 4 `goal_started` | `goal` non-empty, differs from `applied_goal`, no Goal unfinished | Chat Goal, `origin: "always_on"`, `goal.chat.start_from_controls()`; continuation and verification take over |
| 5 `goal_in_progress`, `goal_paused` | A Goal is unfinished and not stuck | Left alone; a user's pause is never overridden |
| 5a `goal_started` | A stuck Goal of origin `always_on`, `check_in`, `handoff` or `scheduled`, paused with `execution_failed` or `restart_policy`, under its own and the daily budget, with `automatic_resumes` below 3, its last turn neither `cancelled` nor missing from the execution store | `chat.resume_unattended()`, then `start_from_controls()`. A completed turn or a person's Resume clears the count. |
| 5b falls through | Any other stuck Goal: status `paused_recoverable`, `blocked`, `stalled`, `budget_exhausted`, `capped`, `error` or `failed`, not paused by a stop | An automatic Goal posts one `approval` report per stop (`stuck_goal_reported` holds goal, run, status and reason). A user's Goal is silent. Both go on to the steps below, so check-ins run. |
| 6 `idle` | `research` off | Nothing |
| 7 `skipped` | No head yet | No check-in: its side branch would be the only history, and a later lookup falls back to every stored message |
| 8 `budget` | Scheduled, `daily_budget_usd` spent | Next local midnight, past quiet time |
| 9 `skipped` | Scheduled, not self-set, after a first check-in: no standing goal, open work, unfinished todo, or main-chain message since the last check-in apart from reports | No model call |
| 10 `check_in` | Otherwise | Returns at once; `last_wake.outcome` becomes `nothing_new`, `reported` or `interrupted` |

1. **1, 2, 5, 10, 20, 50, 100 hours; the last repeats** One step up after a scheduled wake that sets no next time No step: self-set, Wake now, quiet, busy, budget
2. **User turn ends** step 0, next wake in one hour

| Rule | Behaviour |
| --- | --- |
| Next wake | `next_wake_after()`: `wake_minutes`, else `WAKE_LADDER_HOURS` at `wake_step`; both past quiet time by `schedule.next_allowed()` |
| User turn ends | `note_user_turn()`, ladder only. A future self-set wake stays. A turn with an `automation` mark or a runtime prompt does not count. |
| Goal turns | Carry `goal.chat.STANDING_GOAL_NOTE` (one objective, finished once its requirements hold; recurring work belongs to check-ins), or a routine-shaped goal repeats every turn |
| Changed `goal` | Applies once the current Goal ends; `/goal clear` at once |

**Quiet time**

| Aspect | Rule |
| --- | --- |
| Holds back | Scheduled wakes only; not a running Goal, handoffs, Wake now |
| Quiet when | Weekday outside `wake_days`, or time in `[start, end)` (wraps when `end < start`), worker's local clock |
| `next_allowed()` | Checks midnights and `end` over eight days: quiet time ends only there |

**Scheduled tasks on their own branch**

1. **A run no window started** scheduled run, check-in, Goal turn, chat-app message
2. **A page** a tab in the App, behind the user's work no App window: the driver's own browser, no sign-ins
3. **A question**
   
   `ask_user_question` is not offered when nobody answers
   
   a person in a chat app is asked there
4. **A terminal**
   
   no App window: refused, names `bash`
5. **A window command**
   
   refused unless it names a window
6. **The run ends** the pages it opened close: scheduled run and check-in

| Aspect | Rule |
| --- | --- |
| Branch | `runtime/scheduler/task_branch.py`; meta names the task. First run off the head, or at ROOT in a conversation the task started, later at its tip. Marked `scheduled_task`: hidden from clients, shown with its task by `list_agents`. |
| Run | Background turn, empty history plus the last result that said something. `always_on_report` is not offered: the reply is the report. Overflow ends the run; the conversation is not compacted. |
| `[nothing new]` or an empty reply | Tells nobody; recorded as quiet; the chat draws no bubble for a reply that is only the mark, or one that opens with `[could not check]`. For an always-on Agent the mark is looked for in its last model round, so a progress line before it does not count, unless the run sent a file |
| `[could not check]` | Counts as a failure |
| Nobody there | A run needs neither a window nor a person. Its page opens in an App window when one is connected, otherwise in the browser the tab driver starts itself, with no window and none of the App's sign-ins (`host/resources/background_browser.py`). `ask_user_question` is not offered to a turn with no person behind it (`permissions/policy.py` `nobody_answers`), and a tool that needs approval is refused at once. The terminal is a pane of an App window: without one it refuses and names `bash` |
| Reaching a window | An interface command from a run no window started is refused unless it names its window, so the user's window is not moved under them. Every module that reaches an App window is listed with what a run without one gets from it (`tests/contracts/agent/test_app_window_users.py`); a new one fails the test until it is listed |
| Pages a run opened | When a scheduled run or a check-in ends, the tabs that run opened close: `browser_tabs_opened` keeps the execution in `opened_in`, and `runtime/scheduler/run_finish.py` `close_run_tabs`, called when the execution settles, however it ended, and when the Worker hears a scheduled run's ending, calls `tabs.close_run_tabs_soon`. A conversation keeps at most `TABS_PER_CONVERSATION`, 8, tabs its agents opened; once one more has opened, the least recently used closes (`Driver._keep_within_limit`), never the one in front of the user. [Browser tab driver](https://fzkuji.github.io/OpenProgram/docs/reference/design/integrations/browser/tab-driver.html) |
| Pages of a run in its own process | The process closes them itself and waits for it before it exits (`cron/worker.py`), since a closing left to a thread is cut off by the exit |
| Previous run still going | Recorded as `skipped`: leaves the failure count alone, and skips in a row share one row. A webhook answers 409 `previous_run_active`; a watch keeps the change for its next check. An unfinished run in the execution store counts while its process exists or it is paused, so the guard holds across a Worker restart and a dead child does not block later firings |
| Conversation archived | No turn starts and the task branch is untouched. Recorded as `skipped`; the firing is used. A waking reminder notifies without its turn |
| One-time task | Fires once. Changing its time clears the firing, so it fires at the new time. A claim left `starting` by a process that died fires at the next tick |
| Any other reply | `report_scheduled()`: main-chain message after the head, or the first one at ROOT in a conversation that has only the task's branch, unread dot, notification, the chat's bound channel when `notify.finding.channels` is on, never the picked channels; an inbox entry marked with the task until the conversation is opened ([inbox](#pending-inbox)) |
| End of a run | `runtime/scheduler/run_finish.py`. Only a terminal execution is an ending: a pause, an effect still being settled, or a turn held during a version switch records nothing and sends nothing. One execution counts once. |
| Who finishes it | The turn's own process, the Worker that continued it after a restart, the next Worker for a run that outlived its own (`run-endings/`) and the replay of a held turn, all the same way |
| Restart cannot continue it | Ends as a failure. A child Job whose caller was waiting on it also ends once no run above it is left, as an errored Job; a run whose parent is alive is never held back by that parent. |
| User stopped it, or its task was deleted | Records nothing |
| The Worker finding the run's turn | The run's process adds its turn to the conversation's run log, often a conversation the Worker loaded earlier: the chat the task was set in, or the task's own conversation after an earlier run. A lookup by id that misses, and the relay when the process exits, read in what another process added (`RunTables.take_up_other_process_turns`) |
| A stop for a run in its own process | The Worker cannot reach that turn's driver, so the control service writes the stop into the execution's function log (`execution/control/stop_requests.py`). The run's process reads it every half second while its turn runs and stops the turn itself, a running tool included, which then ends cancelled the usual way |
| Its process exited without an ending | Killed or crashed: when the relay of the process that started it sees it gone, and on each tick for any other, the Worker ends the turn `interrupted` (`time_limits.end_runs_of_exited_processes`, recovery with `continuable=False`) and records a failed run |
| Its pages and commands | Closed, and the command the turn was waiting on is stopped; one left in the background goes on |
| Worker stopping | A Worker that is stopping leaves the turn to the next one, which continues it |
| Told first | The user is told before the row is written; a report that raises stays in `run-endings/` with its failure count and is retried each tick, five attempts in all, after which only the row is saved. |
| Failures | `task_runs.py` keeps 20 runs and the consecutive count. The third in a row sends one message; recovery none. |
| Catch-up | Each tick after the first of a Worker looks for the latest time of a recurring task after its lower bound: the latest of last stamp, `created_at` and `updated_at`. Under 12 hours old: one run. Older: one `missed` row dated at that time, which leaves the failure count alone, shares a row with the misses before it and advances the stamp. |
| Catch-up limits | Wall-clock minutes, so a time skipped at spring-forward counts. Not for `@reboot`, a watch, a monitor or a disabled task. An entry with no `updated_at` does not catch up and gets one at its next firing. A firing that could not start keeps its stamp, so it is not retried. |

## Self-scheduled wakes

| Aspect | Rule |
| --- | --- |
| Tool | `always_on_schedule(reason, in_minutes \| at)`, in check-ins and ordinary turns |
| Limits | `runtime.schedule_wake()`: five minutes to thirty days, past quiet time |
| Check-ins off | Refused in plain words with `research` false; state unchanged |
| Kept | A wake that finds a self-set time still ahead, such as Wake now, leaves time and reason alone. Quiet and budget move a due self-set wake and keep its kind and reason. A Goal a check-in leaves behind starts first; the self-set time then returns. |
| Stored | `next_wake_at`, `next_wake_kind: "self"`, reason |
| None set | The wake recorded when the check-in started stands |
| Fixed times | "Every day at 9" stays with `scheduler` and reminders |

## Check-in turn

1. **Start** `wake()` records check_in first
2. **Side branch** from the head, hidden read-only tools, no run slot
3. **Finish** `finish_check_in()`
4. `nothing_new`: nothing to say `reported`: a report was written `interrupted`: cut off by a restart

**Turn settings**

| Setting | Effect |
| --- | --- |
| `branch_from` head, `advance_head=False` | Starts from the conversation's head; transcript, head and next context untouched |
| Context | `prepare(tail_tokens=16000)`: the active summary (not counted) plus the newest steps that fit, measured as the model receives them and cut at step boundaries (`context/session_dag/tail.py`). A step is a user message, a reply, or one call with its result, and a kept call keeps its reply. A newest step above the budget is left out too. When anything is left out, a note before the tail points to `read_conversation`. |
| Overflow | Auto-compact and overflow recovery are skipped; an overflow fails the turn, recorded as `interrupted`. |
| `background=True` | No status, unread dot, model, context size, title, inbox drain or branch name. Never delivered by `bound_reply`. |
| No run slot | The owner can type meanwhile. Skipped by `foreground.active_foreground_task`: authority `runtime_authority(local_owner_authority(), "always_on")`, non-interactive. |
| Permissions | Conversation's mode and rules, none added. A call needing approval is refused; the prompt says to ask with a report of kind `approval`. |
| `model_override` | `check_in_model`, else the conversation's picked model |
| `tools_override` | `read`, `grep`, `glob`, `list`, `web_search`, `web_fetch`, `read_conversation`, `list_agents`, `memory_search`, `memory_get`, `task_list`, `open_work`, `get_goal`, `always_on_report`, `always_on_schedule`. `web_search` is dropped when the conversation's web search choice is off, or, with no conversation choice, when the Agent's is, which includes a selected tool list that leaves it out; `web_fetch` stays, as in a normal turn. |
| Memory recall | Looks for the standing goal and the owner's latest message, not the check-in prompt (`recall_query`); with neither, no recall |
| Reach | The owner's authority, without its private-address access: `web_fetch` uses the strict client. Paths the dangerous-path check names, in any letter case and through symlinks, and every profile's data folder are refused in every mode, directly and in search results; other files outside the working directories stay readable. |
| `autonomy="act"` adds | `create_goal`, `task_start`, `task_step`, `send_message`. A resulting Goal runs on the main chain under normal tools and permissions. Wake starts it: the check-in's end brings the next wake to now, and a Goal of origin `always_on`, `check_in`, `handoff` or `scheduled` with no live or accounted turn starts once through `chat.start_from_controls`; a conflict retries like a busy session. Origins other than `always_on` take `identity.outside_text`: page scripts and destructive deletes refused, as in a turn a message started. |
| Left out | MCP tools: not classifiable read-only by name. Screen tool: it would wait on a Screen Recording prompt nobody can answer. |

**Prompt, finish and restart**

| Aspect | Behaviour |
| --- | --- |
| Schemas | A list by name ships full schemas, having no `tool_search` |
| Auto mode | Runs readers and always-on tools without review: permission classifier's safe list |
| Prompt states | Previous check-in time, standing goal, autonomy, that the user does not see it, that what it reads is data, report preferences, when the next check-in comes |
| Prompt asks | Review memory, open work and the conversation; look for anything new; report once with a kind when worthwhile, else end with one line |
| Prompt quotes | Latest 20 reports, newest first, 100 characters per line, fenced as data, not to repeat unless changed. With picked channels, up to 10 report titles from the Agent's other conversations, also fenced. For the latest 5 messages the user retried or edited, the other versions (up to 4 each) and the reply each got, fenced, with the rule that what any version answered is answered: the check-in reads only the version the user has open. |
| `finish_check_in()` | Counts reports by `execution_id`, reads usage, records `last_wake`, clears `check_in`, hides the branch with `store.mark_merged()`. Nothing reported and head unmoved: restores `updated_at`, so the sidebar order stays. |
| Failure | An `interrupted` check-in that had not reported restores `last_check_in_at` from `check_in.previous_check_in_at`, so step 9 still sees what it never looked at. Each one that is not a restart cut (a different `boot`, or no finish while the Worker stops), a turn someone cancelled, or a refusal during a version switch adds to `check_in_failures`; a check-in that finishes clears it silently. |
| Failure notice | The third failure, or the first with `error_reason` `auth`, `authz` or `blocked`, sends one `approval` report outside the lock, and `check_in_failure_noticed` keeps it to one; an unsent report is retried at the next failure. `error_retryable` picks its wording, an account failure leaves out the provider's text, and with `wake_minutes` it does not promise slower tries. Until that report is due, `wake_step` goes back to `previous_wake_step`, or stays lower if a user message reset it; afterwards the ladder climbs. |
| Restart | A different `check_in.boot` finishes as `interrupted`, "Cut off by a restart", by whichever of the ticker, `wake()`, `status()` looks first. The execution itself ends through the restart intent, which is on disk and answered once; a self-update does not pause a check-in to continue it. No resume and no fresh turn in its place; Wake now is the retry. |

## Cost and budget

- **Source**: [Usage ledger](https://fzkuji.github.io/OpenProgram/docs/reference/design/providers/usage-metering.html), by the turn's execution id: `default_ledger.query(filters={"execution_id": ...})`
- **`last_wake.cost`**: `input_tokens`, `output_tokens`, `usd` (null when unpriced)
- **`spend`**: Gains `usd` for the local day the check-in started, and for each automatic turn of a Goal of origin `check_in`, `handoff` or `scheduled`, once its usage has settled; `status()` returns `today_cost_usd`
- **One at a time**: With `daily_budget_usd`, a scheduled check-in, or a Goal of those origins left without a runner, waits while another of the Agent's check-ins is running, because a cost is known only when the check-in ends. A run can pass the limit by at most its own cost. Wake now is not held
- **Automatic Goal limit**: With `daily_budget_usd`, those Goals get the rest of the day as `max_cost_usd`; at 0 none is created or started

## Reports

`always_on_report(title, body, links, kind)`, toolset `always_on`, outside the default set. `loop_runner` offers always-on tools only where `agent_for_session()` finds an always-on Agent; elsewhere they refuse.

| Kind | Meaning | Waits in the inbox until |
| --- | --- | --- |
| `finding` (default), `done` | Something found; work finished | `seen_at`: the conversation opens (`pending.mark_seen()` through `mark_session_read`) or was on screen on arrival |
| `approval` | The user must decide | A newer message a person wrote on the main chain. Runtime rows, rows spoken by the runtime and rows with an `automation` mark (handoff, reminder) do not count; a steering message does |

| Route | Behaviour |
| --- | --- |
| Report file | Appended with kind and the turn's execution id |
| Frame | `always_on_report`, with `session_id`, `kind`, `notify_desktop` |
| Desktop | Attention bridge, kind `report`, keyed by report id; only with no App window focused and `notify_desktop` true. Click opens the conversation. |
| Fallback | The App answers `reminder_shown` with the report id. No answer in 6 s and the conversation not on screen: the Worker posts one system notification. `notify_desktop` false: none. |
| Unread dot | `turn_writer.mark_session_unread()`, at once, unless a client shows the conversation in a window that is not hidden. A hidden window keeps its focus, and opening a chat there clears nothing |
| Source | `report_source` is `task` for a scheduled result, `check_in` only when the reporting execution is the running check-in (read at report time and kept on the row), otherwise absent. The chat view's time line derives its phrase from it; a message without `report_title` predates this and shows the time alone. |
| Message | `post_report_message()`: assistant message after the head, Agent id, metadata `always_on_report`, `kind`, `report_title` and `report_source`, text from `delivery.report_message()` (body and labelled links; title-only reports keep `report_markdown()`; channels keep the raw form). |
| Posting | An open chat gets it as a `transcript_update`. `append_after_head()` reads the head and appends under one lock. `_post_when_free()` waits on a daemon thread up to an hour for running turns. |
| After a Worker start | `recover_reports()` posts unposted reports under an hour old, oldest first, each waiting only for what is left of its hour. |
| `notify[kind]` | `desktop` sets `notify_desktop`; `channels` gates channel targets. Message, dot and Activity row always happen. |

### Inbox

- **Source**: `always_on/pending.py`: every conversation of an Agent that is on or has always-on state, so turning off empties nothing (500 per Agent), plus every conversation a scheduled task reports into; last 20 reports each
- **Scheduled results**: A report with `task_id` is news like a finding; its item carries `task_id` and the task's title, and the Inbox draws it with the calendar instead of the Agent's avatar
- **Shown**: The [Tasks page](https://fzkuji.github.io/OpenProgram/docs/reference/design/scheduler/tasks-page.html)'s Inbox tab, the count on the sidebar's Tasks row, **Waiting for you** atop every Activity panel
- **Order**: Newest first; older than seven days drops out
- **Refresh**: Clients read again on focus and on an `inbox` change, signalled when a report is written or seen or a person writes in a conversation ([change notification](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/reliability/change-notification.html))

### Report preferences

| Aspect | Rule |
| --- | --- |
| Shape | `{id, text, at}`, at most 50, belonging to the Agent |
| Recording | `always_on_preference(text)`; same text ignoring case keeps the row. Absent from check-ins, scheduled runs, sub-agents, handoffs and automatic Goal turns |
| Activity | Lists them with delete. "Don't report things like this" posts `Don't report: <title>` |
| Check-in | Listed under "The user told you what to report and what to leave out" |
| Scheduled run | The same list in the run note of an always-on Agent's task; what it leaves out counts as nothing new |

## Handoffs

| Aspect | Rule |
| --- | --- |
| Tool | `send_message`, the tool every agent uses to give work to a conversation that exists ([agent collaboration](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/collaboration/agent-collaboration.html#tools)). The earlier `handoff` tool and its own replay are gone. |
| Offered | To a check-in with `autonomy="act"` (`runtime.ACT_TOOLS`) |
| Delivery | A tracked Job; a busy target gets it queued; the answer returns to the sender as a notice with no timeout ([results](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/collaboration/agent-collaboration.html#results), [busy targets](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/collaboration/agent-collaboration.html#busy-targets)) |
| Limits | Four hops along a chain (`agent.max_hops`), twenty sends per conversation per hour (`agent.max_sends_per_hour`), no message to a conversation already waiting up the chain ([limits](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/collaboration/agent-collaboration.html#limits)) |
| Archived target | Refused when addressed; nothing is sent |
| Stored entries | `ticker.start_in_worker()` moves what the old tool left in `handoffs.json` onto `send_message` (`handoff_migration.py`, [stored hand-offs](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/collaboration/agent-collaboration.html#stored-handoffs)) |
| Old turns | 📨 and ↩️ rows stay in transcripts. Their marks, `automation="handoff_message"` and `"handoff"`, keep their meaning when such a turn continues after a restart: `bound_reply.attach()` sends nothing for a 📨 turn, both take `identity.outside_text`, and a Goal saved with `handoff_chain` still marks its turns `handoff` |

## Built-in Agents

`agent_registry/builtin_agents.py`: ordinary saved Agents. No catalog, picker, team object or kind field; the switch alone groups them on the Agents page and composer menu, and moves a user's Agent too. The New Agent dialog makes a blank record. Sources: [Bot template references](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/agent-configuration/bot-template-references.html).

| Group | Agents | Always-on |
| --- | --- | --- |
| Chat | Assistant (`main`, default); fixed-parameter specialists with no prompt: Decision, Lightweight helper, Coordinator | Off |
| Always-on | Butler (`butler`) and ten job Agents derived from it: Chief of Staff, Spec Writer, Bug Reproducer, PR Producer, PR Verifier, Research Desk, Inbox Triage, Career Scout, Knowledge Keeper, Writer | On from install. No conversation, no wakes, no cost. |

| Part | Job Agent |
| --- | --- |
| Chat turns | A conversation turn of an always-on Agent also gets `guides/messaging.md`: short messages in plain prose, files for what you keep. A turn with a channel recipient also learns which app reads it: no tables, numbered choices. In those conversations every exit (reply, streamed paragraph, `chat_send`, report) writes a table one line per row, and the streamer holds a table until it is complete. Goal verifiers, sub-agents, self-update steps and Program calls do not |
| System prompt | `Job`, `Deliverable`, `Never`, `Done when`, `Working style` (ends with how to hand a step over), `First task`. English in both languages; names and descriptions bilingual, picked at install. |
| Tools | A `selected` policy of built-in tools. Producer may edit; verifier has no `edit`, `write`, `apply_patch`. `builtin_patch()` adds `always_on_report`, `always_on_schedule`, `always_on_preference`, `save_routine`. Butler: `automatic`, like Assistant, with `web_search`. |
| Memory, own space | Off: Bug Reproducer, PR Producer, PR Verifier. Read-only: Spec Writer, Writer. Read and write: the rest and Butler. |
| Always-on | On, `autonomy: "report"`, no fixed interval; a report due at a fixed time is a scheduled task. Research off, so never checking in: the four engineering Agents and Writer. Earlier records keep saved intervals. |
| `hold_outbound` | Off; the never-list hands mail and messages over as drafts |

| Template autonomy | Existing controls |
| --- | --- |
| Observe only | `research` on, `autonomy: "report"`, Ask mode |
| Draft | The same with `hold_outbound` on |
| Act with approval | `autonomy: "act"`, Ask mode: every outbound action is an approval card |
| Scheduled unattended | `autonomy: "act"`, Auto mode, a standing `goal` |

**Installation**

| Aspect | Behaviour |
| --- | --- |
| `create_builtin_agents()` | Creates built-ins neither saved nor in the registry's `builtins` list (`manager.installed_builtins()`, `record_builtins()`), then records all ids. A deleted built-in stays deleted. |
| Updates | A SHA-256 over the saved fields a definition sets, including the four always-on settings it writes, is looked up in `_KNOWN_FINGERPRINTS`, which lists every shipped version in each language, as installed and with the always-on settings later releases rewrote in place. |
| Matching | A known fingerprint that is not the current one is updated in its own language, every hashed field landing on the current definition; no match counts as edited and stays. Name, model and the owner's other always-on settings are not hashed and are kept. |
| Assistant | First in `BUILTINS`, default when none exists; keeps a new record's defaults, gets only its description |
| Runs at | Server startup. Setup and `openprogram chat` call `ensure_default_agent()`, which also makes an empty Assistant if every Agent was deleted. Registry reads install nothing. |
| Creates | No conversations or titles: the user does; built-ins cooperate through handoffs |

## Channel delivery

**Delivery details**

| Step | Behaviour |
| --- | --- |
| Channels | `telegram`, `slack`, `discord`, `wechat`. Unknown channels and empty ids rejected, duplicates dropped. |
| `peer_id` | The id channel sessions store; Slack and Discord use scoped `<channel>_<user>` |
| Targets offered | `delivery.channel_targets()`, returned by `GET /api/agents/{id}/always-on`: the Agent's channel conversations, labelled by peer name, and peer bindings. No account: every account. A whole channel or account: nothing until someone talks there. |
| Sending | Targets are the picked channels plus the chat's bound conversation, each once. With `notify[kind].channels` on: one `deliveries` row per target as `sending`; a daemon thread (retries can take tens of seconds) sends bold `<Agent name> · <title>`, body and links through `channel_link.send_message()` |
| Outcome | `sent`, or `failed` with `error` (the kind; an exception is `unknown`) and a one-line `detail`. `store.update_report()`, then `always_on_update`. A failed send never removes the report or fails the tool. |
| Copy in the channel's conversation | A target with a conversation other than the reporting one (alias first, as inbound routing; else the Agent's newest conversation for that peer) has it as `session_id` on its row. `_post_when_free()` adds the report there too; a target with none gets no copy. An approval is answered by a user message after it in either conversation. |
| Retries | Only `SendResult.connect_failed` (no connection was made and no earlier piece of the message went out): the row stays `sending`, tried again after 1 and 10 minutes. Each pass is saved. |
| After a restart | One interval after a Worker start, the ticker runs `recover_reports()` once over reports older than that start. `sending` rows under an hour old are resent, at least once; older rows become `failed` with `error` `interrupted`. |

## Runtime state

**State files**

| File | Holds |
| --- | --- |
| `always_on.json`, session directory | `joined_at`, `applied_goal`, `last_check_in_at`, `last_wake` (`at`, `reason`, `outcome`, `cost`, `error`), `wake_step`, `next_wake_at`, `next_wake_kind`, `next_wake_reason`, `check_in` while running (`msg_id`, `execution_id`, `at`, `reason`, `boot`, `head_id`, `updated_at`) |
| `always_on_reports.jsonl`, session directory | `id`, `at`, `kind`, `title`, `body`, `links`, `session_id`, `execution_id`, `deliveries`. Newest 200. |
| `always_on_wake_log.jsonl`, session directory | One row per firing, with its final outcome: `at`, `reason`, `outcome`, `cost`, `error`. A check-in writes its row when it ends. A wake that raises writes `failed`, and a scheduled one retries in 5 minutes. A real file beside the session log, because it is written at every firing. Newest 500. |
| `<agent dir>/always_on/state.json` | `enabled_at` (cleared when off), `spend` (`{date, usd}`) |
| `<agent dir>/always_on/preferences.json` | Report preferences |
| `<state dir>/always_on/handoffs.json` | What the removed handoff tool left, until the Worker moves it ([handoffs](#handoffs)) |

Apart from configuration: wakes never bump the revision or conflict with an editor draft. Written atomically under a lock per conversation, per Agent, or one for handoffs. Deleting a conversation deletes its state and reports.

## Learning and rules

- **Learning**: With Memory set to Read and write on This Agent, the session-end writer extracts preferences and corrections into the Agent's space.
- **Learning**: A posted report never ends writing for its conversation and is not a source itself; a branch whose last user row came from the scheduler is skipped, finished or cut off. What one conversation owes stays in open work. The Always-on tab flags any other memory setting and never changes it.
- **Rules**: Approvals wait as cards with a needs-input notification

## Surfaces

| Surface | Content |
| --- | --- |
| Agents → Always-on tab | Configuration, channel targets |
| Activity row | No group of its own. The work chart's first row is the next wake: an interrupted check-in or a used-up budget first, then quiet hours and the cadence. Before the first run the main agent's row has an **Always-on** line instead. |
| Activity page | Standing goal, current Goal, wake days, quiet hours, last wake with outcome and cost (error and retry when interrupted), today's spending, preferences, reports with kinds and deliveries, Wake now |
| Tasks → Inbox | The sidebar's Tasks row counts it; the tab lists decisions and news ([Tasks page](https://fzkuji.github.io/OpenProgram/docs/reference/design/scheduler/tasks-page.html)). Same list under **Waiting for you** atop every Activity panel. |
| WebSocket | `always_on_report`, `always_on_update`, `transcript_update`, all with `session_id` |
| Python | `openprogram.runtime.conversation.always_on`: `wake()`, `status()`, `report()`, `join()`, `schedule_wake()`, `add_preference()`, `remove_preference()`, `agent_for_session()`, `channel_targets()`; `always_on.handoff_migration.migrate()`; `always_on.schedule.is_quiet()`, `next_allowed()` |

**HTTP and `status()`**

| Endpoint | Effect |
| --- | --- |
| `GET /api/always-on/pending` | `{items}`: conversation, Agent, kind, title, body, time; `task_id` and `task_title` for a scheduled task's result |
| `GET /api/agents/{id}/always-on` | Saved configuration and `channel_targets` |
| `PATCH /api/agents/{id}` | Accepts `always_on` like any section |
| `GET /api/sessions/{id}/work` | Status and reports, with open work and Scheduler tasks |
| `POST /api/sessions/{id}/always-on/wake` | Wake now |
| `POST /api/sessions/{id}/always-on/preferences` | `{text}` adds a preference |
| `DELETE /api/sessions/{id}/always-on/preferences/{preference_id}` | Removes one |
| `POST /api/sessions/{id}/agent` | Switches the conversation's Agent |
| `status()` | Configuration, `running`, `last_wake`, `next_wake_at`, `next_wake_reason`, `quiet_now`, `today_cost_usd`, `preferences`, `reports` |

## Alternatives

| Feature | Grok Bot | dots | Here |
| --- | --- | --- | --- |
| One job per assistant | Each Bot has one job | One personal assistant with a goal | `always_on.goal`, per conversation, finished by verification |
| Works on a schedule | Routines; schedules follow-ups | Proactive research; sets wake-ups | `always_on_schedule`, `wake_minutes`, `wake_days`, `quiet_hours` |
| Looks through what it knows | None listed | Memory, past chats, connected apps | Read tools of a check-in; MCP stays out |
| Speaks first | Messages in the Bot's chat; learns when to ping | Texts the user; per-task notification choice | `always_on_report`, unread dot, per-kind routes, preferences |
| Stays quiet otherwise | Back only for approval | Unwatched background research | Hidden side branch, model-free skips, earlier reports quoted, daily budget |
| Assistants work together | Message and hand off | None listed | `send_message`, hop limit |
| Does little alone | Outgoing mail and Slack wait as drafts | Read-only defaults | `autonomy: "report"`, read-only check-ins; `send_message` and `act` keep permission mode and cards |

**Desktop peers and open-source agents**

| Product | Work while away | Seeing what is scheduled |
| --- | --- | --- |
| Claude Code | Routines on a schedule in the cloud; no standing goal | A list of routines |
| Codex | Persistent mode: goal, status, completion criteria, next check-in written before sleep. Automations run scheduled local tasks. | A list; no calendar |
| DeepSeek Harness | Scheduled tasks plugin (experimental): delay, time, interval of a minute or more, daily, weekly or cron with IANA zone; delivered into the original conversation; only while the app is open; cannot pause. No standing goal or background agent. | A tasks page with delivery records; no calendar |
| OpenProgram | One standing goal per conversation, channels, quiet hours | Tasks page: an Inbox of what needs the user beside the scheduled tasks as a list or a calendar (month, week, day, agenda) with Schedule-X |

- **Open source**: Daimon (MIT; scheduled passes that speak only when it matters), Gobii (per-agent schedules; SMS, email, webhook, cron triggers), aidaemon (daemon with goal scheduling and heartbeats), OpenClaw `HEARTBEAT.md`
- **Followed**: A standing goal is one objective that ends (Codex persistent mode; ChatGPT scheduled tasks, which pair a task with a goal). Where peers are thinner, the choice here stands.
- **Shared shape**: A goal that ends, check-ins by code, reports only with something to say
- **None reused**: Each is a product around one chat channel; the parts here already existed

## Roadmap

Where this design is going, and why. This section describes the target; what has shipped is listed under Implementation status.

### Principles

| Principle | Meaning |
| --- | --- |
| One setting | An always-on Agent is an Agent that looks after its conversations on its own; never a second kind of object |
| Look, then speak | A look leaves no trace in the conversation; its only output is a short report, and only when something is worth saying |
| Conversation is the unit | The Agent wakes per conversation and never creates one; the user does |
| Outside text is data | Pages, mail and earlier reports never become instructions |
| Cheap and contained | A background look never compacts the owner's conversation, never waits for an approval, and reads a bounded tail |
| One reason per firing | Ran, found nothing, skipped, missed, failed or cut off; the user can see which |
| Promise kept or refused | A shown next wake is real; sent means it will arrive or be reported as failed |
| Stopping means one thing | Archive stops all work from that conversation; off stops always-on work; user-started work continues; undo restores what the stop paused |
| Only a person clears a decision | Automatic turns never clear a waiting decision |
| Measured need first | No new cards, consent gates or panels without one; permission prompts keep shrinking |

### Settled rules

| Topic | Rule | Why |
| --- | --- | --- |
| Check-in cut by a restart | Never resumed; recovery ends it | A check-in is cheap to repeat; cost after the cut is not counted |
| Time limits | Check-in 15 minutes; scheduled run and scheduled command 2 hours, counted from admission and not reset by a restart. `time_limits.stop_overdue` runs on each always-on tick and stops, with reason `time_limit`, every run it can reach; a scheduled run in its own process keeps its own timer. A sub-agent shares its caller's clock; a Retry or Create branch has its own. | Read-mostly check-ins are short; the longest kept scheduled run took 54 minutes, so 2 hours stands |
| Stopped at a limit | A check-in ends `interrupted` with the reason in `last_wake.error`. A run still stopping a minute later is ended without it, its turn slot freed and its own process killed if it has one and the command it was waiting on stopped; one left in the background goes on. A stuck thread ends the same way. A scheduled run or command records a failed run. A command's limit is kept in `running-commands.json`, so the next Worker still enforces it. | Unlike a user's stop, nobody asked for it |
| Handoff from a check-in | Allowed only for the speaker `runtime/always_on` | Scheduled runs are also background turns and stay refused |
| Failed check-in | Restores the last look and the ladder step; restart cuts restore too but do not count toward the notice | One mechanism also covers idle conversations |
| Marker on automatic turns | `automation` on the user row, valued handoff_message (📨), handoff (↩️) or wake | `display` would change rendering |
| Origin of an automatic Goal | Check-in, handoff or scheduled, set from the speaker; the standing Goal keeps its own origin; a user Goal stays empty | Stops, budget and the Goal starter need to tell them apart |
| Unposted reports after restart | Posted once per Worker start if under one hour old | A restart must not extend the existing wait; older reports stay in Activity |
| Delivery rows stuck sending | Resent under one hour; older rows become failed, cut off by a restart | Prevents a flood on the first scan |
| Cron catch-up | Built; deployed after a credential-free rehearsal | Bounded by a lower-bound stamp, and missed rows ship with it |
| Webhook during a run | Answers 409 `previous_run_active`; a watch hash is written only after spawn | The caller can retry and a watch fires again on its next poll |
| Channel-side stop | `/stop` cancels the session's root executions through the execution store, outside the session lock | A channel turn exists only in the execution store until it reaches the session graph |

### Keep, borrow, own

| Area | Keep | Borrow | Ours |
| --- | --- | --- | --- |
| Waking and scheduling | Ladder plus agent-set next wake; model-free skip; claim on disk before start; log-backed state documents; three failures, one message; untrusted event fence | 12-hour catch-up and missed rows from [Maus routines](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/routines.ts); skipped rows from Maus and [OSA routines](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/routines.py); fixed run limit from [OpenDots runner](https://github.com/CopilotKit/OpenDots/blob/HEAD/src/server/runner.ts); failure classes from [Maus recovery](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/routine-recovery.ts) | Durable restart intents; one reason per firing on one surface; a crash matrix at each durable step; a wake log and an alive line; one starter for an automatic Goal left with no runner |
| Proactive reports | Hidden branch with report-only output; three-sentence reports; no expiry card; pending split by what clears it | Maus separation of manners from format; source caption; the only-a-hint warning on read-only markers in [OpenDots connections](https://github.com/CopilotKit/OpenDots/blob/HEAD/docs/CONNECTIONS.md) | Bound-conversation reach; same-finding memory across conversations, quoted only with picked channels; reply routing that mirrors a handoff into the target |
| Long-lived memory and context | Summary as a DAG splice; cited memory with transactional writes; authority on memory sources | Stable step cut and recall by id from [OSA memory](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/memory.py), for the check-in tail; marking cancelled requests and attributing claims from [Maus summaries](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/compaction-summary.ts); routine runs are not memory sources, from [Maus memory](https://github.com/milind-soni/OpenMausBot/blob/HEAD/docs/memory.md) | Background turns never compact on either path and read a bounded tail; one preference list covers check-ins and scheduled runs |
| Identity and team | Durable handoff chains; reports as plain messages; always-on as an Agent setting | Maus ancestor refusal; owed-reply carry-through from [OSA direct messages](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/dm.py); atomic template install from [OSA templates](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/templates.py); handoff messages stay in the Bots' own chats, from [Grok chat](https://docs.x.ai/grok-bot/chat-and-collaboration), applied to delivery turns only | The `automation` marker; failure notes for a target that could not answer |
| Tools, permissions, safety | No card ever waits in a check-in; name-fixed lists excluding MCP and bash; one-shot `hold_outbound`, off by default; the identity gate cannot be widened by mode | Only a person's own line is the request, from [Maus provenance](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/peer-provenance.ts); Maus fencing of earlier output; private-address block from [OSA security](https://github.com/kadaliao/open-super-agent/blob/HEAD/SECURITY.md), for check-ins only | A gate only where read text crosses into a full-power turn, shipped with that crossing; automatic Goals spend from the Agent's daily budget; turns with no window open their own browser tab |
| Channels | Non-delivery reported in the App; files through a recorded tool call | OSA fence-aware split; OSA handling of 401, 404 and 409; `/stop` and `/help` | Connect-only retry rule; durable state reduced to existing report rows; phone reach through chat apps, without a native app |
| Product surface | Visible and deletable preferences; cost per check-in; hidden check-ins | Say what stopping keeps and where it runs, from Maus | One stop rule; a promise is kept or refused |
| Chat form | Stable bubble rule, cap of 4; `--reply-gap` fix; report captions | Nothing; an explicit send tool, fake pacing, the Maus table card and the OpenDots labelled fake user bubble are rejected | A messaging guide with an explicit chat-turn signal; `flatten_tables` for chat apps |

Maus is OpenMausBot and OSA is open-super-agent.

The outside-text gate is a guard against mistakes, not a security boundary: a script interpreter or a find with a delete action can get past bash-text matching. The dangerous-path check narrows exfiltration but does not stop an unlisted secret reaching a public URL.

### How a batch is built

| Rule | Meaning |
| --- | --- |
| Scope | One worktree, one agent, one merge; affected tests only; both language docs updated with each behaviour change |
| Release | Deploy to the development instance, verify there, archive test chats. A batch whose check names a rehearsal or kill-and-resume does that first and is deployed only after it passes. Stable gets it with the next official release |
| Rehearsal | Start the Worker under an empty environment on a copy of the data without `auth/`, keys, `executions.db`, `channels/`, `mcp_tokens/` or `mcp_servers.json`, and drive the tick path, with no new port or profile; assert that no channel adapter started |
| Compare | An old-versus-new page and a yes before code, one page per wave; any behaviour change needs it, not only a visible one; mockups keep the real look |
| Peers | Before borrowing from a peer, pull that clone and read the borrowed file at its latest commit |
| Queue | Batches that change `openprogram/runtime/conversation/always_on/runtime.py` run one at a time, in listed order; other batches in a wave may run in parallel unless the order column names a batch |

[Batches and their status](#implementation-status)

### Weekly routine

| Part | What happens |
| --- | --- |
| Trigger | A recurring task on the stable instance, Mondays at 09:00 local, in one dedicated conversation of the Main Agent. No report on Monday means the Worker or the task is broken |
| Peers | Compare each repository from its recorded baseline to its latest commit, and read the pages listed below. Long compares are read in windows, because one call caps at 250 commits |
| Health | A read-only report that starts nothing and spends nothing: `scripts/testing/always_on_weekly.sh` |
| Update | Rewrite this page in both languages and advance the peer baseline only after the read. Runs in its own worktree and changes nothing else |
| Build | Building a batch and the checks that start processes or spend money happen in a normal session the owner opens from the report |

### Peers to read

| Peer | Pages |
| --- | --- |
| OpenMausBot | [Repository](https://github.com/milind-soni/OpenMausBot); [routines](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/routines.ts), [recovery](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/routine-recovery.ts), [read and draft](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/read-and-draft.ts), [provenance](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/peer-provenance.ts), [summaries](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/compaction-summary.ts), [memory](https://github.com/milind-soni/OpenMausBot/blob/HEAD/docs/memory.md), [approval levels](https://github.com/milind-soni/OpenMausBot/blob/HEAD/docs/approval-levels.md), [reply habits](https://github.com/milind-soni/OpenMausBot/blob/HEAD/server/reply-habits.ts) |
| open-super-agent | [Repository](https://github.com/kadaliao/open-super-agent); [routines](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/routines.py), [events](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/events.py), [direct messages](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/dm.py), [groups](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/groups.py), [memory](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/memory.py), [approvals](https://github.com/kadaliao/open-super-agent/blob/HEAD/osa/approvals.py), [channel adapters](https://github.com/kadaliao/open-super-agent/tree/HEAD/osa/channels), [changelog](https://github.com/kadaliao/open-super-agent/blob/HEAD/CHANGELOG.md), [security](https://github.com/kadaliao/open-super-agent/blob/HEAD/SECURITY.md), [channels](https://github.com/kadaliao/open-super-agent/blob/HEAD/docs/channels.md), [event docs](https://github.com/kadaliao/open-super-agent/blob/HEAD/docs/events.md) |
| OpenDots | [Repository](https://github.com/CopilotKit/OpenDots); [runner](https://github.com/CopilotKit/OpenDots/blob/HEAD/src/server/runner.ts), [store](https://github.com/CopilotKit/OpenDots/blob/HEAD/src/server/store.ts), [agent](https://github.com/CopilotKit/OpenDots/blob/HEAD/src/server/dot-agent.ts), [connections](https://github.com/CopilotKit/OpenDots/blob/HEAD/docs/CONNECTIONS.md), [security](https://github.com/CopilotKit/OpenDots/blob/HEAD/SECURITY.md), [readme](https://github.com/CopilotKit/OpenDots/blob/HEAD/README.md) |
| Grok Bot | Official: [routines](https://docs.x.ai/grok-bot/skills-routines-and-automations), [chat](https://docs.x.ai/grok-bot/chat-and-collaboration), [approvals](https://docs.x.ai/grok-bot/approvals-security-and-privacy), [how it works](https://docs.x.ai/grok-bot/how-grok-bot-works), [settings](https://docs.x.ai/grok-bot/settings-and-notifications), [mobile](https://docs.x.ai/grok-bot/mobile), [changelog](https://x.ai/changelog/bot) |
| OpenAI Dots | Official: [release notes](https://learn.chatgpt.com/docs/whats-new/dots-october-28-2026), [FAQ](https://help.openai.com/en/articles/20001529), [getting started](https://help.openai.com/en/articles/20001530-getting-started-with-your-dot), [workspaces](https://help.openai.com/en/articles/20001554-managing-dots-in-chatgpt-workspaces). Third-party: [NYU](https://rits.shanghai.nyu.edu/ai/openai-dots-always-on-agents/), [DataCamp](https://www.datacamp.com/blog/openai-dots). Facts read only from excerpts are labelled so |

### Health report

| Read | From | Acts on |
| --- | --- | --- |
| Firings by outcome per Agent | Wake log and task runs | Rising failed or cut-off |
| Cost per check-in and per day, budget stops | `last_wake` and daily spend, including automatic Goals | An Agent above its usual, or prompts above the bounded tail |
| Unsettled restart intents, runs paused with no intent | Execution store | Must be 0 after batch 1 |
| Delivery rows sending for over an hour | Report rows | Must be 0 after batch 39 |
| Longest scheduled run and check-in | Executions | Input to the batch 41 limits |
| Reports against nothing-new | Report rows | Reports over half of looks suggest noise |
| Stored handoffs not yet moved | `handoffs.migrated.json` | Any entry still pending after a Worker start |
| Watch-list triggers | The watch list on this page | A trigger met moves the item into the plan |

### Checks that start processes or spend

| Check | Result |
| --- | --- |
| Always-on, scheduled-run and crash-matrix tests | Any failure blocks new batches |
| Credential-free tick rehearsal | Any unexpected firing blocks new batches |
| Live smoke test, which spends model cost | Any failure blocks new batches |

### Updating this page

| Step | What to do |
| --- | --- |
| 1. Done | Mark merged batches done and remove their bugs from the list. |
| 2. New bugs | Add confirmed bugs in severity order. A bug needs a code path, a fix and a test; otherwise it goes under open questions with the test that settles it. |
| 3. Peer changes | For each peer change that touches an area, rewrite that area's row in place, in both languages. |
| 4. Baseline | Advance the peer baseline and pull the clones to match. |
| 5. Next week | Pick next week's batches: open bugs first, then the next wave in order, at most one Compare page per wave. |
| 6. Report | Report in plain words, in one verdict: what is done, what is left, what needs a yes. |

### Left out

| Left out | Why |
| --- | --- |
| Resuming check-ins after restart | A look is cheap to repeat |
| A 24-hour limit on everything paused | Breaks background sub-agents |
| Event receipts, dedupe and queue | No bug or measured loss; a dedupe would lose a retry after a 409 |
| Durable inbound queue, general outbox | No confirmed bug; replay could double-run, because dedupe lives only in memory |
| Native mobile app, push relay, Grok-style desktop suppression | Chat apps reach phones; a new service has no measured need |
| Inline channel buttons | Three adapters and Slack interactive events; numbered choices work |
| 30-minute approval expiry cards | Adds approval machinery against the fewer-prompts direction |
| Global pause, long-absence auto-pause | Off and archive already stop |
| Auto-created conversations for a handoff | The user creates conversations; a new one would start paid wakes |
| Run retention and node deletion | The log only appends, so the gain is tiny until a log rewrite exists |
| Grok's rate ceiling | Our cap is money and already exists |
| Send tool, split marker, fake pacing | Six delivery paths; pacing simulates time that never passed |
| Report fold, line-safe report split | Saved reports are short and it would touch shared transport |
| Model-authored widgets, table cards, read cursor, New divider, avatars, receipts | New surface with no need |
| Live model-graded prompt evaluation | Contract and unit tests first |
| A separate bot object, a second roadmap document | One concept, one document |
| Peers beyond the five named | Out of scope |

### Watch list

| Item | What it would do | Trigger |
| --- | --- | --- |
| Read-only connected tools in check-ins | A per-tool read-only marker, limited to report mode or an explicit Agent setting | A user asks, or a recorded check-in lacked a connected tool |
| Weekly idle check-in | Looks within 30 days of the last user message, with research on | A user reports a missed finding in an idle conversation |
| One document per report | Stops rewriting the whole report document into the log | Report state above 1 MB in one conversation, or a measured slow write |
| Memory expiry, tidy pass | Maus-style tidying | Memory size measurably hurts prompts |

## Implementation status

| Not implemented | Detail |
| --- | --- |
| Cloud computer per conversation | Work runs on this machine with the conversation's folder and sandbox |
| Reply to a busy sender | A reply whose sender stays busy for ten minutes is dropped; the answer stays in the target conversation |

All else above the Roadmap section is implemented. A paused turn blocks wakes by design, so a check-in must never reach a tool that waits on the owner.

**Checked on a running instance**

- A standing goal starts a Goal; later wakes report `goal_in_progress`, then `idle` when done.
- A check-in told to always report called only `always_on_report`, wrote the report and set the unread dot on a closed conversation.
- Quiet hours over the present make `quiet_now` true and move the next wake to their end, while Wake now runs.
- A handoff reaches its target and the reply returns.

### Roadmap status

| Topic | State |
| --- | --- |
| Built so far | Batches 1 and 2 are built and await their rehearsal; batches 3 to 5 are built, and batch 5 awaits a real check-in with `autonomy: "act"`; batch 6 is built and awaits a check-in on a long real conversation; batch 7 is built and awaits one scheduled run |
| Chat and channel batches 8 to 10 | Batch 8 is built and awaits an owner turn after a report; batch 9 is built; batch 10 is built and awaits archive and off with a test Goal |
| Chat and channel batches 25 to 31 | Batch 25 is built; batch 26 is built and awaits a real Telegram message during an App turn; batches 27 to 29 are built; batch 30 is built and awaits a real Telegram voice note; batch 31 is built and awaits a message in a real Slack thread or Telegram forum topic |
| Visible product batches | Batches 48 to 51, 53, 54, 56 and 63 are built; batch 57 is built and awaits its first Monday report; batch 60 is built and awaits a look at an empty always-on chat; batch 61 is built and awaits a look at the channels settings page |
| Delivery and limit batches | Batches 39 and 42 are built and await their rehearsal; batch 40 is built and awaits a real chat app check; batch 41 is built and awaits a real overrun; batch 43 is built and awaits a real Telegram check; batches 44 and 45 are built |
| Scheduler batches | Batch 16 is built and awaits a webhook answered 409 during a real run; batch 18 is built; batch 19 is built; batch 55 is built; the Status column of the batch table is the record for every batch, and the Roadmap section describes the target for those not built |
| Peer knowledge | Citations are to each peer's recorded baseline. Later Maus and OSA changes were read only by commit titles and named diffs, and about 255 Maus commits are unread |
| Unverified sources | OpenAI's own Dots pages may refuse direct fetches; no decision rests on an unverified source alone |
| Moved or merged | Batch numbers are stable ids. 46 merged into 5; 58, 59 and 62 moved to the watch list |

### Open bugs

#### Critical

| ID | Bug | Where | Fix | Test | Batch |
| --- | --- | --- | --- | --- | --- |
| A01 | A restart intent exists only in memory, so a paused run never continues | `execution/recovery/restart.py` `store/run_tables.py` `execution/control/recovery.py` | Log requested and settled events; clear them in the self-update copy; at start, end scheduled runs and check-ins paused with no open intent; chats stay paused | Process reload: the intent survives and recovery continues; a stuck run ends; a stuck chat stays | 1 |
| A02 | The busy gate is held by the run's own parent and by ownerless rows | `execution/recovery/restart.py` `process_owner.py` | Ignore ancestors; ignore ownerless rows only while pausing or cancelling | Parent running, child paused: continues. Ownerless pausing: continues. Queued sibling: blocks | 2 |

#### High

| ID | Bug | Where | Fix | Test | Batch |
| --- | --- | --- | --- | --- | --- |
| A03 | A check-in cut by a restart can resume or finish as nothing new | `permissions/authority.py` `execution/control/recovery.py` `execution/recovery/restart.py` `always_on/runtime.py` | Recovery gives up on the check-in speaker after the paused check; the check-in skips finishing when the run has not ended | Crash and graceful: terminal, no continue, one last wake | 1 |
| A04 | A model-written attachment marker uploads any local file | `channels/inbound/_conversation.py` `state/attachments.py` `channels/delivery/_transport.py` `conversation/bound_reply.py` | Upload only files recorded by a tool call, with no prompt | A marker naming an SSH key uploads nothing; a file-send result still uploads | 3 |
| A05 | A fetched page can write an Agent-wide rule | `always_on/runtime.py` `permissions/auto_mode/classifier.py` `always_on/store.py` | Remove the preference tool from the check-in tool list | Name absent from the turn's tools | 4 |
| A06 | A check-in can read any file and reach private addresses | `files/read.py` `web/_owner_fetch.py` `state/settings.py` `files/file_safety.py` `permissions/rule.py` | No owner access for the check-in speaker; split the dangerous-path check out and run it before the unattended return, also for grep and glob paths | Localhost and an SSH key refused, also through grep; an unlisted outside file reads; owner turn unchanged | 4 |
| A07 | Handoff is always refused in a check-in | `always_on/runtime.py` `send_message/send_message.py` | `send_message` is in the act tool list; its turns take the outside-text gate | A check-in sends; spawned and scheduled turns are refused | 5 |
| A08 | A Goal started by a check-in runs crippled and wedges wakes. A conflict, a restart cut and a scheduled run each leave an active Goal with no runner. Once fixed, its model-written text reaches a full-power turn | `goal/chat.py` `always_on/runtime.py` | A background finish returns early. Wake starts an automatic Goal left with no runner, once, catching the conflict; a busy session retries. Finishing a check-in that leaves one sets the next wake to now. Its turns carry the outside-text gate | Next request is an owner turn with default tools. Cut-off, scheduled and conflict cases each start once. No double start between turns. A user Goal is not started. Page scripts and destructive deletes refused | 5 |
| A77 | Goals started by automatic turns have no spending limit | `always_on/runtime.py` `goal/chat_tools.py` `goal/state.py` | With a daily budget set, these Goals get the remaining budget as their limit and start nothing at 0; their cost joins the daily spend | Budget 5, spent 3: limit 2. Goal cost appears in daily spend. Budget spent: no start | 5 |
| A09 | A hidden check-in compacts the main conversation, on a wrong measure and through the overflow path | `always_on/runtime.py` `turn_runtime/prep.py` `context/token_accounting/usage.py` `turn_runtime/loop_runner.py` `context/engine.py` `turn_runtime/__init__.py` | Never compact a background turn, shipped with the bounded tail; on overflow it ends interrupted | No summary node after an over-budget check-in; overflow ends interrupted | 6 |
| A10 | Scheduled and clean runs receive the whole conversation | `context/engine.py` `turn_runtime/loop_runner.py` | Respect an empty history override | Replace the skipped test; run job and sub-agent tests | 7 |
| A11 | One posted report ends memory writing for the conversation | `always_on/runtime.py` `memory/policy.py` | A policy-less row with a report stays eligible; rows already stamped stay ineligible | Self-space Agent, report, owner turn: eligible and write permitted | 8 |
| A12 | A scheduled turn's report is never pushed or seen | `cron/worker.py` `process_runner.py` `runtime/interface_link.py` | No report tool on a scheduled request | Tool absent on a scheduled request | 7 |
| A13 | A check-in report never reaches a bound chat app; the channel setting is ignored for results | `always_on/runtime.py` `channels/delivery/bound_reply.py` | Add the bound target for reports; gate both routes on the channel setting; picked channels stay out of scheduled results | Bound, no picks: delivered once. Channel setting off: none | 14 |
| A14 | Archive or off does not stop a running Goal | `session/lifecycle.py` `always_on/ticker.py` `goal/chat.py` `always_on/runtime.py` | Pause automatic Goals under the session lock and restore them on undo; reschedule a past next wake | Archive: no next turn; unarchive resumes; user Goals untouched; a past wake is not due | 10 |
| A15 | A failed, stalled or budget-stopped Goal silently blocks wakes | `goal/chat.py` `always_on/runtime.py` | Auto-resume automatic Goals after a failed execution or restart policy, at most three in a row; otherwise one approval report and check-ins run; a user Goal is never resumed | Parametrised by status and origin. User Goal failed: no restart, check-ins run. User pause stays silent | 11 |
| A16 | Scheduled tasks in archived conversations run and nobody hears | `cron/worker.py` `always_on/runtime.py` | Skip before the task branch is prepared, and log the skip | Archived: no turn request, claim kept | 17 |
| A17 | Automatic turns clear a waiting decision; turning off empties Pending | `always_on/pending.py` `turn_runtime/prep.py` `conversation/turn_admission/owner_turn.py` `turn_runtime/finalize.py` | Skip runtime rows and any automation mark; keep Agents that have always-on state; the ladder skips automation too | Approval then handoff or continuation stays, also after 24 hours; a real message clears it; disabled Agent listed | 15 |
| A18 | A self-scheduled look does nothing when check-ins are off | `always_on/runtime.py` `always_on_schedule.py` | Refuse in plain words when research is false | Refused, state unchanged | 12 |
| A19 | Picking a channel strips every conversation of that account | `chat/conversation_channel.py` `channel-choices.ts` | Evict by peer when both sides have one; otherwise keep account-level eviction | Two peers: other binding kept. A peerless binding and a new one: one owner | 25 |
| A20 | Channel turns and typed App turns overlap | `channels/inbound/_conversation.py` `goal/chat.py` `foreground.py` `session_lifecycle.py` `run_control/turns.py` | Reserve inside the session lock, wait a bounded time, then a visible busy reply; ambient events do not wait | Inbound during an App turn waits then says busy; a typed message during a channel turn is refused | 26 |
| A21 | An attachment message is overtaken by later text | `channels/base.py` `channels/inbound/_conversation.py` | First-in-first-out only for download and dispatch; every room command bypasses it; a new-session command gets a bounded wait and the busy reply | Slow download then text: order kept. New-session command answers busy within the bound | 27 |
| A22 | A paused handoff turn sends an empty reply and the real answer never returns | `turn_runtime/loop_runner.py` `turn_runtime/__init__.py` `always_on/handoff_migration.py` | Return early on the safe-point marker; a message is a Job whose notice carries the final reply; a stored paused turn becomes a watch (`notices.watch`) | Answer after approval: the real text returns once | 21 |

#### Medium

| ID | Bug | Where | Fix | Test | Batch |
| --- | --- | --- | --- | --- | --- |
| A23 | A failed or cut-off check-in counts as a look and nobody hears | `always_on/runtime.py` `turn_runtime/__init__.py` | Save the previous stamp and step, restore on error; notice on the third failure or at once for auth; restart cuts are not counted | A failed check-in does not count; three failures, one message; backoff resumes after the notice | 13 |
| A24 | A handoff waiting on a busy target or sender is lost at restart | `always_on/handoff_migration.py` `send_message/delivery.py` | A busy target's message waits in its inbox and on its Job; a stored waiting entry is delivered from the Worker's ticker start under a Job id fixed by the entry | Restart while waiting: one delivery | 22 |
| A25 | A cut-off handoff never resumed loses its reply and corrupts another chain | `conversation/turn_admission/restart_turn.py` `turn_runtime/__init__.py` `always_on/handoff_migration.py` | Each delivery is its own Job, settled from its own outcome; a stored running entry becomes a watch on its own conversation | Second restart, unrelated resume: no owed reply is sent | 22 |
| A26 | No wall-clock limit on a scheduled run or check-in | `cron/worker.py` `always_on/runtime.py` | Check-in 15 minutes; scheduled and command runs 2 hours; resumed runs included | Fake clock: stopped and the last wake says why; a resumed run also stops | 41 |
| A27 | Recurring tasks lose a firing at restart and at spring-forward | `cron/worker.py` | Catch-up | Listed under the batch | 42 |
| A28 | A failure before the turn starts is never counted | `cron/worker.py` `production_driver/shared.py` | Wrap activation; report failed only with no admission or a terminal execution; record through the run ending | Lease raises: one failed row, count up by one. Pause wins before activation: no type error | 16 |
| A29 | Watch and webhook events are consumed then dropped | `cron/worker.py` `scheduler/hooks.py` | A distinct skipped result answers 409 and keeps the claim; the watch hash is written after spawn | Second event during a run: 409, hash unchanged | 16 |
| A30 | The overlap guard is lost at restart | `cron/worker.py` `scheduler/run_finish.py` | Read the execution store | Worker reload with a live child: skipped | 17 |
| A31 | A scheduled result is recorded but never told | `scheduler/run_finish.py` `cron/worker.py` | Report first; cap retries at five; check and add the row under the store lock | Report raises: retried, stops at five. Race: one row | 18 |
| A33 | A budget is exceeded by any amount and never trips on unpriced models | `always_on/runtime.py` `always_on/ticker.py` | With a budget set, start nothing while another check-in of that Agent is unsettled; retry in five minutes; add an unknown-cost note | Three due with a budget: one start. Without: three | 50 |
| A34 | A reply is lost to A because A to B to C stops at B | `always_on/handoff_migration.py` `jobs/notices.py` | Each answer returns to its own sender as a notice; a stored owed reply becomes a relay (`notices.hold_reply`) | C's answer reaches A through B | 23 |
| A35 | A failed target turn is reported as no answer text | `error_path.py` `runner/progress.py` | The notice reports the failure with its reason | A failed target: the sender sees why | 21 |
| A36 | The hop limit escapes through a Goal; fan-out is unlimited | `goal/chat.py` `send_message/depth.py` | A hop count, a rolling send cap and refusal of a conversation waiting up the chain | Goal hop refused above the cap | 23 |
| A37 | A reply on a chat app to a report has no context there, and the approval stays waiting | `always_on/delivery.py` `always_on/pending.py` | Copy the report into the channel's conversation when one exists; a reply there answers it | The channel's conversation shows the copy once | 40 |
| A38 | One long report erases earlier reports from the prompt, and they are unfenced | `always_on/runtime.py` | Cap each line at 100 characters and fence them as data | All 20 titles fit and stay within the budget | 4 |
| A39 | A background write discards a paid compaction | `compaction/view.py` `context/engine.py` | Recompute the context and require the same ids, equal nodes and head | Side branch installs; covered-node change and concurrent summary refuse | 9 |
| A40 | The snip fallback does nothing and reports success | `turn_runtime/loop_runner.py` | Remove the new-turn snip | No snip event on that path | 9 |
| A78 | Overflow recovery snips, is ignored and retries at the same size, skipping real compaction for normal Agents | `compaction/reactive.py` `context/engine.py` `turn_runtime/__init__.py` | Remove the first reactive step and go straight to compaction | Overflow with several turns installs a summary and the retry is smaller | 9 |
| A41 | The idle memory pass feeds scheduled branches to the writer | `session_watcher.py` `memory/writing.py` | Skip a head whose last user row came from the scheduler | Over threshold, complete and cut-off: both skip | 8 |
| A42 | Report runs between two user messages cannot be compacted | `compaction/summarize.py` | Reports are compaction boundaries, keeping the first boundary whose tail fits | As audited, plus the next-turn case | 9 |
| A43 | Delivery shows sending forever; failures are never retried; a waiting report is lost at restart | `always_on/delivery.py` `always-on-labels.ts` `channels/delivery/_transport.py` | Boot sweep under the one-hour rule; retry connect failures at 1 and 10 minutes; post when free | The sweep is idempotent; an older row fails; a non-connect error is not retried | 39 |
| A44 | A background window swallows the dot and clears news | `session/lifecycle.py` `runtime/interface_link.py` `always_on/runtime.py` `app-shell.tsx` | A separate per-socket hidden flag read only by the on-screen check; reconnect resends it | Hidden: not on screen; disconnect signal unchanged | 48 |
| A45 | No desktop notification with no App connected | `always_on/runtime.py` `use-ws.ts` `scheduler/reminders.py` | A fallback using the attention result; skip when on screen | No answer: once. Answer or desktop notice off: none | 49 |
| A46 | A Try draft becomes a real always-on conversation | `always_on/runtime.py` `always_on/ticker.py` `session_store/service.py` | Index the field, reject in the owner lookup, re-check before due | A trial is neither joined nor woken, including a stale index row | 12 |
| A47 | Wake now erases a self-set wake; the self-wake marker is cleared | `always_on/runtime.py` | Guard the record and keep the reason on those paths | A self-set future wake is unchanged after a manual wake | 12 |
| A48 | The refusal for held or rule-gated calls gives impossible advice | `permissions/refusal.py` `permissions/policy.py` | Held: put the full draft in the final message. Rule: name the rule | Neither text suggests an unrestricted mode | 20 |
| A49 | Splitting cuts inside code blocks | `channels/delivery/_transport.py` `channels/delivery/_format.py` | Fence-safe chunks, sized below the limit | An over-limit code block reopens its fence | 28 |
| A50 | WeChat spins on non-2xx | `implementations/wechat.py` | Sleep and back off for non-2xx only | Non-2xx: backoff applied | 29 |
| A51 | Telegram voice, audio, video and animation are dropped | `implementations/telegram.py` | Accept them; voice goes through the speech link | Voice with a caption keeps both | 30 |
| A52 | A failed attachment vanishes when the message has text | `channels/base.py` `channels/inbound/_attachments.py` | Add a failure note | Text plus failed download: note in the turn | 30 |
| A53 | A revoked Telegram token loops forever | `implementations/telegram.py` `channels/base.py` | Return on 401 and 404; 409 keeps retrying | 401: the adapter stops | 29 |
| A54 | Discord replies can ping everyone | `channels/delivery/_transport.py` | Empty allowed mentions on all three payloads | Payload asserts | 28 |
| A55 | Unprocessable Telegram images fail | `channels/delivery/_transport.py` | Retry as a document only on a format or unknown error | Timeout: no duplicate | 28 |
| A56 | Listing Agents is refused in Ask, Accept-edits and Plan check-ins | `always_on/runtime.py` `permissions/auto_mode/classifier.py` | Add it to the safe list | Allowed in ask; contract that every check-in tool allows | 4 |
| A79 | Read in the code, not run: with durable intents, a later check-in or scheduled run can mark a user's paused chat as superseded | `execution/recovery/restart.py` `run_control/turns.py` | Exclude executions whose request speaker is the always-on or scheduler runtime | Paused chat, then a check-in and a scheduled run: continues. A later user turn: superseded | 1 |

#### Low

| ID | Bug | Where | Fix | Batch |
| --- | --- | --- | --- | --- |
| A57 | One exception in the due scan ends the tick | `always_on/ticker.py` | A guard per session | 19 |
| A58 | Budget midnight overwrite | `always_on/runtime.py` `always_on/store.py` | Keep the newer day | 19 |
| A59 | Stale docstrings still say a day | `always_on/ticker.py` `always_on/runtime.py` | Correct them | 19 |
| A60 | Command exit and watch failures are invisible | `cron/worker.py` | Record through the run ending | 16 |
| A61 | A fired one-shot never refires after an edit; a crash before spawn loses it | `cron/worker.py` `cron/cron.py` | Clear state on edit; honour the starting state | 17 |
| A62 | An archived conversation can be woken by a handoff | `send_message/addressing.py` | An archived conversation is refused when addressed | 23 |
| A63 | A half-installed built-in stays blank | `agent_registry/builtin_agents.py` | Delete on exception | 24 |
| A64 | Built-in text contradicts behaviour | `agent_registry/builtin_agents.py` | Rewrite | 24 |
| A65 | Check-ins ignore the web choice | `always_on/runtime.py` `model_tools.py` | Respect it and update the design row | 24 |
| A66 | History search returns oldest hits and hidden prompts | `store/session/reading/search.py` | Match content, exclude merged and task branches, sort across sessions, then limit | 44 |
| A67 | Check-in recall searches its own boilerplate | `turn_runtime/prep.py` | Its own recall query | 44 |
| A68 | The report document is rewritten whole into the log | `always_on/store.py` | One document per report | Watch list |
| A69 | Report append races on head | `always_on/runtime.py` `session_store/messages.py` | An atomic head-and-append store method | 39 |
| A70 | Daily labels; runs-at-once is untrue; Discard keeps budget text | `always-on-panel.tsx` `always-on-row.tsx` `lib/agents/always-on.ts` `agents-page.tsx` | Correct them | 51 |
| A71 | Thread is ignored by sends and typing | `channels/inbound/_active_turns.py` `interaction/chat_send.py` `channels/base.py` `channels/inbound/_conversation.py` `runtime/channel_link.py` | Pass the thread id | 31 |
| A72 | An empty mention starts a turn | `channels/base.py` | Check after quoted text and pending history | 30 |
| A73 | An edit after restart starts a new turn | `implementations/telegram.py` | Ignore edits older than start | 29 |
| A74 | Slack thread broadcast is ignored | `implementations/slack.py` | Handle it | 29 |
| A75 | Telegram errors lose their reason | `channels/delivery/_transport.py` | Keep it | 28 |
| A76 | The WeChat cursor is not atomic | `implementations/wechat.py` | Private atomic write | 29 |

Refuted, not to be rebuilt: background sub-agents outliving their parents is by design; state documents are log appends, so a whole-file JSON write would break them; a bound channel hears every turn. A32 merged into A08.

### Wave 1: restart, security, context

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 1 | Durable restart intents; a check-in is never resumed; a later check-in cannot supersede a user's paused chat | Rehearsal; kill and resume on dev | Queue; before 2 | Built; rehearsal pending |
| 2 | Restart gate ignores the run's own ancestors and ownerless pausing rows | Rehearsal | After 1 | Not started |
| 3 | Channels upload only files recorded by a tool call | Unit tests | With 26, 37 | Built |
| 4 | Check-in tools are safe: no Agent-wide rule from a page, no private addresses or dangerous paths, earlier reports fenced and capped per line | Unit tests; one real check-in | Queue; before 33 | Built; real check-in pending |
| 5 | Check-ins can hand off and start Goals that really run, with origins, a text gate and the daily budget | Real check-in in act mode; Compare | Queue; before 11 | Not started |
| 6 | Background turns never compact, on the normal or the overflow path, and read about 16k tokens of tail | A long real conversation | Queue; before 7, 9, 33 | Built; long-conversation check pending |
| 7 | Clean runs get a clean history; scheduled runs have no report tool | One scheduled run | After 6 | Not started |
| 8 | Memory writing stays on after a report; scheduler branches are excluded | An owner turn after a report writes memory | None | Built; real owner turn pending. Conversations already stamped stay ineligible |
| 9 | Compaction correctness: side-branch summaries install, reports are boundaries, overflow does real compaction | Unit tests | After 7 | Built |

### Wave 2: stops and promises

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 10 | Archive and off really stop automatic Goals; undo restores them | Archive and off with a test Goal; Compare | Queue; after 5 | Built |
| 11 | A failed, stalled or budget-stopped Goal no longer blocks wakes silently | Forced failure on dev; Compare | Queue; after 5, 10 | Built |
| 12 | Self-scheduled looks refuse when check-ins are off; Try drafts never wake; Wake now keeps a self-set wake | Unit tests | Queue | Built |
| 13 | A failed check-in does not count as a look; a notice on the third failure | Expired key on dev; Compare | Queue; before 41 | Built |
| 14 | Reports reach the bound chat; notification settings are honoured | One real Telegram report | Queue | Built |
| 15 | Pending stays true: automatic turns do not clear a decision, turning off does not empty it | Unit tests; Compare | Before 21, 22 | Built |

### Wave 3: scheduler honesty

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 16 | Skips and failures before the turn are recorded; webhooks answer 409 during a run | Webhook during a run; Compare | Before 17, 42 | Built; webhook check pending |
| 17 | Overlap guard survives restart; archived tasks skip; edited one-shot tasks can fire | Rehearsal; Compare | After 16 | Done; rehearsal pending |
| 18 | A scheduled result is told first, with bounded retries | Unit tests | None | Built |
| 19 | One bad session cannot end the tick; budget keeps the newer day | Unit tests | Queue | Done |
| 20 | Refusals for held or rule-gated calls give advice that can be followed | Unit tests | Before 54 | Done |
| 55 | A bounded wake log records one outcome per firing | Unit tests | Queue | Done |

### Wave 4: handoffs and built-ins

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 52 | Pristine built-ins update; edited ones stay | Rehearsal; Compare | Before 24, 33 | Built; rehearsal pending |
| 21 | A paused handoff returns its real answer once; a failed target says why | Handoff needing an approval on dev | After 15 | Built; live check pending |
| 22 | Waiting handoffs survive restart; cut-off handoffs settle only their own chain | Rehearsal | After 1, 21 | Built; rehearsal pending |
| 23 | Replies carry through long chains; hop limit holds through Goals; archived conversations are not woken | A to B to C on dev | After 22 | Built; live check pending |
| 24 | Built-in installs are atomic, their text matches behaviour, check-ins respect the web choice | Unit tests | Queue; after 52 | Built |

### Wave 5: channel fixes

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 25 | Picking a channel evicts only the same peer | Unit tests; Compare | None | Built |
| 26 | Channel and typed App turns no longer overlap; a busy reply is visible | Real Telegram message during an App turn; Compare | With 3, 27, 37 | Built; live check pending |
| 27 | Attachment messages keep their order; commands do not queue behind them | Unit tests | After 26 | Built |
| 28 | Transport: fence-safe split, no accidental mentions, image fallback, kept error reasons | Unit tests | Before 39 | Built |
| 29 | Adapters: WeChat backoff and atomic cursor, Telegram stops on a revoked token and old edits, Slack thread broadcast | Unit tests | Before 30 | Built |
| 30 | Telegram voice, audio and video accepted; failed attachments noted; empty mentions ignored | Real voice note | After 27, 29 | Built; live check pending |
| 31 | Thread id reaches sends and typing | Unit tests | After 26, 27, 28 | Built; live check pending |

### Wave 6: chat form

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 32 | Spacing and the view-switch transition | Measured in several themes; Compare | None | Built; live check pending |
| 33 | Prompts, messaging guide, built-in wording, file cards, scheduled quiet judgement | A pristine built-in picks up the prompt; Compare | Queue; after 4, 6, 7, 24, 52 | Done; pristine built-ins follow with 52 |
| 34 | Stable bubbles while streaming | Every streamed prefix keeps the count; Compare | Before 35 | Done |
| 35 | Live state: working dots, restart join, failure lines, citations, images | Kill and resume on dev; Compare | After 34 | Built; kill and resume pending |
| 36 | Report captions, source and title | History reload, recycled rows, view switch; Compare | Queue; before 39, 40 | Built; live check pending |
| 37 | Channel form: flattened tables, table hold while streaming | One real delivery; Compare | After 26, 31 | Built; live check pending |
| 38 | Theme token for the bubble. The speaker gap stays: 6 px inside a reply against 17 and 29 px at a speaker change | Several themes; blue and white unchanged; Compare | None | Built; live check pending |

### Wave 7: durable delivery and limits

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 39 | Report recovery: stuck rows resolve, connect failures retry, waiting reports survive restart | Rehearsal; Compare | Queue; after 28, 36 | Built; rehearsal pending |
| 40 | Reports are copied into the channel's own conversation; 📨 turns stay quiet in bound chats | Unit tests; Compare | Queue; after 15, 36 | Built; real chat app check pending |
| 41 | Wall-clock limits: check-in 15 minutes, scheduled and command runs 2 hours | Read the longest kept runs first; Compare | Queue; after 13, 17 | Built; live check of a real overrun pending |
| 42 | Cron catch-up within 12 hours, otherwise a missed row | Rehearsal counting what would fire; Compare | After 16, 17 | Built; rehearsal pending |
| 43 | `/stop` and `/help` act at once in chat apps | Real Telegram; Compare | After 27 | Built; real Telegram check pending |
| 44 | History search returns the right hits; check-in recall has its own query | Unit tests; Compare | Queue | Built |
| 45 | Preferences reach scheduled runs; two summary rules | Unit tests | With 42 | Built |
| 47 | Turns with no window open their own browser tab | Unit tests; Compare | None | Built |

### Wave 8: visible product

| # | Result | Verify | Order | Status |
| --- | --- | --- | --- | --- |
| 48 | A background window no longer swallows the unread dot | Unit tests; Compare | Before 49 | Built |
| 49 | Desktop notification with no App connected | Unit tests; Compare | Queue; after 48 | Built |
| 50 | Budget: one check-in at a time when a budget is set; unknown-cost note | Unit tests; Compare | Queue; after 19 | Built |
| 51 | Correct wording, plus what stopping keeps and where it runs | Compare | After 10 | Built |
| 53 | A handoff can address an Agent by name, id or conversation | Unit tests; Compare | After 23 | Built |
| 54 | A checkbox for holding outbound calls, default off | Compare | After 20, 51 | Built |
| 63 | An alive line in Activity | Mockup and compare | After 55 | Built |
| 56 | Crash matrix at claim, intent, report row and delivery | The matrix itself | After 2 | Built |
| 57 | The weekly routine: read-only report, checks, peer baseline, live smoke test | First Monday report | None | Built; the Monday task is created on the stable instance |
| 60 | Empty chat intro: ALWAYS-ON spelled once in glyphs, no text to click | Mockup and compare | None | Built |
| 61 | Connection status in plain words | Mockup and compare | None | Built; awaits a look at the channels settings page |

Queue means the batch waits its turn on `openprogram/runtime/conversation/always_on/runtime.py`.

### Open questions

| Question | Settled by | Batch |
| --- | --- | --- |
| Does a resumed parent wait on a paused blocking child? | Settled: no. The agent call it was in comes back as interrupted instead of waiting again. A caller still waiting hears as soon as the child is paused, and the tool reports that the agent stopped | 2 |
| Should a blocking child of a dead parent end? | Settled: yes, when no run above it is left and its caller was waiting on it. A background Job goes on | 2 |
| Can a check-in mark a user's paused chat as superseded? | Read from the code, not reproduced; its test decides | 1 |
| Are scheduled runs offered handoff? | Assert the refusal path | 5 |
| Does a scheduled child call the report tool across processes? | Closed by removing the tool | 7 |
| Is post-approval text forwarded for a paused reminder wake? | Test | 21 |
| Do remote images load in report bodies, and does Telegram preview links? | Checked during the batch | 36 |
| Is a stopped-empty placeholder head reachable? | Settled: yes, when the owner stops a killed turn. It stays in the chain and no longer reaches the model as an empty reply | 56 |
| Did the sub-agent finish fix remove the cause of the stuck scheduled run? | Settled: yes. The crash matrix replays a scheduled turn starting a sub-agent and a turn written over after it ended | 56 |
| Do handoff turns reset the ladder? | Covered directly by the automation skip | 15 |
