From ffadcadfe9ac53dba7750f4a9557bb95c21b5bb4 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sat, 30 May 2026 09:00:58 +0800 Subject: [PATCH] auto-sync: 2026-05-30 09:00:58 --- docs/design/02-main-session-delegation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/design/02-main-session-delegation.md b/docs/design/02-main-session-delegation.md index 75a9552..428f091 100644 --- a/docs/design/02-main-session-delegation.md +++ b/docs/design/02-main-session-delegation.md @@ -1,8 +1,8 @@ # 02-main-session-delegation.md — Main Session + Delegation 架构 -**日期**: 2026-05-29 +**日期**: 2026-05-30 **作者**: 庞统 -**状态**: 待评审 +**状态**: 已评审(司马懿 2026-05-30),v1.1 修订中 **前置**: `01-four-phase-loop.md`(四相循环 E2E 验证暴露 session 爆炸问题) --- @@ -384,8 +384,8 @@ def _task_verify_completion(self, task_id, db_path) -> bool: row = conn.execute( "SELECT status FROM tasks WHERE id=?", (task_id,) ).fetchone() - if not row or row["status"] != "working": - return True # Agent 自己标了终态 + if not row or row["status"] == "working": + return None # 还在执行中,不算完成 # 信号 2:outputs 表有产出 output_count = conn.execute(