Run Ledger 权威与投影

Run Ledger 权威与投影 由 Archify 生成的架构图。 OrchestratorRuntime · 唯一写者侧 · 权威写入路径 · aida-agent OrchestratorRuntime 唯一写者侧 aida-agent Write Fence · Run Lease · Fence Token · 权威写入路径 · single writer Write Fence Run Lease · Fence Token single writer Run Ledger · PostgreSQL 只追加 · 权威写入路径 · source of truth Run Ledger PostgreSQL 只追加 source of truth Chat SSE · durable event 投影 · 投影与客户端 · projection Chat SSE durable event 投影 projection 在办事项 · Engagement 投影 · 投影与客户端 · projection 在办事项 Engagement 投影 projection Resume / Rebuild · checkpoint · active-run · 架构组件 · crash resume Resume / Rebuild checkpoint · active-run crash resume Desktop Client · 只读消费投影 · 投影与客户端 · aida-desktop Desktop Client 只读消费投影 aida-desktop claim · append fenced write SSE fold Engagement 投影 rebuild 续跑回写 卡片 / nextAction 渲染 权威写入路径 投影与客户端 图例 前端 后端 数据库 安全 外部系统

权威写入

  • • Run Ledger 是 source of truth
  • • Write Fence / Run Lease 保证单一写者
  • • Fencing Token 验证 mutation

投影

  • • Chat SSE 折叠 durable event
  • • 在办事项投影 Engagement 生命周期
  • • 投影不可反向改写 ledger

恢复

  • • 崩溃从 ledger / checkpoint 重建
  • • active-run 冷启动续接
  • • 未知 outcome 先 reconcile 不盲重放