Skip to content

[P1] Drift check 可静默跳过:pyyaml 缺失不触发 fail-closed #31

Description

@randypanding

问题描述

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 — 漂移检测可静默失效

改进建议

  1. python3+pyyaml 缺失时改为 FATAL(fail-closed)
  2. 跨仓读取失败时触发 stewardship 告警
  3. 增加 drift-check 自身健康检查

红队演练来源

2026-08-19 红队演练:治理文件自身脆弱性

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1P1 级重要问题governance治理体系相关red-team红队演练发现

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions