Make agents write PRs humans can merge
A mergeable PR is more than green CI. Agents often leave empty summaries, missing risk notes, and no rollback plan.
A mergeable PR is more than green CI. Agents often leave empty summaries, missing risk notes, and no rollback plan. The trap is accepting “see commits” and moving on. Reviewers then do archaeology instead of review.
Force a template so humans can decide quickly, and so future readers understand intent without the chat transcript.
When the description is mergeable (and when to reject it)

When this fits vs when it does not
A description is mergeable when:
- Summary is human-skimable. One short paragraph plus bullets stating intent, not a pointer at the diff.
- Risk and rollback are filled. Especially for config, schema, auth, and production paths. “n/a” is not allowed for shipped code.
- Verification is concrete. Commands, exit codes, or CI links a reviewer can re-run.
- Out-of-scope is stated. What the agent deliberately did not touch.
Reject the description (before debating style) when it uses “see commits” as a summary, buries a breaking change, or invents marketing language instead of technical risk.
Workflow: template → evidence → human gate

Stop gate before you trust the output
- Adopt a required template. Sections: summary, motivation, risk, rollback, test plan, screenshots if UI, out-of-scope.
- Instruct agents to fill facts. No empty sections. Quote the commands they ran.
- Add a cheap CI check. Fail when required headings are missing. You still need humans for quality; empty sections disappear fast once the check exists.
- Reviewers enforce the gate. Reject PRs that fail the template even if the code looks fine. Fix the description first.
- Keep the body as the record. Do not rely on chat transcripts that disappear.
Stop gates
- Risk or rollback empty for production paths.
- “Tests passed” with no command, exit code, or CI link.
- Breaking change buried mid-list.
- Unexpected paths or secret-looking files with no mention.
Checklist before you call the session done
- PR template required sections enabled.
- Agent prompt references the template explicitly.
- Verification commands (or CI links) are in the body.
- Risk and rollback are never empty for production paths.
- Reviewers reject empty-template PRs consistently.
Three traps that waste review time

Failure modes to catch early
- See commits. Summary points at the diff instead of stating intent. Fix: require a one-paragraph intent statement before bullets.
- Blank risk. Risk or rollback empty for code that ships. Fix: reject the PR; “tiny” config or schema changes still need an undo plan.
- No evidence. “Tests passed” with nothing to re-check. Fix: require quoted commands or CI links in the template.
For UI changes, require before/after images or an explicit manual QA note naming the surfaces touched.
Bottom line
PR descriptions are the human interface to agent work. Template them, evidence them, and reject empty sections. Pair this with test-first repair loops so the verification section has something real to quote, and with security sandbox rules so secrets never land in the body.
Share