speccrew 0.7.48 → 0.7.50

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.
@@ -34,7 +34,7 @@ System Designer 的核心编排技能,负责:
34
34
  1. **Stage Gate** - 验证 Feature Design 阶段已确认
35
35
  2. **Preparation** - 加载 Feature Registry,验证文件存在性
36
36
  3. **Resource Verification** - 验证技术知识库可用性
37
- 4. **Framework Evaluation** - 调用框架评估技能(HARD STOP 等待用户确认)
37
+ 4. **Framework Evaluation** - 派发单个 worker agent 执行框架评估技能,等待 worker 完成并验证 framework-evaluation.md 生成后进入下一阶段(HARD STOP 等待用户确认)
38
38
  5. **Design Overview** - 生成 DESIGN-OVERVIEW.md
39
39
  6. **Platform Dispatch** - 分发各平台设计任务给 Worker
40
40
  7. **Joint Confirmation** - 联合确认所有设计文档
@@ -96,7 +96,7 @@ This skill MUST execute tasks continuously without unnecessary interruptions.
96
96
  ### HARD STOP Checkpoints
97
97
 
98
98
  This workflow has **mandatory HARD STOP** checkpoints at:
99
- - **Phase 3.3**: Framework evaluation confirmation (user MUST approve)
99
+ - **Phase 3.5**: Framework evaluation confirmation (user MUST approve)
100
100
  - **Phase 6.1**: Joint design confirmation (user MUST approve all designs)
101
101
 
102
102
  DO NOT proceed past these checkpoints without explicit user confirmation.
@@ -163,39 +163,55 @@
163
163
 
164
164
  <!-- ========== Phase 3: Framework Evaluation (HARD STOP) ========== -->
165
165
  <sequence name="Phase 3: Framework Evaluation">
166
- <block type="rule" id="P3-R1" level="mandatory" desc="Skill-Only Rule">
167
- <field name="text">Framework evaluation MUST use speccrew-sd-framework-evaluate skill</field>
166
+ <block type="rule" id="P3-R1" level="mandatory" desc="Worker Dispatch Rule">
167
+ <field name="text">Framework evaluation MUST be dispatched to a single speccrew-task-worker agent</field>
168
168
  <field name="text">Agent MUST NOT perform capability gap analysis or framework recommendations itself</field>
169
+ <field name="text">skill_path MUST be explicitly passed to worker — worker relies on glob search will fail on first run</field>
169
170
  </block>
170
171
 
171
- <!-- Step 3.1: Invoke Framework Evaluation Skill -->
172
- <block type="task" id="P3-B1" action="run-skill" status="pending"
173
- desc="Invoke framework evaluation skill">
174
- <field name="skill">speccrew-sd-framework-evaluate</field>
175
- <field name="params">
172
+ <!-- Step 3.1: Dispatch Worker Agent for Framework Evaluation -->
173
+ <block type="task" id="P3-B1" action="dispatch-to-worker" status="pending"
174
+ desc="Dispatch single worker agent for framework evaluation">
175
+ <field name="worker">speccrew-task-worker</field>
176
+ <field name="max_concurrent">1</field>
177
+ <field name="skill_path">.speccrew/skills/speccrew-sd-framework-evaluate/SKILL.md</field>
178
+ <field name="context">
179
+ workspace_path: ${workspace_path},
180
+ iteration_path: ${iterations_dir}/${current_iteration},
176
181
  feature_spec_paths: ${feature_registry.feature_spec_paths},
177
182
  api_contract_paths: ${feature_registry.api_contract_paths},
178
183
  techs_knowledge_paths: ${dispatch_params.techs_knowledge_paths},
179
- iteration_path: ${iterations_dir}/${current_iteration},
180
184
  output_path: ${iterations_dir}/${current_iteration}/03.system-design/framework-evaluation.md
181
185
  </field>
186
+ </block>
187
+
188
+ <!-- Step 3.2: Wait for Worker Completion -->
189
+ <block type="gateway" id="P3-GW1" mode="wait" desc="Wait for framework evaluation worker to complete">
190
+ <field name="wait_for">P3-B1</field>
191
+ <field name="timeout">600</field>
192
+ </block>
193
+
194
+ <!-- Step 3.3: Validate Worker Output -->
195
+ <block type="task" id="P3-B2" action="read-file" status="pending"
196
+ desc="Verify framework-evaluation.md was generated">
197
+ <field name="path">${iterations_dir}/${current_iteration}/03.system-design/framework-evaluation.md</field>
182
198
  <field name="output" var="framework_result"/>
183
199
  </block>
184
200
 
185
- <!-- Step 3.2: Validate Skill Output -->
201
+ <!-- Step 3.4: Validate Worker Result -->
186
202
  <block type="gateway" id="P3-G1" mode="exclusive" desc="Check framework evaluation result">
187
- <branch test="${framework_result.status} == 'SUCCESS'" name="Framework Evaluation Success">
188
- <block type="event" id="P3-E1" action="log" desc="Framework evaluation completed"/>
203
+ <branch test="${framework_result} exists" name="Framework Evaluation Success">
204
+ <block type="event" id="P3-E1" action="log" desc="Framework evaluation completed by worker"/>
189
205
  </branch>
190
206
  <branch default="true" name="Framework Evaluation Failed">
191
207
  <block type="event" id="P3-E2" action="log" desc="Report framework evaluation failure">
192
- <field name="message">Framework evaluation skill failed: ${framework_result.error}</field>
208
+ <field name="message">Framework evaluation worker failed: framework-evaluation.md was not generated at ${iterations_dir}/${current_iteration}/03.system-design/framework-evaluation.md</field>
193
209
  </block>
194
210
  <block type="event" id="P3-E3" action="abort" desc="Stop workflow"/>
195
211
  </branch>
196
212
  </block>
197
213
 
198
- <!-- Step 3.3: User Confirmation (HARD STOP) -->
214
+ <!-- Step 3.5: User Confirmation (HARD STOP) -->
199
215
  <block type="event" id="P3-E4" action="confirm" desc="Request user confirmation for framework decisions">
200
216
  <field name="prompt">🛑 FRAMEWORK EVALUATION — AWAITING CONFIRMATION. Do you approve these framework decisions? (确认/修改/取消)</field>
201
217
  <field name="template">framework-evaluation-summary</field>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.7.48",
3
+ "version": "0.7.50",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {