@fitlab-ai/agent-infra 0.11.2 → 0.11.4
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/README.md +17 -8
- package/README.zh-CN.md +17 -8
- package/dist/bin/internal-cli.js +7 -2
- package/dist/lib/agent-clients/adapter.js +3 -0
- package/dist/lib/agent-clients/adapters/codex-lifecycle/recovery.js +234 -0
- package/dist/lib/agent-clients/adapters/codex-lifecycle/sandbox-controller.js +8 -35
- package/dist/lib/agent-clients/adapters/codex-lifecycle/store.js +1 -34
- package/dist/lib/agent-clients/adapters/codex.js +10 -0
- package/dist/lib/internal/cli-route-inventory.js +1 -1
- package/dist/lib/internal/manual-validation.js +22 -27
- package/dist/lib/internal/sandbox-control.js +1 -43
- package/dist/lib/internal/task-artifact.js +1 -1
- package/dist/lib/internal/task-finalization.js +41 -1
- package/dist/lib/internal/task-ledger.js +13 -5
- package/dist/lib/internal/task-lifecycle.js +1 -1
- package/dist/lib/internal/task-operation-registry.js +7 -2
- package/dist/lib/platform/completion-backfill.js +63 -17
- package/dist/lib/platform/issue-comments.js +2 -31
- package/dist/lib/platform/pr-summary.js +7 -2
- package/dist/lib/sandbox/control/client.js +3 -44
- package/dist/lib/sandbox/control/executor.js +14 -79
- package/dist/lib/sandbox/control/protocol.js +5 -64
- package/dist/lib/sandbox/control/server.js +49 -343
- package/dist/lib/sandbox/control/state.js +1 -7
- package/dist/lib/sandbox/control/task-view.js +1 -2
- package/dist/lib/sandbox/task-cleanup.js +13 -20
- package/dist/lib/task/artifact-command.js +11 -4
- package/dist/lib/task/artifact-lifecycle.js +217 -85
- package/dist/lib/task/artifact-operations.js +1 -26
- package/dist/lib/task/artifact-receipts.js +4 -1
- package/dist/lib/task/artifact-schema.js +1 -0
- package/dist/lib/task/artifact-selection.js +25 -0
- package/dist/lib/task/capabilities.js +158 -39
- package/dist/lib/task/commands/status.js +9 -2
- package/dist/lib/task/control-authority.js +37 -38
- package/dist/lib/task/control-recovery.js +3 -42
- package/dist/lib/task/decision-intents.js +12 -0
- package/dist/lib/task/delegation-receipts.js +2 -2
- package/dist/lib/task/delivery.js +1 -43
- package/dist/lib/task/events.js +80 -64
- package/dist/lib/task/finalization-artifacts.js +1 -3
- package/dist/lib/task/finalization-state.js +1 -1
- package/dist/lib/task/finalization.js +319 -234
- package/dist/lib/task/ledger-intents.js +157 -15
- package/dist/lib/task/lifecycle-path.js +75 -0
- package/dist/lib/task/lifecycle.js +11 -1
- package/dist/lib/task/local-artifact-finalization.js +1 -20
- package/dist/lib/task/manual-validation-receipt.js +8 -3
- package/dist/lib/task/orchestration.js +29 -13
- package/dist/lib/task/review-finalization.js +3 -16
- package/dist/lib/task/rework-intent.js +70 -4
- package/dist/lib/task/verification-engine.js +20 -30
- package/dist/lib/task/verification.js +1 -0
- package/dist/lib/task/workflow-warning-intents.js +21 -6
- package/dist/lib/task/workspace-snapshot.js +7 -2
- package/dist/lifecycle-build-manifest.json +3 -3
- package/lib/agent-clients/adapter.ts +46 -0
- package/lib/agent-clients/adapters/codex-lifecycle/recovery.ts +297 -0
- package/lib/agent-clients/adapters/codex-lifecycle/sandbox-controller.ts +13 -33
- package/lib/agent-clients/adapters/codex-lifecycle/store.ts +1 -44
- package/lib/agent-clients/adapters/codex.ts +10 -0
- package/lib/internal/cli-route-inventory.ts +1 -1
- package/lib/internal/manual-validation.ts +22 -26
- package/lib/internal/sandbox-control.ts +0 -42
- package/lib/internal/task-artifact.ts +1 -1
- package/lib/internal/task-finalization.ts +40 -1
- package/lib/internal/task-ledger.ts +12 -5
- package/lib/internal/task-lifecycle.ts +2 -2
- package/lib/internal/task-operation-registry.ts +8 -4
- package/lib/platform/completion-backfill.ts +78 -16
- package/lib/platform/issue-comments.ts +1 -35
- package/lib/platform/pr-summary.ts +10 -2
- package/lib/sandbox/control/client.ts +5 -68
- package/lib/sandbox/control/executor.ts +14 -81
- package/lib/sandbox/control/protocol.ts +7 -83
- package/lib/sandbox/control/server.ts +47 -362
- package/lib/sandbox/control/state.ts +1 -9
- package/lib/sandbox/control/task-view.ts +1 -2
- package/lib/sandbox/task-cleanup.ts +12 -20
- package/lib/task/artifact-command.ts +14 -4
- package/lib/task/artifact-lifecycle.ts +236 -85
- package/lib/task/artifact-operations.ts +1 -26
- package/lib/task/artifact-receipts.ts +4 -1
- package/lib/task/artifact-schema.ts +1 -0
- package/lib/task/artifact-selection.ts +53 -0
- package/lib/task/capabilities.ts +154 -40
- package/lib/task/commands/status.ts +11 -2
- package/lib/task/control-authority.ts +41 -48
- package/lib/task/control-recovery.ts +3 -43
- package/lib/task/decision-intents.ts +9 -0
- package/lib/task/delegation-receipts.ts +2 -2
- package/lib/task/delivery.ts +1 -40
- package/lib/task/events.ts +82 -64
- package/lib/task/finalization-artifacts.ts +1 -3
- package/lib/task/finalization-state.ts +1 -1
- package/lib/task/finalization.ts +310 -216
- package/lib/task/ledger-intents.ts +155 -15
- package/lib/task/lifecycle-path.ts +98 -0
- package/lib/task/lifecycle.ts +15 -2
- package/lib/task/local-artifact-finalization.ts +2 -25
- package/lib/task/manual-validation-receipt.ts +8 -2
- package/lib/task/orchestration.ts +56 -27
- package/lib/task/review-finalization.ts +3 -16
- package/lib/task/rework-intent.ts +75 -5
- package/lib/task/verification-engine.ts +19 -30
- package/lib/task/verification.ts +2 -1
- package/lib/task/workflow-warning-intents.ts +18 -6
- package/lib/task/workspace-snapshot.ts +3 -2
- package/package.json +1 -1
- package/templates/.agents/rules/lifecycle-orchestration.en.md +19 -5
- package/templates/.agents/rules/lifecycle-orchestration.zh-CN.md +19 -5
- package/templates/.agents/rules/review-handshake.en.md +4 -4
- package/templates/.agents/rules/review-handshake.zh-CN.md +4 -4
- package/templates/.agents/skills/analyze-task/SKILL.en.md +11 -4
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +11 -4
- package/templates/.agents/skills/code-task/SKILL.en.md +14 -8
- package/templates/.agents/skills/code-task/SKILL.zh-CN.md +18 -13
- package/templates/.agents/skills/code-task/reference/code-rules.en.md +2 -2
- package/templates/.agents/skills/code-task/reference/code-rules.zh-CN.md +2 -2
- package/templates/.agents/skills/code-task/reference/dual-mode.en.md +4 -4
- package/templates/.agents/skills/code-task/reference/dual-mode.zh-CN.md +4 -4
- package/templates/.agents/skills/code-task/reference/report-template.en.md +1 -1
- package/templates/.agents/skills/code-task/reference/report-template.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-task/SKILL.en.md +7 -8
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +7 -8
- package/templates/.agents/skills/plan-task/SKILL.en.md +13 -10
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +13 -10
- package/templates/.agents/skills/review-analysis/SKILL.en.md +5 -1
- package/templates/.agents/skills/review-analysis/SKILL.zh-CN.md +5 -1
- package/templates/.agents/skills/review-code/SKILL.en.md +5 -1
- package/templates/.agents/skills/review-code/SKILL.zh-CN.md +5 -1
- package/templates/.agents/skills/review-plan/SKILL.en.md +5 -1
- package/templates/.agents/skills/review-plan/SKILL.zh-CN.md +5 -1
- package/templates/.agents/skills/run-manual-validation/SKILL.en.md +2 -2
- package/templates/.agents/skills/run-manual-validation/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/run-task/SKILL.en.md +9 -8
- package/templates/.agents/skills/run-task/SKILL.zh-CN.md +9 -8
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +18 -2
- package/templates/.agents/templates/task.en.md +2 -2
- package/templates/.agents/templates/task.zh-CN.md +2 -2
- package/templates/.agents/workflows/bug-fix.en.yaml +11 -6
- package/templates/.agents/workflows/bug-fix.zh-CN.yaml +11 -6
- package/templates/.agents/workflows/feature-development.en.yaml +11 -6
- package/templates/.agents/workflows/feature-development.zh-CN.yaml +11 -6
- package/templates/.agents/workflows/refactoring.en.yaml +11 -6
- package/templates/.agents/workflows/refactoring.zh-CN.yaml +11 -6
- package/dist/lib/sandbox/control/finalization-response.js +0 -35
- package/dist/lib/sandbox/control/task-workflow.js +0 -74
- package/dist/lib/sandbox/control/workflow-executor.js +0 -142
- package/dist/lib/task/lifecycle-recovery.js +0 -549
- package/dist/lib/task/recovery-warning.js +0 -19
- package/dist/lib/task/workflow-command.js +0 -21
- package/dist/lib/task/workflow-dispatch.js +0 -213
- package/lib/sandbox/control/finalization-response.ts +0 -37
- package/lib/sandbox/control/task-workflow.ts +0 -95
- package/lib/sandbox/control/workflow-executor.ts +0 -156
- package/lib/task/lifecycle-recovery.ts +0 -691
- package/lib/task/recovery-warning.ts +0 -21
- package/lib/task/workflow-command.ts +0 -22
- package/lib/task/workflow-dispatch.ts +0 -214
|
@@ -15,6 +15,10 @@ Review the latest analysis artifact and produce `review-analysis.md` or `review-
|
|
|
15
15
|
|
|
16
16
|
## Boundary / Critical Rules
|
|
17
17
|
|
|
18
|
+
### Path and rework
|
|
19
|
+
|
|
20
|
+
This stage consumes only the canonical path fact parsed by core from the latest valid analysis artifact; a stage omitted by that path must not create an artifact. When another Changes Requested verdict follows one completed revision-review cycle in the same stage, classify the rework before the next executor artifact and bind it to the finding, source SHA, and stable task-fact digest. A round or filename change is not new evidence.
|
|
21
|
+
|
|
18
22
|
### Persisted Report Evidence
|
|
19
23
|
|
|
20
24
|
Before generating the review report, read `.agents/rules/evidence-reporting.md`. Normal inspection records the command, scope, structured result, actual conclusion, and uncovered parts; findings, blocking conditions, or disputes retain reproducible locations and decisive excerpts, while identity fields remain exact.
|
|
@@ -54,7 +58,7 @@ Require `task.md` and at least one analysis artifact: `analysis.md` or `analysis
|
|
|
54
58
|
|
|
55
59
|
### 2. Resolve Review Context
|
|
56
60
|
|
|
57
|
-
Run `agent-infra-internal task-artifact {task-id} inspect --family review-analysis`. Continue only for `ready
|
|
61
|
+
Run `agent-infra-internal task-artifact {task-id} inspect --family review-analysis`. Continue only for `ready`. When `selection.disposition` is `reuse`, reuse `selection.artifact`, do not run started/init or write a new artifact, and continue directly to completion verification and next-step guidance. Otherwise take `{analysis-artifact}` from `inputs` and `{review-round}` / `{review-artifact}` from `next.round` / `next.name`. Do not scan rounds or construct names in the skill.
|
|
58
62
|
|
|
59
63
|
### 3. Read Analysis Context
|
|
60
64
|
|
|
@@ -15,6 +15,10 @@ description: >
|
|
|
15
15
|
|
|
16
16
|
## 行为边界 / 关键规则
|
|
17
17
|
|
|
18
|
+
### 路径与返工
|
|
19
|
+
|
|
20
|
+
本阶段只消费核心从最新有效分析产物解析出的规范路径事实;未被所选路径包含的阶段不得创建产物。同阶段完成一次修订—复审后再次收到 Changes Requested 时,必须在下一执行产物前提交绑定 finding、来源 SHA 和稳定任务事实摘要的返工分类;轮次或文件名变化不是新证据。
|
|
21
|
+
|
|
18
22
|
### 持久化报告证据
|
|
19
23
|
|
|
20
24
|
生成审查报告时,先读取 `.agents/rules/evidence-reporting.md`。正常检视记录命令、范围、结构化结果、实际结论和未覆盖部分;finding、阻塞或争议保留可复现位置与决定性摘录,身份字段必须精确保留。
|
|
@@ -57,7 +61,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
57
61
|
|
|
58
62
|
### 2. 解析审查上下文
|
|
59
63
|
|
|
60
|
-
运行 `agent-infra-internal task-artifact {task-id} inspect --family review-analysis`。仅当结果为 `ready`
|
|
64
|
+
运行 `agent-infra-internal task-artifact {task-id} inspect --family review-analysis`。仅当结果为 `ready` 时继续。若 `selection.disposition` 为 `reuse`,复用 `selection.artifact`,不得执行 started、init 或写入新产物,并直接进入完成校验与下一步提示。其他状态从 `inputs` 取得 `{analysis-artifact}`,从 `next.round` / `next.name` 取得 `{review-round}` / `{review-artifact}`;不得自行扫描轮次或拼装文件名。随后执行 started 事件并复核返回身份。
|
|
61
65
|
|
|
62
66
|
### 3. 阅读分析上下文
|
|
63
67
|
|
|
@@ -15,6 +15,10 @@ Review the latest code round and produce `review-code.md` or `review-code-r{N}.m
|
|
|
15
15
|
|
|
16
16
|
## Boundary / Critical Rules
|
|
17
17
|
|
|
18
|
+
### Path and rework
|
|
19
|
+
|
|
20
|
+
This stage consumes only the canonical path fact parsed by core from the latest valid analysis artifact; a stage omitted by that path must not create an artifact. When another Changes Requested verdict follows one completed revision-review cycle in the same stage, classify the rework before the next executor artifact and bind it to the finding, source SHA, and stable task-fact digest. A round or filename change is not new evidence.
|
|
21
|
+
|
|
18
22
|
### Persisted Report Evidence
|
|
19
23
|
|
|
20
24
|
Before generating the review report, read `.agents/rules/evidence-reporting.md`. Normal inspection records the command, scope, structured result, actual conclusion, and uncovered parts; findings, blocking conditions, or disputes retain reproducible locations and decisive excerpts, while identity fields remain exact.
|
|
@@ -67,7 +71,7 @@ Require:
|
|
|
67
71
|
|
|
68
72
|
### 2. Resolve the Artifact Context
|
|
69
73
|
|
|
70
|
-
Run `agent-infra-internal task-artifact {task-id} inspect --family review-code`. Continue only for `ready
|
|
74
|
+
Run `agent-infra-internal task-artifact {task-id} inspect --family review-code`. Continue only for `ready`. When `selection.disposition` is `reuse`, reuse `selection.artifact`, do not run started/init or write a new artifact, and continue directly to completion verification and next-step guidance. Otherwise take the latest `{code-artifact}` from `inputs` and `{review-round}` / `{review-artifact}` from `next.round` / `next.name`. Do not scan rounds or construct names in the skill. Then run the started event and verify the returned identity.
|
|
71
75
|
|
|
72
76
|
### 3. Read Implementation and Refinement Context
|
|
73
77
|
|
|
@@ -15,6 +15,10 @@ description: >
|
|
|
15
15
|
|
|
16
16
|
## 行为边界 / 关键规则
|
|
17
17
|
|
|
18
|
+
### 路径与返工
|
|
19
|
+
|
|
20
|
+
本阶段只消费核心从最新有效分析产物解析出的规范路径事实;未被所选路径包含的阶段不得创建产物。同阶段完成一次修订—复审后再次收到 Changes Requested 时,必须在下一执行产物前提交绑定 finding、来源 SHA 和稳定任务事实摘要的返工分类;轮次或文件名变化不是新证据。
|
|
21
|
+
|
|
18
22
|
### 持久化报告证据
|
|
19
23
|
|
|
20
24
|
生成审查报告时,先读取 `.agents/rules/evidence-reporting.md`。正常检视记录命令、范围、结构化结果、实际结论和未覆盖部分;finding、阻塞或争议保留可复现位置与决定性摘录,身份字段必须精确保留。
|
|
@@ -66,7 +70,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
66
70
|
|
|
67
71
|
### 2. 解析审查上下文
|
|
68
72
|
|
|
69
|
-
运行 `agent-infra-internal task-artifact {task-id} inspect --family review-code`。仅当结果为 `ready`
|
|
73
|
+
运行 `agent-infra-internal task-artifact {task-id} inspect --family review-code`。仅当结果为 `ready` 时继续。若 `selection.disposition` 为 `reuse`,复用 `selection.artifact`,不得执行 started、init 或写入新产物,并直接进入完成校验与下一步提示。其他状态从 `inputs` 取得最新 `{code-artifact}`,从 `next.round` / `next.name` 取得 `{review-round}` / `{review-artifact}`;不得自行扫描轮次或拼装文件名。随后执行 started 事件并复核返回身份。
|
|
70
74
|
|
|
71
75
|
### 3. 阅读实现与修复上下文
|
|
72
76
|
|
|
@@ -15,6 +15,10 @@ Review the latest plan artifact and produce `review-plan.md` or `review-plan-r{N
|
|
|
15
15
|
|
|
16
16
|
## Boundary / Critical Rules
|
|
17
17
|
|
|
18
|
+
### Path and rework
|
|
19
|
+
|
|
20
|
+
This stage consumes only the canonical path fact parsed by core from the latest valid analysis artifact; a stage omitted by that path must not create an artifact. When another Changes Requested verdict follows one completed revision-review cycle in the same stage, classify the rework before the next executor artifact and bind it to the finding, source SHA, and stable task-fact digest. A round or filename change is not new evidence.
|
|
21
|
+
|
|
18
22
|
### Persisted Report Evidence
|
|
19
23
|
|
|
20
24
|
Before generating the review report, read `.agents/rules/evidence-reporting.md`. Normal inspection records the command, scope, structured result, actual conclusion, and uncovered parts; findings, blocking conditions, or disputes retain reproducible locations and decisive excerpts, while identity fields remain exact.
|
|
@@ -54,7 +58,7 @@ Require `task.md` and at least one plan artifact: `plan.md` or `plan-r{N}.md`.
|
|
|
54
58
|
|
|
55
59
|
### 2. Resolve the Artifact Context
|
|
56
60
|
|
|
57
|
-
Run `agent-infra-internal task-artifact {task-id} inspect --family review-plan`. Continue only for `ready
|
|
61
|
+
Run `agent-infra-internal task-artifact {task-id} inspect --family review-plan`. Continue only for `ready`. When `selection.disposition` is `reuse`, reuse `selection.artifact`, do not run started/init or write a new artifact, and continue directly to completion verification and next-step guidance. Otherwise take `{plan-artifact}` from `inputs` and `{review-round}` / `{review-artifact}` from `next.round` / `next.name`. Do not scan rounds or construct names in the skill. Then run the started event and verify the returned identity.
|
|
58
62
|
|
|
59
63
|
### 3. Read Plan Context
|
|
60
64
|
|
|
@@ -15,6 +15,10 @@ description: >
|
|
|
15
15
|
|
|
16
16
|
## 行为边界 / 关键规则
|
|
17
17
|
|
|
18
|
+
### 路径与返工
|
|
19
|
+
|
|
20
|
+
本阶段只消费核心从最新有效分析产物解析出的规范路径事实;未被所选路径包含的阶段不得创建产物。同阶段完成一次修订—复审后再次收到 Changes Requested 时,必须在下一执行产物前提交绑定 finding、来源 SHA 和稳定任务事实摘要的返工分类;轮次或文件名变化不是新证据。
|
|
21
|
+
|
|
18
22
|
### 持久化报告证据
|
|
19
23
|
|
|
20
24
|
生成审查报告时,先读取 `.agents/rules/evidence-reporting.md`。正常检视记录命令、范围、结构化结果、实际结论和未覆盖部分;finding、阻塞或争议保留可复现位置与决定性摘录,身份字段必须精确保留。
|
|
@@ -57,7 +61,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
57
61
|
|
|
58
62
|
### 2. 解析审查上下文
|
|
59
63
|
|
|
60
|
-
运行 `agent-infra-internal task-artifact {task-id} inspect --family review-plan`。仅当结果为 `ready`
|
|
64
|
+
运行 `agent-infra-internal task-artifact {task-id} inspect --family review-plan`。仅当结果为 `ready` 时继续。若 `selection.disposition` 为 `reuse`,复用 `selection.artifact`,不得执行 started、init 或写入新产物,并直接进入完成校验与下一步提示。其他状态从 `inputs` 取得 `{plan-artifact}`,从 `next.round` / `next.name` 取得 `{review-round}` / `{review-artifact}`;不得自行扫描轮次或拼装文件名。随后执行 started 事件并复核返回身份。
|
|
61
65
|
|
|
62
66
|
### 3. 阅读方案上下文
|
|
63
67
|
|
|
@@ -26,7 +26,7 @@ Before generating a validation report, read `.agents/rules/evidence-reporting.md
|
|
|
26
26
|
- `complete-manual-validation` remains the maintainer's final registration after coverage is judged sufficient.
|
|
27
27
|
- Never manipulate temporary worktrees, leases, or containers directly; only call `agent-infra-internal task-validate`.
|
|
28
28
|
- Never record tokens, environment variables, full argv, absolute user paths, or raw transcripts in the artifact; the core must write one current-only evidence envelope for each validation target.
|
|
29
|
-
- Before generating
|
|
29
|
+
- Before generating validation artifact Markdown referenced by the task comment, read `.agents/rules/sync-content-generation.md` and follow its generator-side constraints. Keep the validation artifact local instead of publishing it as an Issue artifact comment.
|
|
30
30
|
- The branch-only fallback writes to `.agents/workspace/validations/{branch-slug}/` and is marked `recoverable: false`: no task.md write-back, no lifecycle events, no Issue sync, no `task-verify`; the artifact must be carried back to the host that owns the task workspace for registration.
|
|
31
31
|
|
|
32
32
|
## Step 0: State Check (pre-execution hard gate)
|
|
@@ -46,7 +46,7 @@ Branch-only has no `{task-id}`: skip this step and record `not-applicable (branc
|
|
|
46
46
|
3. Take the round and artifact name from the core result. After confirming valid explicit work or a non-empty discovered list, run `agent-infra-internal task-event {task-id} validation-run.started --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code}` and classify each item as `executable|unavailable|unknown|unsafe|unresolved`.
|
|
47
47
|
4. Allocate an `{evidence-file}` for each validation target and invoke every executable item separately with `agent-infra-internal task-validate {task-ref} --scope snapshot --format json --evidence-file {evidence-file} -- {command...}`. Only make a second explicit inplace invocation for that item when evidence proves it is required, using its evidence file. If no item is executable, run no fabricated command but still produce coverage-gap evidence.
|
|
48
48
|
5. Read `reference/report-template.md`, create `validation-run.md|validation-run-r{N}.md`, and record the input mode, discovered list, per-item results, CLI JSON allowlist, and sanitized summaries.
|
|
49
|
-
6. Run `agent-infra-internal task-event {task-id} validation-run.completed --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code} --artifact {artifact}`. When an Issue exists, run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}
|
|
49
|
+
6. Run `agent-infra-internal task-event {task-id} validation-run.completed --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code} --artifact {artifact}`. When an Issue exists, run only `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`; do not publish the validation artifact as an Issue comment.
|
|
50
50
|
7. Run `agent-infra-internal task-verify {task-id} validation-run.completed --artifact {artifact} --format text`; fix failures and rerun it.
|
|
51
51
|
8. Report the evidence path, coverage gaps, and verification result; explicitly leave the decision to run `complete-manual-validation` to the maintainer. Read `.agents/rules/next-step-output.md` and end with `Completed at`.
|
|
52
52
|
|
|
@@ -26,7 +26,7 @@ description: >
|
|
|
26
26
|
- `complete-manual-validation` 仍是维护者确认覆盖充分后的最终登记入口。
|
|
27
27
|
- 禁止直接操作临时 worktree、lease 或 container;只调用 `agent-infra-internal task-validate`。
|
|
28
28
|
- 产物不得记录 token、环境变量、完整 argv、绝对用户路径或原始 transcript;每个验证目标必须由核心写入同一 current-only evidence envelope。
|
|
29
|
-
-
|
|
29
|
+
- 生成会由 task 评论引用的验证 artifact Markdown 前,先读取 `.agents/rules/sync-content-generation.md` 并遵循其中的生成端约束;验证 artifact 保留在本地,不发布为 Issue artifact 评论。
|
|
30
30
|
- branch-only 降级路径走 `.agents/workspace/validations/{branch-slug}/`,标记 `recoverable: false`:不写 task.md、不发 lifecycle 事件、不同步 Issue、不跑 `task-verify`;产物须带回宿主机,由维护者登记。
|
|
31
31
|
|
|
32
32
|
## 第 0 步:状态核对(执行前硬约束)
|
|
@@ -46,7 +46,7 @@ branch-only 无 `{task-id}`,跳过本步,并在产物 `## 状态核对` 记
|
|
|
46
46
|
3. 从核心结果取得轮次和产物名;确认存在有效显式工作或非空发现清单后,运行 `agent-infra-internal task-event {task-id} validation-run.started --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code}`,并逐项分类为 `executable|unavailable|unknown|unsafe|unresolved`。
|
|
47
47
|
4. 为每个验证目标分配 `{evidence-file}`,分别调用 `agent-infra-internal task-validate {task-ref} --scope snapshot --format json --evidence-file {evidence-file} -- {command...}`;只有证据表明必须原位时才对该项进行第二次显式 inplace 调用并写入对应 evidence 文件。零项可执行时不运行伪造命令,但仍继续产出覆盖缺口证据。
|
|
48
48
|
5. 读取 `reference/report-template.md`,创建 `validation-run.md|validation-run-r{N}.md`;记录输入模式、发现清单、逐项结果、CLI JSON allowlist 与去敏摘要。
|
|
49
|
-
6. 运行 `agent-infra-internal task-event {task-id} validation-run.completed --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code} --artifact {artifact}`。存在 Issue
|
|
49
|
+
6. 运行 `agent-infra-internal task-event {task-id} validation-run.completed --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code} --artifact {artifact}`。存在 Issue 时仅运行 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`;验证 artifact 不发布为 Issue 评论。
|
|
50
50
|
7. 运行 `agent-infra-internal task-verify {task-id} validation-run.completed --artifact {artifact} --format text`;未通过则修复后重跑。
|
|
51
51
|
8. 告知用户证据路径、覆盖缺口和验证结果;明确仍需维护者判断是否执行 `complete-manual-validation`。读取 `.agents/rules/next-step-output.md`,最后一行输出 `Completed at`。
|
|
52
52
|
|
|
@@ -14,14 +14,15 @@ The entry point may omit the task ref; explicit task scope accepts only `--task
|
|
|
14
14
|
The orchestrator delegates only and never executes a stage skill itself. First read `.agents/rules/no-mid-flow-questions.md`, `.agents/rules/lifecycle-orchestration.md`, and `reference/host-validation.md`.
|
|
15
15
|
|
|
16
16
|
1. Resolve the canonical task ID, current Agent Client, and optional atomic policy flags, then run `task-snapshot`. If one explicit role field is present, all four are required.
|
|
17
|
-
2. Use the current host's native child spawn, wait, and result interfaces. Task-bound sandboxes
|
|
18
|
-
3.
|
|
19
|
-
4. Run `
|
|
20
|
-
5.
|
|
21
|
-
6.
|
|
22
|
-
7.
|
|
23
|
-
8.
|
|
24
|
-
9.
|
|
17
|
+
2. Use the current host's native child spawn, wait, and result interfaces. Task-bound sandboxes execute ordinary task orchestration locally in the current worktree; Codex controller `open`, `verify`, and `close` remain restricted broker operations. Retain task binding and checks for real external process operations.
|
|
18
|
+
3. Before each loop, run `agent-infra-internal task-lifecycle {task-id} recover-started --agent {client} --auto`. The client adapter owns recovery capability and stop-evidence validation; an unsupported adapter or a run that needs no recovery returns `no-op`. Continue only after `no-op` or `applied`. Stop on every other result; a later operator invocation retries from persisted state without routing or dispatching a child.
|
|
19
|
+
4. Run `task-orchestration {task-id} begin-or-resume --client {client}` with the complete explicit policy. With no explicit policy, core reads that client's configured policy; existing runs use persisted policy. Disk state outside the complete current structure fails closed without rewriting; finish or clear active runs before upgrading. Stop on paused/completed results.
|
|
20
|
+
5. Run `route`. On `completed`, run `agent-infra-internal task-verify {task-id} run-task.completed --format text` and stop. Only a `running` result with non-null `next` supplies action, role, round, artifact, requested model, and requested effort.
|
|
21
|
+
6. Call `prepare --client {client} --requested-model {requestedModel} --requested-reasoning-effort {requestedReasoningEffort}` with route's exact policy. The client adapter runs host preflight. Report actual task, policy, or host failures.
|
|
22
|
+
7. After prepare, run `task-orchestration <task-ref> dispatch` before spawning a fresh native child with route's model/effort. Pass the short task ref, skill, `--orchestrated`, and stage identity. The child calls `await-activation --stage ... --round ... --artifact ... --role ...` to associate its actual identity before executing. Code-task creates the local checkpoint; do not delegate a separate commit stage or push. Retain existing write locks without introducing a new lock protocol around native spawn.
|
|
23
|
+
8. Record actual start and terminal results through the current host's native lifecycle events and result interfaces. A timed-out wait does not imply success. Pause on actual identity, transport, or terminal failures. After the stage and child finish, call `advance`; repeat step 3 only while running.
|
|
24
|
+
9. Create a fresh child each round and never reuse a reviewer. Record actual model/effort and host fallback reasons. Validate current identity, artifacts, ledger, and execution results. User rulings override derived historical plan requirements. Do not introduce child discovery, orphan recovery, or a dedicated recovery protocol.
|
|
25
|
+
10. On pause or completion, run the matching typed verification and report the structured endpoint.
|
|
25
26
|
|
|
26
27
|
## Stop
|
|
27
28
|
|
|
@@ -14,14 +14,15 @@ description: >
|
|
|
14
14
|
总控只编排,不直接执行任何阶段技能。执行前先读取 `.agents/rules/no-mid-flow-questions.md`、`.agents/rules/lifecycle-orchestration.md` 与 `reference/host-validation.md`。
|
|
15
15
|
|
|
16
16
|
1. 解析规范任务 ID、当前 Agent Client,以及可选的原子策略 `--executor-model`、`--executor-reasoning-effort`、`--reviewer-model`、`--reviewer-reasoning-effort`,并执行 `agent-infra-internal task-snapshot {task-id} --format text`。任一显式策略字段出现时四个 role 字段必须完整,不得与配置拼接;两个角色可以使用同一模型。
|
|
17
|
-
2. 使用当前宿主的原生子 Agent 启动、等待与结果接口。task-bound sandbox
|
|
18
|
-
3.
|
|
19
|
-
4. 调用 `
|
|
20
|
-
5. 调用 `
|
|
21
|
-
6.
|
|
22
|
-
7.
|
|
23
|
-
8.
|
|
24
|
-
9.
|
|
17
|
+
2. 使用当前宿主的原生子 Agent 启动、等待与结果接口。task-bound sandbox 在当前 worktree 本地执行普通任务编排;Codex controller 的 `open`、`verify`、`close` 继续通过受限 broker 执行。保留任务绑定与真实外部进程操作检查。
|
|
18
|
+
3. 每次进入循环时先调用 `agent-infra-internal task-lifecycle {task-id} recover-started --agent {client} --auto`。客户端适配器负责恢复能力和停止证据校验;没有该能力或无需恢复时返回 `no-op`。仅在结构化结果为 `no-op` 或 `applied` 时继续,其他结果安全停止;下一次人为调用按持久化状态幂等重试,不 route、不派发 child。
|
|
19
|
+
4. 调用 `agent-infra-internal task-orchestration {task-id} begin-or-resume --client {client}` 并转发完整显式策略。完全没有显式策略时由核心读取当前 client 的 `agentClients[].orchestration`;existing run 使用持久化策略。磁盘状态不符合当前完整结构时核心失败关闭且不改写;升级前必须完成或清空 active run。仅当核心返回 `ORCHESTRATION_MODEL_POLICY_REQUIRED` 时,先用 `agent-client model-selection` 展示 complete/partial/interactive-only 来源,再一次收集完整策略;未回答则不创建 run。若为 paused/completed,按结构化结果停止。
|
|
20
|
+
5. 调用 `route` 并读取结构化结果。若返回 `completed`,立即运行 `agent-infra-internal task-verify {task-id} run-task.completed --format text` 并停止;仅当返回 `running` 且 `next` 非空时读取唯一 action、role、round、artifact、`requestedModel` 和 `requestedReasoningEffort`,不得自行推断。
|
|
21
|
+
6. 调用 `prepare --client {client} --requested-model {requestedModel} --requested-reasoning-effort {requestedReasoningEffort}`,使用 route 返回的精确策略。客户端适配器执行宿主 preflight;任务身份、策略或宿主检查失败时记录实际诊断。
|
|
22
|
+
7. prepare 成功后,在调用 fresh 原生子 Agent 前执行 `task-orchestration <task-ref> dispatch`,显式指定 route 返回的 model/effort;传递短任务引用、skill 名、`--orchestrated` 与 stage/round/artifact/role。child 调用 `await-activation --stage ... --round ... --artifact ... --role ...`,确认当前阶段与实际 child 关联后执行。代码阶段通过 code-task 创建本地 checkpoint;禁止单独委派 commit 阶段或推送。保留已有写锁,不把实际 spawn 纳入新建锁协议。
|
|
23
|
+
8. 通过当前宿主的原生生命周期事件和结果接口记录实际启动及终态。timed-out wait 不推断成功;身份、传输或异常终态失败如实暂停。阶段结果和 child 完成后调用 `advance`;只有 `running` 才重复步骤 3。
|
|
24
|
+
9. 每轮创建新 child;禁止 follow-up 复用 reviewer。如实记录 actual model/effort 及宿主降级理由。检查当前身份、产物、账本与实际执行结果;用户裁决优先于历史方案派生要求。不得新增 child discovery、孤立 child 恢复或专用恢复协议。
|
|
25
|
+
10. 完成或暂停后运行对应 typed verification,并把结构化 run 摘要、暂停原因、commit 终点或 clean completion evidence 告知用户。
|
|
25
26
|
|
|
26
27
|
## 停止
|
|
27
28
|
|
|
@@ -363,6 +363,13 @@ function assetMatches(entry, target) {
|
|
|
363
363
|
: normalizedTarget === normalizedEntry;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
+
function isOwnedByDisabledAgentClient(target, enabledSet) {
|
|
367
|
+
return AGENT_CLIENT_MANIFEST.some((adapter) =>
|
|
368
|
+
!enabledSet.has(adapter.id)
|
|
369
|
+
&& adapter.ownedPathPrefixes.some((prefix) => assetMatches(prefix, target))
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
|
|
366
373
|
function adapterAssets(adapters, category) {
|
|
367
374
|
return adapters.flatMap((adapter) => adapter[category]);
|
|
368
375
|
}
|
|
@@ -1914,6 +1921,15 @@ function syncTemplates(projectRoot, templateRootOverride) {
|
|
|
1914
1921
|
}
|
|
1915
1922
|
|
|
1916
1923
|
const mergedMap = new Map();
|
|
1924
|
+
const addMergedTarget = (target, source) => {
|
|
1925
|
+
if (
|
|
1926
|
+
isOwnedByDisabledAgentClient(target, enabledTUIs)
|
|
1927
|
+
&& !isCustomProtected(target, protectedCustomSkills, customCommandTargets)
|
|
1928
|
+
) {
|
|
1929
|
+
return;
|
|
1930
|
+
}
|
|
1931
|
+
if (!mergedMap.has(target)) mergedMap.set(target, source);
|
|
1932
|
+
};
|
|
1917
1933
|
for (const entry of merged) {
|
|
1918
1934
|
if (isPathOwnedByOtherPlatform(entry, platformType)) {
|
|
1919
1935
|
report.managed.skippedPlatform.push(entry);
|
|
@@ -1925,13 +1941,13 @@ function syncTemplates(projectRoot, templateRootOverride) {
|
|
|
1925
1941
|
return globMatch(entry, t);
|
|
1926
1942
|
});
|
|
1927
1943
|
for (const [t, s] of platformSelect(langSelect(hits, lang, allSet, project), platformType, project)) {
|
|
1928
|
-
|
|
1944
|
+
addMergedTarget(t, s);
|
|
1929
1945
|
}
|
|
1930
1946
|
} else {
|
|
1931
1947
|
const rels = entryVariantRels(entry, allSet, platformType);
|
|
1932
1948
|
const selected = platformSelect(langSelect(rels, lang, allSet, project), platformType, project);
|
|
1933
1949
|
for (const [t, s] of selected) {
|
|
1934
|
-
|
|
1950
|
+
addMergedTarget(t, s);
|
|
1935
1951
|
}
|
|
1936
1952
|
}
|
|
1937
1953
|
}
|
|
@@ -106,8 +106,8 @@ delivery_remote_head: # Most recent successfully delivered task branch
|
|
|
106
106
|
|
|
107
107
|
## Rework Intent
|
|
108
108
|
|
|
109
|
-
| intent_id | finding_id | source_artifact | source_sha256 | target | status | declared_at | consumed_at |
|
|
110
|
-
|
|
109
|
+
| intent_id | finding_id | source_artifact | source_sha256 | target | classification | evidence_digest | task_fact_digest | status | declared_at | consumed_at |
|
|
110
|
+
|-----------|------------|----------------|---------------|--------|----------------|-----------------|------------------|--------|-------------|-------------|
|
|
111
111
|
|
|
112
112
|
## Artifact Invalidation
|
|
113
113
|
|
|
@@ -106,8 +106,8 @@ delivery_remote_head: # 最近一次成功交付到 remote 的任务分
|
|
|
106
106
|
|
|
107
107
|
## 返工意图
|
|
108
108
|
|
|
109
|
-
| intent_id | finding_id | source_artifact | source_sha256 | target | status | declared_at | consumed_at |
|
|
110
|
-
|
|
109
|
+
| intent_id | finding_id | source_artifact | source_sha256 | target | classification | evidence_digest | task_fact_digest | status | declared_at | consumed_at |
|
|
110
|
+
|-----------|------------|----------------|---------------|--------|----------------|-----------------|------------------|--------|-------------|-------------|
|
|
111
111
|
|
|
112
112
|
## 产物失效记录
|
|
113
113
|
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
name: bug-fix
|
|
10
10
|
description: Workflow for diagnosing and fixing a defect.
|
|
11
11
|
|
|
12
|
+
lifecycle_paths:
|
|
13
|
+
streamlined: [analysis, code, code-review]
|
|
14
|
+
standard: [analysis, design, code, code-review]
|
|
15
|
+
full: [analysis, analysis-review, design, design-review, code, code-review]
|
|
16
|
+
|
|
12
17
|
steps:
|
|
13
18
|
- name: analysis
|
|
14
19
|
description: Reproduce the defect, identify the root cause, and define the fix scope.
|
|
@@ -29,7 +34,7 @@ steps:
|
|
|
29
34
|
outputs:
|
|
30
35
|
- name: analysis
|
|
31
36
|
pattern: "analysis.md | analysis-r{N}.md"
|
|
32
|
-
rule: "
|
|
37
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
33
38
|
outputs:
|
|
34
39
|
- Root-cause analysis
|
|
35
40
|
- Affected files list
|
|
@@ -56,7 +61,7 @@ steps:
|
|
|
56
61
|
outputs:
|
|
57
62
|
- name: review-analysis
|
|
58
63
|
pattern: "review-analysis.md | review-analysis-r{N}.md"
|
|
59
|
-
rule: "
|
|
64
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
60
65
|
outputs:
|
|
61
66
|
- Requirement analysis review report
|
|
62
67
|
- Findings to fix, if any
|
|
@@ -84,7 +89,7 @@ steps:
|
|
|
84
89
|
outputs:
|
|
85
90
|
- name: plan
|
|
86
91
|
pattern: "plan.md | plan-r{N}.md"
|
|
87
|
-
rule: "
|
|
92
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
88
93
|
outputs:
|
|
89
94
|
- Fix plan
|
|
90
95
|
- Regression test list
|
|
@@ -110,7 +115,7 @@ steps:
|
|
|
110
115
|
outputs:
|
|
111
116
|
- name: review-plan
|
|
112
117
|
pattern: "review-plan.md | review-plan-r{N}.md"
|
|
113
|
-
rule: "
|
|
118
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
114
119
|
outputs:
|
|
115
120
|
- Plan review report
|
|
116
121
|
- Findings to fix, if any
|
|
@@ -146,7 +151,7 @@ steps:
|
|
|
146
151
|
outputs:
|
|
147
152
|
- name: code
|
|
148
153
|
pattern: "code.md | code-r{N}.md"
|
|
149
|
-
rule: "
|
|
154
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
150
155
|
outputs:
|
|
151
156
|
- Bug-fix branch with implementation or fixes
|
|
152
157
|
- Regression test files
|
|
@@ -173,7 +178,7 @@ steps:
|
|
|
173
178
|
outputs:
|
|
174
179
|
- name: review-code
|
|
175
180
|
pattern: "review-code.md | review-code-r{N}.md"
|
|
176
|
-
rule: "
|
|
181
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
177
182
|
outputs:
|
|
178
183
|
- Code review report
|
|
179
184
|
- Findings list, if any
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
name: bug-fix
|
|
9
9
|
description: 诊断和修复缺陷的工作流。
|
|
10
10
|
|
|
11
|
+
lifecycle_paths:
|
|
12
|
+
streamlined: [analysis, code, code-review]
|
|
13
|
+
standard: [analysis, design, code, code-review]
|
|
14
|
+
full: [analysis, analysis-review, design, design-review, code, code-review]
|
|
15
|
+
|
|
11
16
|
steps:
|
|
12
17
|
- name: analysis
|
|
13
18
|
description: 复现缺陷,识别根本原因,确定修复范围。
|
|
@@ -28,7 +33,7 @@ steps:
|
|
|
28
33
|
outputs:
|
|
29
34
|
- name: analysis
|
|
30
35
|
pattern: "analysis.md | analysis-r{N}.md"
|
|
31
|
-
rule: "
|
|
36
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
32
37
|
outputs:
|
|
33
38
|
- 根因分析
|
|
34
39
|
- 受影响文件列表
|
|
@@ -55,7 +60,7 @@ steps:
|
|
|
55
60
|
outputs:
|
|
56
61
|
- name: review-analysis
|
|
57
62
|
pattern: "review-analysis.md | review-analysis-r{N}.md"
|
|
58
|
-
rule: "
|
|
63
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
59
64
|
outputs:
|
|
60
65
|
- 需求分析审查报告
|
|
61
66
|
- 待修正问题列表(如有)
|
|
@@ -83,7 +88,7 @@ steps:
|
|
|
83
88
|
outputs:
|
|
84
89
|
- name: plan
|
|
85
90
|
pattern: "plan.md | plan-r{N}.md"
|
|
86
|
-
rule: "
|
|
91
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
87
92
|
outputs:
|
|
88
93
|
- 任务文件中记录的修复方案
|
|
89
94
|
- 待添加的测试用例列表
|
|
@@ -109,7 +114,7 @@ steps:
|
|
|
109
114
|
outputs:
|
|
110
115
|
- name: review-plan
|
|
111
116
|
pattern: "review-plan.md | review-plan-r{N}.md"
|
|
112
|
-
rule: "
|
|
117
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
113
118
|
outputs:
|
|
114
119
|
- 技术方案审查报告
|
|
115
120
|
- 待修正问题列表(如有)
|
|
@@ -145,7 +150,7 @@ steps:
|
|
|
145
150
|
outputs:
|
|
146
151
|
- name: code
|
|
147
152
|
pattern: "code.md | code-r{N}.md"
|
|
148
|
-
rule: "
|
|
153
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
149
154
|
outputs:
|
|
150
155
|
- 包含实现或修复的缺陷修复分支
|
|
151
156
|
- 回归测试文件
|
|
@@ -172,7 +177,7 @@ steps:
|
|
|
172
177
|
outputs:
|
|
173
178
|
- name: review-code
|
|
174
179
|
pattern: "review-code.md | review-code-r{N}.md"
|
|
175
|
-
rule: "
|
|
180
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
176
181
|
outputs:
|
|
177
182
|
- 代码审查报告
|
|
178
183
|
- 问题列表(如有)
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
name: feature-development
|
|
10
10
|
description: End-to-end workflow for developing a new feature.
|
|
11
11
|
|
|
12
|
+
lifecycle_paths:
|
|
13
|
+
streamlined: [analysis, code, code-review]
|
|
14
|
+
standard: [analysis, design, code, code-review]
|
|
15
|
+
full: [analysis, analysis-review, design, design-review, code, code-review]
|
|
16
|
+
|
|
12
17
|
steps:
|
|
13
18
|
- name: analysis
|
|
14
19
|
description: Analyze feature requirements, explore the codebase, and identify affected areas.
|
|
@@ -27,7 +32,7 @@ steps:
|
|
|
27
32
|
outputs:
|
|
28
33
|
- name: analysis
|
|
29
34
|
pattern: "analysis.md | analysis-r{N}.md"
|
|
30
|
-
rule: "
|
|
35
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
31
36
|
outputs:
|
|
32
37
|
- Requirement analysis report
|
|
33
38
|
- Affected files list
|
|
@@ -54,7 +59,7 @@ steps:
|
|
|
54
59
|
outputs:
|
|
55
60
|
- name: review-analysis
|
|
56
61
|
pattern: "review-analysis.md | review-analysis-r{N}.md"
|
|
57
|
-
rule: "
|
|
62
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
58
63
|
outputs:
|
|
59
64
|
- Requirement analysis review report
|
|
60
65
|
- Findings to fix, if any
|
|
@@ -83,7 +88,7 @@ steps:
|
|
|
83
88
|
outputs:
|
|
84
89
|
- name: plan
|
|
85
90
|
pattern: "plan.md | plan-r{N}.md"
|
|
86
|
-
rule: "
|
|
91
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
87
92
|
outputs:
|
|
88
93
|
- Technical plan
|
|
89
94
|
- Interface definitions
|
|
@@ -110,7 +115,7 @@ steps:
|
|
|
110
115
|
outputs:
|
|
111
116
|
- name: review-plan
|
|
112
117
|
pattern: "review-plan.md | review-plan-r{N}.md"
|
|
113
|
-
rule: "
|
|
118
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
114
119
|
outputs:
|
|
115
120
|
- Plan review report
|
|
116
121
|
- Findings to fix, if any
|
|
@@ -146,7 +151,7 @@ steps:
|
|
|
146
151
|
outputs:
|
|
147
152
|
- name: code
|
|
148
153
|
pattern: "code.md | code-r{N}.md"
|
|
149
|
-
rule: "
|
|
154
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
150
155
|
outputs:
|
|
151
156
|
- Feature branch with implementation or fixes
|
|
152
157
|
- Test files
|
|
@@ -173,7 +178,7 @@ steps:
|
|
|
173
178
|
outputs:
|
|
174
179
|
- name: review-code
|
|
175
180
|
pattern: "review-code.md | review-code-r{N}.md"
|
|
176
|
-
rule: "
|
|
181
|
+
rule: "Let the task-artifact selector decide: reuse a completed artifact when inputs and substantive results match; create the next round only for new inputs, rework evidence, or result changes"
|
|
177
182
|
outputs:
|
|
178
183
|
- Code review report
|
|
179
184
|
- Findings to fix
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
name: feature-development
|
|
9
9
|
description: 开发新功能的端到端工作流。
|
|
10
10
|
|
|
11
|
+
lifecycle_paths:
|
|
12
|
+
streamlined: [analysis, code, code-review]
|
|
13
|
+
standard: [analysis, design, code, code-review]
|
|
14
|
+
full: [analysis, analysis-review, design, design-review, code, code-review]
|
|
15
|
+
|
|
11
16
|
steps:
|
|
12
17
|
- name: analysis
|
|
13
18
|
description: 分析功能需求,探索代码库,识别受影响的区域。
|
|
@@ -26,7 +31,7 @@ steps:
|
|
|
26
31
|
outputs:
|
|
27
32
|
- name: analysis
|
|
28
33
|
pattern: "analysis.md | analysis-r{N}.md"
|
|
29
|
-
rule: "
|
|
34
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
30
35
|
outputs:
|
|
31
36
|
- 需求分析报告
|
|
32
37
|
- 受影响文件列表
|
|
@@ -53,7 +58,7 @@ steps:
|
|
|
53
58
|
outputs:
|
|
54
59
|
- name: review-analysis
|
|
55
60
|
pattern: "review-analysis.md | review-analysis-r{N}.md"
|
|
56
|
-
rule: "
|
|
61
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
57
62
|
outputs:
|
|
58
63
|
- 需求分析审查报告
|
|
59
64
|
- 待修正问题列表(如有)
|
|
@@ -82,7 +87,7 @@ steps:
|
|
|
82
87
|
outputs:
|
|
83
88
|
- name: plan
|
|
84
89
|
pattern: "plan.md | plan-r{N}.md"
|
|
85
|
-
rule: "
|
|
90
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
86
91
|
outputs:
|
|
87
92
|
- 技术方案
|
|
88
93
|
- 接口定义
|
|
@@ -109,7 +114,7 @@ steps:
|
|
|
109
114
|
outputs:
|
|
110
115
|
- name: review-plan
|
|
111
116
|
pattern: "review-plan.md | review-plan-r{N}.md"
|
|
112
|
-
rule: "
|
|
117
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
113
118
|
outputs:
|
|
114
119
|
- 技术方案审查报告
|
|
115
120
|
- 待修正问题列表(如有)
|
|
@@ -145,7 +150,7 @@ steps:
|
|
|
145
150
|
outputs:
|
|
146
151
|
- name: code
|
|
147
152
|
pattern: "code.md | code-r{N}.md"
|
|
148
|
-
rule: "
|
|
153
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
149
154
|
outputs:
|
|
150
155
|
- 包含实现或修复的功能分支
|
|
151
156
|
- 测试文件
|
|
@@ -172,7 +177,7 @@ steps:
|
|
|
172
177
|
outputs:
|
|
173
178
|
- name: review-code
|
|
174
179
|
pattern: "review-code.md | review-code-r{N}.md"
|
|
175
|
-
rule: "
|
|
180
|
+
rule: "由 task-artifact 选择器决定:输入与实质结果未变化时复用已完成产物;仅在新输入、新返工证据或结果变化时创建下一轮"
|
|
176
181
|
outputs:
|
|
177
182
|
- 代码审查报告
|
|
178
183
|
- 待修复问题列表
|