Skip to content

[P0] gate.yml C1 路径检测缺失 3 个核心治理路径 #27

Description

@randypanding

问题描述

gate.yml 中 adr-required 的 C1 路径 grep 为:

grep -qE '^(governance/|standards/|scripts/|\.github/|CODEOWNERS|profile/)'

但 GOVERNANCE.yaml flows.governance_change.C1 声明的范围还包括:

  • tests/(agent-registry 验证器元测试)
  • template-service/(供应链入口)
  • decisions/(ADR 目录)

这些路径的变更不会触发 adr-required 检查,可绕过 C1 审批流程。

影响范围

  • .github/workflows/gate.yml: adr-required 步骤
  • governance/GOVERNANCE.yaml: flows.governance_change.C1

严重度

P0 — 3 类核心治理变更可绕过 ADR 审批

改进建议

  1. gate.yml grep 增加 tests/template-servicedecisions/ 路径
  2. 建议创建 governance/c1_paths.txt 单一真源文件,gate.yml 读取该文件
  3. 增加单元测试验证 C1 路径检测覆盖率

红队演练来源

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

    P0P0 级严重漏洞gateGate 工作流相关red-team红队演练发现

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions