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
5.2 KiB
5.2 KiB
Error-Code-System 采纳 development-governance-v2 治理套件 任务卡
任务主记录:本文件随 PR 描述维护(PR 链接见下方"结果与验证")。 状态:进行中;owner:weichen。
基线与授权
- 权威仓:weichen/Error-Code-System;root_target:main;immediate_target:main
- branch_kind:initiative;initiative_id:governance-adoption-Error-Code-System
- R0(initial_main_sha):9e99b52611449c0ce7f35527b9b95fe55701f892;工作区:/home/weichen/projects/Error-Code-System-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-Error-Code-System-r1 | 13 个允许路径(治理文件 + 两个 gitlink) | implementation | cursor→antigravity→pi | run 86b6cdd5(dm-server pinned,attempts=1) | cursor / not-observable | failed-unknown | 无(apply 快进) | 否 | |
| 对账(r1) | 规范 worktree 仍为 2309c69 且干净;无 transport ref |
— | — | — | — | — | 已对账;全新运行 r2(单元包追加禁止固定共享 /tmp 路径约束) | — | — |
| governance-adoption-Error-Code-System-r2 | 13 个允许路径(治理文件 + 两个 gitlink) | 00384d80 |
implementation | cursor→antigravity→pi | run 8ecd2d46(dm-server 42e675f,attempts=1) | cursor / not-observable | success | 2e0f6e91975b(apply 快进) | 否 |
| governance-adoption-Error-Code-System-repair-r1 | .gitea/workflows/ci.yml、policy/guidelines-adoption.md | repair | cursor→antigravity→pi | run 6ba5a466(attempts=1) | cursor / not-observable | success | 6012f1e6efca(apply 快进) | 否 | /tmp/gov-receipt-Error-Code-System-repair-r1.json |
同步记录
| 节点 | sync_base_sha | tested_head_sha | checked_at | 结果 |
|---|---|---|---|---|
| 启动 | 9e99b52611 |
9e99b52611 |
2026-10-17T07:18:14Z | 一致 |
结果与验证(完成后填写)
- 结果:NOT_RUN
- 验证:见下表(命令输出由 /tmp/gov-neg/ev.sh 写入 .task/evidence/governance-adoption/,SELF 除非另注)。
- 影响与剩余项:NOT_RUN
| 时间(UTC) | 命令 | 被测 HEAD | exit | 来源 | 摘要/位置 |
|---|---|---|---|---|---|
| 20261017T080152Z | scripts/dm governance check --repo . |
2e0f6e9197 |
0 | SELF | ok fixtures;输出 sha256:6b57cfff826f0653 |
| 20261017T080152Z | scripts/agent-exec validate --repo . |
2e0f6e9197 |
0 | SELF | validate: ok;输出 sha256:717f480e4b76493e |
| 20261017T080152Z | python3 /tmp/gov-neg/adopt_cases.py . |
2e0f6e9197 |
0 | SELF | [verdict] ALL PASS cases=5;输出 sha256:19889998d101d0fc |
| 20261017T084644Z | scripts/dm governance check --repo . |
6012f1e6ef |
0 | SELF | ok fixtures;输出 sha256:54905489c0706a14 |
| 20261017T084644Z | scripts/agent-exec validate --repo . |
6012f1e6ef |
0 | SELF | validate: ok;输出 sha256:4c1c6de194b757a8 |