SDLC Merge Queue
Merge approved Agent SDLC PRs without doing implementation fixes in the orchestrator lane.
Workflow
- Refresh live state:
git status --short --branchgit fetch origin --prunegh pr view <number> --json number,title,url,state,isDraft,headRefOid,mergeStateStatus,statusCheckRollup,reviewDecision- linked issue
## Agent State
- Confirm the issue says
Status: merge_ready, has a PR, has current-head evidence, and records an approved review or explicit acceptedneeds_humanverdict. - Inspect the actual PR diff before merging:
gh pr diff <number> --name-onlygh pr diff <number> --patchfor the highest-risk touched files.
- Confirm required checks are green on the current PR head. Pending checks may be polled; failed checks stop the queue.
- Mark ready if the PR is still draft and all gates pass.
- Merge with the repo's merge helper when one exists; otherwise use the repo's normal GitHub merge path.
- Verify the PR merged and the linked issue closed or explain why it remains open.
Hand Back Instead Of Fixing
- For failed checks, send the failure links and a concise fix request to the original worker thread.
- For conflicts or stale branches, ask the worker to rebase/merge onto the required base, resolve only conflict files, verify, push, refresh evidence, and rerun review.
- If the worker thread is unavailable, update the issue as blocked and ask the user whether to spawn a replacement worker.