auto-sync: 2026-05-15 13:39:45

This commit is contained in:
cfdaily
2026-05-15 13:39:45 +08:00
parent bade1cc345
commit 9f70484464
+10 -10
View File
@@ -1038,29 +1038,29 @@ Daemon ~1s 内收到 inbox 通知 → mini-tick:
**对比 polling 版**:task-001 done 到 task-002 spawn 的延迟从 ≤60s 降到 ≤1s。张飞的 L1 消息中包含赵云的 Handoff Comment,无需额外查询即可无缝接手。
### 6.2 Agent 间协作讨论事件驱动版
### 6.2 Agent 间协作讨论(事件驱动版)
```
张飞执行 task-002 时发现需要分钟线数据
张飞写评论:@赵云 task-002 需要分钟线数据,能帮忙下载吗?
张飞写评论:"@赵云 task-002 需要分钟线数据,能帮忙下载吗?"
张飞更新任务状态 → blocked
→ 通知 Daemoninbox JSONL
→ 通知 Daemon(inbox JSONL)
Daemon ~1s 内收到 inbox 通知 → mini-tick:
→ 解析 @mention → 赵云
→ spawn 赵云L1 消息含评论摘要
→ spawn 赵云(L1 消息含评论摘要)
赵云读黑板 → 看到评论 → 下载数据 → 写产出
赵云写评论:@张飞 数据就绪,可以继续 + 写产出
→ 通知 Daemoninbox JSONL
赵云写评论:"@张飞 数据就绪,可以继续" + 写产出
→ 通知 Daemon(inbox JSONL)
Daemon 收到通知 → @mention → spawn 张飞
张飞读黑板 → 看到数据就绪 → 继续 task-002
```
**对比 polling 版**@mention 响应从 ≤60s 降到 ≤1s。
**对比 polling 版**:@mention 响应从 ≤60s 降到 ≤1s。
### 6.3 Agent 发现风险
@@ -1302,9 +1302,9 @@ Agent 写产出时,`content_path` 指向此目录。Daemon 存档 session jsonl
|------|---------|-----------|------|
| 共享状态 | Hermes SQLite + Network-AI flock | SQLite WAL + 事务 CAS | 原子性 + 无外部依赖 |
| 讨论 | Hermes kanban_comment | comments 表 + @mention | 简单追加写入,所有人可见 |
| 事件驱动 | open-multi-agent EventEmitter | asyncio.Queue EventBus + Signal File | 零基础设施,进程内 ~0ms,跨进程 ~500ms |
| 调度 | Hermes Dispatcher 60s tick | EventBus 即时 + Signal File + 30s Tick 兜底 | 即时响应 + 健康检查 |
| 上下文传递 | GSD Wave Execution + Claude Code file ref | L1 必传 + L2/L3 按需读取 | 信号噪声比优化 |
| 事件驱动 | open-multi-agent EventEmitter + agent-chorus JSONL inbox | Tick 核心 + Inbox JSONL 加速 + 启动全量扫描 | Tick 兜底可靠,inbox 加速即时响应,零新依赖 |
| 调度 | Hermes Dispatcher 60s tick | Tick 30s + Inbox JSONL 加速 + 启动全量扫描 | Tick 可靠 + inbox 即时 |
| 上下文传递 | GSD Wave Execution + Claude Code file ref + Opal-Bridge Fidelity | L1 必传 + L2/L3 按需读取 + Handoff Comment | 信号噪声比优化 + 无缝接手 |
| 通知 | Claude Code idle notification | Daemon spawn + L1 message | OpenClaw 原生能力 |
| 通信 | Hermes kanban_comment + Claude Code inbox | 黑板 comments + @mention | 替代 Sanguo Mail |
| 竞态 | Network-AI propose→validate→commit | SQLite CAS(first-commit-wins) | SQLite 事务足够 |