@fitlab-ai/agent-infra 0.9.13 → 0.9.15
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 -0
- package/README.zh-CN.md +10 -0
- package/bin/cli.ts +26 -9
- package/bin/internal-cli.sh +45 -0
- package/dist/bin/cli.js +173 -157
- package/dist/bin/internal-cli.js +126 -42
- package/dist/lib/agent-client.js +5 -0
- package/dist/lib/agent-clients/adapters/codex-lifecycle/capability-store.js +165 -27
- package/dist/lib/agent-clients/adapters/codex-lifecycle/sandbox-controller.js +3 -2
- package/dist/lib/defaults.json +103 -103
- package/dist/lib/fs/durable-write.js +37 -0
- package/dist/lib/fs/file-lock.js +111 -0
- package/dist/lib/host-control/audit.js +19 -0
- package/dist/lib/host-control/client.js +142 -0
- package/dist/lib/host-control/command.js +49 -0
- package/dist/lib/host-control/path.js +160 -0
- package/dist/lib/host-control/secure-fs.js +140 -0
- package/dist/lib/host-control/server.js +159 -0
- package/dist/lib/host-control/service.js +112 -0
- package/dist/lib/init.js +11 -2
- package/dist/lib/internal/agent-client.js +5 -2
- package/dist/lib/internal/cli-route-inventory.js +154 -0
- package/dist/lib/internal/codex-lifecycle.js +15 -12
- package/dist/lib/internal/codex-sandbox-controller.js +8 -2
- package/dist/lib/internal/demo-promotion.js +322 -0
- package/dist/lib/internal/demo-transcript.js +454 -0
- package/dist/lib/internal/git-workflow.js +10 -6
- package/dist/lib/internal/host-control.js +28 -0
- package/dist/lib/internal/manual-validation.js +322 -0
- package/dist/lib/internal/platform-checks.js +16 -4
- package/dist/lib/internal/platform-comment.js +16 -4
- package/dist/lib/internal/platform-context.js +4 -1
- package/dist/lib/internal/platform-issue.js +12 -4
- package/dist/lib/internal/platform-metadata.js +88 -0
- package/dist/lib/internal/platform-pr-review.js +16 -3
- package/dist/lib/internal/platform-pr.js +42 -14
- package/dist/lib/internal/platform-release-notes.js +6 -3
- package/dist/lib/internal/platform-security.js +93 -0
- package/dist/lib/internal/pr-review-grade.js +14 -3
- package/dist/lib/internal/release-workflow.js +82 -89
- package/dist/lib/internal/sandbox-control.js +171 -7
- package/dist/lib/internal/task-activity.js +13 -4
- package/dist/lib/internal/task-artifact.js +19 -107
- package/dist/lib/internal/task-context.js +4 -1
- package/dist/lib/internal/task-create.js +48 -14
- package/dist/lib/internal/task-delivery.js +4 -1
- package/dist/lib/internal/task-event.js +38 -35
- package/dist/lib/internal/task-finalization.js +4 -1
- package/dist/lib/internal/task-invalidation.js +4 -1
- package/dist/lib/internal/task-ledger.js +12 -1
- package/dist/lib/internal/task-lifecycle.js +4 -1
- package/dist/lib/internal/task-operation-registry.js +519 -0
- package/dist/lib/internal/task-orchestration.js +12 -0
- package/dist/lib/internal/task-override.js +10 -3
- package/dist/lib/internal/task-qualification.js +90 -0
- package/dist/lib/internal/task-review.js +10 -52
- package/dist/lib/internal/task-short-id.js +11 -1
- package/dist/lib/internal/task-snapshot.js +4 -1
- package/dist/lib/internal/task-validate.js +37 -12
- package/dist/lib/internal/task-verify.js +5 -1
- package/dist/lib/internal/task-warning.js +8 -1
- package/dist/lib/owned-path.js +33 -0
- package/dist/lib/platform/check-status.js +11 -0
- package/dist/lib/platform/comment-safety.js +229 -0
- package/dist/lib/platform/completion-backfill.js +1 -1
- package/dist/lib/platform/github-data.js +241 -0
- package/dist/lib/platform/github-provider.js +248 -26
- package/dist/lib/platform/issue-comments.js +146 -34
- package/dist/lib/platform/issues.js +1 -179
- package/dist/lib/platform/pr-change-report.js +6 -12
- package/dist/lib/platform/pr-checks.js +12 -65
- package/dist/lib/platform/pr-summary.js +83 -10
- package/dist/lib/platform/provider-contract.d.ts +67 -1
- package/dist/lib/platform/provider-contract.js +6 -2
- package/dist/lib/platform/provider-validation.js +76 -3
- package/dist/lib/platform/pull-requests.js +117 -275
- package/dist/lib/platform/repository-metadata.js +377 -0
- package/dist/lib/platform/security-alerts.js +155 -0
- package/dist/lib/platform/snapshots.js +2 -0
- package/dist/lib/platform/verification-sync.js +154 -162
- package/dist/lib/process-data/index.js +7 -0
- package/dist/lib/release/workflow.js +1 -1
- package/dist/lib/run/index.js +5 -0
- package/dist/lib/sandbox/commands/control-status.js +22 -0
- package/dist/lib/sandbox/commands/create.js +39 -8
- package/dist/lib/sandbox/commands/ls.js +5 -0
- package/dist/lib/sandbox/commands/rm.js +3 -807
- package/dist/lib/sandbox/commands/show.js +16 -0
- package/dist/lib/sandbox/control/audit.js +203 -0
- package/dist/lib/sandbox/control/client.js +125 -12
- package/dist/lib/sandbox/control/completed-reentry.js +85 -0
- package/dist/lib/sandbox/control/container-identity.js +28 -31
- package/dist/lib/sandbox/control/executor.js +233 -34
- package/dist/lib/sandbox/control/finalization-response.js +27 -0
- package/dist/lib/sandbox/control/identity-sentinel.js +107 -0
- package/dist/lib/sandbox/control/lifecycle.js +656 -128
- package/dist/lib/sandbox/control/native-file-lock.js +85 -0
- package/dist/lib/sandbox/control/protocol.js +55 -4
- package/dist/lib/sandbox/control/server.js +720 -79
- package/dist/lib/sandbox/control/state.js +63 -3
- package/dist/lib/sandbox/control/task-view.js +183 -0
- package/dist/lib/sandbox/control/task-workflow.js +74 -0
- package/dist/lib/sandbox/control/workflow-executor.js +99 -0
- package/dist/lib/sandbox/engines/authority.js +289 -0
- package/dist/lib/sandbox/engines/docker-exact-discovery.js +97 -0
- package/dist/lib/sandbox/index.js +7 -2
- package/dist/lib/sandbox/recovery.js +49 -5
- package/dist/lib/sandbox/removal.js +1717 -0
- package/dist/lib/sandbox/task-cleanup.js +217 -0
- package/dist/lib/sandbox/workspace-view.js +15 -15
- package/dist/lib/sandbox/worktree-safety.js +4 -1
- package/dist/lib/server/index.js +8 -0
- package/dist/lib/task/activity-intent.js +2 -1
- package/dist/lib/task/activity-log.js +30 -24
- package/dist/lib/task/artifact-command.js +101 -0
- package/dist/lib/task/artifact-lifecycle.js +71 -40
- package/dist/lib/task/artifact-name.js +36 -0
- package/dist/lib/task/artifact-operations.js +474 -0
- package/dist/lib/task/artifact-receipts.js +3 -15
- package/dist/lib/task/artifact-repair-intent.js +130 -0
- package/dist/lib/task/artifact-schema.js +127 -0
- package/dist/lib/task/capabilities.js +83 -19
- package/dist/lib/task/codex-orchestration.js +71 -25
- package/dist/lib/task/commit-identity.js +28 -0
- package/dist/lib/task/commit-operation.js +2 -16
- package/dist/lib/task/control-authority.js +375 -5
- package/dist/lib/task/control-recovery.js +128 -0
- package/dist/lib/task/create-service.js +103 -4
- package/dist/lib/task/create.js +80 -2
- package/dist/lib/task/decision-details.js +2 -46
- package/dist/lib/task/events.js +306 -76
- package/dist/lib/task/finalization-state.js +9 -0
- package/dist/lib/task/human-override.js +3 -6
- package/dist/lib/task/implementation-inputs.js +3 -3
- package/dist/lib/task/index.js +11 -3
- package/dist/lib/task/intermediate-cleanup.js +383 -0
- package/dist/lib/task/invalidation.js +18 -65
- package/dist/lib/task/ledger-intents.js +7 -22
- package/dist/lib/task/ledger.js +1 -3
- package/dist/lib/task/lifecycle.js +19 -1
- package/dist/lib/task/local-artifact-finalization.js +190 -290
- package/dist/lib/task/manual-validation-completion.js +26 -0
- package/dist/lib/task/manual-validation-evidence.js +130 -0
- package/dist/lib/task/manual-validation-receipt.js +101 -0
- package/dist/lib/task/manual-validation-shared.js +40 -0
- package/dist/lib/task/manual-validation-transaction.js +243 -0
- package/dist/lib/task/markdown.js +47 -0
- package/dist/lib/task/orchestration.js +206 -69
- package/dist/lib/task/qualification-audit.js +476 -0
- package/dist/lib/task/qualification-confirmation.js +109 -0
- package/dist/lib/task/qualification-intents.js +148 -0
- package/dist/lib/task/review-artifacts.js +23 -40
- package/dist/lib/task/review-command.js +25 -0
- package/dist/lib/task/review-finalization.js +146 -97
- package/dist/lib/task/review-fingerprint.js +2 -2
- package/dist/lib/task/sections.js +34 -54
- package/dist/lib/task/verification-config.js +11 -0
- package/dist/lib/task/verification-engine.js +170 -327
- package/dist/lib/task/verification.js +1 -1
- package/dist/lib/task/workflow-command.js +17 -0
- package/dist/lib/task/workflow-warning-intents.js +0 -16
- package/dist/lib/task/workflow-warnings.js +28 -2
- package/dist/lib/update.js +2 -0
- package/dist/lifecycle-build-manifest.json +3 -3
- package/lib/agent-client.ts +9 -0
- package/lib/agent-clients/adapters/codex-lifecycle/capability-store.ts +223 -33
- package/lib/agent-clients/adapters/codex-lifecycle/sandbox-controller.ts +3 -2
- package/lib/fs/durable-write.ts +29 -0
- package/lib/fs/file-lock.ts +113 -0
- package/lib/host-control/audit.ts +22 -0
- package/lib/host-control/client.ts +172 -0
- package/lib/host-control/command.ts +60 -0
- package/lib/host-control/path.ts +167 -0
- package/lib/host-control/secure-fs.ts +135 -0
- package/lib/host-control/server.ts +180 -0
- package/lib/host-control/service.ts +133 -0
- package/lib/init.ts +15 -2
- package/lib/internal/agent-client.ts +4 -2
- package/lib/internal/cli-route-inventory.ts +142 -0
- package/lib/internal/codex-lifecycle.ts +14 -12
- package/lib/internal/codex-sandbox-controller.ts +7 -2
- package/lib/internal/demo-promotion.ts +354 -0
- package/lib/internal/demo-transcript.ts +419 -0
- package/lib/internal/git-workflow.ts +9 -6
- package/lib/internal/host-control.ts +28 -0
- package/lib/internal/manual-validation.ts +306 -0
- package/lib/internal/platform-checks.ts +12 -4
- package/lib/internal/platform-comment.ts +12 -4
- package/lib/internal/platform-context.ts +3 -1
- package/lib/internal/platform-issue.ts +11 -4
- package/lib/internal/platform-metadata.ts +70 -0
- package/lib/internal/platform-pr-review.ts +14 -3
- package/lib/internal/platform-pr.ts +38 -14
- package/lib/internal/platform-release-notes.ts +5 -3
- package/lib/internal/platform-security.ts +83 -0
- package/lib/internal/pr-review-grade.ts +10 -3
- package/lib/internal/release-workflow.ts +91 -87
- package/lib/internal/sandbox-control.ts +181 -6
- package/lib/internal/task-activity.ts +12 -4
- package/lib/internal/task-artifact.ts +15 -79
- package/lib/internal/task-context.ts +3 -1
- package/lib/internal/task-create.ts +76 -15
- package/lib/internal/task-delivery.ts +3 -1
- package/lib/internal/task-event.ts +21 -10
- package/lib/internal/task-finalization.ts +3 -1
- package/lib/internal/task-invalidation.ts +3 -1
- package/lib/internal/task-ledger.ts +11 -1
- package/lib/internal/task-lifecycle.ts +3 -1
- package/lib/internal/task-operation-registry.ts +590 -0
- package/lib/internal/task-orchestration.ts +12 -0
- package/lib/internal/task-override.ts +9 -3
- package/lib/internal/task-qualification.ts +61 -0
- package/lib/internal/task-review.ts +7 -50
- package/lib/internal/task-short-id.ts +10 -1
- package/lib/internal/task-snapshot.ts +3 -1
- package/lib/internal/task-validate.ts +32 -12
- package/lib/internal/task-verify.ts +4 -1
- package/lib/internal/task-warning.ts +7 -1
- package/lib/owned-path.ts +26 -0
- package/lib/platform/check-status.ts +9 -0
- package/lib/platform/comment-safety.ts +255 -0
- package/lib/platform/completion-backfill.ts +1 -1
- package/lib/platform/github-data.ts +322 -0
- package/lib/platform/github-provider.ts +244 -27
- package/lib/platform/issue-comments.ts +159 -35
- package/lib/platform/issues.ts +4 -245
- package/lib/platform/pr-change-report.ts +6 -12
- package/lib/platform/pr-checks.ts +13 -77
- package/lib/platform/pr-summary.ts +88 -11
- package/lib/platform/provider-contract.ts +78 -3
- package/lib/platform/provider-validation.ts +85 -3
- package/lib/platform/pull-requests.ts +129 -348
- package/lib/platform/repository-metadata.ts +453 -0
- package/lib/platform/security-alerts.ts +191 -0
- package/lib/platform/snapshots.ts +53 -0
- package/lib/platform/verification-sync.ts +171 -177
- package/lib/process-data/index.ts +7 -0
- package/lib/release/workflow.ts +3 -3
- package/lib/run/index.ts +5 -0
- package/lib/sandbox/commands/control-status.ts +26 -0
- package/lib/sandbox/commands/create.ts +53 -12
- package/lib/sandbox/commands/ls.ts +7 -0
- package/lib/sandbox/commands/rm.ts +3 -996
- package/lib/sandbox/commands/show.ts +16 -0
- package/lib/sandbox/control/audit.ts +253 -0
- package/lib/sandbox/control/client.ts +150 -13
- package/lib/sandbox/control/completed-reentry.ts +98 -0
- package/lib/sandbox/control/container-identity.ts +27 -43
- package/lib/sandbox/control/executor.ts +262 -37
- package/lib/sandbox/control/finalization-response.ts +29 -0
- package/lib/sandbox/control/identity-sentinel.ts +137 -0
- package/lib/sandbox/control/lifecycle.ts +672 -18
- package/lib/sandbox/control/native-file-lock.ts +108 -0
- package/lib/sandbox/control/protocol.ts +80 -8
- package/lib/sandbox/control/server.ts +779 -82
- package/lib/sandbox/control/state.ts +84 -3
- package/lib/sandbox/control/task-view.ts +240 -0
- package/lib/sandbox/control/task-workflow.ts +95 -0
- package/lib/sandbox/control/workflow-executor.ts +102 -0
- package/lib/sandbox/engines/authority.ts +365 -0
- package/lib/sandbox/engines/docker-exact-discovery.ts +132 -0
- package/lib/sandbox/index.ts +9 -2
- package/lib/sandbox/recovery.ts +49 -6
- package/lib/sandbox/removal.ts +2144 -0
- package/lib/sandbox/task-cleanup.ts +209 -0
- package/lib/sandbox/workspace-view.ts +26 -18
- package/lib/sandbox/worktree-safety.ts +4 -1
- package/lib/server/index.ts +10 -0
- package/lib/task/activity-intent.ts +2 -2
- package/lib/task/activity-log.ts +27 -19
- package/lib/task/artifact-command.ts +104 -0
- package/lib/task/artifact-lifecycle.ts +66 -39
- package/lib/task/artifact-name.ts +55 -0
- package/lib/task/artifact-operations.ts +580 -0
- package/lib/task/artifact-receipts.ts +3 -14
- package/lib/task/artifact-repair-intent.ts +152 -0
- package/lib/task/artifact-schema.ts +163 -0
- package/lib/task/capabilities.ts +82 -22
- package/lib/task/codex-orchestration.ts +85 -24
- package/lib/task/commit-identity.ts +31 -0
- package/lib/task/commit-operation.ts +2 -16
- package/lib/task/control-authority.ts +513 -6
- package/lib/task/control-recovery.ts +174 -0
- package/lib/task/create-service.ts +131 -6
- package/lib/task/create.ts +83 -1
- package/lib/task/decision-details.ts +3 -71
- package/lib/task/events.ts +292 -75
- package/lib/task/finalization-state.ts +11 -0
- package/lib/task/human-override.ts +3 -8
- package/lib/task/implementation-inputs.ts +3 -3
- package/lib/task/index.ts +16 -3
- package/lib/task/intermediate-cleanup.ts +455 -0
- package/lib/task/invalidation.ts +18 -62
- package/lib/task/ledger-intents.ts +7 -24
- package/lib/task/ledger.ts +1 -3
- package/lib/task/lifecycle.ts +17 -1
- package/lib/task/local-artifact-finalization.ts +223 -388
- package/lib/task/manual-validation-completion.ts +40 -0
- package/lib/task/manual-validation-evidence.ts +209 -0
- package/lib/task/manual-validation-receipt.ts +152 -0
- package/lib/task/manual-validation-shared.ts +50 -0
- package/lib/task/manual-validation-transaction.ts +304 -0
- package/lib/task/markdown.ts +70 -0
- package/lib/task/orchestration.ts +191 -68
- package/lib/task/qualification-audit.ts +588 -0
- package/lib/task/qualification-confirmation.ts +117 -0
- package/lib/task/qualification-intents.ts +150 -0
- package/lib/task/review-artifacts.ts +21 -41
- package/lib/task/review-command.ts +23 -0
- package/lib/task/review-finalization.ts +154 -153
- package/lib/task/review-fingerprint.ts +2 -2
- package/lib/task/sections.ts +33 -52
- package/lib/task/verification-config.ts +12 -0
- package/lib/task/verification-engine.ts +165 -370
- package/lib/task/verification-types.ts +17 -0
- package/lib/task/verification.ts +1 -1
- package/lib/task/workflow-command.ts +18 -0
- package/lib/task/workflow-warning-intents.ts +0 -13
- package/lib/task/workflow-warnings.ts +21 -2
- package/lib/update.ts +6 -0
- package/package.json +7 -2
- package/templates/.agents/hooks/lifecycle-delegation.js +6 -6
- package/templates/.agents/rules/README.en.md +2 -0
- package/templates/.agents/rules/README.zh-CN.md +2 -0
- package/templates/.agents/rules/decision-qualification.en.md +22 -0
- package/templates/.agents/rules/decision-qualification.zh-CN.md +22 -0
- package/templates/.agents/rules/evidence-reporting.en.md +28 -0
- package/templates/.agents/rules/evidence-reporting.zh-CN.md +28 -0
- package/templates/.agents/rules/label-milestone-setup.en.md +7 -7
- package/templates/.agents/rules/label-milestone-setup.zh-CN.md +7 -7
- package/templates/.agents/rules/local-artifact-repair.en.md +5 -1
- package/templates/.agents/rules/local-artifact-repair.zh-CN.md +5 -1
- package/templates/.agents/rules/security-alerts.en.md +8 -8
- package/templates/.agents/rules/security-alerts.zh-CN.md +8 -8
- package/templates/.agents/rules/testing-discipline.en.md +2 -0
- package/templates/.agents/rules/testing-discipline.zh-CN.md +2 -0
- package/templates/.agents/scripts/package.json +3 -0
- package/templates/.agents/skills/analyze-task/SKILL.en.md +15 -2
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +19 -2
- package/templates/.agents/skills/analyze-task/config/verify.en.json +1 -12
- package/templates/.agents/skills/analyze-task/config/verify.zh-CN.json +1 -12
- package/templates/.agents/skills/close-codescan/SKILL.en.md +2 -2
- package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/close-dependabot/SKILL.en.md +2 -2
- package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/code-task/SKILL.en.md +14 -1
- package/templates/.agents/skills/code-task/SKILL.zh-CN.md +14 -1
- package/templates/.agents/skills/code-task/config/verify.en.json +5 -14
- package/templates/.agents/skills/code-task/config/verify.zh-CN.json +5 -14
- package/templates/.agents/skills/code-task/reference/code-rules.en.md +5 -4
- package/templates/.agents/skills/code-task/reference/code-rules.zh-CN.md +5 -4
- package/templates/.agents/skills/code-task/reference/dual-mode.en.md +1 -1
- package/templates/.agents/skills/code-task/reference/dual-mode.zh-CN.md +1 -1
- package/templates/.agents/skills/code-task/reference/fix-mode.en.md +3 -1
- package/templates/.agents/skills/code-task/reference/fix-mode.zh-CN.md +3 -1
- package/templates/.agents/skills/code-task/reference/report-template.en.md +42 -15
- package/templates/.agents/skills/code-task/reference/report-template.zh-CN.md +39 -12
- package/templates/.agents/skills/complete-manual-validation/SKILL.en.md +37 -21
- package/templates/.agents/skills/complete-manual-validation/SKILL.zh-CN.md +37 -21
- package/templates/.agents/skills/complete-manual-validation/config/verify.en.json +1 -1
- package/templates/.agents/skills/complete-manual-validation/config/verify.zh-CN.json +1 -1
- package/templates/.agents/skills/complete-manual-validation/reference/report-template.en.md +4 -0
- package/templates/.agents/skills/complete-manual-validation/reference/report-template.zh-CN.md +4 -0
- package/templates/.agents/skills/complete-manual-validation/reference/summary-update.en.md +16 -7
- package/templates/.agents/skills/complete-manual-validation/reference/summary-update.zh-CN.md +16 -7
- package/templates/.agents/skills/complete-task/SKILL.en.md +10 -23
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +10 -23
- package/templates/.agents/skills/create-task/SKILL.en.md +8 -0
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +7 -0
- package/templates/.agents/skills/import-codescan/SKILL.en.md +1 -1
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/import-dependabot/SKILL.en.md +1 -1
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/init-labels/SKILL.en.md +8 -8
- package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +8 -8
- package/templates/.agents/skills/init-milestones/SKILL.en.md +9 -11
- package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +9 -11
- package/templates/.agents/skills/plan-task/SKILL.en.md +14 -1
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +16 -1
- package/templates/.agents/skills/plan-task/config/verify.en.json +4 -14
- package/templates/.agents/skills/plan-task/config/verify.zh-CN.json +4 -14
- package/templates/.agents/skills/release/SKILL.en.md +7 -3
- package/templates/.agents/skills/release/SKILL.zh-CN.md +7 -3
- package/templates/.agents/skills/review-analysis/SKILL.en.md +14 -1
- package/templates/.agents/skills/review-analysis/SKILL.zh-CN.md +14 -1
- package/templates/.agents/skills/review-analysis/config/verify.en.json +1 -18
- package/templates/.agents/skills/review-analysis/config/verify.zh-CN.json +1 -18
- package/templates/.agents/skills/review-analysis/reference/report-template.en.md +50 -23
- package/templates/.agents/skills/review-analysis/reference/report-template.zh-CN.md +45 -18
- package/templates/.agents/skills/review-code/SKILL.en.md +14 -1
- package/templates/.agents/skills/review-code/SKILL.zh-CN.md +14 -1
- package/templates/.agents/skills/review-code/config/verify.en.json +1 -23
- package/templates/.agents/skills/review-code/config/verify.zh-CN.json +1 -23
- package/templates/.agents/skills/review-code/reference/report-template.en.md +49 -22
- package/templates/.agents/skills/review-code/reference/report-template.zh-CN.md +45 -18
- package/templates/.agents/skills/review-plan/SKILL.en.md +14 -1
- package/templates/.agents/skills/review-plan/SKILL.zh-CN.md +14 -1
- package/templates/.agents/skills/review-plan/config/verify.en.json +1 -18
- package/templates/.agents/skills/review-plan/config/verify.zh-CN.json +1 -18
- package/templates/.agents/skills/review-plan/reference/report-template.en.md +49 -22
- package/templates/.agents/skills/review-plan/reference/report-template.zh-CN.md +45 -18
- package/templates/.agents/skills/review-pr/SKILL.en.md +5 -1
- package/templates/.agents/skills/review-pr/SKILL.zh-CN.md +5 -1
- package/templates/.agents/skills/review-pr/reference/report-template.en.md +4 -3
- package/templates/.agents/skills/review-pr/reference/report-template.zh-CN.md +4 -3
- package/templates/.agents/skills/run-manual-validation/SKILL.en.md +25 -4
- package/templates/.agents/skills/run-manual-validation/SKILL.zh-CN.md +25 -4
- package/templates/.agents/skills/run-manual-validation/reference/discovery-and-execution.en.md +4 -1
- package/templates/.agents/skills/run-manual-validation/reference/discovery-and-execution.zh-CN.md +4 -1
- package/templates/.agents/skills/run-manual-validation/reference/report-template.en.md +5 -1
- package/templates/.agents/skills/run-manual-validation/reference/report-template.zh-CN.md +5 -1
- package/templates/.agents/skills/run-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/run-task/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/test/SKILL.en.md +29 -7
- package/templates/.agents/skills/test/SKILL.zh-CN.md +29 -7
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +14 -0
- package/templates/.agents/templates/task.en.md +6 -0
- package/templates/.agents/templates/task.zh-CN.md +6 -0
- package/templates/.claude/commands/run-manual-validation.en.md +1 -1
- package/templates/.claude/commands/run-manual-validation.zh-CN.md +1 -1
- package/dist/lib/platform/adapters.js +0 -56
- package/lib/platform/adapters.ts +0 -197
- package/templates/.agents/scripts/security-alerts.github.sh +0 -151
- package/templates/.agents/scripts/security-alerts.sh +0 -31
- package/templates/.agents/skills/init-labels/scripts/init-labels.github.sh +0 -146
- package/templates/.agents/skills/init-labels/scripts/init-labels.sh +0 -32
- package/templates/.agents/skills/init-milestones/scripts/init-milestones.github.sh +0 -294
- package/templates/.agents/skills/init-milestones/scripts/init-milestones.sh +0 -6
|
@@ -19,17 +19,17 @@ Confirm that:
|
|
|
19
19
|
|
|
20
20
|
If any prerequisite fails, stop and report the matching error.
|
|
21
21
|
|
|
22
|
-
### 2. Run the
|
|
22
|
+
### 2. Run the labels runtime intent
|
|
23
23
|
|
|
24
24
|
Execute the complete label initialization flow with:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
|
|
27
|
+
agent-infra-internal platform-metadata init-labels
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
The
|
|
30
|
+
The runtime intent and `.agents/rules/label-milestone-setup.md` are responsible for:
|
|
31
31
|
- Reading the configured `labels.in` mapping and preserving unrelated labels
|
|
32
|
-
- Selecting the
|
|
32
|
+
- Selecting the platform capability or returning a clear no-op/degraded result
|
|
33
33
|
- Creating or updating the standard label set and reporting the final summary
|
|
34
34
|
- Printing the final execution summary
|
|
35
35
|
|
|
@@ -69,8 +69,8 @@ Show the current mapping and ask whether it should be updated.
|
|
|
69
69
|
#### 4.3 Write the mapping and create labels
|
|
70
70
|
|
|
71
71
|
1. Write the final mapping to `.agents/.airc.json` under `labels.in`.
|
|
72
|
-
2. Run `
|
|
73
|
-
3. After user confirmation, rerun the
|
|
72
|
+
2. Run `agent-infra-internal platform-metadata init-labels` to create or update one `in: {key}` label for each mapping key.
|
|
73
|
+
3. After user confirmation, rerun the intent with `--cleanup-stale-in` to delete stale `in:` labels that are no longer present in the final mapping.
|
|
74
74
|
|
|
75
75
|
### 5. Output and behavior guarantees
|
|
76
76
|
|
|
@@ -100,7 +100,7 @@ Next step - initialize milestones (optional):
|
|
|
100
100
|
|
|
101
101
|
## Error Handling
|
|
102
102
|
|
|
103
|
-
-
|
|
104
|
-
-
|
|
103
|
+
- Platform capability unavailable: report the runtime's `degraded` or `no-op` result without claiming remote changes.
|
|
104
|
+
- Platform authentication or repository access failure: report the runtime's non-zero exit status and diagnostic output; do not claim remote changes.
|
|
105
105
|
- Permission error: prompt "No permission to manage labels in this repository"
|
|
106
106
|
- API rate limit: prompt "platform API rate limit reached, please retry later"
|
|
@@ -19,17 +19,17 @@ description: >
|
|
|
19
19
|
|
|
20
20
|
如果任一条件失败,停止并输出对应错误。
|
|
21
21
|
|
|
22
|
-
### 2.
|
|
22
|
+
### 2. 运行 labels runtime intent
|
|
23
23
|
|
|
24
24
|
执行以下命令,完成整套 label 初始化流程:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
|
|
27
|
+
agent-infra-internal platform-metadata init-labels
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
runtime intent 与 `.agents/rules/label-milestone-setup.md` 共同负责:
|
|
31
31
|
- 读取配置的 `labels.in` 映射并保留无关 label
|
|
32
|
-
-
|
|
32
|
+
- 选择平台能力,或返回明确的 no-op/degraded 结果
|
|
33
33
|
- 创建或更新标准 label 集合并输出最终摘要
|
|
34
34
|
- 输出最终执行摘要
|
|
35
35
|
|
|
@@ -69,8 +69,8 @@ bash .agents/skills/init-labels/scripts/init-labels.sh
|
|
|
69
69
|
#### 4.3 写入配置并创建 label
|
|
70
70
|
|
|
71
71
|
1. 将最终映射写入 `.agents/.airc.json` 的 `labels.in` 字段。
|
|
72
|
-
2. 执行 `
|
|
73
|
-
3. 询问用户确认后,再使用 `--cleanup-stale-in`
|
|
72
|
+
2. 执行 `agent-infra-internal platform-metadata init-labels`,为每个映射 key 创建或更新 `in: {key}` label。
|
|
73
|
+
3. 询问用户确认后,再使用 `--cleanup-stale-in` 重新执行 intent,清理不在最终映射中的旧 `in:` label。
|
|
74
74
|
|
|
75
75
|
### 5. 输出与行为保证
|
|
76
76
|
|
|
@@ -100,7 +100,7 @@ bash .agents/skills/init-labels/scripts/init-labels.sh
|
|
|
100
100
|
|
|
101
101
|
## 错误处理
|
|
102
102
|
|
|
103
|
-
-
|
|
104
|
-
-
|
|
103
|
+
- 平台能力不可用:如实报告 runtime 的 `degraded` 或 `no-op` 结果,不得声称远端已变更。
|
|
104
|
+
- 平台认证或仓库访问失败:如实报告 runtime 的非零退出状态和诊断输出;不得声称远端已变更。
|
|
105
105
|
- 权限不足:提示 "No permission to manage labels in this repository"
|
|
106
106
|
- API 限流:提示 "platform API rate limit reached, please retry later"
|
|
@@ -19,20 +19,18 @@ Confirm that:
|
|
|
19
19
|
|
|
20
20
|
If any prerequisite fails, stop and report the matching error.
|
|
21
21
|
|
|
22
|
-
### 2. Run the
|
|
22
|
+
### 2. Run the milestones runtime intent
|
|
23
23
|
|
|
24
24
|
Execute the complete milestone initialization flow with:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
|
|
27
|
+
agent-infra-internal platform-metadata init-milestones $ARGUMENTS
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
The
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
- Letting the provider leaf list and write current milestones
|
|
35
|
-
- Building the desired milestone set and creating only the missing titles
|
|
30
|
+
The runtime intent and `.agents/rules/label-milestone-setup.md` are responsible for:
|
|
31
|
+
- Receiving the `--history` request and planning the desired milestones
|
|
32
|
+
- Applying the established baseline, history, state, and title-idempotency contract
|
|
33
|
+
- Letting runtime/provider code list and write current milestones
|
|
36
34
|
- Printing the final execution summary
|
|
37
35
|
|
|
38
36
|
### 3. Standard milestone definitions
|
|
@@ -78,8 +76,8 @@ Next step - initialize labels (optional):
|
|
|
78
76
|
|
|
79
77
|
## Error Handling
|
|
80
78
|
|
|
81
|
-
-
|
|
82
|
-
- Version detection failed:
|
|
83
|
-
- No valid SemVer `v*` tags found in `--history` mode:
|
|
79
|
+
- Platform capability, authentication, or repository access failure: report the runtime's non-zero exit status and diagnostic output; do not claim remote changes.
|
|
80
|
+
- Version detection failed: report the runtime's version-baseline error
|
|
81
|
+
- No valid SemVer `v*` tags found in `--history` mode: report the runtime's history diagnostic
|
|
84
82
|
- Permission error: prompt "No permission to manage milestones in this repository"
|
|
85
83
|
- API rate limit: prompt "platform API rate limit reached, please retry later"
|
|
@@ -19,20 +19,18 @@ description: >
|
|
|
19
19
|
|
|
20
20
|
如果任一条件失败,停止并输出对应错误。
|
|
21
21
|
|
|
22
|
-
### 2.
|
|
22
|
+
### 2. 运行 milestones runtime intent
|
|
23
23
|
|
|
24
24
|
执行以下命令,完成整套里程碑初始化流程:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
|
|
27
|
+
agent-infra-internal platform-metadata init-milestones $ARGUMENTS
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
- 由 provider 叶子读取并写入当前里程碑
|
|
35
|
-
- 构建目标里程碑集合,并且只创建缺失标题
|
|
30
|
+
runtime intent 与 `.agents/rules/label-milestone-setup.md` 共同负责:
|
|
31
|
+
- 接收 `--history` 请求并规划目标里程碑
|
|
32
|
+
- 按既定基线、history、状态和标题幂等契约生成结果
|
|
33
|
+
- 由 runtime/provider 读取并写入当前里程碑
|
|
36
34
|
- 输出最终执行摘要
|
|
37
35
|
|
|
38
36
|
### 3. 标准里程碑定义
|
|
@@ -78,8 +76,8 @@ bash .agents/skills/init-milestones/scripts/init-milestones.sh "$ARGUMENTS"
|
|
|
78
76
|
|
|
79
77
|
## 错误处理
|
|
80
78
|
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
- `--history` 模式下未找到合法 SemVer `v*` git tags
|
|
79
|
+
- 平台能力、认证或仓库访问失败:如实报告 runtime 的非零退出状态和诊断输出;不得声称远端已变更。
|
|
80
|
+
- 版本解析失败:报告 runtime 返回的版本基线错误
|
|
81
|
+
- `--history` 模式下未找到合法 SemVer `v*` git tags:报告 runtime 返回的 history 诊断
|
|
84
82
|
- 权限不足:提示 "No permission to manage milestones in this repository"
|
|
85
83
|
- API 限流:提示 "platform API rate limit reached, please retry later"
|
|
@@ -13,6 +13,11 @@ If the entry operands contain `--orchestrated`, bind `{execution-flag}` to `--or
|
|
|
13
13
|
|
|
14
14
|
## Boundary / Critical Rules
|
|
15
15
|
|
|
16
|
+
### Persisted Report Evidence
|
|
17
|
+
|
|
18
|
+
Before generating the plan report, read `.agents/rules/evidence-reporting.md`. Record the command, target scope, status or structured result, actual result, and uncovered parts for state checks and verification; include decisive raw excerpts only for failures, blocking conditions, or disputes.
|
|
19
|
+
|
|
20
|
+
- When evaluating candidate qualification or `HD-N`, read `.agents/rules/decision-qualification.md`, audit normalized task constraints/candidates, and record the five qualification-audit tables in the plan artifact; unknown or unconfirmed constraints must not automatically exclude a candidate
|
|
16
21
|
- This skill only outputs a technical plan document (`plan.md` or `plan-r{N}.md`) and does not modify any business code
|
|
17
22
|
- This is a **mandatory human review checkpoint**; do not automatically proceed to implementation
|
|
18
23
|
- Before generating task or lifecycle Markdown that will be synchronized to an Issue, read `.agents/rules/sync-content-generation.md` and apply its producer-side constraints; the sync path does not parse or rewrite the body
|
|
@@ -25,7 +30,7 @@ Version stamp rule: when creating or updating `task.md` frontmatter, read `.agen
|
|
|
25
30
|
|
|
26
31
|
After loading workflow / skill / rules instructions, and before any task-state judgment or user-visible conclusion, run the state check first. Reading instruction files does not count as an external-state action or conclusion.
|
|
27
32
|
|
|
28
|
-
Run these commands and
|
|
33
|
+
Run these commands and record the task/artifact scope, key result, and uncovered parts in this round's `## State Check` section; do not paste complete directory listings or task tails on normal success. Retain decisive raw lines only for failures, blocking conditions, identity mismatches, or disputes:
|
|
29
34
|
|
|
30
35
|
```bash
|
|
31
36
|
agent-infra-internal task-snapshot {task-id} --format text
|
|
@@ -103,6 +108,14 @@ When this round introduces a new key design decision, first run `agent-infra-int
|
|
|
103
108
|
|
|
104
109
|
### 6. Output Plan Document
|
|
105
110
|
|
|
111
|
+
Before writing this round's `{plan-artifact}`, create the controlled report skeleton:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
agent-infra-internal task-artifact {task-id} init --family plan --artifact {plan-artifact} --locale en
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The skeleton contains identity metadata, stable section markers, and required headings only; real plan content is required before the completion gate can pass. If the finalizer returns one provably safe structural error, call `task-artifact {task-id} repair --family plan --artifact {plan-artifact} --expected-sha256 {artifact-sha256} --expected-semantic-digest {semantic-digest}`, then rerun the same finalizer.
|
|
118
|
+
|
|
106
119
|
Create `.agents/workspace/active/{task-id}/{plan-artifact}`.
|
|
107
120
|
|
|
108
121
|
### 7. Update Task Status
|
|
@@ -13,6 +13,11 @@ description: >
|
|
|
13
13
|
|
|
14
14
|
## 行为边界 / 关键规则
|
|
15
15
|
|
|
16
|
+
### 持久化报告证据
|
|
17
|
+
|
|
18
|
+
生成方案报告时,先读取 `.agents/rules/evidence-reporting.md`。状态核对和验证记录命令、目标范围、状态/结构化结果、实际结果和未覆盖部分;失败、阻塞或争议才附决定性原文摘录。
|
|
19
|
+
|
|
20
|
+
- 涉及候选资格或 `HD-N` 判断时,先读取 `.agents/rules/decision-qualification.md`,基于 task.md 规范化约束/候选完成资格审计,并在方案产物记录五张资格审计表;不得把来源不明或未确认约束自动升级为排除条件
|
|
16
21
|
- 本技能仅产出技术方案文档(`plan.md` 或 `plan-r{N}.md`)—— 不修改任何业务代码
|
|
17
22
|
- 生成会同步到 Issue 的任务或生命周期 Markdown 前,先读取 `.agents/rules/sync-content-generation.md` 并遵循其中的生成端约束;同步端不解析或改写正文
|
|
18
23
|
- 这是一个**强制性的人工审查检查点** —— 不要自动进入实现阶段
|
|
@@ -25,7 +30,7 @@ description: >
|
|
|
25
30
|
|
|
26
31
|
在加载 workflow / skill / rules 指令之后、做任何任务状态判断或用户可见结论之前,必须先执行状态核对。指令类文件读取不算对外动作或结论。
|
|
27
32
|
|
|
28
|
-
|
|
33
|
+
运行以下命令,并在本轮产物的 `## 状态核对` 段记录任务/产物范围、关键结果和未覆盖部分;正常成功不粘贴完整目录清单或 `task.md` 尾部。失败、阻塞、身份不一致或争议时,附决定性原文行:
|
|
29
34
|
|
|
30
35
|
```bash
|
|
31
36
|
agent-infra-internal task-snapshot {task-id} --format text
|
|
@@ -83,6 +88,8 @@ agent-infra-internal task-event {task-id} plan.started --agent {standard-agent-t
|
|
|
83
88
|
|
|
84
89
|
### 5. 设计技术方案
|
|
85
90
|
|
|
91
|
+
方案必须按 `.agents/rules/decision-qualification.md` 复核规范化约束和候选,并在方案产物保留五张资格审计表及真实上游关系;来源不明或未人工确认的约束不得自动排除候选。
|
|
92
|
+
|
|
86
93
|
遵循 `.agents/workflows/feature-development.yaml` 中的 `technical-design` 步骤:
|
|
87
94
|
|
|
88
95
|
**必要任务**:
|
|
@@ -104,6 +111,14 @@ agent-infra-internal task-event {task-id} plan.started --agent {standard-agent-t
|
|
|
104
111
|
|
|
105
112
|
### 6. 输出计划文档
|
|
106
113
|
|
|
114
|
+
在首次写入本轮 `{plan-artifact}` 前,先创建受控报告骨架:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
agent-infra-internal task-artifact {task-id} init --family plan --artifact {plan-artifact}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
骨架只包含身份元数据、稳定 section marker 和必需标题;必须填入真实方案内容后才能通过完成门禁。finalizer 返回可证明的单个结构错误时,使用其 SHA 和 semantic digest 调用 `task-artifact {task-id} repair --family plan --artifact {plan-artifact} --expected-sha256 {artifact-sha256} --expected-semantic-digest {semantic-digest}`,然后完整重跑 finalizer。
|
|
121
|
+
|
|
107
122
|
创建 `.agents/workspace/active/{task-id}/{plan-artifact}`。
|
|
108
123
|
|
|
109
124
|
### 7. 更新任务状态
|
|
@@ -17,25 +17,15 @@
|
|
|
17
17
|
},
|
|
18
18
|
"artifact": {
|
|
19
19
|
"file_pattern": "plan.md|plan-r{N}.md",
|
|
20
|
-
"
|
|
21
|
-
"Problem Understanding",
|
|
22
|
-
"Constraints",
|
|
23
|
-
"Option Comparison",
|
|
24
|
-
"Technical Approach",
|
|
25
|
-
"Implementation Steps",
|
|
26
|
-
"File List",
|
|
27
|
-
"Verification Strategy",
|
|
28
|
-
"State Check"
|
|
29
|
-
],
|
|
30
|
-
"required_patterns": [
|
|
31
|
-
"^\\$ "
|
|
32
|
-
]
|
|
20
|
+
"schema": "plan"
|
|
33
21
|
},
|
|
34
22
|
"activity-log": {
|
|
35
23
|
"expected_action_pattern": "(Plan Task|Technical Design) \\(Round \\d+\\)"
|
|
36
24
|
},
|
|
37
25
|
"review-ledger": {
|
|
38
|
-
"stage_scope": [
|
|
26
|
+
"stage_scope": [
|
|
27
|
+
"analysis"
|
|
28
|
+
]
|
|
39
29
|
},
|
|
40
30
|
"platform-sync": {
|
|
41
31
|
"when": "issue_number_exists",
|
|
@@ -17,25 +17,15 @@
|
|
|
17
17
|
},
|
|
18
18
|
"artifact": {
|
|
19
19
|
"file_pattern": "plan.md|plan-r{N}.md",
|
|
20
|
-
"
|
|
21
|
-
"问题理解",
|
|
22
|
-
"约束条件",
|
|
23
|
-
"方案对比",
|
|
24
|
-
"技术方法",
|
|
25
|
-
"实施步骤",
|
|
26
|
-
"文件清单",
|
|
27
|
-
"验证策略",
|
|
28
|
-
"状态核对"
|
|
29
|
-
],
|
|
30
|
-
"required_patterns": [
|
|
31
|
-
"^\\$ "
|
|
32
|
-
]
|
|
20
|
+
"schema": "plan"
|
|
33
21
|
},
|
|
34
22
|
"activity-log": {
|
|
35
23
|
"expected_action_pattern": "(Plan Task|Technical Design) \\(Round \\d+\\)"
|
|
36
24
|
},
|
|
37
25
|
"review-ledger": {
|
|
38
|
-
"stage_scope": [
|
|
26
|
+
"stage_scope": [
|
|
27
|
+
"analysis"
|
|
28
|
+
]
|
|
39
29
|
},
|
|
40
30
|
"platform-sync": {
|
|
41
31
|
"when": "issue_number_exists",
|
|
@@ -19,15 +19,19 @@ Require one canonical SemVer `{version}` and a satisfied entropy checkpoint.
|
|
|
19
19
|
agent-infra-internal release-workflow inspect {version}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Run prepare and inspect again only when the snapshot is not prepared. Reuse prepared or partially published facts. Unknown state is blocked.
|
|
22
|
+
Preserve and present the complete non-empty stdout. Run prepare and inspect again only when the snapshot is not prepared. Reuse prepared or partially published facts. Unknown state is blocked.
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
25
|
agent-infra-internal release-workflow prepare {version} --entropy-report {path}
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
Present the prepare `status`, `error`, and `operations`, including milestone closure and creation of the next planning milestones. Stop on `failed` or `blocked`; do not request publish authorization. Continue only after a successful prepare and a fresh inspect.
|
|
29
|
+
|
|
30
|
+
Inspect again after prepare.
|
|
31
|
+
|
|
28
32
|
## 3. Present and Confirm
|
|
29
33
|
|
|
30
|
-
Present the latest snapshot. Only an unambiguous affirmative reply for that snapshot in the current session authorizes publishing. A denial, adjustment, question, ambiguity, interruption, or changed snapshot stops the write and requires a new preview.
|
|
34
|
+
Present the complete latest snapshot JSON, including every channel state. Only an unambiguous affirmative reply for that snapshot in the current session authorizes publishing. A denial, adjustment, question, ambiguity, interruption, or changed snapshot stops the write and requires a new preview.
|
|
31
35
|
|
|
32
36
|
## 4. Publish and Reinspect
|
|
33
37
|
|
|
@@ -35,7 +39,7 @@ Present the latest snapshot. Only an unambiguous affirmative reply for that snap
|
|
|
35
39
|
agent-infra-internal release-workflow publish {version}
|
|
36
40
|
```
|
|
37
41
|
|
|
38
|
-
Push refs normally, preserve partial success for replay, never force push, and inspect again after the operation.
|
|
42
|
+
Push refs normally, preserve partial success for replay, never force push, and inspect again after the operation. Explicitly list any incomplete platform release, npm, Homebrew, or smoke state; a successful Git ref push is not a complete release.
|
|
39
43
|
|
|
40
44
|
## 5. Report Facts
|
|
41
45
|
|
|
@@ -19,15 +19,19 @@ description: >
|
|
|
19
19
|
agent-infra-internal release-workflow inspect {version}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
保留并展示该命令的完整非空 stdout。未 prepared 时执行 prepare 并重新 inspect;已准备或部分发布时复用当前事实。unknown 必须 blocked。
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
25
|
agent-infra-internal release-workflow prepare {version} --entropy-report {path}
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
展示 prepare 的 `status`、`error` 和 `operations`,包括里程碑关闭与后续里程碑创建结果。`failed` 或 `blocked` 时停止,不得请求发布授权;只有 prepare 成功且重新 inspect 得到的最新快照才可继续。
|
|
29
|
+
|
|
30
|
+
prepare 后必须重新 inspect。
|
|
31
|
+
|
|
28
32
|
## 3. 展示快照并确认
|
|
29
33
|
|
|
30
|
-
展示最新 snapshot
|
|
34
|
+
展示最新 snapshot 的完整 JSON,包括所有渠道状态。只有当前会话中针对该快照的无歧义明确肯定答复才授权发布;否定、调整、疑问、歧义或中断均停止。快照变化后重新确认。
|
|
31
35
|
|
|
32
36
|
## 4. 发布并复核
|
|
33
37
|
|
|
@@ -35,7 +39,7 @@ agent-infra-internal release-workflow prepare {version} --entropy-report {path}
|
|
|
35
39
|
agent-infra-internal release-workflow publish {version}
|
|
36
40
|
```
|
|
37
41
|
|
|
38
|
-
逐 ref 普通 push;部分成功可重放,禁止 force push。操作后重新 inspect
|
|
42
|
+
逐 ref 普通 push;部分成功可重放,禁止 force push。操作后重新 inspect,并明确列出仍未完成的平台 Release、npm、Homebrew 或 smoke 项。
|
|
39
43
|
|
|
40
44
|
## 5. 输出事实摘要
|
|
41
45
|
|
|
@@ -15,6 +15,11 @@ Review the latest analysis artifact and produce `review-analysis.md` or `review-
|
|
|
15
15
|
|
|
16
16
|
## Boundary / Critical Rules
|
|
17
17
|
|
|
18
|
+
### Persisted Report Evidence
|
|
19
|
+
|
|
20
|
+
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.
|
|
21
|
+
|
|
22
|
+
- When reviewing candidate qualification or `HD-N`, read `.agents/rules/decision-qualification.md` and check the five qualification-audit tables, digests, QCR, and upstream relations; do not treat a process label as identity authentication
|
|
18
23
|
- This skill only reviews analysis artifacts and writes a report; it does not modify product code.
|
|
19
24
|
- Before generating task or lifecycle Markdown that will be synchronized to an Issue, read `.agents/rules/sync-content-generation.md` and apply its producer-side constraints; the sync path does not parse or rewrite the body
|
|
20
25
|
- After executing this skill, you **must** immediately update task.md.
|
|
@@ -25,7 +30,7 @@ Version stamp rule: when creating or updating `task.md` frontmatter, read `.agen
|
|
|
25
30
|
|
|
26
31
|
After loading workflow / skill / rules instructions, and before any task-state judgment or user-visible conclusion, run the state check first.
|
|
27
32
|
|
|
28
|
-
Run these commands and
|
|
33
|
+
Run these commands and record the task/artifact scope, key result, and uncovered parts in this round's `## State Check` section; do not paste complete directory listings or task tails on normal success. Retain decisive raw lines only for failures, blocking conditions, identity mismatches, or disputes:
|
|
29
34
|
|
|
30
35
|
```bash
|
|
31
36
|
agent-infra-internal task-snapshot {task-id} --format text
|
|
@@ -64,6 +69,14 @@ Check requirement completeness, risks, affected scope, open questions, and effor
|
|
|
64
69
|
|
|
65
70
|
### 5. Write Review Report
|
|
66
71
|
|
|
72
|
+
Before writing this round's `{review-artifact}`, create the controlled review skeleton:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
agent-infra-internal task-artifact {task-id} init --family review-analysis --artifact {review-artifact} --locale en
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The skeleton contains identity metadata, stable section markers, and required headings only; complete review content is required before summary finalization. If structural finalization returns one provably safe error, call `task-artifact {task-id} repair --family review-analysis --artifact {review-artifact} --expected-sha256 {artifact-sha256} --expected-semantic-digest {semantic-digest}`, then rerun the original finalizer.
|
|
79
|
+
|
|
67
80
|
Create `.agents/workspace/active/{task-id}/{review-artifact}`.
|
|
68
81
|
|
|
69
82
|
> Read `reference/report-template.md` before writing the report.
|
|
@@ -15,6 +15,11 @@ description: >
|
|
|
15
15
|
|
|
16
16
|
## 行为边界 / 关键规则
|
|
17
17
|
|
|
18
|
+
### 持久化报告证据
|
|
19
|
+
|
|
20
|
+
生成审查报告时,先读取 `.agents/rules/evidence-reporting.md`。正常检视记录命令、范围、结构化结果、实际结论和未覆盖部分;finding、阻塞或争议保留可复现位置与决定性摘录,身份字段必须精确保留。
|
|
21
|
+
|
|
22
|
+
- 审查候选资格或 `HD-N` 判断时,先读取 `.agents/rules/decision-qualification.md`,逐项复核产物中的五张资格审计表、digest、QCR 和上游关系;不得把流程标签当作身份认证
|
|
18
23
|
- 本技能只审查分析产物并写报告,不修改业务代码
|
|
19
24
|
- 生成会同步到 Issue 的任务或生命周期 Markdown 前,先读取 `.agents/rules/sync-content-generation.md` 并遵循其中的生成端约束;同步端不解析或改写正文
|
|
20
25
|
- 执行本技能后,你**必须**立即更新 task.md
|
|
@@ -25,7 +30,7 @@ description: >
|
|
|
25
30
|
|
|
26
31
|
在加载 workflow / skill / rules 指令之后、做任何任务状态判断或用户可见结论之前,必须先执行状态核对。指令类文件读取不算对外动作或结论。
|
|
27
32
|
|
|
28
|
-
|
|
33
|
+
运行以下命令,并在本轮产物的 `## 状态核对` 段记录任务/产物范围、关键结果和未覆盖部分;正常成功不粘贴完整目录清单或 `task.md` 尾部。失败、阻塞、身份不一致或争议时,附决定性原文行:
|
|
29
34
|
|
|
30
35
|
```bash
|
|
31
36
|
agent-infra-internal task-snapshot {task-id} --format text
|
|
@@ -67,6 +72,14 @@ agent-infra-internal task-snapshot {task-id} --format text
|
|
|
67
72
|
|
|
68
73
|
### 5. 编写审查报告
|
|
69
74
|
|
|
75
|
+
在首次写入本轮 `{review-artifact}` 前,先创建受控审查骨架:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
agent-infra-internal task-artifact {task-id} init --family review-analysis --artifact {review-artifact}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
骨架不生成审查结论、发现或计数;完成审查内容后才能进入 summary finalizer。结构 finalizer 返回可证明的单个错误时,使用其 SHA 和 semantic digest 调用 `task-artifact {task-id} repair --family review-analysis --artifact {review-artifact} --expected-sha256 {artifact-sha256} --expected-semantic-digest {semantic-digest}`,再重跑原 finalizer。
|
|
82
|
+
|
|
70
83
|
创建 `.agents/workspace/active/{task-id}/{review-artifact}`。
|
|
71
84
|
|
|
72
85
|
> 报告格式见 `reference/report-template.md`。写报告前先读取 `reference/report-template.md`。
|
|
@@ -17,24 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"artifact": {
|
|
19
19
|
"file_pattern": "review-analysis.md|review-analysis-r{N}.md",
|
|
20
|
-
"
|
|
21
|
-
"Review Summary",
|
|
22
|
-
"Review Coverage Declaration",
|
|
23
|
-
"Requirement Analysis Coverage",
|
|
24
|
-
"Traceability Matrix",
|
|
25
|
-
"Findings",
|
|
26
|
-
"Non-blocking Advisories",
|
|
27
|
-
"Manual Validation Items",
|
|
28
|
-
"Conclusion and Recommendations",
|
|
29
|
-
"State Check",
|
|
30
|
-
"Evidence",
|
|
31
|
-
"Self-Doubt",
|
|
32
|
-
"Review Disagreement Ledger Writeback"
|
|
33
|
-
],
|
|
34
|
-
"required_patterns": [
|
|
35
|
-
"^### Approval Decision$",
|
|
36
|
-
"^\\$ "
|
|
37
|
-
]
|
|
20
|
+
"schema": "review-analysis"
|
|
38
21
|
},
|
|
39
22
|
"decision-details": {},
|
|
40
23
|
"review-summary": {
|
|
@@ -17,24 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"artifact": {
|
|
19
19
|
"file_pattern": "review-analysis.md|review-analysis-r{N}.md",
|
|
20
|
-
"
|
|
21
|
-
"审查摘要",
|
|
22
|
-
"检视覆盖声明",
|
|
23
|
-
"需求分析专项覆盖",
|
|
24
|
-
"追踪矩阵",
|
|
25
|
-
"问题清单",
|
|
26
|
-
"非阻塞建议",
|
|
27
|
-
"人工校验项",
|
|
28
|
-
"结论与建议",
|
|
29
|
-
"状态核对",
|
|
30
|
-
"证据原文",
|
|
31
|
-
"自我质疑",
|
|
32
|
-
"审查分歧账本回写"
|
|
33
|
-
],
|
|
34
|
-
"required_patterns": [
|
|
35
|
-
"^### 审查决定$",
|
|
36
|
-
"^\\$ "
|
|
37
|
-
]
|
|
20
|
+
"schema": "review-analysis"
|
|
38
21
|
},
|
|
39
22
|
"decision-details": {},
|
|
40
23
|
"review-summary": {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Review Report Template
|
|
2
2
|
|
|
3
|
+
> Before writing this report, use `task-artifact init --family review-analysis` to create the skeleton and preserve every `artifact-section` marker; the skeleton contains no review conclusion.
|
|
4
|
+
|
|
3
5
|
Use this template when writing `review-analysis.md` or `review-analysis-r{N}.md`.
|
|
4
6
|
|
|
5
7
|
## Output Template
|
|
@@ -12,11 +14,31 @@ Use this template when writing `review-analysis.md` or `review-analysis-r{N}.md`
|
|
|
12
14
|
- **Review Input**:
|
|
13
15
|
- `{analysis-artifact}` (the highest-round requirement-analysis artifact actually reviewed, e.g. `analysis-r2.md`; leave blank if it cannot be reliably determined)
|
|
14
16
|
|
|
15
|
-
##
|
|
17
|
+
## Review Summary
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
## Qualification Audit Review
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
> Use `.agents/rules/decision-qualification.md` to review the five tables: constraint dependencies, candidate qualification, classification results, upstream relations, and dependency snapshot.
|
|
22
|
+
|
|
23
|
+
### Constraint Dependencies
|
|
24
|
+
| constraint_id | constraint_digest | role | evidence |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
|
|
27
|
+
### Candidate Qualification
|
|
28
|
+
| candidate_id | status | impact | constraint_ids | evidence |
|
|
29
|
+
| --- | --- | --- | --- | --- |
|
|
30
|
+
|
|
31
|
+
### Classification Results
|
|
32
|
+
| decision_id | classification | evidence |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
|
|
35
|
+
### Upstream Relations
|
|
36
|
+
| upstream_family | upstream_artifact | upstream_round | upstream_sha256 | relation |
|
|
37
|
+
| --- | --- | --- | --- | --- |
|
|
38
|
+
|
|
39
|
+
### Dependency Snapshot
|
|
40
|
+
| task_input_digest | non_constraint_input_digest | upstream_artifact_digest |
|
|
41
|
+
| --- | --- | --- |
|
|
20
42
|
|
|
21
43
|
- **Reviewer**: {reviewer-name}
|
|
22
44
|
- **Review Time**: {timestamp}
|
|
@@ -24,7 +46,7 @@ Use this template when writing `review-analysis.md` or `review-analysis-r{N}.md`
|
|
|
24
46
|
- **Overall Verdict**: {Approved / Changes Requested / Rejected}
|
|
25
47
|
- **Findings (AI-actionable)**: {unresolved-blockers} blockers, {unresolved-major} majors, {unresolved-minor} minors / **Manual validation**: 0
|
|
26
48
|
|
|
27
|
-
##
|
|
49
|
+
## Inspection Coverage
|
|
28
50
|
|
|
29
51
|
| pass_id | scope | evidence | result | gaps_or_assumptions |
|
|
30
52
|
|---------|-------|----------|--------|---------------------|
|
|
@@ -34,7 +56,7 @@ Use this template when writing `review-analysis.md` or `review-analysis-r{N}.md`
|
|
|
34
56
|
|---------|------------------|--------|--------|
|
|
35
57
|
| {registry token} | {trigger or non-trigger evidence} | {yes / no / not-applicable} | {lens result} |
|
|
36
58
|
|
|
37
|
-
##
|
|
59
|
+
## Requirements Analysis Coverage
|
|
38
60
|
|
|
39
61
|
| perspective_id | applicability | reviewed_scope | evidence | result_or_gap |
|
|
40
62
|
|----------------|---------------|----------------|----------|---------------|
|
|
@@ -92,7 +114,7 @@ Use this template when writing `review-analysis.md` or `review-analysis-r{N}.md`
|
|
|
92
114
|
**File**: `{file-path}:{line-number}`
|
|
93
115
|
**Suggestion**: {improvement suggestion}
|
|
94
116
|
|
|
95
|
-
## Non-blocking
|
|
117
|
+
## Non-blocking Suggestions
|
|
96
118
|
|
|
97
119
|
> Record only future optimizations that do not affect the current artifact's completeness, correctness, or acceptance. Advisories do not enter the disagreement ledger, finding counts, or verdict.
|
|
98
120
|
|
|
@@ -111,27 +133,42 @@ Use this template when writing `review-analysis.md` or `review-analysis-r{N}.md`
|
|
|
111
133
|
> If this round has no Manual validation items, keep the section heading and write "None".
|
|
112
134
|
|
|
113
135
|
|
|
114
|
-
##
|
|
136
|
+
## Conclusion and Recommendation
|
|
115
137
|
|
|
116
|
-
|
|
117
|
-
|
|
138
|
+
### Approval Decision
|
|
139
|
+
- [ ] Approved
|
|
140
|
+
- [ ] Changes Requested
|
|
141
|
+
- [ ] Rejected
|
|
142
|
+
|
|
143
|
+
### Next Steps
|
|
144
|
+
{recommended next step}
|
|
145
|
+
|
|
146
|
+
## State Check
|
|
118
147
|
|
|
119
|
-
|
|
148
|
+
> Record the state-check command, review scope, key result, and uncovered parts; each command starts with `$ `.
|
|
149
|
+
> Follow `.agents/rules/evidence-reporting.md`: record review scope, key result, and uncovered parts; do not paste complete successful stdout.
|
|
120
150
|
|
|
121
|
-
|
|
151
|
+
## Raw Evidence
|
|
152
|
+
|
|
153
|
+
> Follow `.agents/rules/evidence-reporting.md`: pair each claim with a `$ ` command and proportionate result summary; Blockers, failures, blocking conditions, or disputes require a reproducible command, exact location, and decisive excerpt; a judgment that cannot be reproduced must be downgraded or moved to Self-Doubt.
|
|
122
154
|
|
|
123
155
|
- Claim: {verified claim}
|
|
124
156
|
```text
|
|
125
157
|
$ {command}
|
|
126
|
-
{
|
|
158
|
+
{result summary or decisive excerpt}
|
|
127
159
|
```
|
|
128
160
|
|
|
129
|
-
## Self-
|
|
161
|
+
## Self-critique
|
|
130
162
|
|
|
131
163
|
> Explicitly declare conclusions, inferences, and assumptions in this review that were **not directly verified**; downstream can rebut them on this basis. Write "None" if there are none.
|
|
132
164
|
|
|
133
165
|
- {an unverified conclusion or inference; note why it was not verified and the impact if it is overturned}
|
|
134
166
|
|
|
167
|
+
## Review Disagreement Ledger Write-back
|
|
168
|
+
|
|
169
|
+
> Record the structured intents to submit: use `task-ledger finding-upsert` for new findings and `finding-review` for prior responses. The core allocates `AN-N` and validates transitions; do not edit task.md table rows.
|
|
170
|
+
> Every finding escalated to `needs-human-decision` must include a self-contained detail block per `.agents/rules/human-decision-context.md`, with evidence pointing to that stable anchor.
|
|
171
|
+
|
|
135
172
|
## Highlights
|
|
136
173
|
|
|
137
174
|
- {what went well}
|
|
@@ -140,14 +177,4 @@ $ {command}
|
|
|
140
177
|
|
|
141
178
|
- [ ] Implementation matches the technical plan
|
|
142
179
|
- [ ] No unintended scope expansion
|
|
143
|
-
|
|
144
|
-
## Conclusion and Recommendation
|
|
145
|
-
|
|
146
|
-
### Approval Decision
|
|
147
|
-
- [ ] Approved
|
|
148
|
-
- [ ] Changes Requested
|
|
149
|
-
- [ ] Rejected
|
|
150
|
-
|
|
151
|
-
### Next Steps
|
|
152
|
-
{recommended next step}
|
|
153
180
|
```
|