pub fn resolve_phase_worktree(
project_root: &Path,
phase: &str,
force_new: bool,
) -> Result<(PhaseWorktree, bool)>Expand description
Resolve the phase worktree for a run.
Behavior:
- If
force_newis false, resume the latest existing<phase>-run-###worktree if found. - Otherwise (or if none exists), create a new worktree.
Returns (worktree, resumed_existing).