auto-sync: 2026-05-15 12:32:35

This commit is contained in:
cfdaily
2026-05-15 12:32:35 +08:00
parent 62796bc369
commit 2ceb208c4a
+13 -8
View File
@@ -941,25 +941,30 @@ Daemon EventBus 即时收到 task_completed
**对比 polling 版**task-001 done 到 task-002 spawn 的延迟从 ≤60s 降到 ~0ms。
### 6.2 Agent 间协作讨论
### 6.2 Agent 间协作讨论(事件驱动版)
```
张飞执行 task-002 时发现需要分钟线数据
张飞写评论:"@赵云 task-002 需要分钟线数据,能帮忙下载吗?"
张飞写评论:@赵云 task-002 需要分钟线数据,能帮忙下载吗?
张飞更新任务状态 → blocked
→ 写 signal file: comment_added
Daemon tick 发现 task-002 blocked + 评论 @ 赵云
Daemon EventBus 即时收到 comment_added
→ 解析 @mention → 赵云
→ spawn 赵云(L1 消息含评论摘要)
Daemon spawn 赵云 → 赵云读黑板 → 看到评论 → 下载数据
赵云写评论:"分钟线数据已下载到 /path/to/data" + 写产出
赵云写评论:"@张飞 数据就绪,可以继续"
赵云读黑板 → 看到评论 → 下载数据 → 写产出
赵云写评论:“@张飞 数据就绪,可以继续”
→ 写 signal file: comment_added
Daemon tick 发现评论 @ 张飞
Daemon EventBus 即时收到 → @mention → spawn 张飞
Daemon spawn 张飞 → 张飞读黑板 → 看到数据就绪 → 继续 task-002
张飞读黑板 → 看到数据就绪 → 继续 task-002
```
**对比 polling 版**@mention 响应从 ≤60s 降到 ≤1s。
### 6.3 Agent 发现风险
```