@fitlab-ai/agent-infra 0.7.5 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/lib/sandbox/commands/create.js +26 -4
  2. package/dist/lib/sandbox/tools.js +20 -1
  3. package/dist/lib/task/commands/log.js +56 -6
  4. package/lib/sandbox/commands/create.ts +33 -4
  5. package/lib/sandbox/tools.ts +28 -1
  6. package/lib/task/commands/log.ts +59 -6
  7. package/package.json +1 -1
  8. package/templates/.agents/rules/no-mid-flow-questions.en.md +11 -0
  9. package/templates/.agents/rules/no-mid-flow-questions.zh-CN.md +11 -0
  10. package/templates/.agents/rules/review-handshake.en.md +15 -1
  11. package/templates/.agents/rules/review-handshake.zh-CN.md +15 -1
  12. package/templates/.agents/rules/task-management.en.md +25 -0
  13. package/templates/.agents/rules/task-management.zh-CN.md +29 -0
  14. package/templates/.agents/scripts/validate-artifact.js +11 -2
  15. package/templates/.agents/skills/analyze-task/SKILL.en.md +11 -0
  16. package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +11 -0
  17. package/templates/.agents/skills/block-task/SKILL.en.md +10 -0
  18. package/templates/.agents/skills/block-task/SKILL.zh-CN.md +10 -0
  19. package/templates/.agents/skills/cancel-task/SKILL.en.md +10 -0
  20. package/templates/.agents/skills/cancel-task/SKILL.zh-CN.md +11 -1
  21. package/templates/.agents/skills/close-codescan/SKILL.en.md +10 -0
  22. package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +10 -0
  23. package/templates/.agents/skills/close-dependabot/SKILL.en.md +10 -0
  24. package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +10 -0
  25. package/templates/.agents/skills/code-task/SKILL.en.md +11 -0
  26. package/templates/.agents/skills/code-task/SKILL.zh-CN.md +11 -0
  27. package/templates/.agents/skills/commit/SKILL.en.md +10 -0
  28. package/templates/.agents/skills/commit/SKILL.zh-CN.md +10 -0
  29. package/templates/.agents/skills/complete-task/SKILL.en.md +10 -0
  30. package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +10 -0
  31. package/templates/.agents/skills/create-pr/SKILL.en.md +20 -1
  32. package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +20 -1
  33. package/templates/.agents/skills/create-release-note/SKILL.en.md +16 -1
  34. package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +16 -1
  35. package/templates/.agents/skills/create-task/SKILL.en.md +11 -0
  36. package/templates/.agents/skills/create-task/SKILL.zh-CN.md +14 -3
  37. package/templates/.agents/skills/import-codescan/SKILL.en.md +11 -0
  38. package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +11 -0
  39. package/templates/.agents/skills/import-dependabot/SKILL.en.md +11 -0
  40. package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +11 -0
  41. package/templates/.agents/skills/import-issue/SKILL.en.md +16 -0
  42. package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +16 -0
  43. package/templates/.agents/skills/plan-task/SKILL.en.md +12 -0
  44. package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +12 -0
  45. package/templates/.agents/skills/restore-task/SKILL.en.md +10 -0
  46. package/templates/.agents/skills/restore-task/SKILL.zh-CN.md +10 -0
  47. package/templates/.agents/skills/review-analysis/SKILL.en.md +10 -0
  48. package/templates/.agents/skills/review-analysis/SKILL.zh-CN.md +10 -0
  49. package/templates/.agents/skills/review-analysis/reference/review-criteria.en.md +1 -0
  50. package/templates/.agents/skills/review-analysis/reference/review-criteria.zh-CN.md +1 -0
  51. package/templates/.agents/skills/review-code/SKILL.en.md +10 -0
  52. package/templates/.agents/skills/review-code/SKILL.zh-CN.md +10 -0
  53. package/templates/.agents/skills/review-code/reference/review-criteria.en.md +1 -0
  54. package/templates/.agents/skills/review-code/reference/review-criteria.zh-CN.md +1 -0
  55. package/templates/.agents/skills/review-plan/SKILL.en.md +10 -0
  56. package/templates/.agents/skills/review-plan/SKILL.zh-CN.md +10 -0
  57. package/templates/.agents/skills/review-plan/reference/review-criteria.en.md +1 -0
  58. package/templates/.agents/skills/review-plan/reference/review-criteria.zh-CN.md +1 -0
  59. package/templates/.agents/skills/watch-pr/SKILL.en.md +10 -0
  60. package/templates/.agents/skills/watch-pr/SKILL.zh-CN.md +10 -0
  61. package/templates/.agents/templates/task.en.md +5 -0
  62. package/templates/.agents/templates/task.zh-CN.md +5 -0
@@ -31,6 +31,16 @@ Before the state check is complete, do not make external-state assertions such a
31
31
 
32
32
  > If `{task-id}` matches `^[#]?[0-9]+$` (bare numeric or `#`-prefixed), follow the "SKILL parameter resolver" section of `.agents/rules/task-short-id.md`; treat `{task-id}` as the resolved full `TASK-YYYYMMDD-HHMMSS` form for every downstream command.
33
33
 
34
+ ## Step Start: Write the started Marker
35
+
36
+ After prerequisites pass and before this round's first artifact action, append a started marker to task.md `## Activity Log` (same base action as this round's done entry plus a ` [started]` suffix, note `started`):
37
+
38
+ ```
39
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Plan Task (Round {N}) [started]** by {agent} — started
40
+ ```
41
+
42
+ `ai task log` pairs it with the done entry written on completion (step 7) onto one row (in progress → done). Format and pairing rules: see the "Activity Log started / done dual-marker convention" in `.agents/rules/task-management.md`.
43
+
34
44
  ## Steps
35
45
 
36
46
  ### 1. Verify Prerequisites
@@ -87,6 +97,8 @@ Follow the `technical-design` step in `.agents/workflows/feature-development.yam
87
97
  - [ ] Define the verification strategy (tests, manual checks)
88
98
  - [ ] Assess impact and risks
89
99
 
100
+ When this round introduces a new key design decision, record it under `## Open Questions` according to `.agents/rules/no-mid-flow-questions.md` and write the matching `HD-` ledger row.
101
+
90
102
  **Design principles**:
91
103
  1. **Architectural soundness**: choose the structurally correct approach; diff size is not the primary criterion. Do not pile changes onto an unsound structure just to keep the diff small
92
104
  2. **Simplicity**: given a sound architecture, prefer the simplest approach and avoid over-engineering
@@ -31,6 +31,16 @@ tail .agents/workspace/active/{task-id}/task.md
31
31
 
32
32
  > 如果 `{task-id}` 入参匹配 `^[#]?[0-9]+$`(裸数字或带 `#` 前缀),先读取 `.agents/rules/task-short-id.md` 的「SKILL 入参解析」段执行解析;后续命令视 `{task-id}` 为解析后的全长 `TASK-YYYYMMDD-HHMMSS` 形式。
33
33
 
34
+ ## 步骤开始:写入 started 标记
35
+
36
+ 确认前置条件后、本轮第一个产出动作之前,向 task.md `## 活动日志` 追加一条 started 标记(与本轮 done 条目同基名 + ` [started]` 后缀,note 用 `started`):
37
+
38
+ ```
39
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Plan Task (Round {N}) [started]** by {agent} — started
40
+ ```
41
+
42
+ `ai task log` 会把它与步骤完成时(步骤 7)写入的 done 条目配对成一行(进行中 → 已完成)。格式与配对规则见 `.agents/rules/task-management.md` 的「Activity Log started / done 双标记约定」。
43
+
34
44
  ## 执行步骤
35
45
  ### 1. 验证前置条件
36
46
 
@@ -86,6 +96,8 @@ tail .agents/workspace/active/{task-id}/task.md
86
96
  - [ ] 定义验证策略(测试、手动检查)
87
97
  - [ ] 评估方案的影响和风险
88
98
 
99
+ 遇到本轮新增的关键设计决策时,按 `.agents/rules/no-mid-flow-questions.md` 判据写入 `## 未决问题`,并回写 `HD-` 账本行。
100
+
89
101
  **设计原则**:
90
102
  1. **架构合理性**:选择结构正确的方案,改动大小不是首要依据。不要为了减少 diff 而在不合理的结构上叠加
91
103
  2. **简洁性**:在架构合理的前提下,优先选择最简方案,避免过度设计
@@ -20,6 +20,16 @@ Version stamp rule: when creating or updating `task.md` frontmatter, read `.agen
20
20
 
21
21
  > If `{task-id}` matches `^[#]?[0-9]+$` (bare numeric or `#`-prefixed), follow the "SKILL parameter resolver" section of `.agents/rules/task-short-id.md`; treat `{task-id}` as the resolved full `TASK-YYYYMMDD-HHMMSS` form for every downstream command.
22
22
 
23
+ ## Step Start: Write the started Marker
24
+
25
+ After prerequisites pass and before this step's first artifact action, append a started marker to task.md `## Activity Log` (same base action as this step's done entry plus a ` [started]` suffix, note `started`):
26
+
27
+ ```
28
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Restore Task [started]** by {agent} — started
29
+ ```
30
+
31
+ `ai task log` pairs it with the done entry written on completion onto one row (in progress → done). See the "Activity Log started / done dual-marker convention" in `.agents/rules/task-management.md`.
32
+
23
33
  ## Steps
24
34
 
25
35
  ### 1. Verify Input and Environment
@@ -20,6 +20,16 @@ description: "从平台 Issue 评论还原本地任务文件"
20
20
 
21
21
  > 如果 `{task-id}` 入参匹配 `^[#]?[0-9]+$`(裸数字或带 `#` 前缀),先读取 `.agents/rules/task-short-id.md` 的「SKILL 入参解析」段执行解析;后续命令视 `{task-id}` 为解析后的全长 `TASK-YYYYMMDD-HHMMSS` 形式。
22
22
 
23
+ ## 步骤开始:写入 started 标记
24
+
25
+ 确认前置条件后、本步骤第一个产出动作之前,向 task.md `## 活动日志` 追加一条 started 标记(与本步骤 done 条目同基名 + ` [started]` 后缀,note 用 `started`):
26
+
27
+ ```
28
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Restore Task [started]** by {agent} — started
29
+ ```
30
+
31
+ `ai task log` 会把它与完成时写入的 done 条目配对成一行(进行中 → 已完成)。约定见 `.agents/rules/task-management.md` 的「Activity Log started / done 双标记约定」。
32
+
23
33
  ## 执行步骤
24
34
  ### 1. 验证输入与环境
25
35
 
@@ -30,6 +30,16 @@ tail .agents/workspace/active/{task-id}/task.md
30
30
 
31
31
  > If `{task-id}` matches `^[#]?[0-9]+$` (bare numeric or `#`-prefixed), follow the "SKILL parameter resolver" section of `.agents/rules/task-short-id.md`; treat `{task-id}` as the resolved full `TASK-YYYYMMDD-HHMMSS` form for every downstream command.
32
32
 
33
+ ## Step Start: Write the started Marker
34
+
35
+ After prerequisites pass and before this round's first artifact action, append a started marker to task.md `## Activity Log` (same base action as this round's done entry plus a ` [started]` suffix, note `started`):
36
+
37
+ ```
38
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Review Analysis (Round {N}) [started]** by {agent} — started
39
+ ```
40
+
41
+ `ai task log` pairs it with the done entry written when the review completes onto one row (in progress → done). Format and pairing rules: see the "Activity Log started / done dual-marker convention" in `.agents/rules/task-management.md`.
42
+
33
43
  ## Steps
34
44
 
35
45
  ### 1. Verify Prerequisites
@@ -32,6 +32,16 @@ tail .agents/workspace/active/{task-id}/task.md
32
32
 
33
33
  > 如果 `{task-id}` 入参匹配 `^[#]?[0-9]+$`(裸数字或带 `#` 前缀),先读取 `.agents/rules/task-short-id.md` 的「SKILL 入参解析」段执行解析;后续命令视 `{task-id}` 为解析后的全长 `TASK-YYYYMMDD-HHMMSS` 形式。
34
34
 
35
+ ## 步骤开始:写入 started 标记
36
+
37
+ 确认前置条件后、本轮第一个产出动作之前,向 task.md `## 活动日志` 追加一条 started 标记(与本轮 done 条目同基名 + ` [started]` 后缀,note 用 `started`):
38
+
39
+ ```
40
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Review Analysis (Round {N}) [started]** by {agent} — started
41
+ ```
42
+
43
+ `ai task log` 会把它与审查完成时写入的 done 条目配对成一行(进行中 → 已完成)。格式与配对规则见 `.agents/rules/task-management.md` 的「Activity Log started / done 双标记约定」。
44
+
35
45
  ## 执行步骤
36
46
  ### 1. 验证前置条件
37
47
 
@@ -13,6 +13,7 @@ Follow the `analysis-review` step in `.agents/workflows/feature-development.yaml
13
13
  - [ ] Risks, edge cases, and open questions are recorded
14
14
  - [ ] The design stage has enough input to proceed
15
15
  - [ ] The analysis matches the original Issue or user request
16
+ - [ ] The reviewer checked whether the executor missed any key design decision that should be upgraded to `[needs-human-decision]`
16
17
  - [ ] Every blocker is backed by reproducible grep/sed/nl evidence; conclusions not directly verified are declared under Self-Doubt
17
18
 
18
19
  **Common anti-examples**:
@@ -13,6 +13,7 @@
13
13
  - [ ] 风险、边界情况和开放问题是否记录
14
14
  - [ ] 后续设计阶段是否有足够输入
15
15
  - [ ] 与原始 Issue / 用户需求是否一致
16
+ - [ ] 已复核执行方是否漏标应升级为 `[needs-human-decision]` 的关键设计决策
16
17
  - [ ] 每条 blocker 都配可复现的 grep/sed/nl 证据,未直接验证的结论已在「自我质疑」声明
17
18
 
18
19
  **常见反例**:
@@ -41,6 +41,16 @@ Before the state check is complete, do not make external-state assertions such a
41
41
 
42
42
  > If `{task-id}` matches `^[#]?[0-9]+$` (bare numeric or `#`-prefixed), follow the "SKILL parameter resolver" section of `.agents/rules/task-short-id.md`; treat `{task-id}` as the resolved full `TASK-YYYYMMDD-HHMMSS` form for every downstream command.
43
43
 
44
+ ## Step Start: Write the started Marker
45
+
46
+ After prerequisites pass and before this round's first artifact action, append a started marker to task.md `## Activity Log` (same base action as this round's done entry plus a ` [started]` suffix, note `started`):
47
+
48
+ ```
49
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Review Code (Round {N}) [started]** by {agent} — started
50
+ ```
51
+
52
+ `ai task log` pairs it with the done entry written when the review completes onto one row (in progress → done). Format and pairing rules: see the "Activity Log started / done dual-marker convention" in `.agents/rules/task-management.md`.
53
+
44
54
  ## Steps
45
55
 
46
56
  ### 1. Verify Prerequisites
@@ -41,6 +41,16 @@ tail .agents/workspace/active/{task-id}/task.md
41
41
 
42
42
  > 如果 `{task-id}` 入参匹配 `^[#]?[0-9]+$`(裸数字或带 `#` 前缀),先读取 `.agents/rules/task-short-id.md` 的「SKILL 入参解析」段执行解析;后续命令视 `{task-id}` 为解析后的全长 `TASK-YYYYMMDD-HHMMSS` 形式。
43
43
 
44
+ ## 步骤开始:写入 started 标记
45
+
46
+ 确认前置条件后、本轮第一个产出动作之前,向 task.md `## 活动日志` 追加一条 started 标记(与本轮 done 条目同基名 + ` [started]` 后缀,note 用 `started`):
47
+
48
+ ```
49
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Review Code (Round {N}) [started]** by {agent} — started
50
+ ```
51
+
52
+ `ai task log` 会把它与审查完成时写入的 done 条目配对成一行(进行中 → 已完成)。格式与配对规则见 `.agents/rules/task-management.md` 的「Activity Log started / done 双标记约定」。
53
+
44
54
  ## 执行步骤
45
55
  ### 1. 验证前置条件
46
56
 
@@ -14,6 +14,7 @@ Follow the `code-review` step in `.agents/workflows/feature-development.yaml`.
14
14
  - [ ] Performance and security risks
15
15
  - [ ] Comments and documentation
16
16
  - [ ] Consistency with the approved technical plan
17
+ - [ ] The reviewer checked whether the executor missed any key design decision that should be upgraded to `[needs-human-decision]`
17
18
  - [ ] Every blocker is backed by reproducible grep/sed/nl evidence; conclusions not directly verified are declared under Self-Doubt
18
19
 
19
20
  **Common anti-examples**:
@@ -14,6 +14,7 @@
14
14
  - [ ] 性能与安全风险
15
15
  - [ ] 代码注释和文档
16
16
  - [ ] 与已批准技术方案的一致性
17
+ - [ ] 已复核执行方是否漏标应升级为 `[needs-human-decision]` 的关键设计决策
17
18
  - [ ] 每条 blocker 都配可复现的 grep/sed/nl 证据,未直接验证的结论已在「自我质疑」声明
18
19
 
19
20
  **常见反例**:
@@ -30,6 +30,16 @@ tail .agents/workspace/active/{task-id}/task.md
30
30
 
31
31
  > If `{task-id}` matches `^[#]?[0-9]+$` (bare numeric or `#`-prefixed), follow the "SKILL parameter resolver" section of `.agents/rules/task-short-id.md`; treat `{task-id}` as the resolved full `TASK-YYYYMMDD-HHMMSS` form for every downstream command.
32
32
 
33
+ ## Step Start: Write the started Marker
34
+
35
+ After prerequisites pass and before this round's first artifact action, append a started marker to task.md `## Activity Log` (same base action as this round's done entry plus a ` [started]` suffix, note `started`):
36
+
37
+ ```
38
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Review Plan (Round {N}) [started]** by {agent} — started
39
+ ```
40
+
41
+ `ai task log` pairs it with the done entry written when the review completes onto one row (in progress → done). Format and pairing rules: see the "Activity Log started / done dual-marker convention" in `.agents/rules/task-management.md`.
42
+
33
43
  ## Steps
34
44
 
35
45
  ### 1. Verify Prerequisites
@@ -32,6 +32,16 @@ tail .agents/workspace/active/{task-id}/task.md
32
32
 
33
33
  > 如果 `{task-id}` 入参匹配 `^[#]?[0-9]+$`(裸数字或带 `#` 前缀),先读取 `.agents/rules/task-short-id.md` 的「SKILL 入参解析」段执行解析;后续命令视 `{task-id}` 为解析后的全长 `TASK-YYYYMMDD-HHMMSS` 形式。
34
34
 
35
+ ## 步骤开始:写入 started 标记
36
+
37
+ 确认前置条件后、本轮第一个产出动作之前,向 task.md `## 活动日志` 追加一条 started 标记(与本轮 done 条目同基名 + ` [started]` 后缀,note 用 `started`):
38
+
39
+ ```
40
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Review Plan (Round {N}) [started]** by {agent} — started
41
+ ```
42
+
43
+ `ai task log` 会把它与审查完成时写入的 done 条目配对成一行(进行中 → 已完成)。格式与配对规则见 `.agents/rules/task-management.md` 的「Activity Log started / done 双标记约定」。
44
+
35
45
  ## 执行步骤
36
46
  ### 1. 验证前置条件
37
47
 
@@ -13,6 +13,7 @@ Follow the `design-review` step in `.agents/workflows/feature-development.yaml`.
13
13
  - [ ] Test strategy covers critical paths, regression risks, and edge cases
14
14
  - [ ] Risks, migration, rollback, or compatibility handling are sufficient
15
15
  - [ ] The plan avoids over-design and unrelated scope expansion
16
+ - [ ] The reviewer checked whether the executor missed any key design decision that should be upgraded to `[needs-human-decision]`
16
17
  - [ ] Every blocker is backed by reproducible grep/sed/nl evidence; conclusions not directly verified are declared under Self-Doubt
17
18
 
18
19
  **Common anti-examples**:
@@ -13,6 +13,7 @@
13
13
  - [ ] 测试策略是否覆盖关键路径、回归风险和边界情况
14
14
  - [ ] 风险、迁移、回滚或兼容性处理是否充分
15
15
  - [ ] 方案是否避免过度设计和无关扩张
16
+ - [ ] 已复核执行方是否漏标应升级为 `[needs-human-decision]` 的关键设计决策
16
17
  - [ ] 每条 blocker 都配可复现的 grep/sed/nl 证据,未直接验证的结论已在「自我质疑」声明
17
18
 
18
19
  **常见反例**:
@@ -21,6 +21,16 @@ Version stamp rule: before creating or updating `task.md` frontmatter, read `.ag
21
21
 
22
22
  > If the `{task-id}` argument matches `^[#]?[0-9]+$` (a bare number or `#`-prefixed), first read the "SKILL argument parsing" section of `.agents/rules/task-short-id.md` to resolve it; subsequent commands treat `{task-id}` as the resolved full `TASK-YYYYMMDD-HHMMSS` form.
23
23
 
24
+ ## Step Start: Write the started Marker
25
+
26
+ After prerequisites pass and before this round's first artifact action, append a started marker to task.md `## Activity Log` (same base action as this round's done entry plus a ` [started]` suffix, note `started`):
27
+
28
+ ```
29
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Watch PR (Round {N}) [started]** by {agent} — started
30
+ ```
31
+
32
+ `ai task log` pairs it with the done entry written on completion onto one row (in progress → done). See the "Activity Log started / done dual-marker convention" in `.agents/rules/task-management.md`.
33
+
24
34
  ## Steps
25
35
 
26
36
  ### 1. Resolve Arguments
@@ -21,6 +21,16 @@ description: "监控 PR 的 required checks 并在失败时自愈"
21
21
 
22
22
  > 如果 `{task-id}` 入参匹配 `^[#]?[0-9]+$`(裸数字或带 `#` 前缀),先读取 `.agents/rules/task-short-id.md` 的「SKILL 入参解析」段执行解析;后续命令视 `{task-id}` 为解析后的全长 `TASK-YYYYMMDD-HHMMSS` 形式。
23
23
 
24
+ ## 步骤开始:写入 started 标记
25
+
26
+ 确认前置条件后、本轮第一个产出动作之前,向 task.md `## 活动日志` 追加一条 started 标记(与本轮 done 条目同基名 + ` [started]` 后缀,note 用 `started`):
27
+
28
+ ```
29
+ - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Watch PR (Round {N}) [started]** by {agent} — started
30
+ ```
31
+
32
+ `ai task log` 会把它与完成时写入的 done 条目配对成一行(进行中 → 已完成)。约定见 `.agents/rules/task-management.md` 的「Activity Log started / done 双标记约定」。
33
+
24
34
  ## 执行步骤
25
35
 
26
36
  ### 1. 解析入参
@@ -60,10 +60,15 @@ pr_status: pending # PR status: pending (default) | created (PR crea
60
60
  | id | stage | round | severity | status | evidence |
61
61
  |----|-------|-------|----------|--------|----------|
62
62
 
63
+ ## Human Rulings
64
+
65
+ <!-- Humans record rulings for needs-human-decision decisions here and flip matching HD- rows in the Review Disagreement Ledger to human-decided. -->
66
+
63
67
  ## Activity Log
64
68
 
65
69
  <!-- Append a new entry for each workflow step. Do NOT overwrite previous entries. -->
66
70
  <!-- Format: - {YYYY-MM-DD HH:mm:ss±HH:MM} — **{step}** by {agent} — {brief summary} -->
71
+ <!-- Some workflow skills also write a started marker when the step begins (action suffixed with ` [started]`) and a done entry on completion; ai task log pairs them onto one row by base action. Convention: see .agents/rules/task-management.md. -->
67
72
 
68
73
  ## Completion Checklist
69
74
 
@@ -60,10 +60,15 @@ pr_status: pending # PR 状态:pending(默认)| created(已
60
60
  | id | stage | round | severity | status | evidence |
61
61
  |----|-------|-------|----------|--------|----------|
62
62
 
63
+ ## 人工裁决
64
+
65
+ <!-- 人类在此记录对 needs-human-decision 决策的裁定,并把 ## 审查分歧账本 对应 HD- 行翻为 human-decided。 -->
66
+
63
67
  ## 活动日志
64
68
 
65
69
  <!-- 每个工作流步骤追加一条新记录,不要覆盖之前的记录。 -->
66
70
  <!-- 格式:- {YYYY-MM-DD HH:mm:ss±HH:MM} — **{步骤}** by {执行者} — {简要说明} -->
71
+ <!-- 部分工作流 SKILL 在步骤开始时额外写一条 started 标记(action 末尾加 ` [started]`),完成时再写 done;ai task log 会按基名把两者配对成一行。约定见 .agents/rules/task-management.md。 -->
67
72
 
68
73
  ## 完成检查清单
69
74