Phase 14: Parallel Phase Execution - 8 plans in 5 waves - 4 parallel in Wave 1, 3, 5 - Adds phase_dependencies schema (mirrors task_dependencies) - PhaseDispatchManager port and adapter - tRPC procedures and CLI commands - Unit tests and E2E tests
2.8 KiB
2.8 KiB
phase, plan, type, wave, depends_on, files_modified, autonomous
| phase | plan | type | wave | depends_on | files_modified | autonomous | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| 14-parallel-phase-execution | 06 | execute | 4 |
|
|
true |
Purpose: Enable user to manage phase dependencies and parallel execution from command line. Output: CLI commands for dependencies, queue, and dispatch.
<execution_context>
@/.claude/get-shit-done/workflows/execute-plan.md
@/.claude/get-shit-done/templates/summary.md
</execution_context>
Reference implementations:
@src/cli/commands/task.ts @src/cli/commands/initiative.ts
Task 1: Add phase dependency commands src/cli/commands/phase.ts If phase.ts doesn't exist, create it. If exists, extend it.Add commands under phase group:
cw phase add-dependency --phase --depends-on
- Calls createPhaseDependency procedure
- Output: "Added dependency: phase {phaseId} depends on {dependsOnPhaseId}"
cw phase dependencies
- Calls getPhaseDependencies procedure
- Output: Lists dependency phase IDs or "No dependencies"
cw phase queue
- Calls queuePhase procedure
- Output: "Phase {phaseId} queued for execution"
cw phase dispatch
- Calls dispatchNextPhase procedure
- Output: Success message with phaseId or failure reason
cw phase queue-status
- Calls getPhaseQueueState procedure
- Output: Formatted list of queued, ready, and blocked phases
Follow existing CLI patterns for error handling and output formatting. npx tsc --noEmit passes Phase dependency and dispatch CLI commands implemented
Task 2: Register phase commands in CLI src/cli/index.ts Import and register phase commands if not already registered. Follow pattern from other command modules (task, initiative, agent). npx tsc --noEmit passes; cw phase --help shows new commands Phase commands available in CLI Before declaring plan complete: - [ ] `npm run build` succeeds without errors - [ ] `npm test` passes all tests - [ ] `cw phase --help` shows dependency and dispatch commands<success_criteria>
- All tasks completed
- All verification checks pass
- Commands follow existing CLI patterns
- Help text is clear and concise </success_criteria>