Worktree Planning
Use When
- •Entering build stage with parallel branches.
Inputs
- •stage plan
- •dependency graph
- •max parallel worktrees
Procedure
- •Group independent tasks.
- •Create branch/worktree per stream.
- •Assign tasks and worker roles.
Output Contract
- •
worktrees:{id, branch, path, task_ids} - •
parallelism_used
Guardrails
- •Keep dependent work in ordered streams.
- •Avoid excessive worktree churn.