[moz] docs(§21): fix 姜维 S1(同步 §20 task_state DDL)+ S2(SQL 语义变化说明)
This commit is contained in:
@@ -718,6 +718,8 @@ CREATE TABLE task_state (
|
||||
|
||||
daemon 监听 Issue 创建 webhook → 解析标题中的 `[parent #N]` → 记录 parent_issue。
|
||||
|
||||
⚠️ **需同步更新 §20 task_state DDL** 新增 `parent_issue INTEGER` 列。
|
||||
|
||||
---
|
||||
|
||||
## §15. @mention 通知迁移
|
||||
@@ -757,7 +759,7 @@ ticker._check_round_complete:
|
||||
### 16.2 Gitea 迁移
|
||||
|
||||
ticker._check_round_complete 改为:
|
||||
1. 扫描 task_state 中 parent_issue 非空的记录
|
||||
1. 扫描 task_state 中 parent_issue IS NOT NULL(替代原 `SELECT DISTINCT parent_task FROM tasks`,语义不变——都是找有子任务的 parent)
|
||||
2. 找到所有 parent_issue 相同的 sub Issue
|
||||
3. 检查 sub Issue 是否全部终态(通过 task_state.status)
|
||||
4. 全部终态 → spawn 庞统 review
|
||||
|
||||
Reference in New Issue
Block a user