What's New
Staging Branch Workflow for Autonomous Loop
Added --staging flag to slope loop continuous that consolidates all sprint PRs in a batch into a single umbrella PR, reducing review burden and keeping main clean.
Usage:
slope loop continuous --staging --max=6
How it works:
- Creates a
loop/batch-<sprintId> staging branch from origin/main
- Each sprint PR targets the staging branch instead of main
- After the batch completes, creates one umbrella PR (staging → main) with a consolidated summary table
- Idempotent — safely resumes interrupted batches by reusing existing staging branches
New module: src/cli/loop/staging.ts
initStagingBranch() — create/reuse staging branch
createUmbrellaPr() — batch summary PR with sprint results table
cleanupStagingBranch() — safe delete after merge
Changes across the loop infrastructure:
worktree.ts — optional baseBranch param for branching from staging
pr-lifecycle.ts — baseBranch param for createPr/hasCommitsAhead, isStagingMerge option for autoMerge (skips file-count gate)
executor.ts — threads staging branch through worktree/PR/merge, fetches staging ref after each sprint merge
continuous.ts — staging init before loop, umbrella PR + cleanup after
Fully backwards compatible — without --staging, behavior is unchanged.