speccrew 0.3.4 → 0.3.5
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.
|
@@ -286,9 +286,13 @@ When involving related business domains, read `speccrew-workspace/knowledges/biz
|
|
|
286
286
|
- Technical architecture documents (handled by speccrew-system-designer)
|
|
287
287
|
- Code conventions (handled by speccrew-system-designer/speccrew-dev)
|
|
288
288
|
|
|
289
|
-
## Phase 3: Design
|
|
289
|
+
## Phase 3: Design — Worker Dispatch
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
> ⚠️ **MANDATORY RULES FOR PHASE 3:**
|
|
292
|
+
> 1. **DO NOT ask user which strategy to use** — the strategy is determined by Phase 2 extraction results, not user choice.
|
|
293
|
+
> 2. **DO NOT invoke the Feature Design skill directly** when there are multiple Features. You MUST dispatch `speccrew-task-worker` agents.
|
|
294
|
+
> 3. **Dispatch granularity is PER FEATURE, not per module.** Each Feature gets its own worker and its own output file.
|
|
295
|
+
> 4. **DO NOT generate Feature Spec documents yourself.** Your role is to DISPATCH workers, not to write specs.
|
|
292
296
|
|
|
293
297
|
### 3.1 Dispatch Mode Decision
|
|
294
298
|
|
|
@@ -296,13 +300,13 @@ Based on Phase 2 Feature Breakdown extraction:
|
|
|
296
300
|
|
|
297
301
|
| Condition | Dispatch Mode | Behavior |
|
|
298
302
|
|-----------|---------------|----------|
|
|
299
|
-
| Feature Breakdown found with
|
|
300
|
-
| Feature Breakdown found with
|
|
301
|
-
| No Feature Breakdown (legacy PRD) | Module-granular | Each Sub-PRD gets one worker (backward compatible) |
|
|
303
|
+
| Feature Breakdown found with 2+ Features | Feature-granular (worker dispatch) | Each Feature gets its own worker |
|
|
304
|
+
| Feature Breakdown found with 1 Feature | Direct skill invocation | Invoke skill directly (only case where this is allowed) |
|
|
305
|
+
| No Feature Breakdown (legacy PRD) | Module-granular (worker dispatch) | Each Sub-PRD gets one worker (backward compatible) |
|
|
302
306
|
|
|
303
307
|
### 3.2 Feature-Granular Dispatch (New Behavior)
|
|
304
308
|
|
|
305
|
-
When Feature Breakdown is present
|
|
309
|
+
When Feature Breakdown is present and has 2+ Features:
|
|
306
310
|
|
|
307
311
|
#### Single Feature (Direct Skill Invocation)
|
|
308
312
|
If the entire iteration has only **one Feature** in the registry:
|
|
@@ -318,9 +322,11 @@ Invoke Skill directly with parameters:
|
|
|
318
322
|
- `frontend_platforms`: List of frontend platforms from techs-manifest
|
|
319
323
|
|
|
320
324
|
#### Multiple Features (Parallel Worker Dispatch)
|
|
321
|
-
If the iteration has **
|
|
325
|
+
If the iteration has **2+ Features** in the registry:
|
|
322
326
|
|
|
323
|
-
|
|
327
|
+
⚠️ **YOU MUST dispatch `speccrew-task-worker` agents. DO NOT invoke the skill yourself.**
|
|
328
|
+
|
|
329
|
+
Invoke `speccrew-task-worker` agents in parallel, **one worker per Feature** (NOT per module):
|
|
324
330
|
- Each worker receives:
|
|
325
331
|
- `skill_path`: `speccrew-fd-feature-design/SKILL.md`
|
|
326
332
|
- `context`:
|
|
@@ -339,6 +345,26 @@ Invoke `speccrew-task-worker` agents in parallel, one per Feature:
|
|
|
339
345
|
- Worker 2: Feature F-CRM-02 → Feature Spec for Customer Detail
|
|
340
346
|
- Worker N: Feature F-CRM-0N → Feature Spec for Feature N
|
|
341
347
|
|
|
348
|
+
- **Batch dispatch for large feature counts**:
|
|
349
|
+
When total features > 6, dispatch in batches to avoid overload:
|
|
350
|
+
```
|
|
351
|
+
Batch 1: Dispatch up to 6 workers (Features 1-6)
|
|
352
|
+
Wait for all workers in Batch 1 to complete
|
|
353
|
+
Update .checkpoints.json feature_spec_status for completed features
|
|
354
|
+
|
|
355
|
+
Batch 2: Dispatch next 6 workers (Features 7-12)
|
|
356
|
+
Wait for all workers in Batch 2 to complete
|
|
357
|
+
Update .checkpoints.json feature_spec_status for completed features
|
|
358
|
+
|
|
359
|
+
... continue until all features are processed
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
**Between batches**: Report progress to user:
|
|
363
|
+
```
|
|
364
|
+
📊 Batch 1 complete: 6/44 Feature Specs generated
|
|
365
|
+
Starting Batch 2...
|
|
366
|
+
```
|
|
367
|
+
|
|
342
368
|
- **Dependency handling**: Features with dependencies should note them, but all workers can execute simultaneously (each Feature Spec references its dependencies)
|
|
343
369
|
|
|
344
370
|
- **Output file naming convention**:
|