Verify Sprint
Workflow checklist
Copy and track progress:
- [ ] Step 1: Identify PR branches
- [ ] Step 2: Fetch and create verify branch
- [ ] Step 3: Merge all PR branches
- [ ] Step 4: Build check
- [ ] Step 5: Visual verification (user)
- [ ] Step 6: Merge PRs into main
- [ ] Step 7: Discard verify branch
Step 1 — Identify PR Branches
If the user hasn't provided PR numbers, list open PRs:
gh pr list --state open --json number,title,headRefName
Confirm with the user which PRs to include.
Quality check: For each PR, verify that quality-finisher has already been run by checking for a ## Quality Finisher Report comment:
gh pr view <N> --json comments --jq '.comments[].body | select(startswith("## Quality Finisher Report"))'
If no such comment exists, warn the user before proceeding.
Step 2 — Fetch and Create Verify Branch
NEVER push this branch to remote — it is a throwaway local verification branch. Pushing it would trigger CI, confuse collaborators, and leave stale branches.
git fetch origin
git checkout -b verify/sprint-$(date +%Y-%m-%d) origin/main
If the branch name already exists, append -2, -3, etc.
Step 3 — Merge All PR Branches
git merge origin/<branch-1> origin/<branch-2> origin/<branch-3> ...
If the octopus merge fails due to conflicts, fall back to sequential merges:
# Abort the failed octopus merge
git merge --abort
# Merge each branch one at a time
git merge origin/<branch-1>
git merge origin/<branch-2>
# ... continue for each branch
Report any conflicts to the user before proceeding.
If a sequential merge conflicts:
- Abort the failed merge to return to a clean state:
git merge --abort - Record which PR branch conflicted and which files are involved:
# Re-attempt to inspect conflict details git merge --no-commit origin/<conflicting-branch> git diff --name-only --diff-filter=U git merge --abort - Skip the conflicting PR and continue merging the remaining branches.
- After all non-conflicting branches are merged, report to the user:
- Which PRs conflicted
- Which files caused the conflict
- Which PRs were successfully merged
- Suggest running Raid Commander to re-analyze the conflicting PRs for a revised merge order, or ask the user to resolve manually.
Step 4 — Build Check
After a successful merge, run a build to catch compile errors before asking the user for a visual check. Use the project's standard build command.
If the build fails, identify the responsible PR branch, fix it there, re-merge, and re-run the build check.
Step 5 — Visual Verification
Tell the user to run the project's standard run command for manual testing.
Ask: "Visual check complete — did everything look correct? (yes / issue found)"
If an issue is found:
- Identify the PR branch responsible.
- User or agent adds fix commits to that branch.
- Re-merge and re-check.
Repeat until the user confirms no issues.
Step 6 — Merge PRs into Main
gh pr merge <N> --squash --delete-branch
Use the Raid Commander's recommended order if available; otherwise merge fixes before features that depend on them.
Step 7 — Discard Verify Branch
git checkout main
git branch -D verify/sprint-<date>
git pull origin main