FN-8839: rebase fresh worktrees onto integration branch
Refresh newly created worktrees against the configured integration branch without relying on ambient root HEAD.
- Resolve rebase targets through the canonical integration-branch resolver
- Log skipped refreshes, fetch failures, and successful or conflicted rebases without blocking setup
- Cover configured, remote-default, fallback, and failure rebase behavior
Files changed:
.changeset/fn-8839-worktree-integration-rebase.md | 7 +
.../engine/src/__tests__/executor-worktree.test.ts | 167 +++++++++++++++++++++
packages/engine/src/executor.ts | 91 ++++++-----
3 files changed, 226 insertions(+), 39 deletions(-)
Fusion-Task-Id: FN-8839
Fusion-Task-Lineage: e104a261-39b2-4ab1-aaf5-075764162b4b
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>