Evaluation

Agent Merge Queue Review

Separate useful agent output from merge-shaped confetti.

Use when

Agent throughput created more branches than a human can safely review from memory.

Cadence

After multiple agent-generated PRs or branches accumulate

Verification

Only branches with passing checks, clear intent, non-conflicting scope, and human-readable evidence are merged or promoted.

Advanced spec

Structured loop spec

FieldValue
NameAgent Merge Queue Review
CategoryEvaluation
TriggerAfter multiple agent-generated PRs or branches accumulate
ObjectiveSeparate useful agent output from merge-shaped confetti.
Allowed inputsRelevant files, source notes, logs, tests, screenshots, metrics, or task state for this loop
Allowed actionsList all candidate PRs/branches with goal, touched files, test evidence, risk, and age.; Group related branches and identify conflicts, duplicated work, and dependency ordering.; Run targeted checks for the highest-value candidates first.; Approve, request changes, merge, park, or close each candidate with a reason.; Update repo instructions or loop docs with any recurring failure pattern seen across branches.
VerificationOnly branches with passing checks, clear intent, non-conflicting scope, and human-readable evidence are merged or promoted.
Stop conditionStop when the verifier passes, the budget is exhausted, no progress is made, a blocker appears, or approval is required.
BudgetSet a time, turn, token, retry, file, or dollar cap before running the loop.
Approval boundaryHuman approval required before publishing, sending, deleting, spending, changing accounts, touching production, or making reputational/legal/financial commitments.
Safe outputDraft, report, checklist, table, or approval-gated recommendation
Works withClaude, ChatGPT, Gemini, any tool-using AI assistant
Runbook

Steps

  1. List all candidate PRs/branches with goal, touched files, test evidence, risk, and age.
  2. Group related branches and identify conflicts, duplicated work, and dependency ordering.
  3. Run targeted checks for the highest-value candidates first.
  4. Approve, request changes, merge, park, or close each candidate with a reason.
  5. Update repo instructions or loop docs with any recurring failure pattern seen across branches.
Copy prompt

Prompt

Run the Agent Merge Queue Review loop. Inventory candidate PRs or branches with goal, touched files, verification evidence, risk, and age. Group related work, find conflicts and duplicated abstractions, run targeted checks for the highest-value candidates, and decide approve/request-changes/merge/park/close with reasons. Capture recurring agent failure patterns in repo instructions or loop docs.
Metadata

Tags

PR reviewmerge queueagent branchesintegration
Next loops

Related