Update the governance v2 master record with the adoption matrix
Why: Phase 6 adoption PRs merged across the formal repositories; the master record still showed PLANNED rows.
Evidence: merge commits and main CI per repository (GATE, Gitea statuses); make test-governance 421 tests OK on 2b2268f (SELF).
Impact: planning record and task card evidence only.
Refs: docs/superpowers/plans/2026-10-16-development-governance-v2-master.md
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -15,9 +15,9 @@
|
||||
| 2 | Dev triage 与两级生命周期整改 | Dev child triage-hardening / target-integrity → initiative | [#595](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/595)、[#596](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/596) | MERGED(进入 initiative) | 1 |
|
||||
| 3 | 真实两级 PR 演练 | Dev child PR → initiative → #585 → main | #595、#596 → #585 | MERGED(证据见 Dev 归档卡 feature-development-governance-v2) | 2 |
|
||||
| 4 | Guidelines 合入 → Dev gitlink → Review → 三项 CI → 合入 #585 → 收口 | Guidelines / Dev | #7 / #585 / [#597](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/597) | CLOSED(Dev main aee351a;卡片归档 682a4e8) | 1–3 |
|
||||
| 5 | DM 共享执行器 `agent-exec`;Dev 薄入口切换与 Python 退役 | DM [#16](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/16);Dev `feature/dev-shared-executor-switch` | #16、[#17](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/17) | DM 执行器 MERGED(183e764);清点缺陷修复 #17 MERGED(9c38345);Dev 已固定 DM 42e675f,P5-A 薄入口切换(501b685)与 P5-B Python 退役(63e11ea)完成,等价重放 11 SAME + 1 预期差异(legacy-config),Dev PR 待 Review/CI | 4 |
|
||||
| 6 | 存量仓逐仓采纳 | 各仓独立 initiative | 各仓 `feature/governance-adoption` | IN_PROGRESS(试点 Agent-System-Core:单元成功、正负例 ALL PASS;钩子环境缺陷经 DM [#19](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/19) 修复后改固定新版本) | 5 |
|
||||
| 7 | 新项目治理初始化与 CI 准入 | DM `feature/governance-kit`(K1 triage、K2 start/pr-check、K3 governance init/check) | [#18](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/18)、[#19](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/19) | MERGED(42e675f;K1+K2、K3 独立 Review APPROVE,CI GATE 通过);钩子环境修复 #19 进行中 | 5 |
|
||||
| 5 | DM 共享执行器 `agent-exec`;Dev 薄入口切换与 Python 退役 | DM [#16](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/16)、[#17](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/17);Dev `feature/dev-shared-executor-switch` | #16、#17、Dev [#600](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/600) | MERGED(DM 183e764、9c38345;Dev #600 合入 a5829c2:薄入口切换与 Python 退役,卡片闭合 #601;Dev 现经 `scripts/agent-exec` 运行固定 DM 版本) | 4 |
|
||||
| 6 | 存量仓逐仓采纳 | 各仓 `feature/governance-adoption`;Dev `feature/governance-v2-closeout` | 见下方采纳矩阵 | IN_PROGRESS(17 个正式仓中 14 个 ADOPTED_ACTIVE;Dev、Agent-System-UI、Agent-Squad 收尾中) | 5、7 |
|
||||
| 7 | 新项目治理初始化与 CI 准入 | DM `feature/governance-kit`(K1 triage、K2 start/pr-check、K3 governance init/check)及后续修复 | [#18](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/18)、[#19](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/19)、[#20](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/20) | MERGED(#18 42e675f;#19 钩子环境修复;#20 `governance check --guidelines-self`,DM main 0552b73;均经独立 Review 与 CI GATE) | 5 |
|
||||
|
||||
## 当前候选对象与历史证据
|
||||
|
||||
@@ -41,25 +41,27 @@
|
||||
来源:Gitea `/user/repos`(2026-10-16 实测)。排除:`Agent-System`(冻结参考仓,不再开发)、`SMDF-Agent-System`(空仓)、
|
||||
`governance-drill-2026-09` 与 `merge-queue-admission-fixture-20261014`(演练夹具)。本机 `*-wt-*`、备份与组合目录不计入。
|
||||
|
||||
| 批次 | 仓库 | Guidelines 固定版本 | AGENT-EXECUTION.md | 共享执行器入口 | 正例 | 负例 | Review/CI | 状态 |
|
||||
| 批次 | 仓库 | Guidelines 固定版本 | AGENT-EXECUTION.md | 共享执行器入口 | 采纳 PR | 合入提交 | main 上 CI(GATE) | 状态 |
|
||||
|---|---|---|---|---|---|---|---|---|
|
||||
| A | Development-Guidelines | 自身 | — | — | — | — | — | PLANNED |
|
||||
| A | Agent-System-Dev | deps/development-guidelines 2688fd2 | 有(Go 执行器校验通过) | scripts/agent-exec → DM 42e675f | P5-A/P5-B 实际单元 | adopt_cases ALL PASS + 等价重放 | 待 PR | IN_PROGRESS |
|
||||
| A | Development-Manager | 待更新 | 无 | 实现方 | — | — | — | PLANNED |
|
||||
| B | Agent-System-Core | 2688fd2 | 有 | scripts/dm(待改固定 #19 后版本) | 单元 r1 success | ALL PASS | — | IN_PROGRESS |
|
||||
| B | Agent-System-Backend | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| B | Agent-System-RDM | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| C | Agent-System-Frontend | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| C | Agent-System-UI | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| C | Agent-System-Documents | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| C | Agent-System-Releases | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| D | Agent-Command | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| D | Agent-Intent | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| D | Agent-Native | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| D | Agent-Squad | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| E | Error-Code-System | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| E | Logging-System | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| E | Agent-Document-Renderer | — | 无 | 无 | — | — | — | PLANNED |
|
||||
| A | Development-Guidelines | 自身(规范源) | 有(active) | scripts/agent-exec → DM 0552b73 | [#9](https://git-home.u1680832.nyat.app:30319/weichen/Development-Guidelines/pulls/9) | 6c8e6cd | governance success | ADOPTED_ACTIVE |
|
||||
| A | Agent-System-Dev | deps/development-guidelines 2688fd2 | 有(active) | scripts/agent-exec → DM 0552b73 | (本 PR) | — | — | PR_OPEN |
|
||||
| A | Development-Manager | development/guidelines 2688fd2 | 有(active) | 实现方:scripts/agent-exec 构建已提交 HEAD | [#21](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/21)(证据日志补入 [#22](https://git-home.u1680832.nyat.app:30319/weichen/Development-Manager/pulls/22)) | c261cdd | ci / build-test success(含 agent-exec validate 与 governance check --implementer) | ADOPTED_ACTIVE |
|
||||
| B | Agent-System-Core | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#35](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Core/pulls/35) | 5cae3a6 | governance success | ADOPTED_ACTIVE |
|
||||
| B | Agent-System-Backend | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#208](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Backend/pulls/208) | cac60c0 | governance success;ci / vet-and-test 首次因既有不稳定测试 TestProjectEventsSharedProofAndPrivatePagination 失败(与 PR 头同树,PR 头通过),已重跑 | ADOPTED_ACTIVE |
|
||||
| B | Agent-System-RDM | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#431](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-RDM/pulls/431) | 7476a04 | governance、ci / build-and-test success | ADOPTED_ACTIVE |
|
||||
| C | Agent-System-Frontend | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#105](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Frontend/pulls/105) | 0f31f91 | governance success | ADOPTED_ACTIVE |
|
||||
| C | Agent-System-UI | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#58](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-UI/pulls/58) | — | — | PR_OPEN |
|
||||
| C | Agent-System-Documents | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#110](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Documents/pulls/110) | 6c04eb2 | governance success | ADOPTED_ACTIVE |
|
||||
| C | Agent-System-Releases | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#2](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Releases/pulls/2) | 99c89b6 | governance success | ADOPTED_ACTIVE |
|
||||
| D | Agent-Command | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#8](https://git-home.u1680832.nyat.app:30319/weichen/Agent-Command/pulls/8) | 00e0875 | governance success | ADOPTED_ACTIVE |
|
||||
| D | Agent-Intent | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#12](https://git-home.u1680832.nyat.app:30319/weichen/Agent-Intent/pulls/12) | 651a2e1 | governance、ci 两项 success | ADOPTED_ACTIVE |
|
||||
| D | Agent-Native | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#47](https://git-home.u1680832.nyat.app:30319/weichen/Agent-Native/pulls/47) | 14d4869 | governance、ci 两项 success | ADOPTED_ACTIVE |
|
||||
| D | Agent-Squad | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#54](https://git-home.u1680832.nyat.app:30319/weichen/Agent-Squad/pulls/54) | — | — | PR_OPEN |
|
||||
| E | Error-Code-System | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#4](https://git-home.u1680832.nyat.app:30319/weichen/Error-Code-System/pulls/4) | 3d4d5e6 | governance、ci 两项 success | ADOPTED_ACTIVE |
|
||||
| E | Logging-System | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#4](https://git-home.u1680832.nyat.app:30319/weichen/Logging-System/pulls/4) | 1758e2c | governance、ci 两项 success | ADOPTED_ACTIVE |
|
||||
| E | Agent-Document-Renderer | 2688fd2 | 有(active) | scripts/agent-exec → DM bd3a7de | [#6](https://git-home.u1680832.nyat.app:30319/weichen/Agent-Document-Renderer/pulls/6) | 770d886 | governance success | ADOPTED_ACTIVE |
|
||||
|
||||
每仓采纳均按同一 10 步:固定 Guidelines、AGENT-EXECUTION.md、薄入口(`scripts/dm`/`scripts/agent-exec`/`scripts/task`)、四条路由、任务卡模板与分支元数据、CI 中 schema 校验与 governance check、一次真实正例单元(agent-per-unit,经 `agent-exec apply` 集成)、负例(bad-receipt、out-of-scope-path、unknown-side-effect、admit 拒绝;冻结脚本 `evidence/governance-adopt-cases.py`)、独立 Review(全新只读会话,闭合重审只围绕阻塞项)与 PR 头 CI、采纳状态 active。每仓的收据、证据与 Review 结论在该仓归档任务卡 `.task/archive/feature-governance-adoption.md`(Guidelines 按其 CONTRIBUTING.md 记录在本目录 `2026-10-17-guidelines-governance-adoption.md`)。
|
||||
|
||||
## Owner 决策记录
|
||||
|
||||
@@ -70,6 +72,10 @@
|
||||
| 2026-10-17 | CI 读取私有 Guidelines/DM 子模块所需的 `SUBMODULE_TOKEN`:owner 授权智能体以 `~/.secrets/gitea` 的 API token 作为该 secret 值(只记录来源,不记录值) | 已为 Development-Manager 配置;Phase 6 按需为其他仓配置 |
|
||||
| 2026-10-17 | Phase 6/7 共享入口:存量仓与新项目没有 Dev 的 task.sh,通用 triage/start/pr-check 与 `governance init|check` 放入 DM(治理套件),各仓经薄入口调用,不复制实现;先完成 Phase 7 套件再用其推进 Phase 6 | DM `feature/governance-kit`;Dev 现有 task.sh 生命周期不变 |
|
||||
| 2026-10-17 | DM CI 自 2026-09-30 起从未成功(runner 无法拉取 github.com 上的 actions/checkout);按 Dev 已审阅的内联检出模式改为自包含 CI(DM-U6) | Phase 6 中使用 `uses:` 的仓(Error-Code-System、Logging-System)同样需要检查 |
|
||||
| 2026-10-17 | 存量仓 CI 无法访问 github.com:Error-Code-System、Logging-System 的 `uses: actions/checkout` 改为与 governance.yml 相同的内联检出(凭据经 GIT_CONFIG_* 环境变量,`checkout -f` + `clean -ffdxq` 保持 clean 语义) | 两仓既有 CI 恢复可运行 |
|
||||
| 2026-10-17 | Guidelines 冲突裁定(contrib_exception):CONTRIBUTING.md 增加一句窄例外,允许本库自身治理文件入库;过程记录仍不入库;规范正文与 VERSION 不变 | Guidelines #9 |
|
||||
| 2026-10-17 | DM #21 保留新增回归测试 `cmd/dm-server/implementer_entry_test.go`(approve_test),豁免原“不改 Go 代码”表述;生产 Go 代码不变 | DM #21 |
|
||||
| 2026-10-17 | codex/pi Review 额度受限(429)期间,独立 Review 改由全新只读 Cursor CLI 会话(`--mode ask`,session id not-observable)执行;评审只接收目标、base/head、diff 与证据 | 各仓 Review 记录标注 fresh_session 与 not-observable |
|
||||
|
||||
## 停止条件
|
||||
|
||||
@@ -80,4 +86,49 @@ CLI 终态无效或副作用未知;Review、CI 或平台准入缺失;主干
|
||||
## 用户双钥匙事项
|
||||
|
||||
- Development-Guidelines 正式版本 tag:Agent 只准备命令,由用户执行。
|
||||
- 分支保护变更(如新增必需检查):Agent 只准备方案,由用户执行。
|
||||
- 分支保护:把 governance 检查设为各仓 main 的必需状态检查。以下命令由用户确认后亲手执行(token 只从 `~/.secrets/gitea` 读取,不回显)。
|
||||
已有 `main` 规则的仓用 PATCH;Agent-System-Releases、Agent-Document-Renderer 尚无规则,用 POST 新建。Dev 的 governance check 位于既有必需检查 `ci / test` 中,无需改动。
|
||||
|
||||
```bash
|
||||
API=https://git-home.u1680832.nyat.app:30319/api/v1
|
||||
TOK=$(sed -n 's/.*ACCESS_TOKEN=//p' ~/.secrets/gitea)
|
||||
protect() { # protect <repo> <PATCH|POST> <context>...
|
||||
repo=$1 method=$2; shift 2
|
||||
ctx=$(printf '%s\n' "$@" | python3 -c 'import json,sys;print(json.dumps([l.strip() for l in sys.stdin if l.strip()]))')
|
||||
if [ "$method" = PATCH ]; then url=$API/repos/weichen/$repo/branch_protections/main
|
||||
body="{\"enable_status_check\":true,\"status_check_contexts\":$ctx}"
|
||||
else url=$API/repos/weichen/$repo/branch_protections
|
||||
body="{\"rule_name\":\"main\",\"enable_status_check\":true,\"status_check_contexts\":$ctx}"
|
||||
fi
|
||||
curl -sS -o /dev/null -w "$repo %{http_code}\n" -X "$method" -H "Authorization: token $TOK" -H 'Content-Type: application/json' "$url" -d "$body"
|
||||
}
|
||||
GOV='governance / governance (pull_request)'
|
||||
protect Development-Guidelines PATCH "$GOV"
|
||||
protect Development-Manager PATCH 'ci / build-test (pull_request)'
|
||||
protect Agent-System-Core PATCH "$GOV"
|
||||
protect Agent-System-Backend PATCH "$GOV" 'ci / vet-and-test (pull_request)'
|
||||
protect Agent-System-RDM PATCH "$GOV" 'ci / build-and-test (pull_request)'
|
||||
protect Agent-System-Frontend PATCH "$GOV"
|
||||
protect Agent-System-UI PATCH "$GOV" 'ci / test (pull_request)'
|
||||
protect Agent-System-Documents PATCH "$GOV"
|
||||
protect Agent-System-Releases POST "$GOV"
|
||||
protect Agent-Command PATCH "$GOV"
|
||||
for r in Agent-Intent Agent-Native Agent-Squad Error-Code-System Logging-System; do
|
||||
protect "$r" PATCH "$GOV" 'ci / vet-and-test (pull_request)' 'ci / docker-checkout-hostgateway (pull_request)'
|
||||
done
|
||||
protect Agent-Document-Renderer POST "$GOV"
|
||||
unset TOK
|
||||
```
|
||||
|
||||
设为必需检查并补一次被阻断的负例 PR 后,各仓采纳记录中 agent-execution 行才可由 advisory 登记为 enforced。
|
||||
|
||||
## 非阻塞遗留项(不阻塞本次交付,建议独立增量)
|
||||
|
||||
1. 各仓 `AGENT-EXECUTION.md` 说明文字仍有 kit 模板句“下例的 CLI 名称、命令与路径均为占位”(Agent-Intent 已改写);应修 DM kit 模板后统一刷新。
|
||||
2. Agent-System-Backend、Agent-System-Frontend 归档卡内少量证据相对链接未随归档调整。
|
||||
3. Agent-System-Backend 既有 CI 把 token 写入全局 git config(`insteadOf`);建议改为 URL 限定的 extraheader 环境变量方式。
|
||||
4. DM `agent-exec` 的 host 豁免路径(`.task/**` 等)为硬编码;可改为读取 AGENT-EXECUTION.md。
|
||||
5. 候选 PR 可修改自身 `governance.yml`(工作流取自 PR 头);单人仓风险可接受,多人协作前改为基线工作流或必需检查来源固定。
|
||||
6. 各仓 governance.yml 从镜像下载 Go 未做 sha256 校验。
|
||||
7. Agent-System-Backend 既有不稳定测试 `TestProjectEventsSharedProofAndPrivatePagination`。
|
||||
8. 旧 `feature/card-close-*` 远端分支待清点。
|
||||
|
||||
Reference in New Issue
Block a user