Skip to content

Commit 22f3f08

Browse files
committed
fix: drive deltas to completion under /dispatch
1 parent 89ae3d4 commit 22f3f08

4 files changed

Lines changed: 76 additions & 20 deletions

File tree

.spec-driver/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Usage notes:
5656

5757
<skill>
5858
<name>dispatch</name>
59-
<description>Orchestrate parallel implementation via sub-agents. Reads an IP's phase/task structure, analyses parallelism, batches tasks by token budget, routes to appropriate models (sonnet/opus), and dispatches workers in isolated worktrees. Use instead of /execute-phase when a phase has parallelizable work.</description>
59+
<description>Orchestrate parallel implementation via sub-agents. Drives an entire delta to completion across all phases — planning, dispatching, merging, and continuing automatically. Batches tasks by token budget, routes to appropriate models (sonnet/opus), and dispatches workers in isolated worktrees. Use instead of /execute-phase when a phase has parallelizable work.</description>
6060
<location>project</location>
6161
</skill>
6262

.spec-driver/skills/dispatch/SKILL.md

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
name: dispatch
33
description: >
4-
Orchestrate parallel implementation via sub-agents. Reads an IP's phase/task
5-
structure, analyses parallelism, batches tasks by token budget, routes to
4+
Orchestrate parallel implementation via sub-agents. Drives an entire delta
5+
to completion across all phases — planning, dispatching, merging, and
6+
continuing automatically. Batches tasks by token budget, routes to
67
appropriate models (sonnet/opus), and dispatches workers in isolated worktrees.
78
Use instead of /execute-phase when a phase has parallelizable work.
89
---
@@ -13,6 +14,12 @@ You coordinate implementation work by dispatching sub-agents. You run in
1314
the main agent context with full spec-driver access. Sub-agents are
1415
non-interactive workers in isolated worktrees.
1516

17+
**Your goal is to drive the entire delta to completion** — not just one
18+
phase. After each phase completes, automatically proceed to the next phase
19+
(planning it if needed) until all phases are done or a hard blocker stops
20+
you. Only pause for: unresolved blockers, governance concerns requiring
21+
user decision, or explicit user instruction to stop.
22+
1623
## 1. Read artefacts
1724

1825
Read the delta bundle:
@@ -332,12 +339,33 @@ After all batches in a phase:
332339
- Run `/notes` once with the aggregated summary (not per-batch)
333340
- Surface worker observations (rough spots, shortcuts, drift, decisions)
334341
to the user — these may warrant action before proceeding
335-
- If phase exit criteria are met, indicate readiness for phase completion
342+
- If phase exit criteria are met, proceed to 10.3 (next phase)
343+
344+
### 10.3 Continue to next phase
345+
346+
**Default behaviour: keep going.** Do not stop at a phase boundary unless
347+
forced to.
348+
349+
After a phase completes successfully:
350+
1. Run `spec-driver phase complete DE-XXX` to close the phase
351+
2. Check if the IP has a next phase sheet
352+
- If yes: loop back to step 2 (Analyse tasks) for the next phase
353+
- If no phase sheet exists: run `/plan-phases` to create it, then loop
354+
3. Continue until all phases are complete
355+
356+
**Stop only when:**
357+
- Unresolved blockers prevent meaningful progress
358+
- A worker flagged a governance concern that requires user decision
359+
- The user explicitly asked to stop after a specific phase
360+
- All phases are complete — proceed to 10.4
361+
362+
When stopping for blockers or governance, clearly state what is needed to
363+
resume and that you will continue once it is resolved.
336364

337-
### 10.3 Next steps
365+
### 10.4 Delta completion
338366

339-
Indicate to the user:
340-
- If phase is complete: ready for `spec-driver phase complete DE-XXX`
341-
and then `/audit-change` or next phase
342-
- If blockers remain: what needs resolution before re-dispatch
343-
- If governance concerns surfaced: need user decision before proceeding
367+
When all phases are done:
368+
1. Run `/notes` with a full-delta summary
369+
2. Suggest `/audit-change` `/close-change` to the user
370+
3. If audit and closure are straightforward and the user has not asked
371+
to review first, offer to proceed immediately

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.5
1+
0.9.6

supekku/skills/dispatch/SKILL.md

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
name: dispatch
33
description: >
4-
Orchestrate parallel implementation via sub-agents. Reads an IP's phase/task
5-
structure, analyses parallelism, batches tasks by token budget, routes to
4+
Orchestrate parallel implementation via sub-agents. Drives an entire delta
5+
to completion across all phases — planning, dispatching, merging, and
6+
continuing automatically. Batches tasks by token budget, routes to
67
appropriate models (sonnet/opus), and dispatches workers in isolated worktrees.
78
Use instead of /execute-phase when a phase has parallelizable work.
89
---
@@ -13,6 +14,12 @@ You coordinate implementation work by dispatching sub-agents. You run in
1314
the main agent context with full spec-driver access. Sub-agents are
1415
non-interactive workers in isolated worktrees.
1516

17+
**Your goal is to drive the entire delta to completion** — not just one
18+
phase. After each phase completes, automatically proceed to the next phase
19+
(planning it if needed) until all phases are done or a hard blocker stops
20+
you. Only pause for: unresolved blockers, governance concerns requiring
21+
user decision, or explicit user instruction to stop.
22+
1623
## 1. Read artefacts
1724

1825
Read the delta bundle:
@@ -332,12 +339,33 @@ After all batches in a phase:
332339
- Run `/notes` once with the aggregated summary (not per-batch)
333340
- Surface worker observations (rough spots, shortcuts, drift, decisions)
334341
to the user — these may warrant action before proceeding
335-
- If phase exit criteria are met, indicate readiness for phase completion
342+
- If phase exit criteria are met, proceed to 10.3 (next phase)
343+
344+
### 10.3 Continue to next phase
345+
346+
**Default behaviour: keep going.** Do not stop at a phase boundary unless
347+
forced to.
348+
349+
After a phase completes successfully:
350+
1. Run `spec-driver phase complete DE-XXX` to close the phase
351+
2. Check if the IP has a next phase sheet
352+
- If yes: loop back to step 2 (Analyse tasks) for the next phase
353+
- If no phase sheet exists: run `/plan-phases` to create it, then loop
354+
3. Continue until all phases are complete
355+
356+
**Stop only when:**
357+
- Unresolved blockers prevent meaningful progress
358+
- A worker flagged a governance concern that requires user decision
359+
- The user explicitly asked to stop after a specific phase
360+
- All phases are complete — proceed to 10.4
361+
362+
When stopping for blockers or governance, clearly state what is needed to
363+
resume and that you will continue once it is resolved.
336364

337-
### 10.3 Next steps
365+
### 10.4 Delta completion
338366

339-
Indicate to the user:
340-
- If phase is complete: ready for `spec-driver phase complete DE-XXX`
341-
and then `/audit-change` or next phase
342-
- If blockers remain: what needs resolution before re-dispatch
343-
- If governance concerns surfaced: need user decision before proceeding
367+
When all phases are done:
368+
1. Run `/notes` with a full-delta summary
369+
2. Suggest `/audit-change` `/close-change` to the user
370+
3. If audit and closure are straightforward and the user has not asked
371+
to review first, offer to proceed immediately

0 commit comments

Comments
 (0)