zhx 02117bca4c fix: robot orchestrator 只运行本节点持有 lease 的机器人房
机器人房写命令间隔常大于 lease TTL(10s),双节点 orchestrator 无差别
起全量 runtime 导致互相抢占 ownership,跨节点命令全天 CONFLICT 刷屏,
礼物恢复 worker 在非 owner 节点把 pending saga 误标 compensated (~200/h)。

- startRobotRoomRuntime 启动前经 EnsureOwner 认领 lease,非 owner 跳过
- 每个 runtime 增加 lease keeper 按 TTL/3 主动续租,发现执行权被接管立即停止本地循环
- startActiveRobotRooms 改为 reconcile:lease 迁走或配置停用的房间停掉本地残留 runtime
- 礼物恢复 worker 先查房间归属,归他人时释放 claim 让 owner 节点结算
- 跨节点 ownership 冲突不再进入 compensated 终态,改走 retry(pending 不保证钱包未扣款)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 00:10:53 +08:00
..
2026-04-25 01:18:30 +08:00
2026-07-12 14:17:45 +08:00
2026-05-12 19:34:47 +08:00
2026-04-25 01:18:30 +08:00
2026-07-03 10:43:34 +08:00