@fitlab-ai/agent-infra 0.11.15 → 0.12.0
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.
- package/bin/cli.ts +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/bin/internal-cli.js +6 -1
- package/dist/lib/agent-clients/adapters/codex-lifecycle/recovery.js +6 -6
- package/dist/lib/agent-clients/adapters/codex-lifecycle/store.js +8 -18
- package/dist/lib/agent-clients/adapters/codex-orchestration.js +1 -1
- package/dist/lib/decide.js +2 -7
- package/dist/lib/internal/cli-route-inventory.js +3 -0
- package/dist/lib/internal/manual-validation.js +8 -16
- package/dist/lib/internal/platform-comment.js +3 -2
- package/dist/lib/internal/task-activity.js +1 -12
- package/dist/lib/internal/task-event.js +1 -12
- package/dist/lib/internal/task-ledger.js +1 -12
- package/dist/lib/internal/task-operation-registry.js +2 -1
- package/dist/lib/internal/task-qualification.js +6 -15
- package/dist/lib/internal/task-review.js +3 -16
- package/dist/lib/internal/task-short-id.js +2 -1
- package/dist/lib/internal/task-verify.js +1 -11
- package/dist/lib/internal/task-warning.js +1 -12
- package/dist/lib/internal/task-workspace.js +43 -0
- package/dist/lib/merge.js +4 -3
- package/dist/lib/platform/pr-summary.js +6 -15
- package/dist/lib/platform/pull-requests.js +3 -15
- package/dist/lib/pr-review/evidence-grading.js +3 -2
- package/dist/lib/process-data/index.js +5 -4
- package/dist/lib/process-data/sources.js +6 -0
- package/dist/lib/run/index.js +3 -2
- package/dist/lib/sandbox/commands/create.js +5 -1
- package/dist/lib/sandbox/commands/enter.js +1 -1
- package/dist/lib/sandbox/commands/list-running.js +2 -1
- package/dist/lib/sandbox/control/client.js +8 -13
- package/dist/lib/sandbox/control/completed-reentry.js +2 -1
- package/dist/lib/sandbox/control/task-view.js +4 -2
- package/dist/lib/sandbox/mounts.js +4 -4
- package/dist/lib/sandbox/recovery.js +26 -16
- package/dist/lib/sandbox/removal.js +3 -10
- package/dist/lib/sandbox/task-resolver.js +9 -6
- package/dist/lib/sandbox/workspace-identity.js +6 -5
- package/dist/lib/sandbox/workspace-view.js +29 -22
- package/dist/lib/task/activity-intent.js +2 -12
- package/dist/lib/task/artifact-lifecycle.js +17 -11
- package/dist/lib/task/artifact-operations.js +41 -49
- package/dist/lib/task/capabilities.js +2 -2
- package/dist/lib/task/commands/ls.js +4 -3
- package/dist/lib/task/commands/status.js +1 -1
- package/dist/lib/task/commit-operation.js +6 -6
- package/dist/lib/task/control-authority.js +32 -32
- package/dist/lib/task/create-service.js +2 -4
- package/dist/lib/task/create.js +12 -65
- package/dist/lib/task/delegation-receipts.js +1 -1
- package/dist/lib/task/delivery.js +2 -8
- package/dist/lib/task/events.js +5 -31
- package/dist/lib/task/finalization.js +17 -22
- package/dist/lib/task/lifecycle.js +9 -48
- package/dist/lib/task/local-artifact-finalization.js +1 -2
- package/dist/lib/task/orchestration.js +24 -57
- package/dist/lib/task/platform-operation-recovery.js +1 -2
- package/dist/lib/task/resolve-ref.js +17 -12
- package/dist/lib/task/review-finalization.js +2 -35
- package/dist/lib/task/review-identity.js +3 -1
- package/dist/lib/task/short-id.js +10 -8
- package/dist/lib/task/verification-engine.js +19 -58
- package/dist/lib/task/workspace-root.js +59 -0
- package/dist/lib/task/workspace-snapshot.js +4 -3
- package/dist/lifecycle-build-manifest.json +3 -3
- package/lib/agent-clients/adapters/codex-lifecycle/recovery.ts +6 -6
- package/lib/agent-clients/adapters/codex-lifecycle/store.ts +8 -34
- package/lib/agent-clients/adapters/codex-orchestration.ts +1 -1
- package/lib/decide.ts +2 -7
- package/lib/internal/cli-route-inventory.ts +2 -0
- package/lib/internal/manual-validation.ts +8 -19
- package/lib/internal/platform-comment.ts +3 -2
- package/lib/internal/task-activity.ts +1 -10
- package/lib/internal/task-event.ts +1 -10
- package/lib/internal/task-ledger.ts +1 -10
- package/lib/internal/task-operation-registry.ts +2 -1
- package/lib/internal/task-qualification.ts +5 -11
- package/lib/internal/task-review.ts +3 -14
- package/lib/internal/task-short-id.ts +2 -1
- package/lib/internal/task-verify.ts +1 -9
- package/lib/internal/task-warning.ts +1 -10
- package/lib/internal/task-workspace.ts +39 -0
- package/lib/merge.ts +4 -3
- package/lib/platform/pr-summary.ts +7 -16
- package/lib/platform/pull-requests.ts +3 -24
- package/lib/pr-review/evidence-grading.ts +3 -2
- package/lib/process-data/index.ts +4 -3
- package/lib/process-data/sources.ts +6 -0
- package/lib/run/index.ts +3 -2
- package/lib/sandbox/commands/create.ts +5 -1
- package/lib/sandbox/commands/enter.ts +1 -1
- package/lib/sandbox/commands/list-running.ts +2 -1
- package/lib/sandbox/control/client.ts +7 -12
- package/lib/sandbox/control/completed-reentry.ts +2 -1
- package/lib/sandbox/control/task-view.ts +4 -2
- package/lib/sandbox/mounts.ts +4 -4
- package/lib/sandbox/recovery.ts +26 -18
- package/lib/sandbox/removal.ts +3 -26
- package/lib/sandbox/task-resolver.ts +9 -6
- package/lib/sandbox/workspace-identity.ts +6 -5
- package/lib/sandbox/workspace-view.ts +28 -20
- package/lib/task/activity-intent.ts +3 -17
- package/lib/task/artifact-lifecycle.ts +39 -11
- package/lib/task/artifact-operations.ts +28 -35
- package/lib/task/capabilities.ts +2 -2
- package/lib/task/commands/ls.ts +4 -3
- package/lib/task/commands/status.ts +1 -1
- package/lib/task/commit-operation.ts +5 -6
- package/lib/task/control-authority.ts +29 -35
- package/lib/task/create-service.ts +2 -4
- package/lib/task/create.ts +10 -51
- package/lib/task/delegation-receipts.ts +1 -1
- package/lib/task/delivery.ts +2 -10
- package/lib/task/events.ts +5 -32
- package/lib/task/finalization.ts +16 -24
- package/lib/task/lifecycle.ts +9 -50
- package/lib/task/local-artifact-finalization.ts +1 -4
- package/lib/task/orchestration.ts +31 -80
- package/lib/task/platform-operation-recovery.ts +1 -2
- package/lib/task/resolve-ref.ts +18 -12
- package/lib/task/review-finalization.ts +2 -52
- package/lib/task/review-identity.ts +3 -1
- package/lib/task/short-id.ts +10 -8
- package/lib/task/verification-engine.ts +20 -62
- package/lib/task/workspace-root.ts +78 -0
- package/lib/task/workspace-snapshot.ts +4 -3
- package/package.json +1 -1
- package/templates/.agents/QUICKSTART.en.md +19 -8
- package/templates/.agents/QUICKSTART.zh-CN.md +19 -8
- package/templates/.agents/README.en.md +10 -15
- package/templates/.agents/README.zh-CN.md +9 -13
- package/templates/.agents/rules/issue-sync.en.md +1 -1
- package/templates/.agents/rules/issue-sync.zh-CN.md +1 -1
- package/templates/.agents/rules/lifecycle-orchestration.en.md +1 -1
- package/templates/.agents/rules/lifecycle-orchestration.zh-CN.md +1 -1
- package/templates/.agents/rules/next-step-output.en.md +2 -2
- package/templates/.agents/rules/next-step-output.zh-CN.md +2 -2
- package/templates/.agents/rules/pr-sync.en.md +1 -1
- package/templates/.agents/rules/pr-sync.zh-CN.md +1 -1
- package/templates/.agents/rules/release-commands.en.md +3 -0
- package/templates/.agents/rules/release-commands.zh-CN.md +3 -0
- package/templates/.agents/rules/task-management.en.md +0 -2
- package/templates/.agents/rules/task-management.zh-CN.md +0 -2
- package/templates/.agents/rules/task-short-id.en.md +2 -2
- package/templates/.agents/rules/task-short-id.zh-CN.md +2 -2
- package/templates/.agents/scripts/task-short-id.js +2 -8
- package/templates/.agents/skills/analyze-task/SKILL.en.md +6 -6
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/analyze-task/config/verify.en.json +0 -1
- package/templates/.agents/skills/analyze-task/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/archive-tasks/SKILL.en.md +5 -5
- package/templates/.agents/skills/archive-tasks/SKILL.zh-CN.md +5 -5
- package/templates/.agents/skills/archive-tasks/scripts/archive-tasks.sh +10 -2
- package/templates/.agents/skills/block-task/SKILL.en.md +4 -4
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +5 -5
- package/templates/.agents/skills/block-task/config/verify.json +0 -1
- package/templates/.agents/skills/cancel-task/SKILL.en.md +6 -6
- package/templates/.agents/skills/cancel-task/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/cancel-task/config/verify.json +0 -1
- package/templates/.agents/skills/code-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/code-task/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/code-task/config/verify.en.json +0 -1
- package/templates/.agents/skills/code-task/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/code-task/reference/output-template.en.md +1 -1
- package/templates/.agents/skills/code-task/reference/output-template.zh-CN.md +1 -1
- package/templates/.agents/skills/commit/SKILL.en.md +1 -1
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/commit/config/verify.json +0 -1
- package/templates/.agents/skills/commit/reference/commit-orchestration.en.md +2 -2
- package/templates/.agents/skills/commit/reference/commit-orchestration.zh-CN.md +2 -2
- package/templates/.agents/skills/commit/reference/pr-summary-sync.en.md +1 -1
- package/templates/.agents/skills/commit/reference/pr-summary-sync.zh-CN.md +1 -1
- package/templates/.agents/skills/complete-manual-validation/SKILL.en.md +2 -2
- package/templates/.agents/skills/complete-manual-validation/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/complete-manual-validation/config/verify.en.json +0 -1
- package/templates/.agents/skills/complete-manual-validation/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/complete-manual-validation/reference/summary-update.en.md +1 -1
- package/templates/.agents/skills/complete-manual-validation/reference/summary-update.zh-CN.md +1 -1
- package/templates/.agents/skills/complete-task/SKILL.en.md +7 -7
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +8 -8
- package/templates/.agents/skills/complete-task/config/verify.en.json +0 -1
- package/templates/.agents/skills/complete-task/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/create-pr/SKILL.en.md +3 -3
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/create-pr/config/verify.json +0 -1
- package/templates/.agents/skills/create-pr/reference/change-report.en.md +1 -1
- package/templates/.agents/skills/create-pr/reference/change-report.zh-CN.md +1 -1
- package/templates/.agents/skills/create-pr/reference/comment-publish.en.md +1 -1
- package/templates/.agents/skills/create-pr/reference/comment-publish.zh-CN.md +1 -1
- package/templates/.agents/skills/create-release-note/SKILL.en.md +2 -2
- package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/create-task/SKILL.en.md +4 -4
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +4 -4
- package/templates/.agents/skills/create-task/config/verify.json +0 -1
- package/templates/.agents/skills/import-codescan/SKILL.en.md +1 -1
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/import-codescan/config/verify.json +0 -1
- package/templates/.agents/skills/import-dependabot/SKILL.en.md +3 -3
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/import-dependabot/config/verify.json +0 -1
- package/templates/.agents/skills/import-issue/SKILL.en.md +5 -5
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +5 -5
- package/templates/.agents/skills/import-issue/config/verify.json +0 -1
- package/templates/.agents/skills/plan-task/SKILL.en.md +5 -5
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +5 -5
- package/templates/.agents/skills/plan-task/config/verify.en.json +0 -1
- package/templates/.agents/skills/plan-task/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/restore-task/SKILL.en.md +2 -2
- package/templates/.agents/skills/restore-task/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/restore-task/config/verify.json +0 -1
- package/templates/.agents/skills/review-analysis/SKILL.en.md +1 -1
- package/templates/.agents/skills/review-analysis/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/review-analysis/config/verify.en.json +0 -1
- package/templates/.agents/skills/review-analysis/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/review-analysis/reference/output-templates.en.md +5 -5
- package/templates/.agents/skills/review-analysis/reference/output-templates.zh-CN.md +5 -5
- package/templates/.agents/skills/review-code/SKILL.en.md +2 -2
- package/templates/.agents/skills/review-code/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/review-code/reference/output-templates.en.md +4 -4
- package/templates/.agents/skills/review-code/reference/output-templates.zh-CN.md +4 -4
- package/templates/.agents/skills/review-plan/SKILL.en.md +1 -1
- package/templates/.agents/skills/review-plan/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/review-plan/config/verify.en.json +0 -1
- package/templates/.agents/skills/review-plan/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/review-plan/reference/output-templates.en.md +5 -5
- package/templates/.agents/skills/review-plan/reference/output-templates.zh-CN.md +5 -5
- package/templates/.agents/skills/review-pr/SKILL.en.md +2 -2
- package/templates/.agents/skills/review-pr/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/review-pr/config/verify.en.json +0 -1
- package/templates/.agents/skills/review-pr/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/review-pr/reference/output-guidance.en.md +1 -1
- package/templates/.agents/skills/review-pr/reference/output-guidance.zh-CN.md +1 -1
- package/templates/.agents/skills/run-manual-validation/config/verify.en.json +0 -1
- package/templates/.agents/skills/run-manual-validation/config/verify.zh-CN.json +0 -1
- package/templates/.agents/skills/run-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/run-task/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/test/SKILL.en.md +0 -3
- package/templates/.agents/skills/test/SKILL.zh-CN.md +0 -3
- package/templates/.agents/skills/test-integration/SKILL.en.md +0 -3
- package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +0 -3
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +13 -6
- package/templates/.agents/skills/upgrade-dependency/SKILL.en.md +0 -3
- package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +0 -3
- package/templates/.agents/skills/watch-pr/SKILL.en.md +3 -3
- package/templates/.agents/skills/watch-pr/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/watch-pr/config/verify.json +0 -1
- package/templates/.agents/templates/handoff.en.md +1 -1
- package/templates/.agents/templates/handoff.zh-CN.md +1 -1
- package/templates/.agents/workflows/bug-fix.en.yaml +1 -1
- package/templates/.agents/workflows/feature-development.en.yaml +1 -1
- package/templates/.agents/workflows/refactoring.en.yaml +1 -1
- package/dist/lib/task/task-execution-lock.js +0 -250
- package/lib/task/task-execution-lock.ts +0 -320
|
@@ -63,7 +63,7 @@ example-single-layer: "feat: add A: B" => "add A: B"
|
|
|
63
63
|
|
|
64
64
|
### 2. 检查已有任务
|
|
65
65
|
|
|
66
|
-
2.1 搜索
|
|
66
|
+
2.1 搜索 `<task-workspace>/active/` 中是否已有链接到此 Issue 的任务。
|
|
67
67
|
- 如果找到,**默认复用现有任务**(场景 A),不询问用户;在最终告知中明确「已复用现有任务 `{task-id}`,未重新导入」。若用户希望重新导入,需要先手动归档/删除已有任务再次执行本技能
|
|
68
68
|
- 如果未找到,继续执行 2.2
|
|
69
69
|
|
|
@@ -93,7 +93,7 @@ date +%Y%m%d-%H%M%S
|
|
|
93
93
|
|
|
94
94
|
3.2 写入任务目录和 `task.md`。
|
|
95
95
|
|
|
96
|
-
-
|
|
96
|
+
- 创建目录:`<task-workspace>/active/{task-id}/`
|
|
97
97
|
- 使用 `.agents/templates/task.md` 模板创建 `task.md`
|
|
98
98
|
- 场景 C 优先沿用远端 frontmatter 中的 `type`、`workflow`、`branch`、`milestone`;缺失或损坏字段按 Issue 标签和当前规则重新推断
|
|
99
99
|
- `current_step` 始终写入 `requirement-analysis`,不要恢复为远端原 `current_step`
|
|
@@ -132,7 +132,7 @@ assigned_to: {当前 AI 代理}
|
|
|
132
132
|
date "+%Y-%m-%d %H:%M:%S%z" | sed 's/\([+-][0-9][0-9]\)\([0-9][0-9]\)$/\1:\2/'
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
更新
|
|
135
|
+
更新 `<task-workspace>/active/{task-id}/task.md`:
|
|
136
136
|
- `current_step`:requirement-analysis
|
|
137
137
|
- `assigned_to`:{当前 AI 代理}
|
|
138
138
|
- `updated_at`:{当前时间}
|
|
@@ -191,7 +191,7 @@ Issue #{number} 已导入。
|
|
|
191
191
|
- 工作流:{workflow}
|
|
192
192
|
|
|
193
193
|
产出文件:
|
|
194
|
-
-
|
|
194
|
+
- 任务文件:<task-workspace>/active/{task-id}/task.md
|
|
195
195
|
|
|
196
196
|
下一步 - 执行需求分析:
|
|
197
197
|
{next-step-commands}
|
|
@@ -201,7 +201,7 @@ Issue #{number} 已导入。
|
|
|
201
201
|
|
|
202
202
|
## 完成检查清单
|
|
203
203
|
|
|
204
|
-
- [ ] 创建了任务文件
|
|
204
|
+
- [ ] 创建了任务文件 `<task-workspace>/active/{task-id}/task.md`
|
|
205
205
|
- [ ] 已由 provider 将 Issue identity 写入 task.md 的 `platform_issue_identity`
|
|
206
206
|
- [ ] 更新了 `current_step` 为 requirement-analysis
|
|
207
207
|
- [ ] 更新了 `updated_at` 为当前时间
|
|
@@ -57,7 +57,7 @@ After resolving the artifact context and before this round's first artifact acti
|
|
|
57
57
|
### 1. Verify Prerequisites
|
|
58
58
|
|
|
59
59
|
Check required files:
|
|
60
|
-
-
|
|
60
|
+
- `<task-workspace>/active/{task-id}/task.md` - Task file
|
|
61
61
|
- At least one analysis artifact: `analysis.md` or `analysis-r{N}.md`
|
|
62
62
|
|
|
63
63
|
Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
|
|
@@ -123,11 +123,11 @@ agent-infra-internal task-artifact {task-id} init --family plan --artifact {plan
|
|
|
123
123
|
|
|
124
124
|
The skeleton contains identity metadata, stable section markers, and required headings only; real plan content is required before the completion gate can pass. On a structural error, correct the formal artifact directly and rerun `task-artifact {task-id} finalize-local --family plan --artifact {plan-artifact}`; current structure, qualification, and summary facts are the only gate.
|
|
125
125
|
|
|
126
|
-
Create
|
|
126
|
+
Create `<task-workspace>/active/{task-id}/{plan-artifact}`.
|
|
127
127
|
|
|
128
128
|
### 7. Update Task Status
|
|
129
129
|
|
|
130
|
-
Update
|
|
130
|
+
Update `<task-workspace>/active/{task-id}/task.md`:
|
|
131
131
|
- Record the plan artifact for this round: `{plan-artifact}` (Round `{plan-round}`)
|
|
132
132
|
- If the task template contains a `## Design` section, update it to link to `{plan-artifact}`
|
|
133
133
|
- Mark technical-design as complete in workflow progress and include the actual round when the task template supports it
|
|
@@ -193,7 +193,7 @@ Plan summary:
|
|
|
193
193
|
- Estimated complexity: {assessment}
|
|
194
194
|
|
|
195
195
|
Output file:
|
|
196
|
-
- Technical plan:
|
|
196
|
+
- Technical plan: <task-workspace>/active/{task-id}/{plan-artifact}
|
|
197
197
|
|
|
198
198
|
Next step - continue on the selected path:
|
|
199
199
|
{next-step-commands}
|
|
@@ -203,7 +203,7 @@ Next step - continue on the selected path:
|
|
|
203
203
|
|
|
204
204
|
- [ ] Read and understood the requirements analysis
|
|
205
205
|
- [ ] Considered alternative options
|
|
206
|
-
- [ ] Created the plan document
|
|
206
|
+
- [ ] Created the plan document `<task-workspace>/active/{task-id}/{plan-artifact}`
|
|
207
207
|
- [ ] Updated `current_step` to technical-design in task.md
|
|
208
208
|
- [ ] Updated `updated_at` to the current time in task.md
|
|
209
209
|
- [ ] Recorded `{plan-artifact}` as a completed artifact in task.md
|
|
@@ -60,7 +60,7 @@ agent-infra-internal task-event {task-id} plan.started --agent {standard-agent-t
|
|
|
60
60
|
### 1. 验证前置条件
|
|
61
61
|
|
|
62
62
|
检查必要文件:
|
|
63
|
-
-
|
|
63
|
+
- `<task-workspace>/active/{task-id}/task.md` - 任务文件
|
|
64
64
|
- 至少一个分析产物:`analysis.md` 或 `analysis-r{N}.md`
|
|
65
65
|
|
|
66
66
|
注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
|
|
@@ -126,11 +126,11 @@ agent-infra-internal task-artifact {task-id} init --family plan --artifact {plan
|
|
|
126
126
|
|
|
127
127
|
骨架只包含身份元数据、稳定 section marker 和必需标题;必须填入真实方案内容后才能通过完成门禁。finalizer 返回结构错误时,直接修正正式产物后重跑 `task-artifact {task-id} finalize-local --family plan --artifact {plan-artifact}`;当前结构、资格和摘要事实是唯一门禁。
|
|
128
128
|
|
|
129
|
-
创建
|
|
129
|
+
创建 `<task-workspace>/active/{task-id}/{plan-artifact}`。
|
|
130
130
|
|
|
131
131
|
### 7. 更新任务状态
|
|
132
132
|
|
|
133
|
-
更新
|
|
133
|
+
更新 `<task-workspace>/active/{task-id}/task.md`:
|
|
134
134
|
- 仅更新工作量、审查响应等本技能拥有的业务内容;产物链接、阶段与完成日志由 completed 事件统一登记
|
|
135
135
|
- 在追加工作流 Activity Log 条目之前,基于技术方案(实施步骤数、涉及文件、测试矩阵范围、集成面)重估 `effort`。若重估值与 `task.md` 当前值不一致:
|
|
136
136
|
- 用新值覆盖 frontmatter 的 `effort` 字段
|
|
@@ -187,7 +187,7 @@ agent-infra-internal task-verify {task-id} plan.completed --artifact {plan-artif
|
|
|
187
187
|
- 预估复杂度:{评估}
|
|
188
188
|
|
|
189
189
|
产出文件:
|
|
190
|
-
-
|
|
190
|
+
- 技术方案:<task-workspace>/active/{task-id}/{plan-artifact}
|
|
191
191
|
|
|
192
192
|
下一步 - 按所选路径继续:
|
|
193
193
|
{next-step-commands}
|
|
@@ -197,7 +197,7 @@ agent-infra-internal task-verify {task-id} plan.completed --artifact {plan-artif
|
|
|
197
197
|
|
|
198
198
|
- [ ] 阅读并理解了需求分析
|
|
199
199
|
- [ ] 考虑了备选方案
|
|
200
|
-
- [ ] 创建了计划文档
|
|
200
|
+
- [ ] 创建了计划文档 `<task-workspace>/active/{task-id}/{plan-artifact}`
|
|
201
201
|
- [ ] 更新了 task.md 中的 `current_step` 为 technical-design
|
|
202
202
|
- [ ] 更新了 task.md 中的 `updated_at` 为当前时间
|
|
203
203
|
- [ ] 在 task.md 中记录了 `{plan-artifact}` 为已完成产物
|
|
@@ -14,7 +14,7 @@ Restore local task workspace files from platform Issue comments that contain syn
|
|
|
14
14
|
## Boundary / Critical Rules
|
|
15
15
|
|
|
16
16
|
- Restore files only from comments that match the marker registry in `.agents/rules/issue-sync.md`
|
|
17
|
-
- Restore into a controlled staging directory under
|
|
17
|
+
- Restore into a controlled staging directory under `<task-workspace>/`, then let lifecycle validate and place it under `active/{task-id}/`
|
|
18
18
|
- Stop immediately if the target directory already exists and ask the user to resolve the conflict first
|
|
19
19
|
- After executing this skill, you **must** immediately update the restored `task.md`
|
|
20
20
|
|
|
@@ -76,7 +76,7 @@ For each file:
|
|
|
76
76
|
|
|
77
77
|
Before writing any file, verify that:
|
|
78
78
|
- no formal active, blocked, or completed directory exists for the task id
|
|
79
|
-
- the unique
|
|
79
|
+
- the unique `<task-workspace>/.restore-staging-*` path shares the active workspace filesystem
|
|
80
80
|
|
|
81
81
|
If the directory already exists, stop immediately and tell the user to handle it manually first.
|
|
82
82
|
|
|
@@ -14,7 +14,7 @@ description: >
|
|
|
14
14
|
## 行为边界 / 关键规则
|
|
15
15
|
|
|
16
16
|
- 只从匹配 `.agents/rules/issue-sync.md` 标记注册表的评论恢复文件
|
|
17
|
-
- 先恢复到
|
|
17
|
+
- 先恢复到 `<task-workspace>/` 内的受控 staging,校验后由 lifecycle 原子落位到 `active/{task-id}/`
|
|
18
18
|
- 如果目标目录已存在,立即停止并提示用户先处理目录冲突
|
|
19
19
|
- 执行本技能后,你**必须**立即更新恢复出的 `task.md`
|
|
20
20
|
|
|
@@ -74,8 +74,8 @@ description: >
|
|
|
74
74
|
- 拼接得到最终文件内容
|
|
75
75
|
|
|
76
76
|
在写文件前检查:
|
|
77
|
-
-
|
|
78
|
-
- 创建唯一
|
|
77
|
+
- `<task-workspace>/active/{task-id}/`、`blocked/{task-id}/`、`completed/{task-id}/` 均不存在
|
|
78
|
+
- 创建唯一 `<task-workspace>/.restore-staging-*` 路径,且与 active 位于同一文件系统
|
|
79
79
|
|
|
80
80
|
如果目录已存在,立即停止并提示用户先手动处理。
|
|
81
81
|
|
|
@@ -81,7 +81,7 @@ agent-infra-internal task-artifact {task-id} init --family review-analysis --art
|
|
|
81
81
|
|
|
82
82
|
The skeleton contains identity metadata, stable section markers, and required headings only; complete review content is required before summary finalization. On a structural error, follow `.agents/rules/local-artifact-repair.md` to correct the formal review artifact directly and rerun the original finalizer; current artifact content is the only input.
|
|
83
83
|
|
|
84
|
-
Create
|
|
84
|
+
Create `<task-workspace>/active/{task-id}/{review-artifact}`.
|
|
85
85
|
|
|
86
86
|
> Read `reference/report-template.md` before writing the report.
|
|
87
87
|
|
|
@@ -56,7 +56,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
56
56
|
### 1. 验证前置条件
|
|
57
57
|
|
|
58
58
|
要求存在:
|
|
59
|
-
-
|
|
59
|
+
- `<task-workspace>/active/{task-id}/task.md`
|
|
60
60
|
- 至少一个分析产物:`analysis.md` 或 `analysis-r{N}.md`
|
|
61
61
|
|
|
62
62
|
### 2. 解析审查上下文
|
|
@@ -84,7 +84,7 @@ agent-infra-internal task-artifact {task-id} init --family review-analysis --art
|
|
|
84
84
|
|
|
85
85
|
骨架不生成审查结论、发现或计数;完成审查内容后才能进入 summary finalizer。结构错误时,遵循 `.agents/rules/local-artifact-repair.md` 直接修正正式审查产物并重跑原 finalizer;当前产物内容是唯一输入。
|
|
86
86
|
|
|
87
|
-
创建
|
|
87
|
+
创建 `<task-workspace>/active/{task-id}/{review-artifact}`。
|
|
88
88
|
|
|
89
89
|
> 报告格式见 `reference/report-template.md`。写报告前先读取 `reference/report-template.md`。
|
|
90
90
|
|
|
@@ -24,7 +24,7 @@ When the finalizer fails, or the model stops because of a safety gate, lack of p
|
|
|
24
24
|
|
|
25
25
|
```text
|
|
26
26
|
Task {task-id} review results were generated, but lifecycle advancement stopped.
|
|
27
|
-
- Review artifact:
|
|
27
|
+
- Review artifact: <task-workspace>/active/{task-id}/{review-artifact}
|
|
28
28
|
- Last valid summary/findings: {last-readable-review-result}
|
|
29
29
|
- Local repair attempts: {repairAttempts}
|
|
30
30
|
- Last diagnostic: {last-structured-diagnostic}
|
|
@@ -43,7 +43,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
43
43
|
```text
|
|
44
44
|
Task {task-id} requirement analysis review completed. Verdict: approved.
|
|
45
45
|
- Blockers: 0 | Major issues: 0 | Minor issues: 0 | Human-decision: {h}
|
|
46
|
-
[- Review report:
|
|
46
|
+
[- Review report: <task-workspace>/active/{task-id}/{review-artifact}]
|
|
47
47
|
|
|
48
48
|
Next step - write the technical plan:
|
|
49
49
|
{next-step-commands}
|
|
@@ -59,7 +59,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
59
59
|
```text
|
|
60
60
|
Task {task-id} requirement analysis review completed. Verdict: changes requested.
|
|
61
61
|
- Blockers: 0 | Major issues: {n} | Minor issues: {n} | Human-decision: {h}
|
|
62
|
-
- Review report:
|
|
62
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
63
63
|
|
|
64
64
|
Next step - revise requirement analysis:
|
|
65
65
|
{next-step-commands}
|
|
@@ -75,7 +75,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
75
75
|
```text
|
|
76
76
|
Task {task-id} requirement analysis review completed. Verdict: changes requested.
|
|
77
77
|
- Blockers: {n} | Major issues: {n} | Minor issues: {n} | Human-decision: {h}
|
|
78
|
-
- Review report:
|
|
78
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
79
79
|
|
|
80
80
|
Next step - revise requirement analysis:
|
|
81
81
|
{next-step-commands}
|
|
@@ -91,7 +91,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
91
91
|
```text
|
|
92
92
|
Task {task-id} requirement analysis review completed. Verdict: rejected, fresh analysis or requirement clarification required.
|
|
93
93
|
- Blockers: {n} | Major issues: {n} | Minor issues: {n} | Human-decision: {h}
|
|
94
|
-
- Review report:
|
|
94
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
95
95
|
|
|
96
96
|
Next step - re-analyze:
|
|
97
97
|
{next-step-commands}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
```text
|
|
26
26
|
任务 {task-id} 审查结果已生成,但生命周期未推进。
|
|
27
|
-
-
|
|
27
|
+
- 审查产物:<task-workspace>/active/{task-id}/{review-artifact}
|
|
28
28
|
- 最后有效 summary/findings:{last-readable-review-result}
|
|
29
29
|
- 本地修复次数:{repairAttempts}
|
|
30
30
|
- 最后诊断:{last-structured-diagnostic}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
```text
|
|
44
44
|
任务 {task-id} 需求分析审查完成。结论:通过。
|
|
45
45
|
- 阻塞项:0 | 主要问题:0 | 次要问题:0 | 人工裁决:{h}
|
|
46
|
-
[-
|
|
46
|
+
[- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}]
|
|
47
47
|
|
|
48
48
|
下一步 - 编写技术方案:
|
|
49
49
|
{next-step-commands}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
```text
|
|
60
60
|
任务 {task-id} 需求分析审查完成。结论:需要修改。
|
|
61
61
|
- 阻塞项:0 | 主要问题:{n} | 次要问题:{n} | 人工裁决:{h}
|
|
62
|
-
-
|
|
62
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
63
63
|
|
|
64
64
|
下一步 - 修订需求分析:
|
|
65
65
|
{next-step-commands}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
```text
|
|
76
76
|
任务 {task-id} 需求分析审查完成。结论:需要修改。
|
|
77
77
|
- 阻塞项:{n} | 主要问题:{n} | 次要问题:{n} | 人工裁决:{h}
|
|
78
|
-
-
|
|
78
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
79
79
|
|
|
80
80
|
下一步 - 修订需求分析:
|
|
81
81
|
{next-step-commands}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
```text
|
|
92
92
|
任务 {task-id} 需求分析审查完成。结论:拒绝,需要重新分析或补充需求澄清。
|
|
93
93
|
- 阻塞项:{n} | 主要问题:{n} | 次要问题:{n} | 人工裁决:{h}
|
|
94
|
-
-
|
|
94
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
95
95
|
|
|
96
96
|
下一步 - 重新分析:
|
|
97
97
|
{next-step-commands}
|
|
@@ -66,7 +66,7 @@ After resolving the artifact context and before this round's first artifact acti
|
|
|
66
66
|
### 1. Verify Prerequisites
|
|
67
67
|
|
|
68
68
|
Require:
|
|
69
|
-
-
|
|
69
|
+
- `<task-workspace>/active/{task-id}/task.md`
|
|
70
70
|
- a resolvable task branch and Git review target. Implementation artifacts are optional context and must not gate review eligibility.
|
|
71
71
|
|
|
72
72
|
### 2. Resolve the Artifact Context
|
|
@@ -107,7 +107,7 @@ agent-infra-internal task-artifact {task-id} init --family review-code --artifac
|
|
|
107
107
|
|
|
108
108
|
The skeleton does not generate a verdict, findings, or counts; complete review content is required before summary finalization. On a structural error, follow `.agents/rules/local-artifact-repair.md` to correct the formal review artifact directly and rerun the original finalizer; current artifact content is the only input.
|
|
109
109
|
|
|
110
|
-
Create
|
|
110
|
+
Create `<task-workspace>/active/{task-id}/{review-artifact}`.
|
|
111
111
|
|
|
112
112
|
> The report format and severity layout live in `reference/report-template.md`. Read `reference/report-template.md` before writing the review.
|
|
113
113
|
|
|
@@ -65,7 +65,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
65
65
|
### 1. 验证前置条件
|
|
66
66
|
|
|
67
67
|
要求存在:
|
|
68
|
-
-
|
|
68
|
+
- `<task-workspace>/active/{task-id}/task.md`
|
|
69
69
|
- 可解析的任务分支与 Git 审查目标。实现产物属于可选上下文,不得作为审查资格门槛。
|
|
70
70
|
|
|
71
71
|
### 2. 解析审查上下文
|
|
@@ -106,7 +106,7 @@ agent-infra-internal task-artifact {task-id} init --family review-code --artifac
|
|
|
106
106
|
|
|
107
107
|
骨架不生成审查结论、发现或计数;完成审查内容后才能进入 summary finalizer。结构错误时,遵循 `.agents/rules/local-artifact-repair.md` 直接修正正式审查产物并重跑原 finalizer;当前产物内容是唯一输入。
|
|
108
108
|
|
|
109
|
-
创建
|
|
109
|
+
创建 `<task-workspace>/active/{task-id}/{review-artifact}`。
|
|
110
110
|
|
|
111
111
|
> 报告格式和严重程度布局见 `reference/report-template.md`。写报告前先读取 `reference/report-template.md`。
|
|
112
112
|
|
|
@@ -25,7 +25,7 @@ When the finalizer fails, or the model stops because of a safety gate, lack of p
|
|
|
25
25
|
|
|
26
26
|
```text
|
|
27
27
|
Task {task-id} review results were generated, but lifecycle advancement stopped.
|
|
28
|
-
- Review artifact:
|
|
28
|
+
- Review artifact: <task-workspace>/active/{task-id}/{review-artifact}
|
|
29
29
|
- Last valid summary/findings: {last-readable-review-result}
|
|
30
30
|
- Local repair attempts: {repairAttempts}
|
|
31
31
|
- Last diagnostic: {last-structured-diagnostic}
|
|
@@ -51,7 +51,7 @@ Common Branch A summary:
|
|
|
51
51
|
```text
|
|
52
52
|
Task {task-id} review completed. Verdict: approved.
|
|
53
53
|
- Blockers: 0 | Major: 0 | Minor: 0 | Manual-validation: {e} | Human-decision: {h}
|
|
54
|
-
[- Review report:
|
|
54
|
+
[- Review report: <task-workspace>/active/{task-id}/{review-artifact}]
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
#### Branch A1: Create a Pull Request
|
|
@@ -99,7 +99,7 @@ When `h = 0`, populate `{next-step-commands}` by running `agent-infra-internal a
|
|
|
99
99
|
```text
|
|
100
100
|
Task {task-id} review completed. Verdict: changes requested.
|
|
101
101
|
- Blockers: {blockers} | Major: {major} | Minor: {minor} | Manual-validation: {e} | Human-decision: {h}
|
|
102
|
-
- Review report:
|
|
102
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
103
103
|
|
|
104
104
|
Next step - fix the findings:
|
|
105
105
|
{next-step-commands}
|
|
@@ -123,7 +123,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
123
123
|
```text
|
|
124
124
|
Task {task-id} review completed. Verdict: rejected, re-design the technical plan.
|
|
125
125
|
- Blockers: {blockers} | Major: {major} | Minor: {minor} | Manual-validation: {e} | Human-decision: {h}
|
|
126
|
-
- Review report:
|
|
126
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
127
127
|
|
|
128
128
|
Next step - re-design the technical plan:
|
|
129
129
|
{next-step-commands}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
```text
|
|
27
27
|
任务 {task-id} 审查结果已生成,但生命周期未推进。
|
|
28
|
-
-
|
|
28
|
+
- 审查产物:<task-workspace>/active/{task-id}/{review-artifact}
|
|
29
29
|
- 最后有效 summary/findings:{last-readable-review-result}
|
|
30
30
|
- 本地修复次数:{repairAttempts}
|
|
31
31
|
- 最后诊断:{last-structured-diagnostic}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
```text
|
|
52
52
|
任务 {task-id} 代码审查完成。结论:通过。
|
|
53
53
|
- 阻塞项:0 | 主要问题:0 | 次要问题:0 | 人工校验点:{e} | 人工裁决:{h}
|
|
54
|
-
[-
|
|
54
|
+
[- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}]
|
|
55
55
|
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
```text
|
|
101
101
|
任务 {task-id} 代码审查完成。结论:需要修改。
|
|
102
102
|
- 阻塞项:{blockers} | 主要问题:{major} | 次要问题:{minor} | 人工校验点:{e} | 人工裁决:{h}
|
|
103
|
-
-
|
|
103
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
104
104
|
|
|
105
105
|
下一步 - 修复问题:
|
|
106
106
|
{next-step-commands}
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
```text
|
|
117
117
|
任务 {task-id} 代码审查完成。结论:拒绝,需要重新设计方案。
|
|
118
118
|
- 阻塞项:{blockers} | 主要问题:{major} | 次要问题:{minor} | 人工校验点:{e} | 人工裁决:{h}
|
|
119
|
-
-
|
|
119
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
120
120
|
|
|
121
121
|
下一步 - 重新设计技术方案:
|
|
122
122
|
{next-step-commands}
|
|
@@ -81,7 +81,7 @@ agent-infra-internal task-artifact {task-id} init --family review-plan --artifac
|
|
|
81
81
|
|
|
82
82
|
The skeleton contains identity metadata, stable section markers, and required headings only; complete review content is required before summary finalization. On a structural error, follow `.agents/rules/local-artifact-repair.md` to correct the formal review artifact directly and rerun the original finalizer; current artifact content is the only input.
|
|
83
83
|
|
|
84
|
-
Create
|
|
84
|
+
Create `<task-workspace>/active/{task-id}/{review-artifact}`.
|
|
85
85
|
|
|
86
86
|
> Read `reference/report-template.md` before writing the report.
|
|
87
87
|
|
|
@@ -56,7 +56,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
56
56
|
### 1. 验证前置条件
|
|
57
57
|
|
|
58
58
|
要求存在:
|
|
59
|
-
-
|
|
59
|
+
- `<task-workspace>/active/{task-id}/task.md`
|
|
60
60
|
- 至少一个方案产物:`plan.md` 或 `plan-r{N}.md`
|
|
61
61
|
|
|
62
62
|
### 2. 解析审查上下文
|
|
@@ -84,7 +84,7 @@ agent-infra-internal task-artifact {task-id} init --family review-plan --artifac
|
|
|
84
84
|
|
|
85
85
|
骨架不生成审查结论、发现或计数;完成审查内容后才能进入 summary finalizer。结构错误时,遵循 `.agents/rules/local-artifact-repair.md` 直接修正正式审查产物并重跑原 finalizer;当前产物内容是唯一输入。
|
|
86
86
|
|
|
87
|
-
创建
|
|
87
|
+
创建 `<task-workspace>/active/{task-id}/{review-artifact}`。
|
|
88
88
|
|
|
89
89
|
> 报告格式见 `reference/report-template.md`。写报告前先读取 `reference/report-template.md`。
|
|
90
90
|
|
|
@@ -24,7 +24,7 @@ When the finalizer fails, or the model stops because of a safety gate, lack of p
|
|
|
24
24
|
|
|
25
25
|
```text
|
|
26
26
|
Task {task-id} review results were generated, but lifecycle advancement stopped.
|
|
27
|
-
- Review artifact:
|
|
27
|
+
- Review artifact: <task-workspace>/active/{task-id}/{review-artifact}
|
|
28
28
|
- Last valid summary/findings: {last-readable-review-result}
|
|
29
29
|
- Local repair attempts: {repairAttempts}
|
|
30
30
|
- Last diagnostic: {last-structured-diagnostic}
|
|
@@ -43,7 +43,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
43
43
|
```text
|
|
44
44
|
Task {task-id} technical plan review completed. Verdict: approved.
|
|
45
45
|
- Blockers: 0 | Major issues: 0 | Minor issues: 0 | Human-decision: {h}
|
|
46
|
-
[- Review report:
|
|
46
|
+
[- Review report: <task-workspace>/active/{task-id}/{review-artifact}]
|
|
47
47
|
|
|
48
48
|
Next step - write code:
|
|
49
49
|
{next-step-commands}
|
|
@@ -59,7 +59,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
59
59
|
```text
|
|
60
60
|
Task {task-id} technical plan review completed. Verdict: changes requested.
|
|
61
61
|
- Blockers: 0 | Major issues: {n} | Minor issues: {n} | Human-decision: {h}
|
|
62
|
-
- Review report:
|
|
62
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
63
63
|
|
|
64
64
|
Next step - revise technical plan:
|
|
65
65
|
{next-step-commands}
|
|
@@ -75,7 +75,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
75
75
|
```text
|
|
76
76
|
Task {task-id} technical plan review completed. Verdict: changes requested.
|
|
77
77
|
- Blockers: {n} | Major issues: {n} | Minor issues: {n} | Human-decision: {h}
|
|
78
|
-
- Review report:
|
|
78
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
79
79
|
|
|
80
80
|
Next step - revise technical plan:
|
|
81
81
|
{next-step-commands}
|
|
@@ -91,7 +91,7 @@ Populate `{next-step-commands}` for this scenario by running `agent-infra-intern
|
|
|
91
91
|
```text
|
|
92
92
|
Task {task-id} technical plan review completed. Verdict: rejected, redesign required.
|
|
93
93
|
- Blockers: {n} | Major issues: {n} | Minor issues: {n} | Human-decision: {h}
|
|
94
|
-
- Review report:
|
|
94
|
+
- Review report: <task-workspace>/active/{task-id}/{review-artifact}
|
|
95
95
|
|
|
96
96
|
Next step - redesign:
|
|
97
97
|
{next-step-commands}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
```text
|
|
26
26
|
任务 {task-id} 审查结果已生成,但生命周期未推进。
|
|
27
|
-
-
|
|
27
|
+
- 审查产物:<task-workspace>/active/{task-id}/{review-artifact}
|
|
28
28
|
- 最后有效 summary/findings:{last-readable-review-result}
|
|
29
29
|
- 本地修复次数:{repairAttempts}
|
|
30
30
|
- 最后诊断:{last-structured-diagnostic}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
```text
|
|
44
44
|
任务 {task-id} 技术方案审查完成。结论:通过。
|
|
45
45
|
- 阻塞项:0 | 主要问题:0 | 次要问题:0 | 人工裁决:{h}
|
|
46
|
-
[-
|
|
46
|
+
[- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}]
|
|
47
47
|
|
|
48
48
|
下一步 - 编写代码:
|
|
49
49
|
{next-step-commands}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
```text
|
|
60
60
|
任务 {task-id} 技术方案审查完成。结论:需要修改。
|
|
61
61
|
- 阻塞项:0 | 主要问题:{n} | 次要问题:{n} | 人工裁决:{h}
|
|
62
|
-
-
|
|
62
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
63
63
|
|
|
64
64
|
下一步 - 修订技术方案:
|
|
65
65
|
{next-step-commands}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
```text
|
|
76
76
|
任务 {task-id} 技术方案审查完成。结论:需要修改。
|
|
77
77
|
- 阻塞项:{n} | 主要问题:{n} | 次要问题:{n} | 人工裁决:{h}
|
|
78
|
-
-
|
|
78
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
79
79
|
|
|
80
80
|
下一步 - 修订技术方案:
|
|
81
81
|
{next-step-commands}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
```text
|
|
92
92
|
任务 {task-id} 技术方案审查完成。结论:拒绝,需要重新设计。
|
|
93
93
|
- 阻塞项:{n} | 主要问题:{n} | 次要问题:{n} | 人工裁决:{h}
|
|
94
|
-
-
|
|
94
|
+
- 审查报告:<task-workspace>/active/{task-id}/{review-artifact}
|
|
95
95
|
|
|
96
96
|
下一步 - 重新设计:
|
|
97
97
|
{next-step-commands}
|
|
@@ -26,7 +26,7 @@ Before generating the PR review report, read `.agents/rules/evidence-reporting.m
|
|
|
26
26
|
- Review depth is driven by evidence completeness and change risk, never by the submitter's identity
|
|
27
27
|
- After executing this skill you **must** immediately update task.md (via the `task-activity` typed intent)
|
|
28
28
|
- Never run `git add` or `git commit` automatically
|
|
29
|
-
- The one-shot path (no task/Issue) uses
|
|
29
|
+
- The one-shot path (no task/Issue) uses `<task-workspace>/reviews/{pr-number}/` with `recoverable: false` and carries no recovery promise
|
|
30
30
|
|
|
31
31
|
## Common Rationalizations and Rebuttals
|
|
32
32
|
|
|
@@ -62,7 +62,7 @@ agent-infra-internal pr-review-grade resolve-host --pr {pr-number} [--cwd <path>
|
|
|
62
62
|
|
|
63
63
|
- **Unique host**: bind `{task-id}`, call `task-activity pr-review-inspect` to obtain the canonical round, prepared/open state, and latest successful review identity, then start this round using the recovery rules below (go to step 2).
|
|
64
64
|
- **Ambiguous hosts**: `resolve-host` returns `ambiguous` and `decide` refuses to classify (fail closed). Stop and ask a human to pin the unique host; do not enter evidence classification.
|
|
65
|
-
- **No host**: block by default and require linking an Issue/task first (show linking guidance); never auto-create/import an Issue. Only when the user explicitly chooses a "one-shot review" do process files land in
|
|
65
|
+
- **No host**: block by default and require linking an Issue/task first (show linking guidance); never auto-create/import an Issue. Only when the user explicitly chooses a "one-shot review" do process files land in `<task-workspace>/reviews/{pr-number}/` (`recoverable: false`).
|
|
66
66
|
|
|
67
67
|
After the task-anchored path resolves the host and remote head, run:
|
|
68
68
|
|
|
@@ -26,7 +26,7 @@ description: >
|
|
|
26
26
|
- 审查深度由证据完整度和变更风险决定,不由提交者身份决定
|
|
27
27
|
- 执行本技能后,你**必须**立即更新 task.md(经 `task-activity` typed intent)
|
|
28
28
|
- 绝不自动执行 `git add` 或 `git commit`
|
|
29
|
-
- 一次性检视路径(无任务/Issue)走
|
|
29
|
+
- 一次性检视路径(无任务/Issue)走 `<task-workspace>/reviews/{pr-number}/`,标记 `recoverable: false`,不承担可恢复承诺
|
|
30
30
|
|
|
31
31
|
## 常见违规借口与反驳
|
|
32
32
|
|
|
@@ -62,7 +62,7 @@ agent-infra-internal pr-review-grade resolve-host --pr {pr-number} [--cwd <path>
|
|
|
62
62
|
|
|
63
63
|
- **唯一宿主**:绑定 `{task-id}`,调用 `task-activity pr-review-inspect` 取得 canonical round、prepared/open 状态和最近成功审查身份,再按下述恢复规则开始本轮(进入步骤 2)。
|
|
64
64
|
- **多宿主歧义**:`resolve-host` 返回 `ambiguous`,`decide` 会拒绝分类(fail closed)。立即停止并提示人工指定唯一宿主;不进入证据分类。
|
|
65
|
-
- **无宿主**:默认阻塞,要求先建立 Issue/task 关联(给出关联指引),不自动创建/导入 Issue。仅当用户显式选择「仅一次性检视」时,过程文件写入
|
|
65
|
+
- **无宿主**:默认阻塞,要求先建立 Issue/task 关联(给出关联指引),不自动创建/导入 Issue。仅当用户显式选择「仅一次性检视」时,过程文件写入 `<task-workspace>/reviews/{pr-number}/`(`recoverable: false`)。
|
|
66
66
|
|
|
67
67
|
任务锚定路径在宿主与远端 head 确定后执行:
|
|
68
68
|
|