auto-sync: 2026-05-15 14:01:32

This commit is contained in:
cfdaily
2026-05-15 14:01:32 +08:00
parent 32da59e4a7
commit c9efc3e20a
+22
View File
@@ -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 中路径是否存在 |