Files
Agent-Intent/.task/archive/feature-governance-adoption.md
T
weichen 660992ab10
ci / docker-checkout-hostgateway (pull_request) Successful in 1s
governance / governance (pull_request) Successful in 21s
ci / vet-and-test (pull_request) Successful in 24s
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 6ca6299b39406dd12f21e80462524ba0a9012517; independent Review REPLAY (cursor-agent-stable --mode ask 全新只读会话(fresh_session=true,session id not-observable)闭合重审 VERDICT: APPROVE(对象 6ca6299)).
Impact: task card only (moved to .task/archive/).
Refs: https://git-home.u1680832.nyat.app:30319/weichen/Agent-Intent/pulls/12
2026-10-17 09:31:05 +00:00

7.9 KiB
Raw Blame History

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

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

基线与授权

  • 权威仓:weichen/Agent-Intent;root_target:main;immediate_target:main
  • branch_kind:initiative;initiative_id:governance-adoption-Agent-Intent
  • R0(initial_main_sha):343b1e6d9a5b58e47bf7e594826221036ae8175c;工作区:/home/weichen/projects/Agent-Intent-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-Intent-r1 13 个允许路径(治理文件 + 两个 gitlink) 0e0e815f implementation cursor→antigravity→pi run 73a75d97(dm-server pinned,attempts=1) cursor / not-observable success 57f92f919f5a(apply 快进) 否
governance-adoption-Agent-Intent-repair-r1 PROJECT.md、policy/guidelines-adoption.md repair cursor→antigravity→pi run 18b6c1a0(attempts=1) cursor / not-observable success 511b8142b7e6(apply 快进) 否 /tmp/gov-receipt-Agent-Intent-repair-r1.json
governance-adoption-Agent-Intent-repair-r2 AGENT-EXECUTION.md、policy/guidelines-adoption.md repair cursor→antigravity→pi run(attempts=1) cursor / not-observable blocked(worker 正确指出卡片证据表尚无 GATE 行,引用将悬空;对账:本 worktree 干净、无 transport;先补卡片 GATE 行后以全新 r3 重跑) 无 否 /tmp/gov-receipt-Agent-Intent-repair-r2.json
governance-adoption-Agent-Intent-repair-r3 AGENT-EXECUTION.md、policy/guidelines-adoption.md repair cursor→antigravity→pi run 7ab07317(attempts=1) cursor / not-observable success 0f8e2de85f55(apply 快进) 否 /tmp/gov-receipt-Agent-Intent-repair-r3.json

同步记录

节点 sync_base_sha tested_head_sha checked_at 结果
启动 343b1e6d9a 343b1e6d9a 2026-10-17T07:17:39Z 一致
请求审核 343b1e6d9a 8d54bed798 2026-10-17T08:58:27Z 已含 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 来源 摘要/位置
20261017T073820Z scripts/dm governance check --repo . 57f92f919f 0 SELF ok fixtures;输出 sha256:1141eb0063f8ad39
20261017T073820Z scripts/agent-exec validate --repo . 57f92f919f 0 SELF validate: ok;输出 sha256:19b56ec1b547dd80
20261017T073820Z python3 /tmp/gov-neg/adopt_cases.py . 57f92f919f 0 SELF [verdict] ALL PASS cases=5;输出 sha256:acdf4ab65c895249
20261017T083653Z scripts/dm governance check --repo . 511b8142b7 0 SELF ok fixtures;输出 sha256:7040baf88f4510c1
20261017T083653Z scripts/agent-exec validate --repo . 511b8142b7 0 SELF validate: ok;输出 sha256:ceff66715e93873c
2026-10-17T08:58:27Z CI ci / docker-checkout-hostgateway (pull_request) 8d54bed798 0 GATE success;运行
2026-10-17T08:58:27Z CI governance / governance (pull_request) 8d54bed798 0 GATE success;运行
2026-10-17T08:58:27Z CI ci / vet-and-test (pull_request) 8d54bed798 0 GATE success;运行
20261017T092123Z scripts/dm governance check --repo . 0f8e2de85f 0 SELF ok fixtures;输出 sha256:e10c752533fee0f8
20261017T092123Z scripts/agent-exec validate --repo . 0f8e2de85f 0 SELF validate: ok;输出 sha256:6e46dd574cf74ee4
— 候选 HEAD CI 6ca6299b39 0 GATE success ci / docker-checkout-hostgateway (pull_request)=success(/weichen/Agent-Intent/actions/runs/3633/jobs/5738);governance / governance (pull_request)=success(/weichen/Agent-Intent/actions/runs/3635/jobs/5740);ci / vet-and-test (pull_request)=success(/weichen/Agent-Intent/actions/runs/3633/jobs/5737)
— 独立 Review 6ca6299b39 0 REPLAY cursor-agent-stable --mode ask 全新只读会话(fresh_session=true,session id not-observable)闭合重审 VERDICT: APPROVE(对象 6ca6299)