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 |
|
|
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
|
-
>
|
|
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**:
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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"` β
|
|
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 (
|
|
99
|
-
1.
|
|
100
|
-
2. Pass
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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">
|