@fitlab-ai/agent-infra 0.9.2 → 0.9.3
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 +10 -9
- package/README.zh-CN.md +10 -9
- package/dist/bin/internal-cli.js +15 -0
- package/dist/lib/agent-clients/adapter.js +45 -2
- package/dist/lib/agent-clients/adapters/antigravity-cli.js +64 -0
- package/dist/lib/agent-clients/adapters/claude-code.js +10 -1
- package/dist/lib/agent-clients/adapters/codex.js +9 -0
- package/dist/lib/agent-clients/adapters/index.js +2 -2
- package/dist/lib/agent-clients/adapters/opencode.js +9 -0
- package/dist/lib/agent-clients/config.js +42 -4
- package/dist/lib/agent-clients/next-steps.js +11 -2
- package/dist/lib/agent-clients/reconcile.js +2 -1
- package/dist/lib/agent-clients/registry.js +7 -1
- package/dist/lib/agent-clients/schema.js +18 -0
- package/dist/lib/agent-clients/tokens.js +49 -0
- package/dist/lib/agent-clients/types.js +1 -1
- package/dist/lib/defaults.json +1 -1
- package/dist/lib/git/workflow.js +54 -1
- package/dist/lib/internal/agent-client.js +61 -4
- package/dist/lib/internal/git-workflow.js +6 -1
- package/dist/lib/internal/platform-checks.js +3 -3
- package/dist/lib/internal/platform-comment.js +29 -2
- package/dist/lib/internal/platform-issue.js +7 -0
- package/dist/lib/internal/platform-pr-review.js +132 -0
- package/dist/lib/internal/platform-pr.js +20 -2
- package/dist/lib/internal/platform-release-notes.js +52 -16
- package/dist/lib/internal/pr-review-grade.js +140 -0
- package/dist/lib/internal/release-workflow.js +13 -6
- package/dist/lib/internal/task-activity.js +73 -0
- package/dist/lib/internal/task-event.js +17 -1
- package/dist/lib/internal/task-lifecycle.js +7 -0
- package/dist/lib/internal/task-orchestration.js +51 -6
- package/dist/lib/internal/task-review.js +8 -3
- package/dist/lib/platform/adapters.js +8 -1
- package/dist/lib/platform/completion-backfill.js +122 -0
- package/dist/lib/platform/issue-comments.js +3 -2
- package/dist/lib/platform/merged-pr-equivalence.js +115 -5
- package/dist/lib/platform/pr-checks.js +64 -41
- package/dist/lib/platform/pr-review.js +166 -0
- package/dist/lib/platform/pull-requests.js +324 -3
- package/dist/lib/platform/release-notes.js +85 -3
- package/dist/lib/pr-review/evidence-grading.js +229 -0
- package/dist/lib/run/tui.js +3 -5
- package/dist/lib/sandbox/commands/create.js +0 -20
- package/dist/lib/sandbox/commands/show.js +1 -1
- package/dist/lib/task/activity-intent.js +101 -0
- package/dist/lib/task/artifact-lifecycle.js +2 -1
- package/dist/lib/task/commands/log.js +15 -14
- package/dist/lib/task/delegation-receipts.js +23 -2
- package/dist/lib/task/events.js +67 -28
- package/dist/lib/task/finalization-artifacts.js +35 -0
- package/dist/lib/task/lifecycle-execution.js +46 -0
- package/dist/lib/task/orchestration.js +408 -44
- package/dist/lib/task/review-finalization.js +29 -9
- package/dist/lib/task/task-execution-lock.js +231 -0
- package/dist/lib/task/verification-checks.js +1 -1
- package/dist/lib/task/verification-engine.js +218 -2
- package/dist/lib/task/verification.js +4 -3
- package/dist/lib/task/workspace-snapshot.js +17 -5
- package/lib/agent-clients/adapter.ts +75 -2
- package/lib/agent-clients/adapters/antigravity-cli.ts +65 -0
- package/lib/agent-clients/adapters/claude-code.ts +10 -1
- package/lib/agent-clients/adapters/codex.ts +9 -0
- package/lib/agent-clients/adapters/index.ts +2 -2
- package/lib/agent-clients/adapters/opencode.ts +9 -0
- package/lib/agent-clients/config.ts +49 -4
- package/lib/agent-clients/next-steps.ts +15 -2
- package/lib/agent-clients/reconcile.ts +2 -1
- package/lib/agent-clients/registry.ts +10 -0
- package/lib/agent-clients/schema.ts +18 -0
- package/lib/agent-clients/tokens.ts +53 -0
- package/lib/agent-clients/types.ts +15 -1
- package/lib/defaults.json +1 -1
- package/lib/git/workflow.ts +66 -2
- package/lib/internal/agent-client.ts +59 -4
- package/lib/internal/git-workflow.ts +5 -1
- package/lib/internal/platform-checks.ts +4 -4
- package/lib/internal/platform-comment.ts +17 -2
- package/lib/internal/platform-issue.ts +4 -0
- package/lib/internal/platform-pr-review.ts +104 -0
- package/lib/internal/platform-pr.ts +14 -1
- package/lib/internal/platform-release-notes.ts +59 -16
- package/lib/internal/pr-review-grade.ts +130 -0
- package/lib/internal/release-workflow.ts +13 -6
- package/lib/internal/task-activity.ts +55 -0
- package/lib/internal/task-event.ts +9 -1
- package/lib/internal/task-lifecycle.ts +4 -0
- package/lib/internal/task-orchestration.ts +45 -6
- package/lib/internal/task-review.ts +8 -3
- package/lib/platform/adapters.ts +29 -2
- package/lib/platform/completion-backfill.ts +134 -0
- package/lib/platform/issue-comments.ts +3 -2
- package/lib/platform/merged-pr-equivalence.ts +127 -5
- package/lib/platform/pr-checks.ts +72 -45
- package/lib/platform/pr-review.ts +201 -0
- package/lib/platform/pull-requests.ts +395 -2
- package/lib/platform/release-notes.ts +100 -4
- package/lib/pr-review/evidence-grading.ts +318 -0
- package/lib/run/tui.ts +3 -4
- package/lib/sandbox/commands/create.ts +0 -20
- package/lib/sandbox/commands/show.ts +1 -1
- package/lib/server/server.schema.json +2 -2
- package/lib/task/activity-intent.ts +128 -0
- package/lib/task/artifact-lifecycle.ts +2 -1
- package/lib/task/commands/log.ts +15 -14
- package/lib/task/delegation-receipts.ts +32 -3
- package/lib/task/events.ts +75 -30
- package/lib/task/finalization-artifacts.ts +58 -0
- package/lib/task/lifecycle-execution.ts +106 -0
- package/lib/task/orchestration.ts +543 -64
- package/lib/task/review-finalization.ts +40 -9
- package/lib/task/task-execution-lock.ts +296 -0
- package/lib/task/verification-checks.ts +1 -1
- package/lib/task/verification-engine.ts +249 -2
- package/lib/task/verification.ts +5 -3
- package/lib/task/workspace-snapshot.ts +26 -5
- package/package.json +3 -3
- package/templates/.agents/QUICKSTART.en.md +25 -8
- package/templates/.agents/QUICKSTART.zh-CN.md +25 -8
- package/templates/.agents/README.en.md +10 -7
- package/templates/.agents/README.zh-CN.md +10 -7
- package/templates/.agents/hooks/lifecycle-delegation.js +15 -4
- package/templates/.agents/rules/create-issue.github.en.md +4 -2
- package/templates/.agents/rules/create-issue.github.zh-CN.md +4 -2
- package/templates/.agents/rules/issue-fields.github.en.md +3 -1
- package/templates/.agents/rules/issue-fields.github.zh-CN.md +3 -1
- package/templates/.agents/rules/issue-pr-commands.en.md +5 -3
- package/templates/.agents/rules/issue-pr-commands.github.en.md +5 -3
- package/templates/.agents/rules/issue-pr-commands.github.zh-CN.md +5 -3
- package/templates/.agents/rules/issue-pr-commands.zh-CN.md +5 -3
- package/templates/.agents/rules/issue-sync.github.en.md +7 -3
- package/templates/.agents/rules/issue-sync.github.zh-CN.md +8 -4
- package/templates/.agents/rules/lifecycle-orchestration.en.md +5 -2
- package/templates/.agents/rules/lifecycle-orchestration.zh-CN.md +5 -2
- package/templates/.agents/rules/milestone-inference.github.en.md +4 -2
- package/templates/.agents/rules/milestone-inference.github.zh-CN.md +4 -2
- package/templates/.agents/rules/next-step-output.en.md +3 -1
- package/templates/.agents/rules/next-step-output.zh-CN.md +3 -1
- package/templates/.agents/rules/no-mid-flow-questions.en.md +17 -0
- package/templates/.agents/rules/no-mid-flow-questions.zh-CN.md +17 -0
- package/templates/.agents/rules/pr-checks-commands.en.md +3 -3
- package/templates/.agents/rules/pr-checks-commands.github.en.md +2 -2
- package/templates/.agents/rules/pr-checks-commands.github.zh-CN.md +2 -2
- package/templates/.agents/rules/pr-checks-commands.zh-CN.md +3 -3
- package/templates/.agents/rules/pr-sync.en.md +3 -1
- package/templates/.agents/rules/pr-sync.github.en.md +11 -1
- package/templates/.agents/rules/pr-sync.github.zh-CN.md +11 -1
- package/templates/.agents/rules/pr-sync.zh-CN.md +3 -1
- package/templates/.agents/rules/release-commands.en.md +1 -1
- package/templates/.agents/rules/release-commands.github.en.md +12 -2
- package/templates/.agents/rules/release-commands.github.zh-CN.md +12 -2
- package/templates/.agents/rules/release-commands.zh-CN.md +1 -1
- package/templates/.agents/rules/task-management.en.md +11 -0
- package/templates/.agents/rules/task-management.zh-CN.md +11 -0
- package/templates/.agents/skills/analyze-task/SKILL.en.md +10 -7
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +10 -7
- package/templates/.agents/skills/block-task/SKILL.en.md +7 -5
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +7 -5
- package/templates/.agents/skills/cancel-task/SKILL.en.md +6 -4
- package/templates/.agents/skills/cancel-task/SKILL.zh-CN.md +6 -4
- package/templates/.agents/skills/close-codescan/SKILL.en.md +3 -1
- package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +3 -1
- package/templates/.agents/skills/close-dependabot/SKILL.en.md +3 -1
- package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +3 -1
- package/templates/.agents/skills/code-task/SKILL.en.md +9 -6
- package/templates/.agents/skills/code-task/SKILL.zh-CN.md +11 -8
- package/templates/.agents/skills/commit/SKILL.en.md +3 -1
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +3 -1
- package/templates/.agents/skills/commit/reference/commit-message.en.md +1 -1
- package/templates/.agents/skills/commit/reference/commit-message.zh-CN.md +1 -1
- package/templates/.agents/skills/commit/reference/issue-metadata-sync.en.md +1 -1
- package/templates/.agents/skills/commit/reference/issue-metadata-sync.zh-CN.md +1 -1
- 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 +6 -4
- package/templates/.agents/skills/complete-manual-validation/SKILL.zh-CN.md +6 -4
- 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 +21 -6
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +21 -6
- package/templates/.agents/skills/complete-task/config/verify.en.json +1 -0
- package/templates/.agents/skills/complete-task/config/verify.zh-CN.json +1 -0
- package/templates/.agents/skills/complete-task/reference/external-delivery.en.md +17 -0
- package/templates/.agents/skills/complete-task/reference/external-delivery.zh-CN.md +17 -0
- package/templates/.agents/skills/create-pr/SKILL.en.md +3 -1
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +3 -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 +17 -16
- package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +17 -16
- package/templates/.agents/skills/create-task/SKILL.en.md +5 -3
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +5 -3
- package/templates/.agents/skills/import-issue/SKILL.en.md +5 -3
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +5 -3
- package/templates/.agents/skills/plan-task/SKILL.en.md +8 -5
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +8 -5
- package/templates/.agents/skills/post-release/SKILL.en.md +2 -0
- package/templates/.agents/skills/post-release/SKILL.zh-CN.md +2 -0
- package/templates/.agents/skills/release/SKILL.en.md +16 -10
- package/templates/.agents/skills/release/SKILL.zh-CN.md +16 -10
- package/templates/.agents/skills/restore-task/SKILL.en.md +4 -1
- package/templates/.agents/skills/restore-task/SKILL.zh-CN.md +4 -1
- package/templates/.agents/skills/review-analysis/SKILL.en.md +7 -4
- package/templates/.agents/skills/review-analysis/SKILL.zh-CN.md +7 -4
- package/templates/.agents/skills/review-code/SKILL.en.md +9 -6
- package/templates/.agents/skills/review-code/SKILL.zh-CN.md +9 -6
- package/templates/.agents/skills/review-plan/SKILL.en.md +7 -4
- package/templates/.agents/skills/review-plan/SKILL.zh-CN.md +7 -4
- package/templates/.agents/skills/review-pr/SKILL.en.md +158 -0
- package/templates/.agents/skills/review-pr/SKILL.zh-CN.md +158 -0
- package/templates/.agents/skills/review-pr/config/verify.en.json +37 -0
- package/templates/.agents/skills/review-pr/config/verify.zh-CN.json +37 -0
- package/templates/.agents/skills/review-pr/reference/evidence-grading.en.md +65 -0
- package/templates/.agents/skills/review-pr/reference/evidence-grading.zh-CN.md +65 -0
- package/templates/.agents/skills/review-pr/reference/output-guidance.en.md +18 -0
- package/templates/.agents/skills/review-pr/reference/output-guidance.zh-CN.md +18 -0
- package/templates/.agents/skills/review-pr/reference/report-template.en.md +85 -0
- package/templates/.agents/skills/review-pr/reference/report-template.zh-CN.md +85 -0
- package/templates/.agents/skills/run-task/SKILL.en.md +8 -8
- package/templates/.agents/skills/run-task/SKILL.zh-CN.md +8 -8
- package/templates/.agents/skills/run-task/config/verify.en.json +2 -1
- package/templates/.agents/skills/run-task/config/verify.zh-CN.json +2 -1
- package/templates/.agents/skills/run-task/reference/host-validation.en.md +20 -0
- package/templates/.agents/skills/run-task/reference/host-validation.zh-CN.md +20 -0
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +35 -61
- package/templates/.agents/skills/watch-pr/SKILL.en.md +13 -13
- package/templates/.agents/skills/watch-pr/SKILL.zh-CN.md +13 -13
- package/templates/.agents/skills/watch-pr/reference/monitor-and-heal.en.md +27 -6
- package/templates/.agents/skills/watch-pr/reference/monitor-and-heal.zh-CN.md +26 -5
- package/templates/.agents/templates/task.en.md +1 -1
- package/templates/.agents/templates/task.zh-CN.md +1 -1
- package/templates/.agents/workflows/bug-fix.en.yaml +3 -3
- package/templates/.agents/workflows/bug-fix.zh-CN.yaml +3 -3
- package/templates/.agents/workflows/code-review.en.yaml +1 -1
- package/templates/.agents/workflows/code-review.zh-CN.yaml +1 -1
- package/templates/.agents/workflows/feature-development.en.yaml +4 -4
- package/templates/.agents/workflows/feature-development.zh-CN.yaml +4 -4
- package/templates/.agents/workflows/refactoring.en.yaml +3 -3
- package/templates/.agents/workflows/refactoring.zh-CN.yaml +3 -3
- package/templates/.claude/commands/post-release.en.md +1 -0
- package/templates/.claude/commands/post-release.zh-CN.md +1 -0
- package/templates/.claude/commands/review-pr.en.md +8 -0
- package/templates/.claude/commands/review-pr.zh-CN.md +8 -0
- package/templates/.gemini/commands/_project_/review-pr.en.toml +10 -0
- package/templates/.gemini/commands/_project_/review-pr.zh-CN.toml +10 -0
- package/templates/.opencode/commands/post-release.en.md +2 -0
- package/templates/.opencode/commands/post-release.zh-CN.md +2 -0
- package/templates/.opencode/commands/review-pr.en.md +11 -0
- package/templates/.opencode/commands/review-pr.zh-CN.md +11 -0
- package/dist/lib/agent-clients/adapters/gemini-cli.js +0 -64
- package/lib/agent-clients/adapters/gemini-cli.ts +0 -65
- package/templates/.gemini/commands/_project_/analyze-task.en.toml +0 -10
- package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/archive-tasks.en.toml +0 -10
- package/templates/.gemini/commands/_project_/archive-tasks.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/block-task.en.toml +0 -10
- package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/cancel-task.en.toml +0 -10
- package/templates/.gemini/commands/_project_/cancel-task.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/check-task.en.toml +0 -10
- package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/close-codescan.en.toml +0 -8
- package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/close-dependabot.en.toml +0 -8
- package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/code-task.en.toml +0 -10
- package/templates/.gemini/commands/_project_/code-task.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/commit.en.toml +0 -10
- package/templates/.gemini/commands/_project_/commit.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/complete-manual-validation.en.toml +0 -10
- package/templates/.gemini/commands/_project_/complete-manual-validation.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/complete-task.en.toml +0 -10
- package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/create-pr.en.toml +0 -10
- package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/create-release-note.en.toml +0 -8
- package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/create-task.en.toml +0 -8
- package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/import-codescan.en.toml +0 -8
- package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/import-dependabot.en.toml +0 -8
- package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/import-issue.en.toml +0 -8
- package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/init-labels.en.toml +0 -8
- package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/init-milestones.en.toml +0 -10
- package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/plan-task.en.toml +0 -10
- package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/post-release.en.toml +0 -6
- package/templates/.gemini/commands/_project_/post-release.zh-CN.toml +0 -6
- package/templates/.gemini/commands/_project_/refine-title.en.toml +0 -8
- package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/release.en.toml +0 -8
- package/templates/.gemini/commands/_project_/release.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/restore-task.en.toml +0 -8
- package/templates/.gemini/commands/_project_/restore-task.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/review-analysis.en.toml +0 -10
- package/templates/.gemini/commands/_project_/review-analysis.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/review-code.en.toml +0 -10
- package/templates/.gemini/commands/_project_/review-code.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/review-plan.en.toml +0 -10
- package/templates/.gemini/commands/_project_/review-plan.zh-CN.toml +0 -10
- package/templates/.gemini/commands/_project_/run-task.en.toml +0 -8
- package/templates/.gemini/commands/_project_/run-task.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/test-integration.en.toml +0 -6
- package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +0 -6
- package/templates/.gemini/commands/_project_/test.en.toml +0 -6
- package/templates/.gemini/commands/_project_/test.zh-CN.toml +0 -6
- package/templates/.gemini/commands/_project_/update-agent-infra.en.toml +0 -6
- package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +0 -6
- package/templates/.gemini/commands/_project_/upgrade-dependency.en.toml +0 -8
- package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +0 -8
- package/templates/.gemini/commands/_project_/watch-pr.en.toml +0 -10
- package/templates/.gemini/commands/_project_/watch-pr.zh-CN.toml +0 -10
- package/templates/.gemini/settings.json +0 -3
|
@@ -7,6 +7,8 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Block Task
|
|
10
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
## Boundary / Critical Rules
|
|
12
14
|
|
|
@@ -53,7 +55,7 @@ Before blocking, thoroughly analyze:
|
|
|
53
55
|
### 3. Apply the Local Lifecycle Intent
|
|
54
56
|
|
|
55
57
|
```bash
|
|
56
|
-
agent-infra-internal task-lifecycle {task-id} block --agent {agent} \
|
|
58
|
+
agent-infra-internal task-lifecycle {task-id} block --agent {standard-agent-token} \
|
|
57
59
|
--reason "{one-line reason}" --unblock-condition "{unblock condition}"
|
|
58
60
|
```
|
|
59
61
|
|
|
@@ -73,8 +75,8 @@ ls .agents/workspace/blocked/{task-id}/task.md
|
|
|
73
75
|
|
|
74
76
|
Check whether `task.md` includes a valid `issue_number`. If not, skip this step.
|
|
75
77
|
|
|
76
|
-
If a valid `issue_number` exists, run `agent-infra-internal platform-issue sync {task-id} --agent {agent} --status blocked`.
|
|
77
|
-
Then run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}`.
|
|
78
|
+
If a valid `issue_number` exists, run `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --status blocked`.
|
|
79
|
+
Then run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`.
|
|
78
80
|
|
|
79
81
|
### 7. Verification Gate
|
|
80
82
|
|
|
@@ -115,7 +117,7 @@ Optional: clean up this task's sandbox
|
|
|
115
117
|
ai sandbox rm {branch}
|
|
116
118
|
|
|
117
119
|
To unblock when the issue is resolved:
|
|
118
|
-
agent-infra-internal task-lifecycle {task-id} activate --agent {agent} --note "{activation note}"
|
|
120
|
+
agent-infra-internal task-lifecycle {task-id} activate --agent {standard-agent-token} --note "{activation note}"
|
|
119
121
|
|
|
120
122
|
Next step - check task status after unblocking:
|
|
121
123
|
{next-step-commands}
|
|
@@ -136,7 +138,7 @@ Next step - check task status after unblocking:
|
|
|
136
138
|
When the blocking issue is resolved:
|
|
137
139
|
|
|
138
140
|
```bash
|
|
139
|
-
agent-infra-internal task-lifecycle {task-id} activate --agent {agent} --note "{activation note}"
|
|
141
|
+
agent-infra-internal task-lifecycle {task-id} activate --agent {standard-agent-token} --note "{activation note}"
|
|
140
142
|
```
|
|
141
143
|
|
|
142
144
|
Resume from the preserved `current_step`. On failure, retry the same intent from the structured recovery fields instead of hand-editing lifecycle state.
|
|
@@ -7,6 +7,8 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# 标记任务阻塞
|
|
10
|
+
> `--agent` 取值见 `.agents/rules/task-management.md`「合作者 token 规范」:标准 AI 短名(`claude`/`codex`/`antigravity`/`opencode`/`cursor`)、长名归一化(`claude-code`→`claude`、`antigravity-cli`→`antigravity`)或人工例外 `human`。
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
## 行为边界 / 关键规则
|
|
12
14
|
|
|
@@ -52,7 +54,7 @@ description: >
|
|
|
52
54
|
### 3. 执行本地生命周期意图
|
|
53
55
|
|
|
54
56
|
```bash
|
|
55
|
-
agent-infra-internal task-lifecycle {task-id} block --agent {agent} \
|
|
57
|
+
agent-infra-internal task-lifecycle {task-id} block --agent {standard-agent-token} \
|
|
56
58
|
--reason "{一行原因}" --unblock-condition "{解除阻塞条件}"
|
|
57
59
|
```
|
|
58
60
|
|
|
@@ -74,8 +76,8 @@ ls .agents/workspace/blocked/{task-id}/task.md
|
|
|
74
76
|
|
|
75
77
|
检查 `task.md` 中是否存在有效的 `issue_number`。如果没有,跳过。
|
|
76
78
|
|
|
77
|
-
如果存在有效的 `issue_number`,调用 `agent-infra-internal platform-issue sync {task-id} --agent {agent} --status blocked`。
|
|
78
|
-
随后调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}` 更新 task 评论。
|
|
79
|
+
如果存在有效的 `issue_number`,调用 `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --status blocked`。
|
|
80
|
+
随后调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}` 更新 task 评论。
|
|
79
81
|
|
|
80
82
|
### 7. 完成校验
|
|
81
83
|
|
|
@@ -116,7 +118,7 @@ agent-infra-internal task-verify {task-id} block-task.completed --format text
|
|
|
116
118
|
ai sandbox rm {branch}
|
|
117
119
|
|
|
118
120
|
解除阻塞时执行:
|
|
119
|
-
agent-infra-internal task-lifecycle {task-id} activate --agent {agent} --note "{恢复说明}"
|
|
121
|
+
agent-infra-internal task-lifecycle {task-id} activate --agent {standard-agent-token} --note "{恢复说明}"
|
|
120
122
|
|
|
121
123
|
下一步 - 检查任务状态(解除阻塞后):
|
|
122
124
|
{next-step-commands}
|
|
@@ -137,7 +139,7 @@ ai sandbox rm {branch}
|
|
|
137
139
|
当阻塞问题解决后:
|
|
138
140
|
|
|
139
141
|
```bash
|
|
140
|
-
agent-infra-internal task-lifecycle {task-id} activate --agent {agent} --note "{恢复说明}"
|
|
142
|
+
agent-infra-internal task-lifecycle {task-id} activate --agent {standard-agent-token} --note "{恢复说明}"
|
|
141
143
|
```
|
|
142
144
|
|
|
143
145
|
成功后从保留的 `current_step` 继续。失败时按结构化 recovery 字段以同一 intent 重试,不手工移动目录或编辑基础元数据。
|
|
@@ -7,6 +7,8 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Cancel Task
|
|
10
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
## Boundary / Critical Rules
|
|
12
14
|
|
|
@@ -53,7 +55,7 @@ When syncing to the Issue, replace any existing `status:` labels with the inferr
|
|
|
53
55
|
### 3. Apply the Local Lifecycle Intent
|
|
54
56
|
|
|
55
57
|
```bash
|
|
56
|
-
agent-infra-internal task-lifecycle {task-id} cancel --agent {agent} --reason "{one-line cancellation reason}"
|
|
58
|
+
agent-infra-internal task-lifecycle {task-id} cancel --agent {standard-agent-token} --reason "{one-line cancellation reason}"
|
|
57
59
|
```
|
|
58
60
|
|
|
59
61
|
Only `status=applied|no-op` means local cancellation completed. On `status=failed`, show the structured error and recovery steps and retry the same intent; do not manually edit task.md, move the directory, or release the short id.
|
|
@@ -75,9 +77,9 @@ Confirm the task directory was moved successfully.
|
|
|
75
77
|
Check whether `task.md` contains a valid `issue_number`. If not, skip this step.
|
|
76
78
|
|
|
77
79
|
If a valid `issue_number` exists:
|
|
78
|
-
- Run `agent-infra-internal platform-issue sync {task-id} --agent {agent} --status {reason} --in-labels none --assignees none --milestone none --state closed --close-reason not_planned`
|
|
79
|
-
- Write the cancellation body to a temporary file and run `agent-infra-internal platform-comment sync {task-id} --kind cancel --body-file {path} --agent {agent}`
|
|
80
|
-
- Run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}`
|
|
80
|
+
- Run `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --status {reason} --in-labels none --assignees none --milestone none --state closed --close-reason not_planned`
|
|
81
|
+
- Write the cancellation body to a temporary file and run `agent-infra-internal platform-comment sync {task-id} --kind cancel --body-file {path} --agent {standard-agent-token}`
|
|
82
|
+
- Run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`
|
|
81
83
|
|
|
82
84
|
The cancellation comment must include at least:
|
|
83
85
|
- the cancellation reason
|
|
@@ -7,6 +7,8 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# 取消任务
|
|
10
|
+
> `--agent` 取值见 `.agents/rules/task-management.md`「合作者 token 规范」:标准 AI 短名(`claude`/`codex`/`antigravity`/`opencode`/`cursor`)、长名归一化(`claude-code`→`claude`、`antigravity-cli`→`antigravity`)或人工例外 `human`。
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
## 行为边界 / 关键规则
|
|
12
14
|
|
|
@@ -52,7 +54,7 @@ description: >
|
|
|
52
54
|
### 3. 执行本地生命周期意图
|
|
53
55
|
|
|
54
56
|
```bash
|
|
55
|
-
agent-infra-internal task-lifecycle {task-id} cancel --agent {agent} --reason "{一行取消原因}"
|
|
57
|
+
agent-infra-internal task-lifecycle {task-id} cancel --agent {standard-agent-token} --reason "{一行取消原因}"
|
|
56
58
|
```
|
|
57
59
|
|
|
58
60
|
仅 `status=applied|no-op` 视为本地取消完成。`status=failed` 时展示结构化 `error` 与 recovery steps,并以同一 intent 重试;不得手工编辑 task.md、移动目录或释放短号。
|
|
@@ -74,9 +76,9 @@ ls .agents/workspace/completed/{task-id}/task.md
|
|
|
74
76
|
检查 `task.md` 中是否存在有效的 `issue_number`。如果没有,跳过此步骤。
|
|
75
77
|
|
|
76
78
|
如果存在有效的 `issue_number`:
|
|
77
|
-
- 调用 `agent-infra-internal platform-issue sync {task-id} --agent {agent} --status {reason} --in-labels none --assignees none --milestone none --state closed --close-reason not_planned`
|
|
78
|
-
- 将取消正文写入临时文件,调用 `agent-infra-internal platform-comment sync {task-id} --kind cancel --body-file {path} --agent {agent}`
|
|
79
|
-
- 调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}`
|
|
79
|
+
- 调用 `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --status {reason} --in-labels none --assignees none --milestone none --state closed --close-reason not_planned`
|
|
80
|
+
- 将取消正文写入临时文件,调用 `agent-infra-internal platform-comment sync {task-id} --kind cancel --body-file {path} --agent {standard-agent-token}`
|
|
81
|
+
- 调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`
|
|
80
82
|
|
|
81
83
|
取消评论至少包含:
|
|
82
84
|
- 取消原因
|
|
@@ -6,6 +6,8 @@ description: >
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Dismiss Code Scanning Alert
|
|
9
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
Dismiss the specified Code Scanning (CodeQL) alert and record a justified reason.
|
|
11
13
|
|
|
@@ -81,7 +83,7 @@ Dismiss the alert by following the Code Scanning dismiss command in `.agents/rul
|
|
|
81
83
|
If a related task exists (search for `codescan_alert_number: <alert-number>`):
|
|
82
84
|
|
|
83
85
|
```bash
|
|
84
|
-
agent-infra-internal task-lifecycle {task-id} close-codescan --agent {agent} \
|
|
86
|
+
agent-infra-internal task-lifecycle {task-id} close-codescan --agent {standard-agent-token} \
|
|
85
87
|
--alert-number {alert-number} --reason "{reason}"
|
|
86
88
|
```
|
|
87
89
|
|
|
@@ -6,6 +6,8 @@ description: >
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# 关闭 Code Scanning 告警
|
|
9
|
+
> `--agent` 取值见 `.agents/rules/task-management.md`「合作者 token 规范」:标准 AI 短名(`claude`/`codex`/`antigravity`/`opencode`/`cursor`)、长名归一化(`claude-code`→`claude`、`antigravity-cli`→`antigravity`)或人工例外 `human`。
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
关闭指定的 Code Scanning(CodeQL)告警并记录合理的关闭理由。
|
|
11
13
|
|
|
@@ -81,7 +83,7 @@ Code Scanning 告警 #{alert-number}
|
|
|
81
83
|
如果有关联任务(搜索 `codescan_alert_number: <alert-number>`):
|
|
82
84
|
|
|
83
85
|
```bash
|
|
84
|
-
agent-infra-internal task-lifecycle {task-id} close-codescan --agent {agent} \
|
|
86
|
+
agent-infra-internal task-lifecycle {task-id} close-codescan --agent {standard-agent-token} \
|
|
85
87
|
--alert-number {alert-number} --reason "{reason}"
|
|
86
88
|
```
|
|
87
89
|
|
|
@@ -6,6 +6,8 @@ description: >
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Dismiss Dependabot Alert
|
|
9
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
Dismiss the specified Dependabot security alert and record a justified reason.
|
|
11
13
|
|
|
@@ -89,7 +91,7 @@ Dismiss the alert by following the Dependabot dismiss command in `.agents/rules/
|
|
|
89
91
|
If a related task exists (search for `security_alert_number: <alert-number>`):
|
|
90
92
|
|
|
91
93
|
```bash
|
|
92
|
-
agent-infra-internal task-lifecycle {task-id} close-dependabot --agent {agent} \
|
|
94
|
+
agent-infra-internal task-lifecycle {task-id} close-dependabot --agent {standard-agent-token} \
|
|
93
95
|
--alert-number {alert-number} --reason "{reason}"
|
|
94
96
|
```
|
|
95
97
|
|
|
@@ -6,6 +6,8 @@ description: >
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# 关闭 Dependabot 告警
|
|
9
|
+
> `--agent` 取值见 `.agents/rules/task-management.md`「合作者 token 规范」:标准 AI 短名(`claude`/`codex`/`antigravity`/`opencode`/`cursor`)、长名归一化(`claude-code`→`claude`、`antigravity-cli`→`antigravity`)或人工例外 `human`。
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
关闭指定的 Dependabot 安全告警并记录合理的关闭理由。
|
|
11
13
|
|
|
@@ -89,7 +91,7 @@ CVE:{cve-id}
|
|
|
89
91
|
如果有关联任务(搜索 `security_alert_number: <alert-number>`):
|
|
90
92
|
|
|
91
93
|
```bash
|
|
92
|
-
agent-infra-internal task-lifecycle {task-id} close-dependabot --agent {agent} \
|
|
94
|
+
agent-infra-internal task-lifecycle {task-id} close-dependabot --agent {standard-agent-token} \
|
|
93
95
|
--alert-number {alert-number} --reason "{reason}"
|
|
94
96
|
```
|
|
95
97
|
|
|
@@ -7,6 +7,9 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Code Task
|
|
10
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
11
|
+
|
|
12
|
+
If the entry operands contain `--orchestrated`, bind `{execution-flag}` to `--orchestrated` and forward it unchanged to the completed event; otherwise bind it to an empty value. Never infer it from `orchestration.json`, environment variables, or prior artifacts.
|
|
10
13
|
|
|
11
14
|
Implement the approved plan and produce `code.md` or `code-r{N}.md`. This skill supports initial implementation, fix mode based on `review-code` feedback, and human-decision-driven implementation.
|
|
12
15
|
|
|
@@ -39,7 +42,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
39
42
|
|
|
40
43
|
## Step Start: Write the started Marker
|
|
41
44
|
|
|
42
|
-
After prerequisites and mode are confirmed and before this round's first artifact action, run `agent-infra-internal task-event {task-id} code.started --agent {agent}`. Append `--fix-for {review-artifact}` in fix mode or `--implementation-input {input-id}` in decision mode. The core derives and validates the round and input identity; record the returned `artifactContext`.
|
|
45
|
+
After prerequisites and mode are confirmed and before this round's first artifact action, run `agent-infra-internal task-event {task-id} code.started --agent {standard-agent-token}`. Append `--fix-for {review-artifact}` in fix mode or `--implementation-input {input-id}` in decision mode. The core derives and validates the round and input identity; record the returned `artifactContext`.
|
|
43
46
|
|
|
44
47
|
## Steps
|
|
45
48
|
|
|
@@ -53,7 +56,7 @@ Read `reference/branch-management.md`, ensure the current branch matches the tas
|
|
|
53
56
|
|
|
54
57
|
### 3. Narrow the Milestone
|
|
55
58
|
|
|
56
|
-
**Mandatory; do not skip.** If task.md has a valid `issue_number`, run `agent-infra-internal platform-issue sync {task-id} --agent {agent} --milestone specific`.
|
|
59
|
+
**Mandatory; do not skip.** If task.md has a valid `issue_number`, run `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --milestone specific`.
|
|
57
60
|
|
|
58
61
|
> If the milestone remains `X.Y.x`, step 11 `task-verify code.completed` blocks through the typed milestone check.
|
|
59
62
|
|
|
@@ -107,12 +110,12 @@ Create `.agents/workspace/active/{task-id}/{code-artifact}`.
|
|
|
107
110
|
|
|
108
111
|
### 10. Update Task Status
|
|
109
112
|
|
|
110
|
-
After requirement checkboxes are updated, run the initial event `agent-infra-internal task-event {task-id} code.completed --agent {agent} --artifact {code-artifact} --files-modified {n} --tests-passed {n}`; in fix mode use `--fix-for {review-artifact} --blockers {n} --major {n} --minor {n} --manual-validation {n}` instead; in decision mode add `--implementation-input {input-id}` to the initial counts. The core atomically records the artifact link, stage, metadata, done log, and decision-input consumption.
|
|
113
|
+
After requirement checkboxes are updated, run the initial event `agent-infra-internal task-event {task-id} code.completed --agent {standard-agent-token} --artifact {code-artifact} --files-modified {n} --tests-passed {n} {execution-flag}`; in fix mode use `--fix-for {review-artifact} --blockers {n} --major {n} --minor {n} --manual-validation {n} {execution-flag}` instead; in decision mode add `--implementation-input {input-id}` to the initial counts. The core atomically records the artifact link, stage, metadata, done log, and decision-input consumption.
|
|
111
114
|
|
|
112
115
|
If task.md has a valid `issue_number`, read `.agents/rules/issue-sync.md`, then:
|
|
113
|
-
- Run `agent-infra-internal platform-issue sync {task-id} --agent {agent} --status in-progress`
|
|
114
|
-
- Run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}`
|
|
115
|
-
- Run `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {code-artifact} --agent {agent}`
|
|
116
|
+
- Run `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --status in-progress`
|
|
117
|
+
- Run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`
|
|
118
|
+
- Run `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {code-artifact} --agent {standard-agent-token}`
|
|
116
119
|
|
|
117
120
|
### 11. Run Completion Gate
|
|
118
121
|
|
|
@@ -7,6 +7,9 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# 编码任务
|
|
10
|
+
> `--agent` 取值见 `.agents/rules/task-management.md`「合作者 token 规范」:标准 AI 短名(`claude`/`codex`/`antigravity`/`opencode`/`cursor`)、长名归一化(`claude-code`→`claude`、`antigravity-cli`→`antigravity`)或人工例外 `human`。
|
|
11
|
+
|
|
12
|
+
若入口业务操作数包含 `--orchestrated`,绑定 `{execution-flag}` = `--orchestrated` 并原样转发给 completed 事件;否则绑定为空。不得从 `orchestration.json`、环境变量或历史产物推断该标记。
|
|
10
13
|
|
|
11
14
|
根据已批准的技术方案编码任务,并产出 `code.md` 或 `code-r{N}.md`。本技能支持初次实现、基于 `review-code` 反馈的修复,以及人工裁决驱动实现三种模式。
|
|
12
15
|
|
|
@@ -53,7 +56,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
53
56
|
|
|
54
57
|
## 步骤开始:声明 started 事件
|
|
55
58
|
|
|
56
|
-
确认前置条件与模式后、本轮第一个产出动作之前执行 `agent-infra-internal task-event {task-id} code.started --agent {agent}`。修复模式追加 `--fix-for {review-artifact}`,裁决模式追加 `--implementation-input {input-id}`。核心根据 artifact context 推导并校验轮次与输入身份;以返回的 `artifactContext` 记录本轮身份。
|
|
59
|
+
确认前置条件与模式后、本轮第一个产出动作之前执行 `agent-infra-internal task-event {task-id} code.started --agent {standard-agent-token}`。修复模式追加 `--fix-for {review-artifact}`,裁决模式追加 `--implementation-input {input-id}`。核心根据 artifact context 推导并校验轮次与输入身份;以返回的 `artifactContext` 记录本轮身份。
|
|
57
60
|
|
|
58
61
|
## 执行步骤
|
|
59
62
|
### 1. 验证前置条件
|
|
@@ -79,7 +82,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
79
82
|
|
|
80
83
|
### 3. 收窄里程碑
|
|
81
84
|
|
|
82
|
-
**必须执行,不得跳过。** 如果 task.md 中存在有效的 `issue_number`,调用 `agent-infra-internal platform-issue sync {task-id} --agent {agent} --milestone specific`;里程碑推断、权限降级与幂等写入由 internal core 处理。
|
|
85
|
+
**必须执行,不得跳过。** 如果 task.md 中存在有效的 `issue_number`,调用 `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --milestone specific`;里程碑推断、权限降级与幂等写入由 internal core 处理。
|
|
83
86
|
|
|
84
87
|
> 若跳过或收窄后仍为 `X.Y.x`,步骤 11 的 `task-verify code.completed` 会通过 typed milestone check 截停本轮。
|
|
85
88
|
|
|
@@ -150,14 +153,14 @@ echo "$result"
|
|
|
150
153
|
- 审查 `## 需求` 段落,仅把本轮已由代码实现且有测试通过支撑的条目从 `- [ ]` 勾为 `- [x]`
|
|
151
154
|
- 产物链接、阶段与完成日志由 completed 事件统一登记
|
|
152
155
|
- 完成业务内容更新后声明完成事件:
|
|
153
|
-
- 初次实现:`agent-infra-internal task-event {task-id} code.completed --agent {agent} --artifact {code-artifact} --files-modified {n} --tests-passed {n}`
|
|
154
|
-
- 修复模式:`agent-infra-internal task-event {task-id} code.completed --agent {agent} --artifact {code-artifact} --fix-for {review-artifact} --blockers {n} --major {n} --minor {n} --manual-validation {n}`
|
|
155
|
-
- 裁决模式:`agent-infra-internal task-event {task-id} code.completed --agent {agent} --artifact {code-artifact} --implementation-input {input-id} --files-modified {n} --tests-passed {n}`
|
|
156
|
+
- 初次实现:`agent-infra-internal task-event {task-id} code.completed --agent {standard-agent-token} --artifact {code-artifact} --files-modified {n} --tests-passed {n} {execution-flag}`
|
|
157
|
+
- 修复模式:`agent-infra-internal task-event {task-id} code.completed --agent {standard-agent-token} --artifact {code-artifact} --fix-for {review-artifact} --blockers {n} --major {n} --minor {n} --manual-validation {n} {execution-flag}`
|
|
158
|
+
- 裁决模式:`agent-infra-internal task-event {task-id} code.completed --agent {standard-agent-token} --artifact {code-artifact} --implementation-input {input-id} --files-modified {n} --tests-passed {n} {execution-flag}`
|
|
156
159
|
|
|
157
160
|
如果 task.md 中存在有效的 `issue_number`,执行以下同步操作(任一失败则记录 warning 并继续;Issue 元数据边界仍见 `.agents/rules/issue-sync.md`):
|
|
158
|
-
- 调用 `agent-infra-internal platform-issue sync {task-id} --agent {agent} --status in-progress`
|
|
159
|
-
- 调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}`
|
|
160
|
-
- 调用 `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {code-artifact} --agent {agent}`
|
|
161
|
+
- 调用 `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --status in-progress`
|
|
162
|
+
- 调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`
|
|
163
|
+
- 调用 `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {code-artifact} --agent {standard-agent-token}`
|
|
161
164
|
|
|
162
165
|
### 11. 完成校验
|
|
163
166
|
|
|
@@ -6,6 +6,8 @@ description: >
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Commit Changes
|
|
9
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
Create a Git commit without overwriting user work and update the related task state when needed.
|
|
11
13
|
|
|
@@ -147,7 +149,7 @@ Keep the gate output in your reply as fresh evidence. Do not claim completion wi
|
|
|
147
149
|
After the gate passes, declare the orchestrated commit stage complete. This command is a no-op when no active orchestration run exists, so the direct commit path remains unchanged:
|
|
148
150
|
|
|
149
151
|
```bash
|
|
150
|
-
agent-infra-internal task-orchestration {task-id} stage-completed --agent {agent}
|
|
152
|
+
agent-infra-internal task-orchestration {task-id} stage-completed --agent {standard-agent-token}
|
|
151
153
|
```
|
|
152
154
|
|
|
153
155
|
Stop if the command fails; a run without the full receipt lifecycle must not be marked completed.
|
|
@@ -6,6 +6,8 @@ description: >
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# 提交代码
|
|
9
|
+
> `--agent` 取值见 `.agents/rules/task-management.md`「合作者 token 规范」:标准 AI 短名(`claude`/`codex`/`antigravity`/`opencode`/`cursor`)、长名归一化(`claude-code`→`claude`、`antigravity-cli`→`antigravity`)或人工例外 `human`。
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
在不覆盖用户本地工作的前提下创建 Git commit,并在需要时更新关联任务状态。
|
|
11
13
|
|
|
@@ -147,7 +149,7 @@ agent-infra-internal task-verify {task-id} commit.completed --format text
|
|
|
147
149
|
校验通过后,声明编排中的 commit 阶段已完成;无 active orchestration run 时该命令为 no-op,不改变直接提交路径:
|
|
148
150
|
|
|
149
151
|
```bash
|
|
150
|
-
agent-infra-internal task-orchestration {task-id} stage-completed --agent {agent}
|
|
152
|
+
agent-infra-internal task-orchestration {task-id} stage-completed --agent {standard-agent-token}
|
|
151
153
|
```
|
|
152
154
|
|
|
153
155
|
命令失败时停止,不得把缺少完整 receipt 生命周期的 run 标记为完成。
|
|
@@ -27,7 +27,7 @@ If the commit belongs to an active task:
|
|
|
27
27
|
|---|---|
|
|
28
28
|
| `claude` | `Co-Authored-By: Claude <noreply@anthropic.com>` |
|
|
29
29
|
| `codex` | `Co-Authored-By: Codex <noreply@openai.com>` |
|
|
30
|
-
| `
|
|
30
|
+
| `antigravity` | `Co-Authored-By: Antigravity <noreply@google.com>` |
|
|
31
31
|
| `opencode` | `Co-Authored-By: OpenCode <noreply@opencode.ai>` |
|
|
32
32
|
|
|
33
33
|
Build the co-author block with these rules:
|
|
@@ -27,7 +27,7 @@ git log --oneline -5
|
|
|
27
27
|
|---|---|
|
|
28
28
|
| `claude` | `Co-Authored-By: Claude <noreply@anthropic.com>` |
|
|
29
29
|
| `codex` | `Co-Authored-By: Codex <noreply@openai.com>` |
|
|
30
|
-
| `
|
|
30
|
+
| `antigravity` | `Co-Authored-By: Antigravity <noreply@google.com>` |
|
|
31
31
|
| `opencode` | `Co-Authored-By: OpenCode <noreply@opencode.ai>` |
|
|
32
32
|
|
|
33
33
|
按以下规则构建 co-author 区块:
|
|
@@ -11,7 +11,7 @@ If either condition is missing, skip this step.
|
|
|
11
11
|
Call one declarative intent. The internal core owns diff computation, repository-label filtering, capability degradation, body preservation, and idempotency:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
agent-infra-internal platform-issue sync {task-id} --agent {agent} --in-labels from-diff --base {base-branch} --requirements
|
|
14
|
+
agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --in-labels from-diff --base {base-branch} --requirements
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Error Handling
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
调用单一声明式 intent;diff、仓库 label 过滤、权限降级、正文保真与幂等写入由 internal core 处理:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
agent-infra-internal platform-issue sync {task-id} --agent {agent} --in-labels from-diff --base {base-branch} --requirements
|
|
14
|
+
agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --in-labels from-diff --base {base-branch} --requirements
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## 错误处理
|
|
@@ -4,6 +4,6 @@ Run only when `{task-id}` is valid and task.md has a valid `pr_number`.
|
|
|
4
4
|
|
|
5
5
|
1. Run `agent-infra-internal platform-pr summary-context {task-id}`.
|
|
6
6
|
2. Generate the plain summary body per `.agents/rules/pr-sync.md` and write it to a temporary file.
|
|
7
|
-
3. Run `agent-infra-internal platform-pr summary-sync {task-id} --agent {agent} --body-file {summary-body-file}`.
|
|
7
|
+
3. Run `agent-infra-internal platform-pr summary-sync {task-id} --agent {standard-agent-token} --body-file {summary-body-file}`.
|
|
8
8
|
|
|
9
9
|
Failure records a warning but never blocks or rolls back the completed commit. `no-op` maps to `summary skipped (no diff)`.
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
1. 调用 `agent-infra-internal platform-pr summary-context {task-id}` 获取 canonical 聚合输入。
|
|
6
6
|
2. 按 `.agents/rules/pr-sync.md` 生成纯摘要正文并写入临时文件。
|
|
7
|
-
3. 调用 `agent-infra-internal platform-pr summary-sync {task-id} --agent {agent} --body-file {summary-body-file}`。
|
|
7
|
+
3. 调用 `agent-infra-internal platform-pr summary-sync {task-id} --agent {standard-agent-token} --body-file {summary-body-file}`。
|
|
8
8
|
|
|
9
9
|
同步失败只记录 warning,不阻塞或回滚已经完成的 commit。`no-op` 回传 `summary skipped (no diff)`。
|
|
@@ -7,6 +7,8 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Complete Manual Validation
|
|
10
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
## Boundary / Critical Rules
|
|
12
14
|
|
|
@@ -35,7 +37,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
35
37
|
|
|
36
38
|
## Step Start: Write the started Marker
|
|
37
39
|
|
|
38
|
-
After resolving the artifact context and before this round's first artifact action, run `agent-infra-internal task-event {task-id} manual-validation.started --agent {agent}` and record the returned `artifactContext`.
|
|
40
|
+
After resolving the artifact context and before this round's first artifact action, run `agent-infra-internal task-event {task-id} manual-validation.started --agent {standard-agent-token}` and record the returned `artifactContext`.
|
|
39
41
|
|
|
40
42
|
## Steps
|
|
41
43
|
|
|
@@ -83,9 +85,9 @@ Before this step, read `reference/report-template.md`. Create `{manual-validatio
|
|
|
83
85
|
|
|
84
86
|
### 6. Update task.md
|
|
85
87
|
|
|
86
|
-
Run `agent-infra-internal task-event {task-id} manual-validation.completed --agent {agent} --artifact {manual-validation-artifact} --summary-result "{summary-result}"`. The core keeps `current_step` unchanged while atomically recording the implementation-notes link, metadata, and done log.
|
|
88
|
+
Run `agent-infra-internal task-event {task-id} manual-validation.completed --agent {standard-agent-token} --artifact {manual-validation-artifact} --summary-result "{summary-result}"`. The core keeps `current_step` unchanged while atomically recording the implementation-notes link, metadata, and done log.
|
|
87
89
|
|
|
88
|
-
If the task has a valid `issue_number`, run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}`, then `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {manual-validation-artifact} --agent {agent}`.
|
|
90
|
+
If the task has a valid `issue_number`, run `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`, then `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {manual-validation-artifact} --agent {standard-agent-token}`.
|
|
89
91
|
|
|
90
92
|
### 7. Verification Gate
|
|
91
93
|
|
|
@@ -106,7 +108,7 @@ Report:
|
|
|
106
108
|
- Artifact path
|
|
107
109
|
- PR summary sync result
|
|
108
110
|
- Current verification output
|
|
109
|
-
- Suggested next step:
|
|
111
|
+
- Suggested next step: enter the final closing flow and run /complete-task {task-ref}
|
|
110
112
|
|
|
111
113
|
Before rendering the final output, read `.agents/rules/next-step-output.md` and append `Completed at: YYYY-MM-DD HH:mm:ss` as the absolute last line.
|
|
112
114
|
|
|
@@ -7,6 +7,8 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# 完成人工验证
|
|
10
|
+
> `--agent` 取值见 `.agents/rules/task-management.md`「合作者 token 规范」:标准 AI 短名(`claude`/`codex`/`antigravity`/`opencode`/`cursor`)、长名归一化(`claude-code`→`claude`、`antigravity-cli`→`antigravity`)或人工例外 `human`。
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
## 行为边界 / 关键规则
|
|
12
14
|
|
|
@@ -35,7 +37,7 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
35
37
|
|
|
36
38
|
## 步骤开始:声明 started 事件
|
|
37
39
|
|
|
38
|
-
确认前置条件和产物上下文后、本轮第一个产出动作之前执行 `agent-infra-internal task-event {task-id} manual-validation.started --agent {agent}`,并以返回的 `artifactContext` 记录本轮身份。
|
|
40
|
+
确认前置条件和产物上下文后、本轮第一个产出动作之前执行 `agent-infra-internal task-event {task-id} manual-validation.started --agent {standard-agent-token}`,并以返回的 `artifactContext` 记录本轮身份。
|
|
39
41
|
|
|
40
42
|
## 执行步骤
|
|
41
43
|
|
|
@@ -83,9 +85,9 @@ complete-manual-validation {task-ref} [{pr-ref}] {verification-summary}
|
|
|
83
85
|
|
|
84
86
|
### 6. 更新 task.md
|
|
85
87
|
|
|
86
|
-
执行 `agent-infra-internal task-event {task-id} manual-validation.completed --agent {agent} --artifact {manual-validation-artifact} --summary-result "{summary-result}"`,由核心在保持 `current_step` 不变的同时原子登记实现备注链接、时间/版本和完成日志。
|
|
88
|
+
执行 `agent-infra-internal task-event {task-id} manual-validation.completed --agent {standard-agent-token} --artifact {manual-validation-artifact} --summary-result "{summary-result}"`,由核心在保持 `current_step` 不变的同时原子登记实现备注链接、时间/版本和完成日志。
|
|
87
89
|
|
|
88
|
-
如任务存在有效 `issue_number`,调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}`,再调用 `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {manual-validation-artifact} --agent {agent}`。
|
|
90
|
+
如任务存在有效 `issue_number`,调用 `agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}`,再调用 `agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {manual-validation-artifact} --agent {standard-agent-token}`。
|
|
89
91
|
|
|
90
92
|
### 7. 完成校验
|
|
91
93
|
|
|
@@ -106,7 +108,7 @@ agent-infra-internal task-verify {task-id} manual-validation.completed --artifac
|
|
|
106
108
|
- 产物路径
|
|
107
109
|
- PR 摘要同步结果
|
|
108
110
|
- 当次完成校验输出
|
|
109
|
-
-
|
|
111
|
+
- 下一步建议:进入最终收尾流程,运行 /complete-task {task-ref}
|
|
110
112
|
|
|
111
113
|
渲染最终输出前,先读取 `.agents/rules/next-step-output.md`,并在绝对最后一行追加 `Completed at: YYYY-MM-DD HH:mm:ss`。
|
|
112
114
|
|
|
@@ -10,7 +10,7 @@ Follow `.agents/rules/pr-sync.md` for the shared summary structure and failure s
|
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
agent-infra-internal platform-pr summary-sync {task-id} \
|
|
13
|
-
--agent {agent} --body-file {summary-body-file}
|
|
13
|
+
--agent {standard-agent-token} --body-file {summary-body-file}
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
The core owns marker/HEAD wrapping, pagination, and in-place reconciliation. If context says no manual validation is required, stop without marking it passed.
|
package/templates/.agents/skills/complete-manual-validation/reference/summary-update.zh-CN.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
agent-infra-internal platform-pr summary-sync {task-id} \
|
|
13
|
-
--agent {agent} --body-file {summary-body-file}
|
|
13
|
+
--agent {standard-agent-token} --body-file {summary-body-file}
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
marker、当前 HEAD、分页查找和原地更新由 core 负责。若当前 context 表明无需人工校验,则停止并返回 `summary failed: no manual validation required`,不误标通过。
|
|
@@ -7,11 +7,14 @@ description: >
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Complete Task
|
|
10
|
+
> `--agent` values follow the "Collaborator Token Specification" in `.agents/rules/task-management.md`: standard AI short tokens (`claude`/`codex`/`antigravity`/`opencode`/`cursor`), long-name normalization (`claude-code`->`claude`, `antigravity-cli`->`antigravity`), or the `human` manual exception.
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
## Boundary / Critical Rules
|
|
12
14
|
|
|
13
15
|
- This command updates task metadata AND physically moves the task directory
|
|
14
16
|
- Do not move a task that has incomplete workflow steps unless forced
|
|
17
|
+
- The entry point accepts optional `--external-pr <N>` only to select among ambiguous external-delivery candidates; it never bypasses identity or platform gates
|
|
15
18
|
|
|
16
19
|
Version stamp rule: when creating or updating `task.md` frontmatter, read `.agents/rules/version-stamp.md` first and write or refresh `agent_infra_version`.
|
|
17
20
|
|
|
@@ -54,6 +57,16 @@ Scenario A is the normal active-task path. Scenario B `finalization-retry` retri
|
|
|
54
57
|
|
|
55
58
|
### 2. Verify Completion Prerequisites (Failure Must Stop)
|
|
56
59
|
|
|
60
|
+
Read `reference/external-delivery.md`, then run for the active task:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
agent-infra-internal platform-pr resolve-external {task-id} --agent {standard-agent-token} [--pr {external-pr}]
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- `mode=external`: only this invocation's typed `authorization` and `selected` fields authorize and identify external delivery; continue through every existing hard gate below.
|
|
67
|
+
- `mode=normal`: use the existing local lifecycle prerequisites; historical `pr_number` / `pr_status` values do not authorize external delivery.
|
|
68
|
+
- `status=failed|blocked`: stop immediately and show the stable error; `--force` cannot bypass it.
|
|
69
|
+
|
|
57
70
|
**Gate read (project-level PR flow policy)**: Before running this step, read `.agents/.airc.json`'s `prFlow` field (three states: field absent = recommend PR by default, skipping allowed; `"required"` = PR mandatory; `"disabled"` = no PR flow), and `pr_status` from `task.md` frontmatter (`pending` / `created` / `skipped`).
|
|
58
71
|
|
|
59
72
|
**PR dimension decision (evaluate the `prFlow` strong constraint FIRST, then `pr_status`)**:
|
|
@@ -88,6 +101,7 @@ Before marking complete, verify ALL of these:
|
|
|
88
101
|
- [ ] Code has been committed (no uncommitted changes related to this task)
|
|
89
102
|
- [ ] Tests are passing
|
|
90
103
|
- [ ] The disagreement ledger has no unclosed disagreements or un-re-reviewed post-review commits; on a bound-PR path local HEAD, `last_reviewed_commit`, and PR head either match strictly, or a merged squash has complete platform snapshot and remote Git equivalence evidence and current Git credentials can read the evidence refs; without a valid PR, a single-parent local rewrite is content-equivalent to `last_reviewed_commit` and has no later protected commits
|
|
104
|
+
- [ ] Manual validation items are complete (when the latest review-code's Manual validation count is > 0, a passed manual-validation artifact and its completion record must exist, and that completion record must sit after the latest review-code; skipped when the count is 0 or there are no pending items)
|
|
91
105
|
|
|
92
106
|
> **⚠️ Prerequisite Branch Check — you must decide whether to continue or stop before proceeding:**
|
|
93
107
|
>
|
|
@@ -124,9 +138,9 @@ Check whether task.md has a valid `issue_number`. If it does not, skip this step
|
|
|
124
138
|
|
|
125
139
|
When an `issue_number` exists, execute in this exact order:
|
|
126
140
|
|
|
127
|
-
1.
|
|
128
|
-
2. Run `agent-infra-internal platform-issue sync {task-id} --agent {agent} --requirements --fields`.
|
|
129
|
-
3. Write the business summary to a temporary file and run `agent-infra-internal platform-comment sync {task-id} --kind summary --body-file {path} --agent {agent}`.
|
|
141
|
+
1. Run `agent-infra-internal platform-comment backfill {task-id} --agent {standard-agent-token}` so core publishes only the completion canonical inventory in fixed order and resolves matching historical warnings only after full success.
|
|
142
|
+
2. Run `agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --requirements --fields`.
|
|
143
|
+
3. Write the business summary to a temporary file and run `agent-infra-internal platform-comment sync {task-id} --kind summary --body-file {path} --agent {standard-agent-token}`.
|
|
130
144
|
|
|
131
145
|
Do not sync the task comment here; it requires the terminal task.md written by lifecycle. Do not set a `status:` label; platform automation clears status labels after the Issue closes.
|
|
132
146
|
|
|
@@ -146,14 +160,14 @@ After platform writes succeed and before moving the directory or releasing the s
|
|
|
146
160
|
agent-infra-internal task-verify {task-id} complete-task.preflight --format text
|
|
147
161
|
```
|
|
148
162
|
|
|
149
|
-
This event runs `review-ledger`, `post-review-commit`, then `platform-sync-preflight`. On any non-zero exit (fail/blocked), keep the task active, derive the stable code/target from the gate result, record it through `task-warning ... add --step complete-task ...`, and stop. For a review/head mismatch, rerun `commit` or `review-code`; never fall back to the review baseline.
|
|
163
|
+
This event runs `review-ledger`, `manual-validation`, `post-review-commit`, then `platform-sync-preflight`. On any non-zero exit (fail/blocked), keep the task active, derive the stable code/target from the gate result, record it through `task-warning ... add --step complete-task ...`, and stop. For a review/head mismatch, rerun `commit` or `review-code`; never fall back to the review baseline.
|
|
150
164
|
|
|
151
165
|
`--force` does not lift this hard gate: close ledger disagreements; re-review or exempt post-review commits, use the platform adapter's authoritative snapshot and remote refs for the bound change request (PR/MR) to prove a content-equivalent single-parent squash merge in an isolated temporary repository, or, without a valid change request, prove from local Git objects that the only protected commit is a content-equivalent single-parent rewrite with no later protected commits; then pass platform preflight. An unsupported adapter capability, missing required platform facts, Git objects, topology, or content evidence, or current Git credentials that cannot read the remote evidence refs fails closed. The platform adapter supplies normalized required-checks state, which remains enforced before merge by branch protection / rulesets and the `review-code` / `watch-pr` routes.
|
|
152
166
|
|
|
153
167
|
### 6. Apply the Local Lifecycle Intent and Verify the Move
|
|
154
168
|
|
|
155
169
|
```bash
|
|
156
|
-
agent-infra-internal task-lifecycle {task-id} complete --agent {agent}
|
|
170
|
+
agent-infra-internal task-lifecycle {task-id} complete --agent {standard-agent-token}
|
|
157
171
|
```
|
|
158
172
|
|
|
159
173
|
Only `status=applied|no-op` means local completion succeeded. On `status=failed`, show the structured error and recovery steps and retry the same intent; do not claim completion or hand-repair partial state.
|
|
@@ -169,7 +183,7 @@ Confirm the task directory was successfully moved.
|
|
|
169
183
|
Both Scenario A and Scenario B `finalization-retry` execute this step from the completed directory. If a valid `issue_number` exists, first run:
|
|
170
184
|
|
|
171
185
|
```bash
|
|
172
|
-
agent-infra-internal platform-comment sync {task-id} --kind task --agent {agent}
|
|
186
|
+
agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token}
|
|
173
187
|
```
|
|
174
188
|
|
|
175
189
|
If this call fails, the task is already archived and `task-warning` cannot accept it. Keep the task completed and stop. After fixing the network or platform issue, rerun complete-task; Step 1 will enter `finalization-retry` and repeat only this step.
|
|
@@ -232,6 +246,7 @@ Completed at: {completion-time}
|
|
|
232
246
|
- Code is committed but not reviewed
|
|
233
247
|
- Review found blockers that haven't been fixed
|
|
234
248
|
- PR is created but not merged
|
|
249
|
+
- Manual validation items are incomplete
|
|
235
250
|
|
|
236
251
|
2. **Rollback**: If a task was incorrectly moved:
|
|
237
252
|
```bash
|