Skip to content

[Tracking] Personal assistant / Always-on Bot capability inventory for the rust-preview switch #6413

Open

Description

@liugddx

Tracking issue for the "written capability list" switch condition in #6366 ("each capability on main that people rely on is either available or explicitly dropped").

This is a draft inventory of the personal assistant / Always-on Bot capabilities, compiled by reading main at ed3f91707 and rust-preview at 3f60d59d5. It is meant to be corrected in the comments, not treated as a decision. Related discussion: #6076, #6366.

Summary

37 items: 19 rebuild on rust-preview, 11 fold into an existing mechanism, 3 already equivalent, 4 suggested to drop. The gaps cluster in three areas: IM channels, the Inbox plus a long-lived Bot worker, and assistant-specific features (memory index, discovery, desktop UI). WorkHub's backend and the scheduler already exist on rust-preview.

How to read this

  • Dispositions are suggestions. Every "drop" needs maintainer confirmation. I have no usage data, so "people rely on it" is not established for any row.
  • "Already equivalent" is judged from module responsibilities, not a behavior-by-behavior comparison.
  • Effort (S/M/L) is a rough guess from size and complexity, not a design review.
  • Where a capability lands (Agent crate vs a separate plugin) is deliberately left open, see the plugin-API note in [DISCUSS] From task execution to an Always-on Agent harness #6076.

Path shorthand: A=packages/runtime-host/src/assistant, B=packages/runtime/src/bots, D=apps/desktop/src/main, R=apps/desktop/src/renderer, S=packages/runtime-host/src/server.

Inventory

Channels

# Capability On main On rust-preview Suggestion
C1 Eight platform bridges and registry (Telegram, Feishu, WeCom, WeChat, Discord, DingTalk, QQ, Slack) B/bot-registry.ts, B/*-bridge.ts None; only the platform enum in plugins/agent/scheduler/engine/src/task.rs Rebuild, L (start with one channel)
C2 Inbound handling: dedupe, rate limit, help/reset, non-text replies (attachments are recognized but not ingested: a message without text only gets a "cannot process" reply), typing (5 of the 8 bridges), streamed replies D/bot-incoming-main.ts None Rebuild, M
C3 Channel settings, readiness, user allow-list (assistant mode: exactly one user, private chat only, the first private message binds the chat; there is no pairing code), credential redaction, connectivity test packages/core/src/bot-chat-settings.ts, B/bot-test.ts None (generic credentials: platform/capabilities/src/credentials.rs) Rebuild, M
C4 QR / device-code onboarding D/bot-onboarding-main.ts None Rebuild, M
C5 Drive WorkHub from IM, option syntax D/workhub-remote-bridge.ts, D/workhub-remote-choices.ts None Rebuild, M
C6 Assistant outbound over IM: receipts, presence, read checks D/assistant-im-bridge.ts None Rebuild, M
C7 Assistant web chat (off by default, needs a reverse proxy) D/assistant-web-server.ts None Drop? narrow use, M

Inbox and outbound

# Capability On main On rust-preview Suggestion
I1 Durable Inbox (batched read, up to 50 items / 24,000 characters; delivery cursor committed at the Sleep boundary, so at-least-once; source types; not-notified audit) A/bot/store.ts, A/bot/host.ts None Rebuild, L (reuse the message queue rather than a new database)
I2 Long-lived Bot worker, Sleep and wake, finish checks A/bot/controller.ts None Rebuild, L (the Rust engine has no finish hook, so this needs a different design)
I3 Visible conversation as transport only (a ledger copied from the outbox; it never starts the model; hidden from the desktop rail by tag, the backend can still list it) A/bot/conversation.ts None Rebuild with I1, M
O1 SendUser: batched bubbles, idempotent messageId A/bot/host.ts None Rebuild, M
O2 Scheduled tasks delivered through a Bot channel packages/core/src/scheduled-task.ts Partial: Notification::Bot is a type only Fold in (needs a sender from C1), S
O3 Background run cost and outcome ledger A/run-cost.ts None (accounting in plugins/agent/facts/src/accounting) Fold in, S

Wake and discovery

# Capability On main On rust-preview Suggestion
W1 Matter: durable item with timed wake A/proactive-matters/{matter,store,controller}.ts Partial: plugins/agent/scheduler/engine, plugins/agent/goal Fold in, M (keep only what Goal/ScheduledTask/WorkHub lack)
W2 Condition wake: condition test, read-only observer A/proactive-matters/condition*.ts None Rebuild on the scheduler, M
W3 Broad discovery heartbeat (two background Sessions run serially in one heartbeat: explore, then judge; own notebook database) A/index-initiative/* None Rebuild, L
W4 Quick Discovery (activity trigger, idle fallback, quiet hours) A/index-initiative/quick*.ts None Fold into W3, M
W5 Assistant master switch and close/reopen recovery A/service.ts None Rebuild, S
D1 Shared append-only notebook, feedback rules A/index-initiative/notebook.ts None Rebuild with W3, M

Delegation (WorkHub / Matter)

# Capability On main On rust-preview Suggestion
G1 Matter delegation, progress, amendments, control A/proactive-matters/{delegation,tools,delivery}.ts Partial: plugins/agent/native/src/workhub/tasks.rs Fold in, M
G2 Matter settle and review A/proactive-matters/review.ts Partial: plugins/agent/goal Fold in, M
G3 Task asks the Bot a clarifying question A/proactive-matters/clarification.ts Partial: plugins/interactions/native/src/questions.rs Fold in, S
G4 WorkHub coordination Session, candidates, queue, recovery, result return S/workhub-coordination-coordinator.ts and others plugins/workhub/core, plugins/agent/native/src/workhub/* Equivalent? S (behavior check)
G5 WorkHub action gate, form options, inspection tool, attachment delegation S/workhub-coordination-action-gate.ts and others plugins/workhub/core/src/decision.rs, plugins/interactions/ Equivalent? S (the action gate is about 1,400 lines; recovery and freeze semantics need a real comparison)
G6 Per-turn topic-association gate S/workhub-topic-gate.ts None (Rust models tasks by taskId and a dependency graph) Drop? inferred, S
G7 WorkHub desktop UI (conversation, dock, progress cards, composer) R/features/workhub/ui/* None Rebuild, L
G8 WorkHub window presentation and AX control D/workhub-{presentation,surface,ui,control}.ts Partial: platform/computer-use Fold in, M

Memory, permissions, UI, other

# Capability On main On rust-preview Suggestion
M1 Memory index network (build, group, maintain, checkpoints, 12h maintenance clock) A/memory-network/* None Rebuild, L
M2 Original/history/source reads and citation reader A/memory-network/{reads,extractor}.ts Partial: plugins/agent/native/src/owner/recall.rs, plugins/agent/assistant/src/recall/search.rs Fold in, M
M3 Automatic compaction of background Sessions assistant README plugins/agent/native/src/owner/compaction.rs Equivalent, S
P1 Bot tool ceiling (37 tools; no shell, edit or browser, but it does include write tools such as memory-index creation, Matter and Initiative tools) A/bot/capabilities.ts Partial: plugins/agent/facts/src/execution/tool_policy.rs Fold in, S
P2 Remote Host allocates the assistant workspace itself S/personal-assistant-workspace.ts None Fold in, S
U1 Assistant chat UI (typing, avatar, folded summaries) R/features/personal-assistant/* None Rebuild, L
U2 Task float window R/features/personal-assistant/task-float* None Rebuild, M
U3 Channel settings pages and onboarding wizard R/settings/bot-*.tsx None Rebuild with C1, M
X1 Character pack, avatar, stickers, first-run initialization A/bot/{character-pack,avatar}.ts None Drop? could become a plugin later, L
X2 Desktop pet and pet-pack import D/pet-desktop.ts, D/pet-pack-import.ts None Drop? L

Open points

  1. No usage data, so every "drop" (C7, G6, X1, X2) and every "equivalent" (G4, G5, M3) needs a maintainer or user to confirm.
  2. The assistant master switch default is documented inconsistently: packages/runtime-host/src/assistant/README.md line 26 says it defaults off, line 38 says a missing enablement.json means enabled. I did not check the code.
  3. O2: only the reference in scheduled-task.ts was confirmed; the scheduler side was not read. rust-preview has no sender for Notification::Bot.
  4. G6 is inferred from the absence of anything topic-related in the Rust WorkHub code.
  5. Whether the legacy plugin data migration (ASSISTANT_LEGACY_PACKAGES) is kept is undecided.
  6. The Feishu data-source plugin (scripts/plugins/feishu-source) feeds memory and discovery and is out of scope here.

Please comment with corrections, usage evidence, or rows to add. I'll keep the table in this description up to date.

Open questions on the Bot / Agent boundary

Raised while checking this inventory against main (details and evidence in #6076). They decide where several rows above end up.

  1. One Session or two? On main the conversation the user sees is a ledger copied from the outbox and never starts the model; the model's own Run history lives in a separate hidden worker Session. A single-Session "Agent mode" would put internal output and SendUser messages in one history, so clients would need to tell them apart by source.
  2. Trust by origin. On main, messages with source=external_connector are not treated as the owner's instructions (bot/host.ts:44). How should an input's origin change what the Bot may do?
  3. IM delivery. IM output is not a direct SendUser call: a bridge polls the conversation ledger, persists receipts, gives up after two failed deliveries and polls Feishu read status. Does the mode need a ledger-like concept for channels to build on?
  4. Feedback loop. notNotified audit records and DiscoveryFeedback (which attaches a user reply to a delivered message and feeds it back to the notebook). Is this in scope for a first phase?
  5. Single owner for background work. main uses leases and fences so a controller stops when it loses ownership. I have not checked whether the rust-preview scheduler already guarantees this.
简体中文

这是 #6366 中切换条件"main 上大家依赖的能力,要么可用,要么明确放弃,并有成文清单"的跟踪 issue。

下面是个人助理 / 常驻 Bot 能力清单草案,读取的是 main 的 ed3f91707 和 rust-preview 的 3f60d59d5。它用来在评论里被修正,不是决定。相关讨论:#6076、#6366。

概要: 共 37 项,其中 19 项需在 rust-preview 重做,11 项并入现有机制,3 项已有等价,4 项建议放弃。缺口集中在三块:IM 渠道、Inbox 与常驻 Bot worker、助手专属能力(记忆索引、发现、桌面 UI)。WorkHub 后端和调度器在 rust-preview 上已有。

说明:

  • 处置只是建议,所有"放弃"都需要维护者确认。目前没有使用量数据,所以没有任何一行证明了"大家依赖"。
  • "已有等价"按模块职责判断,没有逐项比对行为。
  • 工作量(S/M/L)是按规模和复杂度的粗估,不是设计评审。
  • 能力放进 Agent crate 还是独立插件,有意留开放,见 [DISCUSS] From task execution to an Always-on Agent harness #6076 里关于插件 API 的说明。

完整表格见上方英文部分,其中路径和能力名保持原样。

待确认:

  1. 没有使用量数据,所有"放弃"(C7、G6、X1、X2)和"已有等价"(G4、G5、M3)都需要维护者或用户确认。
  2. 助手总开关默认值文档不一致:packages/runtime-host/src/assistant/README.md 第 26 行写默认关闭,第 38 行写 enablement.json 缺失时默认开启,未核实代码。
  3. O2:只确认了 scheduled-task.ts 中的引用,没有读调度器一侧;rust-preview 上 Notification::Bot 没有 sender。
  4. G6 是根据 Rust 版 WorkHub 代码中没有话题相关实现推断的。
  5. 旧插件数据迁移(ASSISTANT_LEGACY_PACKAGES)是否保留,尚未决定。
  6. 飞书数据源插件(scripts/plugins/feishu-source)是记忆和发现的输入源,不在本清单范围。

欢迎在评论里指正、补充使用证据或新增条目,我会同步更新描述里的表格。

补充(2026-10-29):对 `main` 逐条核对后的修正

按 #6076 的核对结果修正了上表中的几行:I3(隐藏只在 UI 层,后端仍可列出)、I1(游标在 Sleep 边界提交,至少一次)、C2(附件只识别不摄入)、C3(没有配对码,助理模式只允许单个白名单用户且必须私聊)、P1(上限包含写类工具)、W3(两个 Session 串行)。

新增“Bot / Agent 边界”开放问题,英文见上:①一个还是两个 Session;②按来源决定信任;③IM 投递回执与重试是否需要账本概念;④反馈闭环是否进入第一阶段;⑤后台任务的单一所有者(rust-preview 调度器是否已保证,未核对)。

Activity

  1. added
    tracking
    rust
    on Oct 28, 2026
  2. liugddx commented on Nov 12, 2026

    @liugddx
    MemberAuthor

    Missing inventory row: existing user data cannot be opened by current rust-preview (no upgrade path)

    Found while building origin/rust-preview at 1b5638815 (2026-11-12) and pointing it at a Root created by an earlier rust-preview build (merge base around 2026-11-05). This is a data-continuity item for the "written capability list" condition in #6366, which names scheduled tasks, Goals, memory and usage history as state to handle one by one or drop. It is not in the table above.

    What I observed

    1. Opening the existing Root fails immediately: invalid type: map, expected a string at line 1 column 131. The Root marker .maka-storage-root.json is schemaVersion: 1 with rootIdentity: {dev, ino}; since fix(runtime): separate durable directory identity from mount identity #6815 (51e245322, 2026-11-12) the code requires schemaVersion: 2 and a string rootIdentity. I found no code that reads the old marker.
    2. I then cloned the databases into a fresh Root (new marker) to see whether the data itself is readable. The Host exits with database migration failed: applied migration 15 is missing from the available migrations. The old database records applied migrations 1 and 7–17 (goal progress, session children, steering observations, ...); the current tree numbers them differently (1, 2–14, 16–22, 23, ...) and has no 15. The migrations were rewritten in 9c67d197c (2026-11-07, "unify SQLite storage on synchronous actors"), which deleted 0015_goal_progress.sql, 0016_session_children.sql and 0017_steering_observations.sql. The schema dumps differ by roughly 200 lines, so I did not try to bridge them by hand.

    Scope and limits

    • Any Root last written before 9c67d197c appears affected. I checked one Root only, and I did not test a build between 9c67d197c and 51e245322, so I do not know which of the two breaks is hit first on a Root written just before fix(runtime): separate durable directory identity from mount identity #6815.
    • I did not confirm with the authors whether this is intended for the preview. If it is, it should be listed as an explicit "drop".
    • The original data was never modified: all experiments ran on a copy, and the original Root was reopened afterwards by the build that created it.

    Suggested row

    # Capability On main On rust-preview Suggestion
    D1 Open an existing Root (conversations, model connections, scheduled tasks) after upgrading n/a (TypeScript state) Fails: marker format and migration history changed without an upgrade path Needs a decision: write an upgrade path, or declare earlier preview Roots unsupported and say so in the release notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    rusttracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions