From b6766ba76522572f26e13d4910aea1201d86a4ab Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 17 Oct 2026 08:01:53 +0000 Subject: [PATCH] Record the adoption unit run and positive/negative evidence 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 --- .../00-20261017T080152Z.log | 19 +++++++++++++++++++ .../01-20261017T080152Z.log | 7 +++++++ .../02-20261017T080152Z.log | 13 +++++++++++++ .task/feature-governance-adoption.md | 4 ++++ 4 files changed, 43 insertions(+) create mode 100644 .task/evidence/governance-adoption/00-20261017T080152Z.log create mode 100644 .task/evidence/governance-adoption/01-20261017T080152Z.log create mode 100644 .task/evidence/governance-adoption/02-20261017T080152Z.log diff --git a/.task/evidence/governance-adoption/00-20261017T080152Z.log b/.task/evidence/governance-adoption/00-20261017T080152Z.log new file mode 100644 index 0000000..124eba9 --- /dev/null +++ b/.task/evidence/governance-adoption/00-20261017T080152Z.log @@ -0,0 +1,19 @@ +command: scripts/dm governance check --repo . +cwd: /home/weichen/projects/Error-Code-System-wt-feature-governance-adoption +head: 2e0f6e91975becd127b7e53c8484d94d2dda64b2 +exit: 0 +utc: 20261017T080152Z +--- +ok gitlink deps/development-guidelines +ok gitlink deps/development-manager +ok agent-execution +ok file AGENTS.md +ok file PROJECT.md +ok file policy/guidelines-adoption.md +ok file .task/templates/task-card.md +ok executable scripts/agent-exec +ok executable scripts/hooks/pre-commit +ok executable scripts/dm +ok executable scripts/task +ok adoption status +ok fixtures diff --git a/.task/evidence/governance-adoption/01-20261017T080152Z.log b/.task/evidence/governance-adoption/01-20261017T080152Z.log new file mode 100644 index 0000000..1390ba1 --- /dev/null +++ b/.task/evidence/governance-adoption/01-20261017T080152Z.log @@ -0,0 +1,7 @@ +command: scripts/agent-exec validate --repo . +cwd: /home/weichen/projects/Error-Code-System-wt-feature-governance-adoption +head: 2e0f6e91975becd127b7e53c8484d94d2dda64b2 +exit: 0 +utc: 20261017T080152Z +--- +validate: ok diff --git a/.task/evidence/governance-adoption/02-20261017T080152Z.log b/.task/evidence/governance-adoption/02-20261017T080152Z.log new file mode 100644 index 0000000..ecc7c29 --- /dev/null +++ b/.task/evidence/governance-adoption/02-20261017T080152Z.log @@ -0,0 +1,13 @@ +command: python3 /tmp/gov-neg/adopt_cases.py . +cwd: /home/weichen/projects/Error-Code-System-wt-feature-governance-adoption +head: 2e0f6e91975becd127b7e53c8484d94d2dda64b2 +exit: 0 +utc: 20261017T080152Z +--- +[object] Error-Code-System-wt-feature-governance-adoption HEAD=2e0f6e91975becd127b7e53c8484d94d2dda64b2 +PASS positive-run-apply: run exit=0 terminal=success apply exit=0 head=c718e67e686b +PASS missing-config: run exit=2 terminal=invalid-config validate exit=2 +PASS bad-receipt: apply exit=4 head_unchanged=True msg=apply: no local integrity record: changed paths do not match the transport diff +PASS out-of-scope-path: run exit=5 terminal=scope-expansion transport=False +PASS unknown-side-effect: run exit=4 terminal=failed-unknown transport=False +[verdict] ALL PASS cases=5 diff --git a/.task/feature-governance-adoption.md b/.task/feature-governance-adoption.md index 963d701..c0d9486 100644 --- a/.task/feature-governance-adoption.md +++ b/.task/feature-governance-adoption.md @@ -28,6 +28,7 @@ |---|---|---|---|---|---|---|---|---|---| | 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 快进) | 否 | /tmp/gov-receipt-Error-Code-System-r1.json | | 对账(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 快进) | 否 | /tmp/gov-receipt-Error-Code-System-r2.json | ## 同步记录 @@ -43,3 +44,6 @@ | 时间(UTC) | 命令 | 被测 HEAD | exit | 来源 | 摘要/位置 | |---|---|---|---|---|---| +| 20261017T080152Z | `scripts/dm governance check --repo .` | 2e0f6e91975b | 0 | SELF | ok fixtures;[输出](evidence/governance-adoption/00-20261017T080152Z.log) sha256:6b57cfff826f0653 | +| 20261017T080152Z | `scripts/agent-exec validate --repo .` | 2e0f6e91975b | 0 | SELF | validate: ok;[输出](evidence/governance-adoption/01-20261017T080152Z.log) sha256:717f480e4b76493e | +| 20261017T080152Z | `python3 /tmp/gov-neg/adopt_cases.py .` | 2e0f6e91975b | 0 | SELF | [verdict] ALL PASS cases=5;[输出](evidence/governance-adoption/02-20261017T080152Z.log) sha256:19889998d101d0fc |