问题描述
drift-check.sh 中当 python3 缺 pyyaml 时,REPOS.yaml 校验静默跳过(SKIP REPOS.yaml 校验),不影响 exit code,可能导致全绿假阳性。同样,drift-check 读取 agent-registry decisions 失败时也仅标记 drift,不触发额外告警。
影响范围
- governance/drift-check.sh: §7 REPOS.yaml 校验
- governance/drift-check.sh: §10 ADR 后验
严重度
P1 — 漂移检测可静默失效
改进建议
- python3+pyyaml 缺失时改为 FATAL(fail-closed)
- 跨仓读取失败时触发 stewardship 告警
- 增加 drift-check 自身健康检查
红队演练来源
2026-08-19 红队演练:治理文件自身脆弱性
问题描述
drift-check.sh 中当 python3 缺 pyyaml 时,REPOS.yaml 校验静默跳过(
SKIP REPOS.yaml 校验),不影响 exit code,可能导致全绿假阳性。同样,drift-check 读取 agent-registry decisions 失败时也仅标记 drift,不触发额外告警。影响范围
严重度
P1 — 漂移检测可静默失效
改进建议
红队演练来源
2026-08-19 红队演练:治理文件自身脆弱性