Files
Codewalkers/.planning/phases/14-parallel-phase-execution/14-06-PLAN.md
Lukas May 4b454cadf3 docs(14): create phase plans for parallel phase execution
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
2026-02-02 11:02:39 +01:00

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
14-04
14-05
src/cli/commands/phase.ts
src/cli/index.ts
true
Add CLI commands for phase dependency and dispatch operations.

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>

@.planning/PROJECT.md @.planning/ROADMAP.md @.planning/STATE.md @.planning/phases/14-parallel-phase-execution/14-04-SUMMARY.md @.planning/phases/14-parallel-phase-execution/14-05-SUMMARY.md

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>
After completion, create `.planning/phases/14-parallel-phase-execution/14-06-SUMMARY.md`