From 331ebf9b2acb13ce8ce3cb31f506658bf6c04e8c Mon Sep 17 00:00:00 2001 From: cfdaily Date: Fri, 15 May 2026 12:29:48 +0800 Subject: [PATCH] auto-sync: 2026-05-15 12:29:48 --- docs/design/architecture-v2.6.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/design/architecture-v2.6.md b/docs/design/architecture-v2.6.md index f542873..714624b 100644 --- a/docs/design/architecture-v2.6.md +++ b/docs/design/architecture-v2.6.md @@ -616,6 +616,7 @@ def build_spawn_message(task_id: str, trigger_reason: str, comments_since: str = |------|-------------|------|------| | Agent 有进展 | 黑板有新 observations | 不干预(无限续) | L1 | | Agent 没进展但 session 活跃 | 无新 observations 但 session 还在 | 不干预(可能正在思考) | L1 | +| ↑ 判断信号:`observations 最后写入时间 < estimated_duration_minutes`,纯 L1 查询,不依赖 AI 判断 | | | | | timeout(agent run 返回超时)+ 产出达标 | agent run 返回超时 + outputs 表有内容 | 幻觉门控验证产出 → 通过则继续流转 | L1→L2 | | timeout(agent run 返回超时)+ 产出不达标 | agent run 返回超时 + outputs 为空 | L2 spawn sub 发 reminder 让 Agent 继续(假死处理) | L2 | | timeout + 产出不达标 + reminder 后仍无进展 | 二次 timeout | 回收到 pending,记录 failure_detail | L1 | @@ -658,7 +659,7 @@ reminder 后的硬时间上限:reminder 后如果超过 `estimated_duration_mi | Daemon | 机械类失败(进程退出码、超时) | events 表,event_type=task_failed | | 司马懿 | 内容类失败(评审不通过) | reviews 表(verdict=needs_revision + issues) | | 庞统 | 方向类失败(需求偏离) | decisions 表(重规划原因) | - +| Agent 自己 | 能力不足/专业外,主动报告失败 | comments 表(说明原因)+ tasks status→failed | | Agent(重试时) | 新 attempt 的产出 | outputs 表(带 attempt_number) | **Agent 重试时能看到什么**:黑板上的 events(失败记录)+ reviews(评审意见)+ comments(讨论)。全部在黑板上,spawn 时自然读到。