Skip to content

治理修复:canary 连续红(C6 钉点刷新 + C4/C5 预期勘误,#257) #259

Closed

Description

@randypanding

来源: #257(agent-registry governance-tests canary 连续红)| 类型: 治理修复卡 | 预算: BUDGET-01
agent-registry tests/ 属 C1(验证器元测试),PR 须附 ADR(可新建一份勘误 ADR 覆盖 C4/C5 预期更新)。
owner 裁决记录(2026-08-22):C5 采纳"保留双轨、更新 canary 预期"——BP-2 观察期未结束,不拆轨。

任务

修复 agent-registry canary(四仓公开治理面不变量)main 连续红,三项:

  1. C6-a(机械):.github 仓 gate.yml 的 hygiene.yml 钉扎 9c20d43 脱靶 → 刷新为当前 v1 tag 实际指向的 commit(参照 template-service PR [总结] 2026-08-19 红队演练:治理体系全栈问题报告 #39 同款修法)。
  2. C6-b(机械):CI-Workflows check.yml 中非 40-hex 的外部 action 引用 → 逐个钉 SHA(ADR-0011 钉扎立场)。
  3. C4(勘误):canary 对 template-service ci.yml 的形态断言改为承认双合法形态(@vN 浮动指针 | 40-hex SHA+ciw-ref 透传),与 C6 一致——写明选型倾向 SHA-only。
  4. C5(owner 已裁):canary 对 main-protection required 的预期更新为 ['gate','org-gate'] 双轨(依据 BP-2 观察期设计;退役本地轨需未来新 ADR,不在本卡范围)。

AC(Given-When-Then)

  • AC-1 (api): Given 修复合并,When agent-registry governance-tests 在 main 运行,Then 连续 3 次绿(canary 恢复活体证明)。
  • AC-2 (api): Given C6 修复,When 检查 .github/gate.yml 与 CI-Workflows/check.yml,Then 全部外部引用为 40-hex SHA 且与 v1 指针实际指向一致(drift §15 对账绿)。
  • AC-3 (api): Given C4/C5 勘误,When 检查,Then canary 断言与现行声明文件一致;勘误 ADR 落 decisions/ 且过墓碑索引校验。
  • AC-4 (api,防回潮): Given 未来 v1 tag 移动,When drift §15/§12 运行,Then 钉点脱靶能在 1h 内被报出(本卡不新增机制,验证现有即可)。

blastRadius(预测)

.github: .github/workflows/gate.yml; CI-Workflows: .github/workflows/check.yml; agent-registry: tests/**, decisions/**

Activity

  1. cloudbrid-agent commented on Aug 22, 2026

    @cloudbrid-agent
    Contributor

    D:/development/Git/claim

  2. cloudbrid-agent commented on Aug 22, 2026

    @cloudbrid-agent
    Contributor

    进度更新

    已完成:

    需要人工处理:

    • C6-a(gate.yml pin 刷新):.github 仓 gate.yml 的 hygiene.yml 引用需从 9c20d43 刷新至 61191f87(v1 当前指向)。GitHub App 无 workflows 权限,无法自动推送 .github/workflows/ 下的文件。建议 owner 手动修改:
      文件:.github/workflows/gate.yml
      行 23:uses: Cloudbird-Software/CI-Workflows/.github/workflows/hygiene.yml@9c20d43... # v1
      改为:uses: Cloudbird-Software/CI-Workflows/.github/workflows/hygiene.yml@61191f87c537f6e887695517121c6e530a838261 # v1
      
      参照 template-service PR [总结] 2026-08-19 红队演练:治理体系全栈问题报告 #39 同款修法。
  3. cloudbrid-agent commented on Aug 22, 2026

    @cloudbrid-agent
    Contributor

    完成更新

    已合并:

    canary 本地验证:除 gate.yml 钉点(C6-a)需人工处理外,其余 C1-C7 全绿。

    待人工处理(C6-a):

    • 文件:.github/workflows/gate.yml 行 23
    • uses: Cloudbird-Software/CI-Workflows/.github/workflows/hygiene.yml@9c20d43d60e9f9d1438f171aeee8e4dbdf02c08b # v1
    • 改为:uses: Cloudbird-Software/CI-Workflows/.github/workflows/hygiene.yml@61191f87c537f6e887695517121c6e530a838261 # v1

    GitHub App 无 workflows 权限,无法自动推送 .github/workflows/ 文件。

  4. randypanding commented on Aug 22, 2026

    @randypanding
    ContributorAuthor

    全部完成 ✅

    已合并(含 C6-a):

    所有子任务完成:

    • ✅ C4:canary 承认双合法形态
    • ✅ C5:canary 预期更新为双轨
    • ✅ C6 正则:排除注释/字符串误匹配
    • ✅ C6-a:gate.yml pin 刷新
    • ✅ ADR-0075:勘误 + 索引登记

    canary C1-C7 应全绿(下一轮 main push 触发)。

  5. randypanding commented on Aug 25, 2026

    @randypanding
    ContributorAuthor

    关闭(owner 2026-08-22 已确认全部完成):

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

    state:ready前置已满足,可认领开工type:card工作卡(wave-planner 产出)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions