speccrew 0.7.52 β†’ 0.7.54

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.
@@ -122,7 +122,7 @@ This agent MUST execute tasks continuously without unnecessary interruptions.
122
122
  | Phase 1 | REGISTRY ONLY | Agent reads .prd-feature-list.json + WORKFLOW-PROGRESS.json only. DO NOT use Glob to discover files |
123
123
  | Phase 2 | VERIFY ONLY | Agent verifies file existence only. DO NOT read Feature Spec, API Contract, or techs knowledge content |
124
124
  | Phase 2 | KNOWLEDGE-FIRST | MUST load ALL techs knowledge before Phase 3. DO NOT assume technology stack |
125
- | Phase 3 | SKILL-ONLY | Framework evaluation MUST use speccrew-sd-framework-evaluate skill. Agent MUST NOT evaluate frameworks itself |
125
+ | 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
126
  | Phase 3 | HARD STOP | User must confirm framework decisions before proceeding to Phase 4 |
127
127
  | Phase 4 | AGENT-OWNED | DESIGN-OVERVIEW.md generation is Agent responsibility (not skill-dispatched) |
128
128
  | Phase 5 | SKILL-ONLY | Platform design workers MUST use platform-specific design skills. Agent MUST NOT write design documents itself |
@@ -429,7 +429,20 @@ Build the parameter template for Phase 3 and Phase 5 Skills:
429
429
 
430
430
  ## Phase 3: Framework Evaluation (πŸ›‘ HARD STOP β€” User Confirmation Required)
431
431
 
432
- > ⚠️ **SKILL-ONLY RULE**: Framework evaluation MUST be performed by `speccrew-sd-framework-evaluate` skill. Agent MUST NOT perform capability gap analysis or framework recommendations itself.
432
+ > πŸ›‘ **WORKER-DISPATCH RULE**: Framework evaluation MUST be dispatched to `speccrew-task-worker` via **Agent tool**. Agent MUST NOT perform capability gap analysis or framework recommendations itself, and MUST NOT invoke `speccrew-sd-framework-evaluate` via Skill tool.
433
+
434
+ > πŸ›‘ **CRITICAL: Phase 3 dispatch-to-worker Protocol**
435
+ >
436
+ > When executing Phase 3 (Framework Evaluation):
437
+ > 1. Use **Agent tool** to create a new sub-Agent
438
+ > 2. Specify sub-Agent role as **speccrew-task-worker**
439
+ > 3. Pass skill_path and all context parameters in Task description
440
+ > 4. **Wait for Worker completion** before proceeding
441
+ >
442
+ > **FORBIDDEN**:
443
+ > - ❌ DO NOT use Skill tool to invoke speccrew-sd-framework-evaluate
444
+ > - ❌ DO NOT read feature spec files yourself for framework evaluation
445
+ > - ❌ DO NOT generate framework-evaluation.md yourself
433
446
 
434
447
  ### 3.1 Invoke Framework Evaluation Skill
435
448
 
@@ -444,7 +457,7 @@ Build the parameter template for Phase 3 and Phase 5 Skills:
444
457
  | `iteration_path` | `{iterations_dir}/{current}` | Current iteration directory |
445
458
  | `output_path` | `{iterations_dir}/{current}/03.system-design/framework-evaluation.md` | Output report path |
446
459
 
447
- **Invocation**: Call the skill directly (not via speccrew-task-worker β€” framework evaluation is a single coordinated task, not per-Feature).
460
+ **Invocation**: Use **Agent tool** to dispatch `speccrew-task-worker` agent. Pass `skill_path: ${workspace_path}/.speccrew/skills/speccrew-sd-framework-evaluate/SKILL.md` and all context parameters. Even though framework evaluation is a single coordinated task (not per-Feature), it MUST be delegated to a Worker Agent β€” NOT invoked inline via Skill tool. See workflow.agentflow.xml block P3-B1 for dispatch parameters.
448
461
 
449
462
  ### 3.2 Validate Skill Output
450
463
 
@@ -464,7 +477,7 @@ After skill completes, validate the output:
464
477
  - Read error details from Task Completion Report
465
478
  - **DO NOT attempt to perform framework evaluation yourself**
466
479
  - Report error to user and ask: "Retry?" or "Abort?"
467
- - If retry β†’ Re-invoke skill with same or adjusted parameters
480
+ - If retry β†’ Re-dispatch speccrew-task-worker with same or adjusted parameters
468
481
  - If abort β†’ END workflow
469
482
 
470
483
  ### 3.3 User Confirmation (πŸ›‘ HARD STOP)
@@ -509,9 +522,9 @@ Proceed to Phase 4? (Confirm/Cancel)
509
522
  - DO NOT proceed to Phase 4 without valid evaluation output
510
523
 
511
524
  **Recovery Actions**:
512
- 1. Report error to user: "Framework evaluation skill failed: {specific reason}"
525
+ 1. Report error to user: "Framework evaluation worker failed: {specific reason}"
513
526
  2. Ask user: "Retry with additional context?" or "Abort workflow?"
514
- 3. IF retry β†’ Re-invoke speccrew-sd-framework-evaluate with adjusted parameters
527
+ 3. IF retry β†’ Re-dispatch speccrew-task-worker with adjusted parameters
515
528
  4. IF abort β†’ END workflow
516
529
 
517
530
  ## Phase 4: Generate DESIGN-OVERVIEW.md (L1)
@@ -1010,7 +1023,7 @@ Otherwise
1010
1023
  - Phase 0.1: ALWAYS verify Feature Design stage is confirmed before proceeding
1011
1024
  - Phase 0.5: ALWAYS detect IDE directory and verify skills exist before dispatching
1012
1025
  - Phase 2: MUST verify ALL techs knowledge files exist (manifest + platform-specific stacks) before Phase 3
1013
- - Phase 3: MUST use speccrew-sd-framework-evaluate skill for framework evaluation β€” DO NOT evaluate yourself
1026
+ - 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
1014
1027
  - Phase 3: User MUST confirm framework decisions (πŸ›‘ HARD STOP) before proceeding to Phase 4
1015
1028
  - Phase 4: MUST generate DESIGN-OVERVIEW.md with complete FeatureΓ—Platform index BEFORE dispatching platform workers
1016
1029
  - Phase 5: MUST use speccrew-task-worker to dispatch platform-specific design skills for parallel execution (never direct skill invocation for batch)
@@ -20,7 +20,7 @@ tools: Read, Write, Glob, Grep, Bash, Agent
20
20
  > Action-to-tool mapping:
21
21
  > - `action="run-skill"` β†’ Invoke via **Skill tool** (pass the `<field name="skill">` value EXACTLY)
22
22
  > - `action="run-script"` β†’ Execute via **Terminal tool** (pass the `<field name="command">` value EXACTLY)
23
- > - `action="dispatch-to-worker"` β†’ Create **Task** via **Task tool** for `speccrew-task-worker`
23
+ > - `action="dispatch-to-worker"` β†’ Use **Agent tool** to create a new `speccrew-task-worker` agent, passing skill_path and context
24
24
  > - `action="read-file"` β†’ Read via **Read tool**
25
25
  > - `action="log"` β†’ Output message directly
26
26
  > - `action="confirm"` β†’ Present to user and wait for response
@@ -95,21 +95,15 @@ This skill MUST execute tasks continuously without unnecessary interruptions.
95
95
 
96
96
  ### Phase 3 Execution Method β€” Worker Agent Dispatch
97
97
 
98
- **HOW TO DISPATCH**: When executing Phase 3 (Framework Evaluation), you MUST:
99
- 1. Start a NEW agent session by invoking `/speccrew-task-worker`
100
- 2. Pass the following context to the worker:
101
- - skill_path: ${workspace_path}/.speccrew/skills/speccrew-sd-framework-evaluate/SKILL.md
102
- - workspace_path, iteration_path, feature_spec_paths, api_contract_paths, techs_knowledge_paths, output_path
103
- 3. Wait for the worker agent to complete
104
- 4. Verify that framework-evaluation.md has been generated at the output path
105
- 5. Then proceed to Phase 3 HARD STOP for user confirmation
106
-
107
- **FORBIDDEN**:
108
- - DO NOT use the `Skill` tool to invoke speccrew-sd-framework-evaluate yourself
109
- - DO NOT read feature spec files or tech knowledge files yourself for framework evaluation
110
- - DO NOT create any scripts for batch file analysis
111
- - DO NOT generate framework-evaluation.md yourself under any circumstances
112
- - If worker agent fails, ABORT β€” do NOT fallback to inline execution
98
+ **HOW TO DISPATCH**: When executing Phase 3 block P3-B1 (action="dispatch-to-worker"):
99
+ 1. Use the **Agent tool** to create a new `speccrew-task-worker` agent
100
+ 2. Pass `skill_path` to the worker: `${workspace_path}/.speccrew/skills/speccrew-sd-framework-evaluate/SKILL.md`
101
+ 3. Pass context parameters: workspace_path, iteration_path, feature_spec_paths, api_contract_paths, techs_knowledge_paths, output_path
102
+ 4. **Wait** for the worker agent to complete and return results
103
+ 5. After worker completes, verify framework-evaluation.md exists at output_path
104
+ 6. Then proceed to Phase 3.5 HARD STOP for user confirmation
105
+
106
+ **CRITICAL**: The `Agent tool` creates a NEW agent session β€” this is completely different from the `Skill tool` which executes inline.
113
107
 
114
108
  ### HARD STOP Checkpoints
115
109
 
@@ -118,3 +112,21 @@ This workflow has **mandatory HARD STOP** checkpoints at:
118
112
  - **Phase 6.1**: Joint design confirmation (user MUST approve all designs)
119
113
 
120
114
  DO NOT proceed past these checkpoints without explicit user confirmation.
115
+
116
+ ## Must Do
117
+
118
+ - **READ workflow.agentflow.xml FIRST** β€” Execute blocks in document order
119
+ - **Use Agent tool for dispatch-to-worker blocks** β€” Agent tool creates a new speccrew-task-worker agent session
120
+ - **Pass skill_path explicitly to worker** β€” Worker cannot find skills via glob on first run
121
+ - **Wait for worker completion before verifying output** β€” Do not proceed until worker returns
122
+ - **Update progress via update-progress.js script** β€” Use run-script commands exactly as defined in XML
123
+
124
+ ## Must Not Do
125
+
126
+ - **DO NOT use Skill tool for Phase 3 framework evaluation** β€” Skill tool executes inline, Agent tool creates a worker
127
+ - **DO NOT read feature spec files yourself** β€” Workers read them
128
+ - **DO NOT read tech knowledge files yourself** β€” Workers read them
129
+ - **DO NOT generate framework-evaluation.md yourself** β€” Only workers generate it
130
+ - **DO NOT create scripts for batch analysis** β€” Workers handle this via their own skill
131
+ - **DO NOT fallback to inline execution if worker fails** β€” ABORT instead
132
+ - **DO NOT skip reading workflow.agentflow.xml** β€” XML is the execution authority
@@ -168,6 +168,7 @@
168
168
  <field name="text">FORBIDDEN: Do NOT create scripts or read feature files yourself for framework evaluation</field>
169
169
  <field name="text">MANDATORY: Framework evaluation MUST be delegated to worker agent via block P3-B1</field>
170
170
  <field name="text">If worker dispatch fails, ABORT β€” do NOT fallback to inline execution</field>
171
+ <field name="text">TOOL MAPPING: action="dispatch-to-worker" β†’ Use Agent tool (NOT Skill tool) to create speccrew-task-worker agent</field>
171
172
  </block>
172
173
 
173
174
  <block type="rule" id="P3-R1" level="mandatory" desc="Worker Dispatch Rule">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.7.52",
3
+ "version": "0.7.54",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {