create-principles-disciple 1.76.0 → 1.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/console/dist/server/config/feature-flags.d.ts +25 -0
- package/console/dist/server/config/feature-flags.js +101 -0
- package/console/dist/server/index.js +16 -0
- package/console/dist/server/models/FeedbackReportConsoleModel.d.ts +49 -0
- package/console/dist/server/models/FeedbackReportConsoleModel.js +242 -0
- package/console/dist/server/routes/feedback-reports.d.ts +18 -0
- package/console/dist/server/routes/feedback-reports.js +165 -0
- package/console/dist/ui/App.js +2 -1
- package/console/dist/ui/api.d.ts +26 -2
- package/console/dist/ui/api.js +18 -1
- package/console/dist/ui/components/app-sidebar.js +2 -1
- package/console/dist/ui/components/error-boundary.js +9 -2
- package/console/dist/ui/i18n/en.json +67 -1
- package/console/dist/ui/i18n/zh-CN.json +67 -1
- package/console/dist/ui/pages/ReportProblemPage.d.ts +1 -0
- package/console/dist/ui/pages/ReportProblemPage.js +186 -0
- package/console/dist/ui/pages/ReportProblemValidators.d.ts +51 -0
- package/console/dist/ui/pages/ReportProblemValidators.js +114 -0
- package/console/dist/web/assets/app.css +18 -0
- package/console/dist/web/assets/app.js +1047 -125
- package/console/package.json +1 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +24 -1
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/feedback/create-report.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/feedback/create-report.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/create-report.test.js +402 -0
- package/core/dist/runtime-v2/__tests__/feedback/create-report.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/privacy-preview.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/feedback/privacy-preview.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/privacy-preview.test.js +128 -0
- package/core/dist/runtime-v2/__tests__/feedback/privacy-preview.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/redact-sensitive.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/feedback/redact-sensitive.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/redact-sensitive.test.js +231 -0
- package/core/dist/runtime-v2/__tests__/feedback/redact-sensitive.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-github-url.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-github-url.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-github-url.test.js +102 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-github-url.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-markdown.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-markdown.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-markdown.test.js +130 -0
- package/core/dist/runtime-v2/__tests__/feedback/render-markdown.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/workspace-guidance-migration.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/workspace-guidance-migration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/workspace-guidance-migration.test.js +328 -0
- package/core/dist/runtime-v2/__tests__/workspace-guidance-migration.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js +343 -0
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/index.d.ts +2 -0
- package/core/dist/runtime-v2/activation/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/index.js +1 -0
- package/core/dist/runtime-v2/activation/index.js.map +1 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +34 -0
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js +109 -0
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +1 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +13 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.d.ts +2 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.js +141 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.js.map +1 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +4 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/index.d.ts +2 -0
- package/core/dist/runtime-v2/feature-flags/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/index.js +1 -0
- package/core/dist/runtime-v2/feature-flags/index.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.d.ts +25 -0
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.d.ts.map +1 -0
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.js +233 -0
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.js.map +1 -0
- package/core/dist/runtime-v2/feedback/create-report.d.ts +14 -0
- package/core/dist/runtime-v2/feedback/create-report.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/create-report.js +257 -0
- package/core/dist/runtime-v2/feedback/create-report.js.map +1 -0
- package/core/dist/runtime-v2/feedback/feedback-types.d.ts +120 -0
- package/core/dist/runtime-v2/feedback/feedback-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/feedback-types.js +243 -0
- package/core/dist/runtime-v2/feedback/feedback-types.js.map +1 -0
- package/core/dist/runtime-v2/feedback/index.d.ts +9 -0
- package/core/dist/runtime-v2/feedback/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/index.js +11 -0
- package/core/dist/runtime-v2/feedback/index.js.map +1 -0
- package/core/dist/runtime-v2/feedback/internal-guards.d.ts +2 -0
- package/core/dist/runtime-v2/feedback/internal-guards.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/internal-guards.js +6 -0
- package/core/dist/runtime-v2/feedback/internal-guards.js.map +1 -0
- package/core/dist/runtime-v2/feedback/privacy-preview.d.ts +14 -0
- package/core/dist/runtime-v2/feedback/privacy-preview.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/privacy-preview.js +128 -0
- package/core/dist/runtime-v2/feedback/privacy-preview.js.map +1 -0
- package/core/dist/runtime-v2/feedback/redact-sensitive.d.ts +37 -0
- package/core/dist/runtime-v2/feedback/redact-sensitive.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/redact-sensitive.js +272 -0
- package/core/dist/runtime-v2/feedback/redact-sensitive.js.map +1 -0
- package/core/dist/runtime-v2/feedback/render-github-url.d.ts +21 -0
- package/core/dist/runtime-v2/feedback/render-github-url.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/render-github-url.js +57 -0
- package/core/dist/runtime-v2/feedback/render-github-url.js.map +1 -0
- package/core/dist/runtime-v2/feedback/render-markdown.d.ts +12 -0
- package/core/dist/runtime-v2/feedback/render-markdown.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/render-markdown.js +166 -0
- package/core/dist/runtime-v2/feedback/render-markdown.js.map +1 -0
- package/core/dist/runtime-v2/feedback/safe-stringify.d.ts +6 -0
- package/core/dist/runtime-v2/feedback/safe-stringify.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/safe-stringify.js +115 -0
- package/core/dist/runtime-v2/feedback/safe-stringify.js.map +1 -0
- package/core/dist/runtime-v2/index.d.ts +8 -1
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +12 -1
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/workspace-guidance-migration.d.ts +12 -0
- package/core/dist/runtime-v2/workspace-guidance-migration.d.ts.map +1 -0
- package/core/dist/runtime-v2/workspace-guidance-migration.js +193 -0
- package/core/dist/runtime-v2/workspace-guidance-migration.js.map +1 -0
- package/core/package.json +4 -0
- package/package.json +1 -1
- package/plugin/dist/commands/context.js +5 -5
- package/plugin/dist/commands/strategy.d.ts +0 -1
- package/plugin/dist/commands/strategy.js +0 -14
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +4 -13
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.js +36 -74
- package/plugin/dist/core/surface-guard.d.ts +27 -0
- package/plugin/dist/core/surface-guard.js +82 -0
- package/plugin/dist/core/workspace-guidance-migrator.d.ts +12 -0
- package/plugin/dist/core/workspace-guidance-migrator.js +141 -0
- package/plugin/dist/hooks/prompt.js +20 -143
- package/plugin/dist/i18n/commands.js +2 -14
- package/plugin/dist/index.d.ts +27 -0
- package/plugin/dist/index.js +180 -65
- package/plugin/dist/service/correction-observer-service.d.ts +11 -0
- package/plugin/dist/service/correction-observer-service.js +172 -0
- package/plugin/dist/service/evolution-worker.js +1 -110
- package/plugin/dist/types.d.ts +2 -2
- package/plugin/dist/types.js +3 -3
- package/plugin/templates/langs/en/core/BOOTSTRAP.md +5 -19
- package/plugin/templates/langs/en/principles/THINKING_OS.md +1 -1
- package/plugin/templates/langs/en/skills/admin/SKILL.md +2 -2
- package/plugin/templates/langs/en/skills/bootstrap-tools/SKILL.md +1 -1
- package/plugin/templates/langs/en/skills/init-strategy/SKILL.md +1 -1
- package/plugin/templates/langs/en/skills/pd-mentor/SKILL.md +8 -23
- package/plugin/templates/langs/en/skills/reflection/SKILL.md +2 -2
- package/plugin/templates/langs/en/skills/report/SKILL.md +1 -1
- package/plugin/templates/langs/zh/core/BOOTSTRAP.md +3 -16
- package/plugin/templates/langs/zh/principles/THINKING_OS.md +1 -1
- package/plugin/templates/langs/zh/skills/admin/SKILL.md +2 -2
- package/plugin/templates/langs/zh/skills/bootstrap-tools/SKILL.md +1 -1
- package/plugin/templates/langs/zh/skills/init-strategy/SKILL.md +1 -1
- package/plugin/templates/langs/zh/skills/pd-mentor/SKILL.md +7 -22
- package/plugin/templates/langs/zh/skills/reflection/SKILL.md +2 -2
- package/plugin/templates/langs/zh/skills/report/SKILL.md +1 -1
- package/plugin/templates/workspace/.principles/THINKING_OS.md +1 -1
- package/templates/langs/en/core/BOOTSTRAP.md +1 -1
- package/templates/langs/en/principles/THINKING_OS.md +1 -1
- package/templates/langs/en/skills/admin/SKILL.md +2 -2
- package/templates/langs/en/skills/pd-grooming/SKILL.md +1 -1
- package/templates/langs/en/skills/reflection/SKILL.md +2 -2
- package/templates/langs/en/skills/report/SKILL.md +1 -1
- package/templates/langs/zh/core/BOOTSTRAP.md +1 -1
- package/templates/langs/zh/principles/THINKING_OS.md +1 -1
- package/templates/langs/zh/skills/admin/SKILL.md +2 -2
- package/templates/langs/zh/skills/pd-grooming/SKILL.md +1 -1
- package/templates/langs/zh/skills/reflection/SKILL.md +2 -2
- package/templates/langs/zh/skills/report/SKILL.md +1 -1
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +0 -67
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
- package/plugin/templates/langs/en/skills/evolve-system/SKILL.md +0 -46
- package/plugin/templates/langs/en/skills/manage-okr/SKILL.md +0 -96
- package/plugin/templates/langs/en/skills/pd-daily/SKILL.md +0 -199
- package/plugin/templates/langs/en/skills/pd-grooming/SKILL.md +0 -46
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +0 -67
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/nocturnal-trinity-quality-enhancement.json +0 -111
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +0 -2
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +0 -230
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +0 -672
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +0 -1321
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +0 -1435
- package/plugin/templates/langs/zh/skills/evolve-system/SKILL.md +0 -46
- package/plugin/templates/langs/zh/skills/manage-okr/SKILL.md +0 -109
- package/plugin/templates/langs/zh/skills/pd-daily/SKILL.md +0 -283
- package/plugin/templates/langs/zh/skills/pd-grooming/SKILL.md +0 -46
- package/plugin/templates/workspace/PLAN.md +0 -2
- package/templates/workspace/PLAN.md +0 -2
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
<directive id="T-02" name="PHYSICAL_MEMORY_PERSISTENCE">
|
|
21
21
|
<trigger>在跨越多个文件进行推理、面临复杂的 Debug、或当对话上下文变得很长(>5 轮)时。</trigger>
|
|
22
|
-
<must>信任文件,而不是你的上下文窗口。你必须主动将中间结论、断点和后续步骤写入 `memory/.scratchpad.md
|
|
22
|
+
<must>信任文件,而不是你的上下文窗口。你必须主动将中间结论、断点和后续步骤写入 `memory/.scratchpad.md`。</must>
|
|
23
23
|
<forbidden>依赖你内部的“大脑记忆”来保持复杂状态,这些状态必然会被上下文压缩机制抹除。</forbidden>
|
|
24
24
|
</directive>
|
|
25
25
|
|
|
@@ -15,7 +15,7 @@ disable-model-invocation: true
|
|
|
15
15
|
### 1. `diagnose` (系统诊断)
|
|
16
16
|
**动作**: 检查“毛坯房”架构的完整性。
|
|
17
17
|
- **核心组件**: 检查 `.claude/hooks/hook_runner.py` 是否存在且可执行。
|
|
18
|
-
- **文档完整性**: 检查 `.principles/PROFILE.json
|
|
18
|
+
- **文档完整性**: 检查 `.principles/PROFILE.json` 等是否存在。
|
|
19
19
|
- **工具感知**: 检查 `.state/SYSTEM_CAPABILITIES.json`。若缺失,提示用户:"⚠️ 尚未进行工具链升级。建议运行 `/bootstrap-tools` 以大幅提升系统能力。"
|
|
20
20
|
- **记忆挂载**: 检查 `CLAUDE.md` 是否包含 `System Integration` 章节。
|
|
21
21
|
- **输出**: 生成一份健康报告,列出缺失或异常的项目。
|
|
@@ -23,7 +23,7 @@ disable-model-invocation: true
|
|
|
23
23
|
### 2. `repair` (系统修复)
|
|
24
24
|
**动作**:
|
|
25
25
|
- **配置恢复**: 如果 `PROFILE.json` 缺失或损坏,尝试从 `.claude/templates/PROFILE.json` 恢复。
|
|
26
|
-
- **结构补全**:
|
|
26
|
+
- **结构补全**: 确保工作区结构完整。
|
|
27
27
|
- **强制清理**: 删除 `.pain_flag`, `.verdict.json`, `.user_verdict.json`, `.pending_reflection` 等临时标记。
|
|
28
28
|
|
|
29
29
|
### 3. `reset` (强制重置)
|
|
@@ -24,7 +24,7 @@ description: 执行工作区“大扫除” (Workspace Grooming),将散落的
|
|
|
24
24
|
### 🌟 核心资产区 (Core Assets)
|
|
25
25
|
**这些文件必须留在根目录,不可触碰:**
|
|
26
26
|
- `AGENTS.md`, `SOUL.md`, `HEARTBEAT.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `MEMORY.md`
|
|
27
|
-
- `README.md
|
|
27
|
+
- `README.md`
|
|
28
28
|
- `.principles/`, `.state/`
|
|
29
29
|
|
|
30
30
|
### 🎯 可处理区 (Targets for Grooming)
|
|
@@ -12,7 +12,7 @@ disable-model-invocation: false
|
|
|
12
12
|
请执行以下反思步骤:
|
|
13
13
|
|
|
14
14
|
## 1. 现状扫描 (Status Scan)
|
|
15
|
-
- **Goal**: 我们最初的目标是什么?(
|
|
15
|
+
- **Goal**: 我们最初的目标是什么?(检查早期对话上下文)
|
|
16
16
|
- **Status**: 现在完成了多少?卡在哪里?
|
|
17
17
|
- **Cost**: 我们消耗了大量 Token,产出是否匹配?
|
|
18
18
|
|
|
@@ -37,4 +37,4 @@ disable-model-invocation: false
|
|
|
37
37
|
|
|
38
38
|
## 5. 恢复计划 (Recovery)
|
|
39
39
|
- 既然要压缩上下文,我们下一步该如何以“最干净”的状态继续?
|
|
40
|
-
- 更新 `
|
|
40
|
+
- 更新 `memory/.scratchpad.md`,标记当前进度,确保压缩后能无缝衔接。
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# AI Sprint Orchestration Examples
|
|
2
|
-
|
|
3
|
-
## Example 1: baseline + validation
|
|
4
|
-
|
|
5
|
-
```powershell
|
|
6
|
-
node scripts/run.mjs --self-check
|
|
7
|
-
node scripts/run.mjs --help
|
|
8
|
-
node scripts/run.mjs --task workflow-validation-minimal
|
|
9
|
-
node scripts/run.mjs --task workflow-validation-minimal-verify
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Example 2: custom runtime root
|
|
13
|
-
|
|
14
|
-
```powershell
|
|
15
|
-
node scripts/run.mjs --task workflow-validation-minimal --runtime-root D:/Temp/ai-sprint-runtime
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Example 3: classify a failure
|
|
19
|
-
|
|
20
|
-
- `workflow bug`: package-local script still writes to repo-root `ops/ai-sprints`
|
|
21
|
-
- `agent behavior issue`: reviewer omits `VERDICT` or malformed `DIMENSIONS`
|
|
22
|
-
- `environment issue`: `acpx` missing or workspace not writable
|
|
23
|
-
- `sample-spec issue`: validation spec asks for a field that the current product sample does not implement
|
|
24
|
-
|
|
25
|
-
## Example 4: when to stop
|
|
26
|
-
|
|
27
|
-
Stop the iteration after classification if:
|
|
28
|
-
|
|
29
|
-
- the issue belongs to `packages/openclaw-plugin`
|
|
30
|
-
- the issue depends on `D:/Code/openclaw`
|
|
31
|
-
- the fix would require dashboard/stageGraph/self-optimization sprint expansion
|
|
32
|
-
- the problem is a sample-side or product-side gap rather than workflow plumbing
|
|
33
|
-
|
|
34
|
-
## Example 5: start from a complex bugfix template
|
|
35
|
-
|
|
36
|
-
1. Copy `references/specs/bugfix-complex-template.json`
|
|
37
|
-
2. Replace every placeholder in `taskContract`
|
|
38
|
-
3. Narrow `executionScope` to the smallest useful round
|
|
39
|
-
4. Run the packaged entrypoint with the edited spec:
|
|
40
|
-
|
|
41
|
-
```powershell
|
|
42
|
-
node scripts/run.mjs --task custom-bugfix --task-spec D:/path/to/your-bugfix-spec.json
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Example 6: start from a complex feature template
|
|
46
|
-
|
|
47
|
-
1. Copy `references/specs/feature-complex-template.json`
|
|
48
|
-
2. Fill `Goal`, `In scope`, `Out of scope`, `Validation commands`, and `Expected artifacts`
|
|
49
|
-
3. Confirm the spec does not require product-side closure outside this milestone
|
|
50
|
-
4. Run:
|
|
51
|
-
|
|
52
|
-
```powershell
|
|
53
|
-
node scripts/run.mjs --task custom-feature --task-spec D:/path/to/your-feature-spec.json
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Example 7: inspect checkpoint summary before continuation
|
|
57
|
-
|
|
58
|
-
When a round ends in `revise`, inspect:
|
|
59
|
-
|
|
60
|
-
- `stages/<stage>/checkpoint-summary.md`
|
|
61
|
-
- `stages/<stage>/handoff.json`
|
|
62
|
-
|
|
63
|
-
The next round should use the checkpoint summary as the primary carry-forward context and only fall back to full prior decision text when needed.
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# AI Sprint Orchestration Reference
|
|
2
|
-
|
|
3
|
-
## Package layout
|
|
4
|
-
|
|
5
|
-
- `scripts/run.mjs`: package-local orchestrator entrypoint
|
|
6
|
-
- `scripts/lib/`: decision, contract validation, state store, spec loading, archive helpers
|
|
7
|
-
- `references/specs/`: built-in validation specs
|
|
8
|
-
- `references/agent-registry.json`: package-local agent/model registry
|
|
9
|
-
- `references/workflow-v1-acceptance-checklist.md`: handoff checklist
|
|
10
|
-
- `runtime/`: default location for run artifacts
|
|
11
|
-
|
|
12
|
-
## Runtime layout
|
|
13
|
-
|
|
14
|
-
Default runtime root:
|
|
15
|
-
|
|
16
|
-
- `packages/openclaw-plugin/templates/langs/<lang>/skills/ai-sprint-orchestration/runtime`
|
|
17
|
-
|
|
18
|
-
Subdirectories:
|
|
19
|
-
|
|
20
|
-
- `runs/<run-id>/`
|
|
21
|
-
- `archive/<run-id>/`
|
|
22
|
-
- `tmp/sprint-agent/<run-id>/...`
|
|
23
|
-
|
|
24
|
-
Override with either:
|
|
25
|
-
|
|
26
|
-
- `--runtime-root <path>`
|
|
27
|
-
- `AI_SPRINT_RUNTIME_ROOT=<path>`
|
|
28
|
-
|
|
29
|
-
## Self check
|
|
30
|
-
|
|
31
|
-
Run this first in a newly installed environment:
|
|
32
|
-
|
|
33
|
-
- `node scripts/run.mjs --self-check`
|
|
34
|
-
|
|
35
|
-
It verifies:
|
|
36
|
-
|
|
37
|
-
- package-local references exist
|
|
38
|
-
- built-in specs load
|
|
39
|
-
- `agent-registry.json` exists
|
|
40
|
-
- `acpx` is callable
|
|
41
|
-
- runtime root is writable
|
|
42
|
-
|
|
43
|
-
## Built-in specs
|
|
44
|
-
|
|
45
|
-
- `workflow-validation-minimal`
|
|
46
|
-
- `workflow-validation-minimal-verify`
|
|
47
|
-
- `bugfix-complex-template` (copy and fill before use)
|
|
48
|
-
- `feature-complex-template` (copy and fill before use)
|
|
49
|
-
|
|
50
|
-
These built-in specs are package self-checks. They validate the workflow package itself, not product features.
|
|
51
|
-
|
|
52
|
-
## Key artifacts
|
|
53
|
-
|
|
54
|
-
For each run, inspect:
|
|
55
|
-
|
|
56
|
-
- `sprint.json`
|
|
57
|
-
- `timeline.md`
|
|
58
|
-
- `latest-summary.md`
|
|
59
|
-
- `decision.md`
|
|
60
|
-
- `scorecard.json`
|
|
61
|
-
|
|
62
|
-
Important persisted fields:
|
|
63
|
-
|
|
64
|
-
- `outputQuality`
|
|
65
|
-
- `qualityReasons`
|
|
66
|
-
- `validation`
|
|
67
|
-
- `nextRunRecommendation`
|
|
68
|
-
- `failureClassification`
|
|
69
|
-
- `failureSource`
|
|
70
|
-
- `recommendedNextAction`
|
|
71
|
-
|
|
72
|
-
Per-stage carry-forward artifact:
|
|
73
|
-
|
|
74
|
-
- `checkpoint-summary.md`
|
|
75
|
-
|
|
76
|
-
The next round should prefer `checkpoint-summary.md` as carry-forward context before falling back to a full prior `decision.md` or `handoff.json`.
|
|
77
|
-
|
|
78
|
-
## Failure classification
|
|
79
|
-
|
|
80
|
-
Use exactly one:
|
|
81
|
-
|
|
82
|
-
- `workflow bug`: orchestration logic, artifact layout, CLI, validation, persistence
|
|
83
|
-
- `agent behavior issue`: output quality or format drift despite correct workflow prompts/contracts
|
|
84
|
-
- `environment issue`: missing binaries, permissions, filesystem, PATH, runtime access
|
|
85
|
-
- `sample-spec issue`: the spec itself, or sample-side/product-side gaps that should not be fixed in this workflow milestone
|
|
86
|
-
|
|
87
|
-
## Minimum task contract for complex work
|
|
88
|
-
|
|
89
|
-
Complex bugfix and feature specs must explicitly provide:
|
|
90
|
-
|
|
91
|
-
- `Goal`
|
|
92
|
-
- `In scope`
|
|
93
|
-
- `Out of scope`
|
|
94
|
-
- `Validation commands`
|
|
95
|
-
- `Expected artifacts`
|
|
96
|
-
|
|
97
|
-
If any of these are missing or left as placeholders, the packaged skill refuses to start the sprint.
|
|
98
|
-
|
|
99
|
-
## Execution scope limits
|
|
100
|
-
|
|
101
|
-
Complex specs may define:
|
|
102
|
-
|
|
103
|
-
- `maxFiles`
|
|
104
|
-
- `maxChecks`
|
|
105
|
-
- `maxDeliverables`
|
|
106
|
-
|
|
107
|
-
The producer should declare `PLANNED_FILES`, `PLANNED_CHECKS`, and `DELIVERABLES` in the worklog before editing code. If one round would exceed scope, narrow the round or continue in a later round instead of forcing a large change through one execution.
|
|
108
|
-
|
|
109
|
-
## Synchronization rule
|
|
110
|
-
|
|
111
|
-
Source of truth remains:
|
|
112
|
-
|
|
113
|
-
- the repository copy at `packages/openclaw-plugin/templates/langs/zh/skills/ai-sprint-orchestration`
|
|
114
|
-
|
|
115
|
-
Sync the packaged copy only when the change affects:
|
|
116
|
-
|
|
117
|
-
- package-local CLI behavior
|
|
118
|
-
- validation behavior
|
|
119
|
-
- artifact layout
|
|
120
|
-
- package-local references or runtime assumptions
|
|
121
|
-
|
|
122
|
-
Do not blindly mirror every upstream orchestrator edit into this package.
|
|
123
|
-
|
|
124
|
-
## Current work-unit direction
|
|
125
|
-
|
|
126
|
-
This package now supports a finer-grained `work-unit` layer to force tighter context boundaries between bounded units:
|
|
127
|
-
|
|
128
|
-
- `workUnitId`
|
|
129
|
-
- `workUnitGoal`
|
|
130
|
-
- `allowedFiles`
|
|
131
|
-
- `unitChecks`
|
|
132
|
-
- `unitDeliverables`
|
|
133
|
-
- `unitSummary`
|
|
134
|
-
- `carryForwardSummary`
|
|
135
|
-
|
|
136
|
-
Continuation should prefer the shorter `carryForwardSummary` before falling back to a full prior decision or handoff. The goal is to minimize cross-unit context while preserving the smallest necessary state for the next unit.
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ai-sprint-orchestration
|
|
3
|
-
description: Run long-form coding work through the packaged AI sprint orchestrator with baseline checks, validation runs, failure classification, and workflow-only iteration discipline.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# AI Sprint Orchestration
|
|
7
|
-
|
|
8
|
-
Use this skill when a task is large, multi-stage, or likely to need repeated review and continuation. The skill packages a local copy of the orchestrator so an agent can start from this skill directory instead of hunting through repo internals.
|
|
9
|
-
|
|
10
|
-
## Use this skill for
|
|
11
|
-
|
|
12
|
-
- Complex bug fixes that need investigation, implementation, and review
|
|
13
|
-
- Feature work that benefits from explicit producer/reviewer decision gates
|
|
14
|
-
- Workflow self-validation using the built-in validation specs
|
|
15
|
-
- Long-running tasks where artifact persistence and resumability matter
|
|
16
|
-
|
|
17
|
-
## Do not use this skill for
|
|
18
|
-
|
|
19
|
-
- Tiny single-file edits or trivial docs fixes
|
|
20
|
-
- Product-side sample gaps in `packages/openclaw-plugin`
|
|
21
|
-
- Changes that require editing `D:/Code/openclaw`
|
|
22
|
-
- Dashboard, stageGraph, self-optimizing sprint, or parallel orchestrator expansion
|
|
23
|
-
|
|
24
|
-
## Quick start
|
|
25
|
-
|
|
26
|
-
Run these commands from the skill package root:
|
|
27
|
-
|
|
28
|
-
1. Package smoke check:
|
|
29
|
-
`node scripts/run.mjs --self-check`
|
|
30
|
-
`node scripts/run.mjs --help`
|
|
31
|
-
2. Package-local validation:
|
|
32
|
-
`node scripts/run.mjs --task workflow-validation-minimal`
|
|
33
|
-
`node scripts/run.mjs --task workflow-validation-minimal-verify`
|
|
34
|
-
3. Inspect artifacts under:
|
|
35
|
-
`runtime/`
|
|
36
|
-
|
|
37
|
-
Internal smoke standard:
|
|
38
|
-
|
|
39
|
-
- `node scripts/run.mjs --self-check` passes
|
|
40
|
-
- `workflow-validation-minimal` reaches producer completion and produces a structured decision or classified halt
|
|
41
|
-
- `workflow-validation-minimal-verify` reaches producer completion and any reviewer failure is classified, not left opaque
|
|
42
|
-
|
|
43
|
-
If you also have the source repository available, you may additionally run the source baseline tests from `packages/openclaw-plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/`.
|
|
44
|
-
|
|
45
|
-
## Execution rules
|
|
46
|
-
|
|
47
|
-
- Treat `packages/openclaw-plugin/templates/langs/zh/skills/ai-sprint-orchestration` as the canonical code source.
|
|
48
|
-
- Treat this English package as a mirrored delivery copy of that canonical implementation.
|
|
49
|
-
- If a run fails, classify it as exactly one of:
|
|
50
|
-
- `workflow bug`
|
|
51
|
-
- `agent behavior issue`
|
|
52
|
-
- `environment issue`
|
|
53
|
-
- `sample-spec issue`
|
|
54
|
-
- If the failure is product-side or sample-side, stop after classification. Do not continue into product closure work.
|
|
55
|
-
- Only fix one workflow-only issue per iteration, then rerun baseline and validation.
|
|
56
|
-
- Always run `node scripts/run.mjs --self-check` before the first validation run in a new environment.
|
|
57
|
-
- For complex bugfix or feature work, start from a copied template spec and fill the minimum task contract before launching the sprint.
|
|
58
|
-
|
|
59
|
-
## Output expectation
|
|
60
|
-
|
|
61
|
-
Each iteration should report only:
|
|
62
|
-
|
|
63
|
-
- what changed
|
|
64
|
-
- what ran
|
|
65
|
-
- what failed
|
|
66
|
-
- failure classification
|
|
67
|
-
- the single next recommended iteration
|
package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "agent-registry-v1",
|
|
3
|
-
"description": "Registry of available agents and their supported models for AI sprint orchestrator. All models are FREE. Updated: 2026-04-04.",
|
|
4
|
-
"lastUpdated": "2026-04-04",
|
|
5
|
-
|
|
6
|
-
"agents": {
|
|
7
|
-
"opencode": {
|
|
8
|
-
"command": "npx -y opencode-ai acp",
|
|
9
|
-
"description": "OpenCode ACP adapter",
|
|
10
|
-
"version": "1.3.13",
|
|
11
|
-
"models": {
|
|
12
|
-
"minimax-cn-coding-plan/MiniMax-M2.7": {
|
|
13
|
-
"description": "MiniMax M2.7 (Chinese coding plan)",
|
|
14
|
-
"pricing": "free",
|
|
15
|
-
"recommendedTimeoutSeconds": 1200,
|
|
16
|
-
"features": ["fast", "coding-optimized", "stable"],
|
|
17
|
-
"notes": "最稳定的模型,默认 producer 选择"
|
|
18
|
-
},
|
|
19
|
-
"minimax-cn-coding-plan/MiniMax-M2.5": {
|
|
20
|
-
"description": "MiniMax M2.5 (Chinese coding plan)",
|
|
21
|
-
"pricing": "free",
|
|
22
|
-
"recommendedTimeoutSeconds": 1200,
|
|
23
|
-
"features": ["fast", "coding-optimized"],
|
|
24
|
-
"notes": "能力略弱于 M2.7"
|
|
25
|
-
},
|
|
26
|
-
"minimax-cn-coding-plan/MiniMax-M2.7-highspeed": {
|
|
27
|
-
"description": "MiniMax M2.7 highspeed variant",
|
|
28
|
-
"pricing": "free",
|
|
29
|
-
"recommendedTimeoutSeconds": 900,
|
|
30
|
-
"features": ["fast", "highspeed"],
|
|
31
|
-
"notes": "高速变体"
|
|
32
|
-
},
|
|
33
|
-
"minimax-cn-coding-plan/MiniMax-M2": {
|
|
34
|
-
"description": "MiniMax M2 (Chinese coding plan)",
|
|
35
|
-
"pricing": "free",
|
|
36
|
-
"recommendedTimeoutSeconds": 1200,
|
|
37
|
-
"features": ["fast"],
|
|
38
|
-
"notes": "旧版本"
|
|
39
|
-
},
|
|
40
|
-
"minimax-cn-coding-plan/MiniMax-M2.1": {
|
|
41
|
-
"description": "MiniMax M2.1 (Chinese coding plan)",
|
|
42
|
-
"pricing": "free",
|
|
43
|
-
"recommendedTimeoutSeconds": 1200,
|
|
44
|
-
"features": ["fast"],
|
|
45
|
-
"notes": "旧版本"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
"gemini": {
|
|
51
|
-
"command": "gemini --acp",
|
|
52
|
-
"description": "Gemini CLI with ACP support (全部免费)",
|
|
53
|
-
"models": {
|
|
54
|
-
"gemini-2.5-pro": {
|
|
55
|
-
"description": "Gemini 2.5 Pro — high reasoning capability",
|
|
56
|
-
"pricing": "free",
|
|
57
|
-
"recommendedTimeoutSeconds": 1800,
|
|
58
|
-
"features": ["high-reasoning"],
|
|
59
|
-
"notes": "高推理能力"
|
|
60
|
-
},
|
|
61
|
-
"gemini-2.5-flash": {
|
|
62
|
-
"description": "Gemini 2.5 Flash — fast response",
|
|
63
|
-
"pricing": "free",
|
|
64
|
-
"recommendedTimeoutSeconds": 1200,
|
|
65
|
-
"features": ["fast"],
|
|
66
|
-
"notes": "快速响应"
|
|
67
|
-
},
|
|
68
|
-
"gemini-2.5-flash-lite": {
|
|
69
|
-
"description": "Gemini 2.5 Flash Lite — lightweight",
|
|
70
|
-
"pricing": "free",
|
|
71
|
-
"recommendedTimeoutSeconds": 900,
|
|
72
|
-
"features": ["fast", "lite"],
|
|
73
|
-
"notes": "轻量版本"
|
|
74
|
-
},
|
|
75
|
-
"gemini-3-pro-preview": {
|
|
76
|
-
"description": "Gemini 3 Pro Preview — high reasoning, limited quota",
|
|
77
|
-
"pricing": "free",
|
|
78
|
-
"recommendedTimeoutSeconds": 1800,
|
|
79
|
-
"features": ["high-reasoning", "slow", "limited-quota"],
|
|
80
|
-
"notes": "高推理,但额度有限、很慢"
|
|
81
|
-
},
|
|
82
|
-
"gemini-3-flash-preview": {
|
|
83
|
-
"description": "Gemini 3 Flash Preview",
|
|
84
|
-
"pricing": "free",
|
|
85
|
-
"recommendedTimeoutSeconds": 1200,
|
|
86
|
-
"features": ["fast", "preview"],
|
|
87
|
-
"notes": "预览版本"
|
|
88
|
-
},
|
|
89
|
-
"gemini-3.1-pro-preview": {
|
|
90
|
-
"description": "Gemini 3.1 Pro Preview — high reasoning, limited quota",
|
|
91
|
-
"pricing": "free",
|
|
92
|
-
"recommendedTimeoutSeconds": 1800,
|
|
93
|
-
"features": ["high-reasoning", "slow", "limited-quota"],
|
|
94
|
-
"notes": "高推理,但额度有限、很慢"
|
|
95
|
-
},
|
|
96
|
-
"gemini-3.1-flash-lite-preview": {
|
|
97
|
-
"description": "Gemini 3.1 Flash Lite Preview — lightweight preview",
|
|
98
|
-
"pricing": "free",
|
|
99
|
-
"recommendedTimeoutSeconds": 900,
|
|
100
|
-
"features": ["fast", "lite", "preview"],
|
|
101
|
-
"notes": "轻量预览版本"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
"qwen": {
|
|
107
|
-
"command": "qwen --acp",
|
|
108
|
-
"description": "Qwen Code CLI with ACP support (全部免费)",
|
|
109
|
-
"models": {
|
|
110
|
-
"qwen3.6-plus": {
|
|
111
|
-
"description": "Qwen 3.6 Plus — efficient hybrid model with leading coding performance, 1M context window",
|
|
112
|
-
"pricing": "free",
|
|
113
|
-
"recommendedTimeoutSeconds": 1200,
|
|
114
|
-
"features": ["fast", "coding-optimized", "long-context"],
|
|
115
|
-
"notes": "高效混合模型,领先编码性能,100 万 token 上下文窗口"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
"claude": {
|
|
121
|
-
"command": "claude",
|
|
122
|
-
"description": "Claude Code (Anthropic)",
|
|
123
|
-
"version": "2.1.81",
|
|
124
|
-
"models": {
|
|
125
|
-
"GLM-5.1": {
|
|
126
|
-
"description": "GLM-5.1 via Claude Code adapter",
|
|
127
|
-
"pricing": "free",
|
|
128
|
-
"recommendedTimeoutSeconds": 1800,
|
|
129
|
-
"features": ["slow"],
|
|
130
|
-
"notes": "保留给 escalation/global-reviewer 角色。注意:智谱 Code Plan 限额较高,容易触发限流"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
"_notes": {
|
|
137
|
-
"paid_plans": "智谱 Code Plan 和 MiniMax Code Plan 是付费套餐,但本 registry 只登记免费可用的模型。付费套餐更稳定但不改变模型列表。",
|
|
138
|
-
"codex": "codex-acp 在当前环境无法使用,不登记。",
|
|
139
|
-
"kilocode": "kilocode ACP 是 server 模式(监听端口),不是 headless prompt-response,不兼容 acpx,不登记。",
|
|
140
|
-
"qodercli": "qodercli 没有 --acp 标志,不登记。",
|
|
141
|
-
"model_discovery": "opencode 可通过 'opencode models' 自动列出模型。其他 agent(gemini, qwen)没有 CLI 列表命令,需手动维护。"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "bugfix-complex-template",
|
|
3
|
-
"title": "Complex Bugfix Template - Replace before use",
|
|
4
|
-
"workspace": "__SKILL_PACKAGE_ROOT__",
|
|
5
|
-
"branchWorkspace": "__SKILL_PACKAGE_ROOT__",
|
|
6
|
-
"branch": "main",
|
|
7
|
-
"requiresTaskContract": true,
|
|
8
|
-
"taskContract": {
|
|
9
|
-
"goal": "<describe the bug to fix and the expected behavior after the fix>",
|
|
10
|
-
"inScope": [
|
|
11
|
-
"<target modules or files that may be changed>"
|
|
12
|
-
],
|
|
13
|
-
"outOfScope": [
|
|
14
|
-
"<forbidden modules, unrelated refactors, product-side gaps>"
|
|
15
|
-
],
|
|
16
|
-
"validationCommands": [
|
|
17
|
-
"<command 1>",
|
|
18
|
-
"<command 2>"
|
|
19
|
-
],
|
|
20
|
-
"expectedArtifacts": [
|
|
21
|
-
"decision.md",
|
|
22
|
-
"scorecard.json",
|
|
23
|
-
"<optional task-specific artifact>"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"executionScope": {
|
|
27
|
-
"maxFiles": 6,
|
|
28
|
-
"maxChecks": 4,
|
|
29
|
-
"maxDeliverables": 3
|
|
30
|
-
},
|
|
31
|
-
"maxRoundsPerStage": 2,
|
|
32
|
-
"maxRuntimeMinutes": 60,
|
|
33
|
-
"stageTimeoutMinutes": 15,
|
|
34
|
-
"stages": ["investigate", "implement-pass-1", "verify"],
|
|
35
|
-
"producer": {
|
|
36
|
-
"agent": "opencode",
|
|
37
|
-
"model": "minimax-cn-coding-plan/MiniMax-M2.7",
|
|
38
|
-
"timeoutSeconds": 180
|
|
39
|
-
},
|
|
40
|
-
"reviewerA": {
|
|
41
|
-
"agent": "opencode",
|
|
42
|
-
"model": "minimax-cn-coding-plan/MiniMax-M2.7",
|
|
43
|
-
"timeoutSeconds": 120,
|
|
44
|
-
"focus": "Validate root cause, behavioral change, and code correctness."
|
|
45
|
-
},
|
|
46
|
-
"reviewerB": {
|
|
47
|
-
"agent": "opencode",
|
|
48
|
-
"model": "minimax-cn-coding-plan/MiniMax-M2.7",
|
|
49
|
-
"timeoutSeconds": 120,
|
|
50
|
-
"focus": "Validate scope control, verification quality, and regression risk."
|
|
51
|
-
},
|
|
52
|
-
"context": [
|
|
53
|
-
"This is a generic complex bugfix sprint template.",
|
|
54
|
-
"Replace all placeholder contract values before running.",
|
|
55
|
-
"Use this template only for workflow-contained bugfix work, not for product-side closure in out-of-scope repositories."
|
|
56
|
-
],
|
|
57
|
-
"stageGoals": {
|
|
58
|
-
"investigate": [
|
|
59
|
-
"Establish the most likely root cause.",
|
|
60
|
-
"Narrow the allowed file set and verification plan.",
|
|
61
|
-
"Produce a bugfix plan that fits one bounded implementation round."
|
|
62
|
-
],
|
|
63
|
-
"implement-pass-1": [
|
|
64
|
-
"Implement the smallest sufficient bugfix within the declared scope.",
|
|
65
|
-
"Run the planned verification commands.",
|
|
66
|
-
"Record evidence that the observed behavior changed."
|
|
67
|
-
],
|
|
68
|
-
"verify": [
|
|
69
|
-
"Verify the fix changed the intended behavior.",
|
|
70
|
-
"Check whether any regression risk remains unverified.",
|
|
71
|
-
"Decide whether the bugfix is ready to stop, continue, or revise."
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"stageCriteria": {
|
|
75
|
-
"investigate": {
|
|
76
|
-
"requiredApprovals": 2,
|
|
77
|
-
"requiredProducerSections": ["SUMMARY", "CHANGES", "EVIDENCE", "CODE_EVIDENCE", "KEY_EVENTS", "HYPOTHESIS_MATRIX", "CHECKS", "OPEN_RISKS"],
|
|
78
|
-
"requiredReviewerSections": ["VERDICT", "BLOCKERS", "FINDINGS", "CODE_EVIDENCE", "HYPOTHESIS_MATRIX", "NEXT_FOCUS", "CHECKS"],
|
|
79
|
-
"scoringDimensions": ["root_cause_quality", "scope_definition"],
|
|
80
|
-
"dimensionThreshold": 3,
|
|
81
|
-
"requiredDeliverables": ["root_cause_hypothesis", "execution_plan", "verification_plan"]
|
|
82
|
-
},
|
|
83
|
-
"implement-pass-1": {
|
|
84
|
-
"requiredApprovals": 2,
|
|
85
|
-
"requiredProducerSections": ["SUMMARY", "CHANGES", "EVIDENCE", "CODE_EVIDENCE", "KEY_EVENTS", "HYPOTHESIS_MATRIX", "CHECKS", "OPEN_RISKS", "CONTRACT"],
|
|
86
|
-
"requiredReviewerSections": ["VERDICT", "BLOCKERS", "FINDINGS", "CODE_EVIDENCE", "HYPOTHESIS_MATRIX", "NEXT_FOCUS", "CHECKS"],
|
|
87
|
-
"scoringDimensions": ["behavior_change", "verification_quality", "scope_control"],
|
|
88
|
-
"dimensionThreshold": 3,
|
|
89
|
-
"requiredDeliverables": ["code_change", "verification_evidence", "risk_summary"]
|
|
90
|
-
},
|
|
91
|
-
"verify": {
|
|
92
|
-
"requiredApprovals": 2,
|
|
93
|
-
"requiredProducerSections": ["SUMMARY", "CHANGES", "EVIDENCE", "CODE_EVIDENCE", "KEY_EVENTS", "HYPOTHESIS_MATRIX", "CHECKS", "OPEN_RISKS"],
|
|
94
|
-
"requiredReviewerSections": ["VERDICT", "BLOCKERS", "FINDINGS", "CODE_EVIDENCE", "HYPOTHESIS_MATRIX", "NEXT_FOCUS", "CHECKS"],
|
|
95
|
-
"scoringDimensions": ["artifact_verification", "residual_risk"],
|
|
96
|
-
"dimensionThreshold": 3,
|
|
97
|
-
"requiredDeliverables": ["verified_behavior_change", "residual_risk_assessment"]
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"stageRoleTimeouts": {
|
|
101
|
-
"investigate": { "producer": 180, "reviewer_a": 120, "reviewer_b": 120 },
|
|
102
|
-
"implement-pass-1": { "producer": 240, "reviewer_a": 120, "reviewer_b": 120 },
|
|
103
|
-
"verify": { "producer": 120, "reviewer_a": 90, "reviewer_b": 90 }
|
|
104
|
-
},
|
|
105
|
-
"continuationSpec": null,
|
|
106
|
-
"recoverySpec": null
|
|
107
|
-
}
|