Adopt the shared governance kit (development-governance-v2) #47

Merged
weichen merged 7 commits from feature/governance-adoption into main 2026-10-17 09:22:02 +00:00
Owner

本 PR 描述与任务卡 .task/feature-governance-adoption.md 同源(目标、单元收据、证据表见任务卡)。

Why: development-governance-v2 Phase 6——Agent-Native 采纳 Development-Guidelines 与共享治理套件(每个正式仓库一个 initiative,十步)。

Evidence(详见任务卡与 .task/evidence/governance-adoption/):

  • 实施:dm-server agent-exec run(cursor,fresh session),agent-exec apply 快进集成;AGENT-EXECUTION.md 为 host 以固定治理套件生成的引导配置。
  • SELF:scripts/dm governance check 全部 ok;scripts/agent-exec validate ok;正负例 ALL PASS(正例 run+apply、缺配置、坏收据、越界路径、未知副作用);卡片提交经生成的 pre-commit(admit: ok)。
  • REPLAY:独立 Review(pi --no-session),结论见 PR 评论。
  • GATE:本 PR HEAD 的 CI(新增 governance 工作流:agent-exec validate + governance check)。

Impact: 新增 gitlink(Guidelines 2688fd2、Development-Manager bd3a7de)、AGENT-EXECUTION.md(四条路由)、scripts/dm|agent-exec|task、pre-commit、.gitea/workflows/governance.yml、任务卡模板与采纳记录(状态 active);不改业务代码。分支保护(如将 governance 检查设为必需)由用户执行。

Refs: Agent-System-Dev docs/superpowers/plans/2026-10-16-development-governance-v2-master.md

本 PR 描述与任务卡 `.task/feature-governance-adoption.md` 同源(目标、单元收据、证据表见任务卡)。 Why: development-governance-v2 Phase 6——Agent-Native 采纳 Development-Guidelines 与共享治理套件(每个正式仓库一个 initiative,十步)。 Evidence(详见任务卡与 .task/evidence/governance-adoption/): - 实施:dm-server agent-exec run(cursor,fresh session),`agent-exec apply` 快进集成;AGENT-EXECUTION.md 为 host 以固定治理套件生成的引导配置。 - SELF:`scripts/dm governance check` 全部 ok;`scripts/agent-exec validate` ok;正负例 ALL PASS(正例 run+apply、缺配置、坏收据、越界路径、未知副作用);卡片提交经生成的 pre-commit(admit: ok)。 - REPLAY:独立 Review(pi --no-session),结论见 PR 评论。 - GATE:本 PR HEAD 的 CI(新增 governance 工作流:agent-exec validate + governance check)。 Impact: 新增 gitlink(Guidelines 2688fd2、Development-Manager bd3a7de)、AGENT-EXECUTION.md(四条路由)、scripts/dm|agent-exec|task、pre-commit、.gitea/workflows/governance.yml、任务卡模板与采纳记录(状态 active);不改业务代码。分支保护(如将 governance 检查设为必需)由用户执行。 Refs: Agent-System-Dev docs/superpowers/plans/2026-10-16-development-governance-v2-master.md
weichen added 3 commits 2026-10-17 07:39:31 +00:00
Why: development-governance-v2 Phase 6 adopts the shared governance kit in every formal repository; the executor needs a valid AGENT-EXECUTION.md before any implementation unit can run.
Evidence: generated by dm-server governance init at Development-Manager bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c; dm-server agent-exec validate passes.
Impact: configuration and task card only; no code or CI change yet.
Refs: Agent-System-Dev docs/superpowers/plans/2026-10-16-development-governance-v2-master.md
Record the adoption unit run and positive/negative evidence
ci / docker-checkout-hostgateway (pull_request) Successful in 2s
governance / governance (pull_request) Successful in 42s
ci / vet-and-test (pull_request) Successful in 1m17s
c570f80e29
Why: Phase 6 requires one positive executor run and the negative cases (missing config, bad receipt, out-of-scope path, unknown side effect) before adoption becomes active.
Evidence: .task/evidence/governance-adoption/ (SELF): governance check, agent-exec validate and adoption cases; this commit passed the generated pre-commit hook (admit).
Impact: task card and evidence logs only.
Refs: .task/feature-governance-adoption.md
weichen added 2 commits 2026-10-17 08:36:55 +00:00
docs(task): record review repair run and evidence
ci / docker-checkout-hostgateway (pull_request) Successful in 2s
governance / governance (pull_request) Successful in 22s
ci / vet-and-test (pull_request) Successful in 58s
8d09aa0265
Why: independent Review blocked the adoption; the repair unit ran through the shared executor and was integrated with agent-exec apply.
Evidence: .task/evidence/governance-adoption/ (SELF): governance check and agent-exec validate on the repaired head.
Impact: task card and evidence logs only.
Refs: .task/feature-governance-adoption.md
weichen added 1 commit 2026-10-17 08:53:11 +00:00
docs(task): complete the card for review (sync, CI, results)
ci / docker-checkout-hostgateway (pull_request) Successful in 1s
governance / governance (pull_request) Successful in 16s
ci / vet-and-test (pull_request) Successful in 52s
3cf8fa39b6
weichen added 1 commit 2026-10-17 08:58:52 +00:00
Close and archive the governance adoption card
governance / governance (pull_request) Successful in 20s
ci / vet-and-test (pull_request) Successful in 56s
ci / docker-checkout-hostgateway (pull_request) Successful in 2s
73ae2bb616
Why: the adoption PR is reviewed and its candidate HEAD passed CI; the card closure is folded into the PR so no separate close PR is needed.
Evidence: CI GATE on 3cf8fa39b63197a98f54c18d24e8cb33b5d56908; independent Review REPLAY (cursor-agent-stable --mode ask 全新只读会话(fresh_session=true,session id not-observable)闭合重审 VERDICT: APPROVE(对象 3cf8fa3)).
Impact: task card only (moved to .task/archive/).
Refs: https://git-home.u1680832.nyat.app:30319/weichen/Agent-Native/pulls/47
weichen merged commit 14d48697a6 into main 2026-10-17 09:22:02 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-Native#47