speccrew 0.6.4 → 0.6.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.
|
@@ -296,22 +296,27 @@ Feature inventory exists but detailed analysis may be incomplete.
|
|
|
296
296
|
|
|
297
297
|
#### Path C: No Knowledge (status = "none")
|
|
298
298
|
|
|
299
|
-
> 🛑 **MANDATORY:
|
|
300
|
-
> **DO NOT skip
|
|
301
|
-
> **DO NOT ask user whether to
|
|
299
|
+
> 🛑 **MANDATORY: Lightweight feature inventory MUST be generated when status is "none".**
|
|
300
|
+
> **DO NOT skip to Phase 2 when status is "none" — at minimum, feature inventory is required.**
|
|
301
|
+
> **DO NOT ask user whether to run feature inventory — this is AUTOMATIC.**
|
|
302
|
+
> **DO NOT run deep module initialization (module-initializer) in this path — that happens in Path B after matching.**
|
|
302
303
|
>
|
|
303
304
|
> ⚠️ FORBIDDEN ACTIONS:
|
|
304
|
-
> - DO NOT skip to Phase 2
|
|
305
|
-
> - DO NOT
|
|
305
|
+
> - DO NOT skip to Phase 2 without running feature inventory
|
|
306
|
+
> - DO NOT run module-initializer here — deep init is scoped by requirement in Path B
|
|
306
307
|
> - DO NOT expose internal concepts (Stage 0, Stage 1) to user
|
|
307
308
|
|
|
308
|
-
No knowledge base exists.
|
|
309
|
+
No knowledge base exists. A lightweight feature inventory scan is triggered to discover available platforms and modules.
|
|
309
310
|
|
|
310
|
-
|
|
311
|
+
> **IMPORTANT: This step ONLY generates metadata (feature inventory).**
|
|
312
|
+
> It does NOT perform deep module analysis. Deep initialization of specific modules
|
|
313
|
+
> happens later in Path B, scoped to modules that match the user's requirement.
|
|
314
|
+
|
|
315
|
+
1. **Inform user**: "No business knowledge base detected. Scanning project structure to discover available modules..."
|
|
311
316
|
|
|
312
317
|
> Show progress indication to user. Do NOT mention "Stage 0+1" or any internal concepts.
|
|
313
318
|
|
|
314
|
-
2. **
|
|
319
|
+
2. **Dispatch Worker** to generate feature inventory (lightweight metadata scan):
|
|
315
320
|
|
|
316
321
|
| Parameter | Value |
|
|
317
322
|
|-----------|-------|
|
|
@@ -319,20 +324,23 @@ No knowledge base exists. Automatic initialization is triggered.
|
|
|
319
324
|
| `workspace_path` | `speccrew-workspace` |
|
|
320
325
|
| `language` | Detected user language |
|
|
321
326
|
|
|
322
|
-
- Worker
|
|
323
|
-
- Worker
|
|
327
|
+
- Worker scans project structure to discover platforms and modules
|
|
328
|
+
- Worker generates `features-*.json` files (metadata: module names, feature counts, file paths)
|
|
329
|
+
- This is a **lightweight scan** — no deep analysis of module internals
|
|
324
330
|
- **Wait for Worker to complete before proceeding**
|
|
325
331
|
|
|
326
332
|
3. **After Worker completes**: Re-run Step 1.1 (dispatch detector again)
|
|
327
333
|
- **Verify** status changed from "none" to "lite"
|
|
328
|
-
- If status is now "lite" → Continue with
|
|
334
|
+
- If status is now "lite" → **Continue with Path B flow**
|
|
335
|
+
- Path B will use **matcher** to identify modules relevant to the user's requirement
|
|
336
|
+
- Only those matched modules will be offered for deep initialization (module-initializer)
|
|
329
337
|
- If status is still "none" → Initialization failed, proceed to Step 4
|
|
330
338
|
|
|
331
|
-
4. **IF
|
|
332
|
-
- Report to user: "Project structure
|
|
339
|
+
4. **IF feature inventory fails**:
|
|
340
|
+
- Report to user: "Project structure scan encountered issues: [specific error]. Continuing without knowledge base context."
|
|
333
341
|
- Log the error details for debugging
|
|
334
342
|
- Proceed to Phase 2 in degraded mode (no system context)
|
|
335
|
-
- Note: PRD quality
|
|
343
|
+
- Note: PRD quality may be reduced without knowledge base
|
|
336
344
|
|
|
337
345
|
### 1.3 Store Knowledge Context
|
|
338
346
|
|