speccrew 0.7.55 → 0.7.57
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 + HARD STOP)
|
|
35
|
+
└── Dispatch speccrew-sd-design-overview-generate skill → Wait for worker → Validate → User confirms
|
|
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 + HARD STOP | DESIGN-OVERVIEW.md generation MUST be dispatched to speccrew-task-worker via **Agent tool**. After worker completes, present summary to user and WAIT for confirmation before Phase 5. |
|
|
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,33 @@ 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
|
+
|
|
547
|
+
> ⚠️ **HARD STOP — Phase 4.5: DESIGN-OVERVIEW.md Confirmation**
|
|
548
|
+
> After worker completes and DESIGN-OVERVIEW.md passes validation:
|
|
549
|
+
> 1. Present summary to user: feature count, platform count, matrix entries, key design decisions
|
|
550
|
+
> 2. **STOP** — Wait for user explicit confirmation
|
|
551
|
+
> 3. User responses:
|
|
552
|
+
> - "确认" or "OK" → Update checkpoint, proceed to Phase 5
|
|
553
|
+
> - "修改" + specific changes → Re-dispatch worker with adjustments
|
|
554
|
+
> - "取消" → Abort workflow
|
|
555
|
+
> **FORBIDDEN during HARD STOP**:
|
|
556
|
+
> - ❌ DO NOT update checkpoint until user confirms
|
|
557
|
+
> - ❌ DO NOT suggest next steps
|
|
558
|
+
> - ❌ DO NOT proceed to Phase 5
|
|
559
|
+
> - ❌ DO NOT auto-approve even if all validations pass
|
|
560
|
+
|
|
532
561
|
Create the top-level overview at:
|
|
533
562
|
`{iterations_dir}/{current}/03.system-design/DESIGN-OVERVIEW.md`
|
|
534
563
|
|
|
@@ -1025,7 +1054,7 @@ Otherwise
|
|
|
1025
1054
|
- Phase 2: MUST verify ALL techs knowledge files exist (manifest + platform-specific stacks) before Phase 3
|
|
1026
1055
|
- 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
1056
|
- Phase 3: User MUST confirm framework decisions (🛑 HARD STOP) before proceeding to Phase 4
|
|
1028
|
-
- Phase 4: MUST generate DESIGN-OVERVIEW.md
|
|
1057
|
+
- Phase 4: MUST dispatch speccrew-task-worker with speccrew-sd-design-overview-generate skill to generate DESIGN-OVERVIEW.md BEFORE dispatching platform workers
|
|
1029
1058
|
- Phase 5: MUST use speccrew-task-worker to dispatch platform-specific design skills for parallel execution (never direct skill invocation for batch)
|
|
1030
1059
|
- Phase 5: MUST use update-progress.js script for ALL progress tracking (DISPATCH-PROGRESS.json, .checkpoints.json, WORKFLOW-PROGRESS.json)
|
|
1031
1060
|
- Phase 6: MUST collect ALL worker results and present joint summary before requesting user confirmation (🛑 HARD STOP)
|
|
@@ -1040,7 +1069,7 @@ Otherwise
|
|
|
1040
1069
|
- DO NOT skip framework evaluation checkpoint — user confirmation is mandatory
|
|
1041
1070
|
- DO NOT assume technology stack without verifying techs knowledge exists
|
|
1042
1071
|
- DO NOT generate designs for platforms not in techs-manifest
|
|
1043
|
-
- DO NOT generate
|
|
1072
|
+
- 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
1073
|
- DO NOT invoke platform design skills directly when 2+ features or 2+ platforms exist — use speccrew-task-worker
|
|
1045
1074
|
- DO NOT create or manually edit DISPATCH-PROGRESS.json, .checkpoints.json, or WORKFLOW-PROGRESS.json — use update-progress.js script only
|
|
1046
1075
|
- 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,10 +105,25 @@ 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
|
+
7. Present DESIGN-OVERVIEW.md summary to user (feature count, platform count, matrix entries)
|
|
118
|
+
8. **⚠️ HARD STOP** — Wait for user explicit confirmation before proceeding to Phase 5
|
|
119
|
+
|
|
120
|
+
**CRITICAL**: The `Agent tool` creates a NEW agent session — this is completely different from the `Skill tool` which executes inline.
|
|
121
|
+
|
|
108
122
|
### HARD STOP Checkpoints
|
|
109
123
|
|
|
110
124
|
This workflow has **mandatory HARD STOP** checkpoints at:
|
|
111
|
-
- **Phase 3.5**: Framework evaluation confirmation (user MUST approve)
|
|
125
|
+
- **Phase 3.5**: Framework evaluation confirmation (user MUST approve framework decisions)
|
|
126
|
+
- **Phase 4.5**: Design overview confirmation (user MUST approve DESIGN-OVERVIEW.md before Phase 5 dispatch)
|
|
112
127
|
- **Phase 6.1**: Joint design confirmation (user MUST approve all designs)
|
|
113
128
|
|
|
114
129
|
DO NOT proceed past these checkpoints without explicit user confirmation.
|
|
@@ -130,3 +145,5 @@ DO NOT proceed past these checkpoints without explicit user confirmation.
|
|
|
130
145
|
- **DO NOT create scripts for batch analysis** — Workers handle this via their own skill
|
|
131
146
|
- **DO NOT fallback to inline execution if worker fails** — ABORT instead
|
|
132
147
|
- **DO NOT skip reading workflow.agentflow.xml** — XML is the execution authority
|
|
148
|
+
- **DO NOT generate DESIGN-OVERVIEW.md yourself** — Dispatch speccrew-task-worker with speccrew-sd-design-overview-generate skill
|
|
149
|
+
- **DO NOT use Skill tool for Phase 4 design overview generation** — Skill tool executes inline, Agent tool creates a worker
|
|
@@ -245,28 +245,55 @@
|
|
|
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>
|
|
264
271
|
</block>
|
|
265
272
|
|
|
266
|
-
|
|
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"/>
|
|
282
|
+
</block>
|
|
283
|
+
|
|
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>
|
|
288
|
+
|
|
289
|
+
<!-- Phase 4.5: HARD STOP — User must confirm DESIGN-OVERVIEW.md -->
|
|
290
|
+
<block type="rule" id="P4-HS1" level="mandatory" desc="HARD STOP — DESIGN-OVERVIEW.md confirmation required">
|
|
291
|
+
<field name="text">⚠️ HARD STOP — WAIT FOR USER CONFIRMATION</field>
|
|
292
|
+
<field name="text">Present DESIGN-OVERVIEW.md summary to user (feature count, platform count, matrix entries, key sections)</field>
|
|
293
|
+
<field name="text">User responses: "确认"/"OK" → proceed to Phase 5 | "修改" + changes → re-dispatch worker | "取消" → abort</field>
|
|
294
|
+
<field name="text">FORBIDDEN: Do NOT update checkpoint, suggest next steps, or proceed to Phase 5 until user explicitly confirms</field>
|
|
295
|
+
<field name="text">FORBIDDEN: Do NOT auto-approve even if validation passes — user review is mandatory</field>
|
|
296
|
+
</block>
|
|
270
297
|
</sequence>
|
|
271
298
|
|
|
272
299
|
<!-- ========== Phase 5: Dispatch Per-Platform Skills ========== -->
|