Skip to content

Judge the pull request

Lifecycle, 4 min read

The agent reviews; only I judge. This is the reviewer’s seat of the pull request, the one these docs never hand to the agent, and I take it in a fixed order, so that the order holds when attention does not.

  1. Evidence before claims. I open the gate outputs, the screenshots and the tests before I read the claim itself, because a claim without evidence is sent back, not read. The habit comes from the best practices: “have Claude show evidence rather than asserting success: the test output, the command it ran and what it returned, or a screenshot of the result” (source: Anthropic: Best practices for Claude Code).
  2. The manual test steps, run by hand. The agent writes them; I run them in a browser, on the preview, one by one. A green run is not the end: “never assume that code generated by an LLM works until that code has been executed” (source: Simon Willison: Agentic manual testing), and Impeccable says the same of its own output, “a clean report is useful evidence; it does not replace using the result” (source: Impeccable: How it works).
  3. The diff, read until it can be explained. Google’s reviewers read in an order I keep: “take a broad view of the change” (source: Google: Navigating a CL in review) and ask “does this change even make sense?” (source: Google: Navigating a CL in review), then “look at these major parts first” (source: Google: Navigating a CL in review), then the rest, and “in the general case, look at every line of code that you have been assigned to review” (source: Google: What to look for in a code review). I stop when I can explain every hunk to someone else; a hunk I cannot explain is a question for the agent, not a merge.
  4. The visual checklist. Both themes, desktop and phone, against a short list from Refactoring UI: hierarchy, “the most effective tool you have for making something feel ‘designed’” (p. 36) (source: Refactoring UI, by Adam Wathan and Steve Schoger); white space “removed, not added” (p. 67) (source: Refactoring UI, by Adam Wathan and Steve Schoger); lines of “between 45 and 75 characters” (p. 114) (source: Refactoring UI, by Adam Wathan and Steve Schoger); text at a contrast ratio of at least 4.5:1, larger text at least 3:1 (p. 162) (source: Refactoring UI, by Adam Wathan and Steve Schoger); meaning never carried by color alone (p. 166) (source: Refactoring UI, by Adam Wathan and Steve Schoger); and the empty state, “a priority, not an afterthought” (p. 235) (source: Refactoring UI, by Adam Wathan and Steve Schoger). Refactoring UI maps each to this site’s design system.
  5. The spec. Each acceptance criterion against what runs, not against the claim, with Google’s question: “does this CL do what the developer intended?” (source: Google: What to look for in a code review) mattpocock-skills:code-review’s Spec axis has asked it once already, and its answer is a hypothesis I check, since “sub-agent output is a hypothesis, not evidence” (source: Matt Pocock: code-review). Anything the ticket did not ask for is a new decision, not a bonus.
  6. The verdict. Three outcomes: a green light, defects sent back, or a new plan. The bar is Google’s: “favor approving a CL once it is in a state where it definitely improves the overall code health of the system being worked on, even if the CL isn’t perfect” (source: Google: The standard of code review). “Technical facts and data overrule opinions and personal preferences” (source: Google: The standard of code review), and a preference goes in marked as a nit. Defects go back with the observation that shows them; a ticket whose premise failed gets a new plan, not a patch.
  7. Then the router and the retro. The merge is a phase boundary, and the decision about the context belongs there, not in the middle of the work: /ask-matt “recommends and stops” (source: Matt Pocock: ask-matt), naming the next skill and where my decisions sit, and among the five options at the boundary “the first yes wins” (source: Matt Pocock: Phase boundaries). Then /retro, which “changes the environment, not the code” (source: Matt Pocock: retro). Ship and record covers the retro.

Before this run, I gave my green light before each merge of this site. For the run that built most of these pages, I asked for each pull request to merge once its mattpocock-skills:code-review review and CI passed, and I test the finished site before launch; the journal quotes that request.

When
The pull request is open with its evidence, and the gates are green.
What you type
Nothing to the agent. Run the manual test steps by hand in the browser, then read the diff until you can explain it.
What it produces
The verdict: a green light, defects sent back with the observation that shows them, or a new plan.
What proves it
The manual test steps passed in your hands; every acceptance criterion holds against what runs; the verdict and its reasons are written down, on the pull request or in the journal entry.
  1. Anthropic: Best practices for Claude Code code.claude.com
  2. Simon Willison: Agentic manual testing simonwillison.net
  3. Impeccable: How it works impeccable.style
  4. Google: Navigating a CL in review google.github.io
  5. Google: What to look for in a code review google.github.io
  6. Refactoring UI, by Adam Wathan and Steve Schoger refactoringui.com
  7. Matt Pocock: code-review aihero.dev
  8. Google: The standard of code review google.github.io
  9. Matt Pocock: ask-matt aihero.dev
  10. Matt Pocock: Phase boundaries github.com
  11. Matt Pocock: retro aihero.dev