speccrew 0.7.55 → 0.7.56
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.
|
@@ -31,8 +31,8 @@ Phase 2: Resource Verification
|
|
|
31
31
|
Phase 3: Framework Evaluation (HARD STOP)
|
|
32
32
|
└── Dispatch speccrew-sd-framework-evaluate skill → User confirms
|
|
33
33
|
↓
|
|
34
|
-
Phase 4: Generate DESIGN-OVERVIEW.md
|
|
35
|
-
└──
|
|
34
|
+
Phase 4: Generate DESIGN-OVERVIEW.md (WORKER-DISPATCH)
|
|
35
|
+
└── Dispatch speccrew-sd-design-overview-generate skill → Wait for worker → Validate output
|
|
36
36
|
↓
|
|
37
37
|
Phase 5: Dispatch Per-Platform Skills
|
|
38
38
|
├── Single Feature + Single Platform → Direct skill invocation
|
|
@@ -57,7 +57,6 @@ This agent is an **orchestrator/dispatcher**. For system design execution (Phase
|
|
|
57
57
|
### Agent-Allowed Deliverables
|
|
58
58
|
|
|
59
59
|
This agent MAY directly create/modify ONLY the following files:
|
|
60
|
-
- ✅ `DESIGN-OVERVIEW.md`
|
|
61
60
|
- ✅ `DISPATCH-PROGRESS.json` (via update-progress.js script only)
|
|
62
61
|
- ✅ `.checkpoints.json` (via update-progress.js script only)
|
|
63
62
|
- ✅ Progress summary messages to user
|
|
@@ -65,6 +64,9 @@ This agent MAY directly create/modify ONLY the following files:
|
|
|
65
64
|
> Note: `framework-evaluation.md` is generated **ONLY** by the `speccrew-sd-framework-evaluate` skill.
|
|
66
65
|
> The Agent MUST NOT create or modify this file manually.
|
|
67
66
|
|
|
67
|
+
> Note: `DESIGN-OVERVIEW.md` is generated **ONLY** by the `speccrew-sd-design-overview-generate` skill dispatched to a worker agent.
|
|
68
|
+
> The Agent MUST NOT create or modify this file manually.
|
|
69
|
+
|
|
68
70
|
### FORBIDDEN Actions (When Features ≥ 2 OR Platforms ≥ 2)
|
|
69
71
|
|
|
70
72
|
1. ❌ DO NOT invoke `speccrew-sd-backend` skill directly
|
|
@@ -124,7 +126,7 @@ This agent MUST execute tasks continuously without unnecessary interruptions.
|
|
|
124
126
|
| Phase 2 | KNOWLEDGE-FIRST | MUST load ALL techs knowledge before Phase 3. DO NOT assume technology stack |
|
|
125
127
|
| Phase 3 | WORKER-DISPATCH | Framework evaluation MUST be dispatched to speccrew-task-worker via **Agent tool**. Agent MUST NOT invoke speccrew-sd-framework-evaluate via Skill tool. |
|
|
126
128
|
| Phase 3 | HARD STOP | User must confirm framework decisions before proceeding to Phase 4 |
|
|
127
|
-
| Phase 4 |
|
|
129
|
+
| Phase 4 | WORKER-DISPATCH | DESIGN-OVERVIEW.md generation MUST be dispatched to speccrew-task-worker via **Agent tool**. Agent MUST NOT generate this file inline. |
|
|
128
130
|
| Phase 5 | SKILL-ONLY | Platform design workers MUST use platform-specific design skills. Agent MUST NOT write design documents itself |
|
|
129
131
|
| Phase 6 | HARD STOP | User must confirm all designs before finalizing |
|
|
130
132
|
| ALL | ABORT ON FAILURE | If any skill invocation fails → STOP and report. Do NOT generate content manually as fallback |
|
|
@@ -529,6 +531,19 @@ Proceed to Phase 4? (Confirm/Cancel)
|
|
|
529
531
|
|
|
530
532
|
## Phase 4: Generate DESIGN-OVERVIEW.md (L1)
|
|
531
533
|
|
|
534
|
+
> 🛑 **CRITICAL: Phase 4 dispatch-to-worker Protocol**
|
|
535
|
+
>
|
|
536
|
+
> When executing Phase 4 (Design Overview Generation):
|
|
537
|
+
> 1. Use **Agent tool** to create a new sub-Agent
|
|
538
|
+
> 2. Specify sub-Agent role as **speccrew-task-worker**
|
|
539
|
+
> 3. Pass `skill_path`: `${workspace_path}/.speccrew/skills/speccrew-sd-design-overview-generate/SKILL.md`
|
|
540
|
+
> 4. Pass context parameters: workspace_path, iteration_path, feature_registry_path, techs_manifest_path, framework_evaluation_path, output_path
|
|
541
|
+
> 5. **Wait for Worker completion** before proceeding to validation
|
|
542
|
+
>
|
|
543
|
+
> **FORBIDDEN**:
|
|
544
|
+
> - ❌ DO NOT generate DESIGN-OVERVIEW.md yourself
|
|
545
|
+
> - ❌ DO NOT use Skill tool to invoke speccrew-sd-design-overview-generate
|
|
546
|
+
|
|
532
547
|
Create the top-level overview at:
|
|
533
548
|
`{iterations_dir}/{current}/03.system-design/DESIGN-OVERVIEW.md`
|
|
534
549
|
|
|
@@ -1025,7 +1040,7 @@ Otherwise
|
|
|
1025
1040
|
- Phase 2: MUST verify ALL techs knowledge files exist (manifest + platform-specific stacks) before Phase 3
|
|
1026
1041
|
- Phase 3: MUST dispatch speccrew-sd-framework-evaluate via speccrew-task-worker (Agent tool) — DO NOT evaluate yourself and DO NOT invoke via Skill tool
|
|
1027
1042
|
- Phase 3: User MUST confirm framework decisions (🛑 HARD STOP) before proceeding to Phase 4
|
|
1028
|
-
- Phase 4: MUST generate DESIGN-OVERVIEW.md
|
|
1043
|
+
- Phase 4: MUST dispatch speccrew-task-worker with speccrew-sd-design-overview-generate skill to generate DESIGN-OVERVIEW.md BEFORE dispatching platform workers
|
|
1029
1044
|
- Phase 5: MUST use speccrew-task-worker to dispatch platform-specific design skills for parallel execution (never direct skill invocation for batch)
|
|
1030
1045
|
- Phase 5: MUST use update-progress.js script for ALL progress tracking (DISPATCH-PROGRESS.json, .checkpoints.json, WORKFLOW-PROGRESS.json)
|
|
1031
1046
|
- Phase 6: MUST collect ALL worker results and present joint summary before requesting user confirmation (🛑 HARD STOP)
|
|
@@ -1040,7 +1055,7 @@ Otherwise
|
|
|
1040
1055
|
- DO NOT skip framework evaluation checkpoint — user confirmation is mandatory
|
|
1041
1056
|
- DO NOT assume technology stack without verifying techs knowledge exists
|
|
1042
1057
|
- DO NOT generate designs for platforms not in techs-manifest
|
|
1043
|
-
- DO NOT generate
|
|
1058
|
+
- DO NOT generate DESIGN-OVERVIEW.md yourself — dispatch speccrew-task-worker with speccrew-sd-design-overview-generate skill. Agent does NOT directly generate ANY system design documents.
|
|
1044
1059
|
- DO NOT invoke platform design skills directly when 2+ features or 2+ platforms exist — use speccrew-task-worker
|
|
1045
1060
|
- DO NOT create or manually edit DISPATCH-PROGRESS.json, .checkpoints.json, or WORKFLOW-PROGRESS.json — use update-progress.js script only
|
|
1046
1061
|
- DO NOT update WORKFLOW-PROGRESS.json status to "confirmed" before joint user confirmation in Phase 6
|
|
@@ -35,7 +35,7 @@ System Designer 的核心编排技能,负责:
|
|
|
35
35
|
2. **Preparation** - 加载 Feature Registry,验证文件存在性
|
|
36
36
|
3. **Resource Verification** - 验证技术知识库可用性
|
|
37
37
|
4. **Framework Evaluation** - 派发单个 worker agent 执行框架评估技能,等待 worker 完成并验证 framework-evaluation.md 生成后进入下一阶段(HARD STOP 等待用户确认)
|
|
38
|
-
5. **Design Overview** -
|
|
38
|
+
5. **Design Overview** - 派发 worker agent 执行 speccrew-sd-design-overview-generate 技能生成 DESIGN-OVERVIEW.md,等待 worker 完成并验证输出
|
|
39
39
|
6. **Platform Dispatch** - 分发各平台设计任务给 Worker
|
|
40
40
|
7. **Joint Confirmation** - 联合确认所有设计文档
|
|
41
41
|
|
|
@@ -105,6 +105,18 @@ This skill MUST execute tasks continuously without unnecessary interruptions.
|
|
|
105
105
|
|
|
106
106
|
**CRITICAL**: The `Agent tool` creates a NEW agent session — this is completely different from the `Skill tool` which executes inline.
|
|
107
107
|
|
|
108
|
+
### Phase 4 Execution Method — Worker Agent Dispatch
|
|
109
|
+
|
|
110
|
+
**HOW TO DISPATCH**: When executing Phase 4 block P4-B1 (action="dispatch-to-worker"):
|
|
111
|
+
1. Use the **Agent tool** to create a new `speccrew-task-worker` agent
|
|
112
|
+
2. Pass `skill_path` to the worker: `${workspace_path}/.speccrew/skills/speccrew-sd-design-overview-generate/SKILL.md`
|
|
113
|
+
3. Pass context parameters: workspace_path, iteration_path, feature_registry_path (.prd-feature-list.json path), techs_manifest_path (techs-manifest.json path), framework_evaluation_path (framework-evaluation.md path), output_path
|
|
114
|
+
4. **Wait** for the worker agent to complete and return results
|
|
115
|
+
5. After worker completes, verify DESIGN-OVERVIEW.md exists at output_path
|
|
116
|
+
6. Then proceed to Phase 4 checkpoint validation (P4-CP1)
|
|
117
|
+
|
|
118
|
+
**CRITICAL**: The `Agent tool` creates a NEW agent session — this is completely different from the `Skill tool` which executes inline.
|
|
119
|
+
|
|
108
120
|
### HARD STOP Checkpoints
|
|
109
121
|
|
|
110
122
|
This workflow has **mandatory HARD STOP** checkpoints at:
|
|
@@ -130,3 +142,5 @@ DO NOT proceed past these checkpoints without explicit user confirmation.
|
|
|
130
142
|
- **DO NOT create scripts for batch analysis** — Workers handle this via their own skill
|
|
131
143
|
- **DO NOT fallback to inline execution if worker fails** — ABORT instead
|
|
132
144
|
- **DO NOT skip reading workflow.agentflow.xml** — XML is the execution authority
|
|
145
|
+
- **DO NOT generate DESIGN-OVERVIEW.md yourself** — Dispatch speccrew-task-worker with speccrew-sd-design-overview-generate skill
|
|
146
|
+
- **DO NOT use Skill tool for Phase 4 design overview generation** — Skill tool executes inline, Agent tool creates a worker
|
|
@@ -245,25 +245,43 @@
|
|
|
245
245
|
</block>
|
|
246
246
|
</sequence>
|
|
247
247
|
|
|
248
|
-
<!-- ========== Phase 4: Generate DESIGN-OVERVIEW.md ========== -->
|
|
249
|
-
<sequence name="Phase 4: Generate DESIGN-OVERVIEW.md">
|
|
250
|
-
<block type="rule" id="P4-
|
|
251
|
-
<field name="text">DESIGN-OVERVIEW.md
|
|
248
|
+
<!-- ========== Phase 4: Generate DESIGN-OVERVIEW.md (WORKER-DISPATCH) ========== -->
|
|
249
|
+
<sequence name="Phase 4: Generate DESIGN-OVERVIEW.md (WORKER-DISPATCH)">
|
|
250
|
+
<block type="rule" id="P4-R0" level="forbidden" desc="Phase 4 Worker Dispatch Enforcement">
|
|
251
|
+
<field name="text">FORBIDDEN: Do NOT inline-generate DESIGN-OVERVIEW.md yourself</field>
|
|
252
|
+
<field name="text">MANDATORY: DESIGN-OVERVIEW.md generation MUST be delegated to worker agent via block P4-B1</field>
|
|
253
|
+
<field name="text">TOOL MAPPING: action="dispatch-to-worker" → Use Agent tool (NOT Skill tool) to create speccrew-task-worker agent</field>
|
|
254
|
+
<field name="text">If worker dispatch fails, ABORT — do NOT fallback to inline generation</field>
|
|
252
255
|
</block>
|
|
253
256
|
|
|
254
|
-
<block type="task" id="P4-B1" action="
|
|
255
|
-
desc="
|
|
256
|
-
<field name="
|
|
257
|
-
<field name="
|
|
258
|
-
<field name="
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
257
|
+
<block type="task" id="P4-B1" action="dispatch-to-worker" status="pending"
|
|
258
|
+
desc="Dispatch single worker agent for design overview generation. Use Agent tool, NOT Skill tool.">
|
|
259
|
+
<field name="agent">speccrew-task-worker</field>
|
|
260
|
+
<field name="skill">speccrew-sd-design-overview-generate</field>
|
|
261
|
+
<field name="skill_path">${workspace_path}/.speccrew/skills/speccrew-sd-design-overview-generate/SKILL.md</field>
|
|
262
|
+
<field name="context">
|
|
263
|
+
workspace_path: ${workspace_path},
|
|
264
|
+
iteration_path: ${iterations_dir}/${current_iteration},
|
|
265
|
+
feature_registry_path: ${iterations_dir}/${current_iteration}/01.product-requirement/.prd-feature-list.json,
|
|
266
|
+
techs_manifest_path: ${workspace_path}/knowledges/techs/techs-manifest.json,
|
|
267
|
+
framework_evaluation_path: ${iterations_dir}/${current_iteration}/03.system-design/framework-evaluation.md,
|
|
268
|
+
output_path: ${iterations_dir}/${current_iteration}/03.system-design/DESIGN-OVERVIEW.md
|
|
263
269
|
</field>
|
|
270
|
+
<field name="note">Worker receives ALL context above and generates DESIGN-OVERVIEW.md. Orchestrator MUST NOT read feature files or generate this document itself.</field>
|
|
271
|
+
</block>
|
|
272
|
+
|
|
273
|
+
<block type="gateway" id="P4-GW1" mode="wait" desc="Wait for design overview worker to complete">
|
|
274
|
+
<field name="wait_for">P4-B1</field>
|
|
275
|
+
<field name="timeout">300</field>
|
|
276
|
+
</block>
|
|
277
|
+
|
|
278
|
+
<block type="task" id="P4-B2" action="read-file" status="pending"
|
|
279
|
+
desc="Verify DESIGN-OVERVIEW.md was generated by worker">
|
|
280
|
+
<field name="path">${iterations_dir}/${current_iteration}/03.system-design/DESIGN-OVERVIEW.md</field>
|
|
281
|
+
<field name="output" var="design_overview_content"/>
|
|
264
282
|
</block>
|
|
265
283
|
|
|
266
|
-
<!--
|
|
284
|
+
<!-- Validation Checkpoint -->
|
|
267
285
|
<block type="checkpoint" id="P4-CP1" name="design_overview" desc="DESIGN-OVERVIEW validation">
|
|
268
286
|
<field name="conditions">file_exists, has_design_scope_section, has_tech_decisions_section, has_platform_design_index, index_covers_all_feature_platform_combinations</field>
|
|
269
287
|
</block>
|