Files
Agent-System-Documents/.task/archive/feature-governance-adoption.md
T
weichen acaaaa67e0
governance / governance (pull_request) Successful in 20s
Close and archive the governance adoption card
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
2026-10-17 09:22:10 +00:00

7.2 KiB
Raw Blame History

Agent-System-Documents 采纳 development-governance-v2 治理套件 任务卡

任务主记录:Agent-System-Documents PR #110(本文件随 PR 描述维护)。 状态:已完成(闭合随本 PR 合入;合入以平台记录为准);owner:weichen。

基线与授权

  • 权威仓:weichen/Agent-System-Documents;root_target:main;immediate_target:main
  • branch_kind:initiative;initiative_id:governance-adoption-Agent-System-Documents
  • R0(initial_main_sha):da4d016ee1dee6a418411ed0f8b45911fe9aab02;工作区:/home/weichen/projects/Agent-System-Documents-wt-feature-governance-adoption(worktree);分支:feature/governance-adoption
  • 父任务信息(仅子任务填写):无
  • accepting_requirements:false(单仓采纳 initiative,范围固定为下列十步,不接收新需求)
  • 需求分流:verdict=NEW;selected_initiative=无;候选=无;理由=development-governance-v2 Phase 6 每个正式仓库独立 initiative;triage 收据=无(本仓采纳前尚无 triage 入口)
  • 授权与交付终点:owner 已授权 development-governance-v2 全部实施(Agent-System-Dev 主记录 docs/superpowers/plans/2026-10-16-development-governance-v2-master.md);终点为本 PR 合入 main 且采纳状态 active。分支保护与 tag 由用户执行。
  • 实施执行:agent-per-unit(配置:AGENT-EXECUTION.md;外部 Agent 一单元一新进程/会话/工作区)

目标与非目标

目标(Phase 6 十步):固定 Guidelines SHA(deps/development-guidelines @ 2688fd2be6a52c0bf110e7e6366b6f291ab5e4eb);增加 AGENT-EXECUTION.md;增加共享执行器薄入口(deps/development-manager @ bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c + scripts/dm、scripts/agent-exec、scripts/task);四条路由(implementation/repair/test/review);任务卡模板与分支元数据;CI 中启用 schema 校验(.gitea/workflows/governance.yml:agent-exec validate + governance check);一次正例运行;负例(缺配置、坏收据、越界路径、未知副作用);独立 Review + CI;采纳状态 active。

非目标:不改业务代码与既有测试;不改分支保护(由用户执行);不发布 tag。

引导说明:AGENT-EXECUTION.md 由 host 以固定版本治理套件(dm-server governance init @ bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c)生成并作为引导配置提交(执行器运行前必须存在有效配置;沿用 DM 采纳先例);其余文件由实施单元生成。

Agent 实施收据

单元 ID 预期范围 角色 候选顺序 attempt CLI/模型 终态 transport fallback 源码外收据路径
governance-adoption-Agent-System-Documents-r1 13 个允许路径(治理文件 + 两个 gitlink) implementation cursor→antigravity→pi run 3a6bdcf3(dm-server pinned,attempts=1) cursor / not-observable failed-unknown 无(apply 快进) 否
对账(r1) 规范 worktree 仍为 d259242 且干净;无 transport ref。worker 自报外部副作用:并行 worker 共用固定文件 /tmp/gov-scratch-path.txt 记录 scratch 路径,该文件被覆盖后误删非本单元创建的仓外临时目录 /tmp/tmp.2FlZqPmOJM(不可恢复;各单元私有工作区不在该路径,已完成单元收据均为 success) — — — — — failed-unknown 对账完成;单元包追加禁止固定共享 /tmp 路径约束后全新运行 r2 — —
governance-adoption-Agent-System-Documents-r2 13 个允许路径(治理文件 + 两个 gitlink) cf44b1ed implementation cursor→antigravity→pi run 8348cbe4(dm-server pinned,attempts=1) cursor / not-observable success fd13a266777b(apply 快进) 否
governance-adoption-Agent-System-Documents-repair-r1 PROJECT.md、policy/guidelines-adoption.md repair cursor→antigravity→pi run cddbee35(attempts=1) cursor / not-observable success 31daf7f76493(apply 快进) 否 /tmp/gov-receipt-Agent-System-Documents-repair-r1.json

同步记录

节点 sync_base_sha tested_head_sha checked_at 结果
启动 da4d016ee1 da4d016ee1 2026-10-17T07:16:27Z 一致
请求审核 da4d016ee1 6a1308c251 2026-10-17T08:47:50Z 已含 origin/main

结果与验证(完成后填写)

  • 结果:治理套件已采纳——Guidelines 与 Development-Manager gitlink 固定、AGENT-EXECUTION.md 四条路由、共享执行器薄入口、pre-commit admit、governance CI;采纳状态 active 随本 PR 合入生效。
  • 验证:见下表(命令输出由 /tmp/gov-neg/ev.sh 写入 .task/evidence/governance-adoption/,SELF 除非另注)。
  • 复现:正负例脚本冻结副本 Agent-System-Dev docs/superpowers/plans/evidence/governance-adopt-cases.py(sha256 3aa1bf6ea1cd48f3f59c0a307620e4112389a93fe21a113006f54e62eb8f0d06),用法 python3 governance-adopt-cases.py <仓库根>;它经本仓 scripts/agent-exec 运行假 CLI,不访问网络。
  • 影响与剩余项:不改业务代码;本地启用钩子需由人执行 git config core.hooksPath scripts/hooks;将 governance 检查设为分支保护必需项属用户双钥匙事项(命令见 Agent-System-Dev 治理主记录)。
时间(UTC) 命令 被测 HEAD exit 来源 摘要/位置
20261017T074046Z scripts/dm governance check --repo . fd13a26677 0 SELF ok fixtures;输出 sha256:0ff0ec3150c5162e
20261017T074046Z scripts/agent-exec validate --repo . fd13a26677 0 SELF validate: ok;输出 sha256:7ba43b8b1d0ee152
20261017T074046Z python3 /tmp/gov-neg/adopt_cases.py . fd13a26677 0 SELF [verdict] ALL PASS cases=5;输出 sha256:b63c5ee476cd94f5
20261017T084129Z scripts/dm governance check --repo . 31daf7f764 0 SELF ok fixtures;输出 sha256:809536ab8a8d1caa
20261017T084129Z scripts/agent-exec validate --repo . 31daf7f764 0 SELF validate: ok;输出 sha256:3d3cf541ce4c6560
2026-10-17T08:47:50Z CI governance / governance (pull_request) 6a1308c251 0 GATE success;运行
— 候选 HEAD CI 9d4582a47f 0 GATE success governance / governance (pull_request)=success(/weichen/Agent-System-Documents/actions/runs/3611/jobs/5709)
— 独立 Review 9d4582a47f 0 REPLAY cursor-agent-stable --mode ask 全新只读会话(fresh_session=true,session id not-observable)闭合重审 VERDICT: APPROVE(对象 9d4582a,与 HEAD 仅 .task/ 不同)