Repository navigation
Description
What happened
When the proactive discovery session calls MatterDelegate, the Matter is recorded with the discovery session as its owner. The user's conversation cannot see it, and its progress is routed to the discovery session instead of the conversation's Bot inbox.
The README says "Matter delegation remains owned by the visible conversation", and the discovery prompt says not to delegate execution tasks. Neither is enforced: the tool is registered and succeeds.
Reproduced on origin/main@59f61cf7d with a test-fixture probe:
| Caller | MatterDelegate |
Listed by conversation MatterTasks |
Listed by conversation MatterOverview |
|---|---|---|---|
| Conversation session | created | yes | yes |
| Discovery session | created | no | no |
The discovery-created Matter is listed by the discovery session's own MatterOverview, so its owner is the discovery session.
Completion and clarification (reproduced, probe C2): when the discovery Session creates the Matter and it runs to completion, the completion update is delivered to the discovery Session as a Runtime task update follow-up that contains the Matter ID. It is not delivered to the Bot inbox, and the conversation transcript contains no task update. The same Matter's clarification request fails with Coordinating Bot unavailable; question saved. Retry with the same requestKey. The control run, where the conversation creates the Matter (C1), delivers the completion update and the clarification receipt to the Bot inbox. The discovery Session's model was not run. Its prompt asks it to tell the user. The only user-facing route it has is DiscoveryReport to the Bot, so delivery depends on that model choosing to relay the update (not tested).
How to reproduce
Test-fixture probe at 59f61cf7d (packages/runtime-host/test/assistant/index-initiative), Node 24.21.0:
- Bind the assistant to conversation
owner, thenInitiativeEnableandInitiativeControl { action: 'check' }. - Read
discoverySessionfromInitiativeStatus. invokeAs(discovery, 'MatterDelegate', { taskKey: 'probe', title: 'probe', request: 'probe' })returns a Matter.invokeAs('owner', 'MatterTasks', {})does not contain that Matter's ID.
Expected: either the call is rejected, as the prompt implies, or the Matter is owned by the conversation and its updates reach the Bot.
Environment
- Maka:
59f61cf7d(origin/main) - OS: macOS, Darwin 25.5.0
- Surface: Runtime Host (test fixture)
- Node.js: 24.21.0. Under Node 26.10.0 the assistant test loader fails before any test runs (
options.modemust be'strip', received'transform').
Logs
PROBE conversation sees control: true
PROBE conversation sees discovery-created: false
PROBE discovery session lists its own Matter: true
PROBE discovery-created Matter reachable from conversation MatterOverview: false
Related: #6247 (RFC covering this and the other items).
中文版(点击展开)
标题: bug(assistant):探索会话调用 MatterDelegate 创建的事项,用户会话看不到
发生了什么
主动探索会话调用 MatterDelegate 时,事项会以探索会话自己为 owner 记录。用户的对话看不到这个事项,它的进展也会被投递给探索会话,而不是对话的 Bot 收件箱。
README 写的是 "Matter delegation remains owned by the visible conversation",探索的 prompt 也写明不要委派执行任务。但两者都没有被强制执行:工具已注册,调用成功。
在 origin/main@59f61cf7d 上用测试夹具复现的结果:
| 调用方 | MatterDelegate |
对话的 MatterTasks 能看到 |
对话的 MatterOverview 能看到 |
|---|---|---|---|
| 对话会话 | 创建成功 | 能 | 能 |
| 探索会话 | 创建成功 | 不能 | 不能 |
探索会话创建的事项能被探索会话自己的 MatterOverview 列出,说明它的 owner 是探索会话。
完成与澄清(已复现,探针 C2): 探索会话创建的事项运行完成后,完成通知以 Runtime task update 形式投递给探索会话,内容包含事项 ID;Bot 收件箱没有收到,对话的聊天记录里也没有。同一事项的澄清请求失败,报错 Coordinating Bot unavailable; question saved. Retry with the same requestKey. 对照组(C1,对话创建的事项)则会把完成通知和澄清回执送到 Bot 收件箱。探索会话的模型未实际运行。其提示词要求它告知用户;它能使用的面向用户路径只有 DiscoveryReport 交给 Bot,因此是否送达取决于模型是否选择转交(未测试)。
复现步骤
在 59f61cf7d 的测试夹具中(packages/runtime-host/test/assistant/index-initiative),Node 24.21.0:
- 把助手绑定到对话
owner,然后执行InitiativeEnable与InitiativeControl { action: 'check' }。 - 从
InitiativeStatus读取discoverySession。 invokeAs(discovery, 'MatterDelegate', ...)返回一个事项。invokeAs('owner', 'MatterTasks', {})的结果中没有这个事项的 ID。
预期:要么拒绝这次调用(与 prompt 的约定一致),要么把事项的 owner 归到对话,让进展进入 Bot。
环境
- Maka:
59f61cf7d(origin/main) - 系统:macOS,Darwin 25.5.0
- 范围:Runtime Host(测试夹具)
- Node.js:24.21.0。在 Node 26.10.0 下,助手测试加载器在运行任何测试前就失败(
options.mode必须为'strip',实际为'transform')。
Activity
liugddx commentedon Oct 23, 2026
Completion and clarification are now reproduced (probe C2), and the body is updated. The control case, where the conversation creates the Matter, delivers the completion update and clarification receipt to the Bot inbox. The discovery-created case does not.
Suggested regression test: for a Matter created from the discovery Session, completion and clarification must either reach the Bot inbox or be rejected at creation. Silent delivery to the discovery Session should fail the test.
中文版(点击展开)
完成通知与澄清请求已复现(探针 C2),正文已同步更新。对照组(对话创建的事项)的完成通知和澄清回执会送到 Bot 收件箱;探索会话创建的事项则不会。
建议回归测试:对于探索会话创建的事项,完成通知与澄清请求必须要么送达 Bot 收件箱,要么在创建时被拒绝。若结果是静默投递到探索会话,测试应失败。
liugddx commentedon Oct 23, 2026
Fixed in #6256. A discovery Session can no longer create a Matter.
MatterDelegateis excluded from its catalog and rejected at execution, so the invisible-Matter path, and with it the completion routing reproduced in probe C2, is no longer reachable. Regression test:discovery-boundary.test.ts, "cannot delegate a Matter the conversation cannot see". TheMatterAdoptand worker-tool cases are covered by #6250.中文版(点击展开)
已在 #6256 中修复。探索会话不能再创建事项:
MatterDelegate已从其工具目录中移除,执行时也会被拒绝。因此探针 C2 复现的"不可见事项及其完成回流"路径已不可达。回归测试:discovery-boundary.test.ts中的 "cannot delegate a Matter the conversation cannot see"。MatterAdopt与工作者工具的情形由 #6250 覆盖。