From c9efc3e20ad50cc90a9727d2817a796f272a08ff Mon Sep 17 00:00:00 2001 From: cfdaily Date: Fri, 15 May 2026 14:01:32 +0800 Subject: [PATCH] auto-sync: 2026-05-15 14:01:32 --- docs/design/architecture-v2.6.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/design/architecture-v2.6.md b/docs/design/architecture-v2.6.md index 3e1b59c..a95c61a 100644 --- a/docs/design/architecture-v2.6.md +++ b/docs/design/architecture-v2.6.md @@ -540,8 +540,30 @@ Skill 软引导的问题是"可看可不看",等于没有约束。数据库硬 "next_steps": { "type": "string", "description": "对接手者的建议(可选)" } } } + +// schemas/observe.schema.json +{ + "type": "object", + "required": ["severity", "body"], + "properties": { + "severity": { + "type": "string", + "enum": ["info", "warning", "critical"], + "description": "info=只记录不触发; warning=下次tick触发庞统; critical=立即spawn庞统" + }, + "body": { "type": "string", "description": "风险描述" } + } +} ``` +**severity 枚举与处理方式对齐**(与 §4.7 Guardrail 体系一致): + +| severity | Daemon 处理 | 对应 Guardrail 行为 | +|----------|-----------|-------------------| +| `info` | 只记录,不触发 | 不介入 | +| `warning` | 下次 tick 统一处理 | spawn 庞统(L3)判断 | +| `critical` | inbox 通知 → 立即 spawn 庞统 | 立即介入 | + | 操作 | Schema 文件 | 必填字段 | Schema 校验 | CLI 附加校验 | |------|-----------|---------|------------|------------| | `--handoff` | handoff.schema.json | completed + artifacts | 结构完整,类型正确 | artifacts 中路径是否存在 |