fix(planner): compute wave numbers for gap closure plans
Gap closure plans hardcode wave: 1 and depends_on: [], bypassing the standard wave assignment logic. When multiple gap closure plans have dependencies between them, they all land in wave 1 and execute in parallel — ignoring dependency ordering. Add an explicit wave computation step using the same assign_waves algorithm as standard planning. Closes #856 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Lex Christopherson
parent
641cdbdae7
commit
dacd0beed3
@@ -852,15 +852,20 @@ grep -l "status: diagnosed" "$phase_dir"/*-UAT.md 2>/dev/null
|
||||
</task>
|
||||
```
|
||||
|
||||
**7. Write PLAN.md files:**
|
||||
**7. Assign waves using standard dependency analysis** (same as `assign_waves` step):
|
||||
- Plans with no dependencies → wave 1
|
||||
- Plans that depend on other gap closure plans → max(dependency waves) + 1
|
||||
- Also consider dependencies on existing (non-gap) plans in the phase
|
||||
|
||||
**8. Write PLAN.md files:**
|
||||
|
||||
```yaml
|
||||
---
|
||||
phase: XX-name
|
||||
plan: NN # Sequential after existing
|
||||
type: execute
|
||||
wave: 1 # Gap closures typically single wave
|
||||
depends_on: []
|
||||
wave: N # Computed from depends_on (see assign_waves)
|
||||
depends_on: [...] # Other plans this depends on (gap or existing)
|
||||
files_modified: [...]
|
||||
autonomous: true
|
||||
gap_closure: true # Flag for tracking
|
||||
|
||||
Reference in New Issue
Block a user