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

Merged
weichen merged 8 commits from feature/governance-adoption into main 2026-10-17 09:25:26 +00:00
Owner

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

Why: development-governance-v2 Phase 6——Agent-System-Documents 采纳 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-System-Documents 采纳 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 4 commits 2026-10-17 07:40:48 +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
Why: the r1 attempt ended failed-unknown (invalid terminal record); fail-stop requires reconciliation before a fresh attempt.
Evidence: receipt /tmp/gov-receipt-Agent-System-Documents-r1.json; worktree clean, no transport ref (SELF).
Impact: task card only.
Refs: .task/feature-governance-adoption.md
Record the adoption unit run and positive/negative evidence
governance / governance (pull_request) Successful in 18s
c51ae06b4d
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 3 commits 2026-10-17 07:40:50 +00:00
Why: the r1 attempt ended failed-unknown (invalid terminal record); fail-stop requires reconciliation before a fresh attempt.
Evidence: receipt /tmp/gov-receipt-Agent-System-Documents-r1.json; worktree clean, no transport ref (SELF).
Impact: task card only.
Refs: .task/feature-governance-adoption.md
Record the adoption unit run and positive/negative evidence
governance / governance (pull_request) Successful in 18s
c51ae06b4d
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:41:31 +00:00
docs(task): record review repair run and evidence
governance / governance (pull_request) Successful in 17s
6a1308c251
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:47:53 +00:00
docs(task): complete the card for review (sync, CI, results)
governance / governance (pull_request) Successful in 23s
9d4582a47f
weichen added 1 commit 2026-10-17 09:22:12 +00:00
Close and archive the governance adoption card
governance / governance (pull_request) Successful in 20s
acaaaa67e0
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 9d4582a47f4f4c887afd2fafb3ad507f20716f8d; independent Review REPLAY (cursor-agent-stable --mode ask 全新只读会话(fresh_session=true,session id not-observable)闭合重审 VERDICT: APPROVE(对象 9d4582a,与 HEAD 仅 .task/ 不同)).
Impact: task card only (moved to .task/archive/).
Refs: https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Documents/pulls/110
weichen merged commit 6c04eb24f4 into main 2026-10-17 09:25:26 +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-System-Documents#110