deanphillips.dev

Building with AI · October 2026

I gave my AI team a reviewer whose only job is to say no

Tests prove the app still works. They can't see a workflow permission, a weakened test, or a rule in the docs. So risky changes now go past one more agent, and its job is to find a reason not to merge.

SeriesPart 5 of 7
  1. Overview The AI team that ships my app
  2. Part 1 From a one-line idea to the right agent
  3. Part 2 Tests instead of code review
  4. Part 3 Agents that ask me from my phone
  5. Part 4 My AI team audits its own process
  6. Part 5 A reviewer whose job is to say no
  7. Part 6 My AI agents demo their work
  8. Part 7 Backups with no servers

This is part 5 of a series about the AI agents that build RepBunny, a strength training app I work on around a full-time job. The overview covers the whole setup. This part is about the one agent that reads code before it merges.

Why the gate wasn’t enough

In part 2 I explained why my agents merge their own pull requests after a green test gate, with no human code review. I also told the story that made me add a second check. On October 12 a change passed the full gate while lowering a workflow’s permission on issues from write to read. The dispatcher that starts every agent needs write access, so for about 75 minutes no agent started any work. Nothing in the test suite runs a GitHub workflow, so nothing there could have caught it.

Tests answer “does the app still do what it should?” They can’t see a different kind of mistake: a permission change, a test that got weaker, a new network call, or a change that breaks a rule written in the project docs. A person reading the diff catches those. I didn’t want to be that person for every change, so I designed a reviewer that does the reading, and only where it matters.

Only the risky changes

Reviewing everything would spend a lot of AI usage on button colors. So after the gate passes, a plain script with no AI in it checks the diff against a short list. Does it touch a GitHub workflow, an agent skill, or a script the automation runs? Does it add a network call or a link to an outside site? Change the database on the phone? Delete a test or remove assertions? Is the issue scored effort 5 or higher? Any yes, and the pull request waits for review. Everything else merges as before.

FlagThe risk script records why the change is risky, and the agent hands it off instead of merging.
ReviewAn Opus agent reads the diff, the issue, and the docs it touches, looking for reasons not to merge.
VerifyEvery finding has to quote the line it is about. No quote, no finding.
DecideNo blockers: it merges. Blockers: back to the building agent once, then to me.
What happens to a risky change after the gate is green.

The reviewer runs on Opus, the more expensive model, because its whole job is judgment. It sorts what it finds into three levels. A blocker has to be fixed before merge. A should-fix gets fixed now if it’s cheap, or becomes a follow-up issue. A nit never blocks anything. The reviewer never pushes code. If a second review still finds a blocker, it stops and asks me on my phone, through the same ask-the-owner loop as everything else.

One item on its list matters more for RepBunny than the rest: does this change send anything off the phone? The app keeps every workout on the phone it was logged on, with no accounts and no servers holding anyone’s data. That’s what makes the experiment safe, so it has to stay true.

The acceptance test was the October 12 outage. Run against that diff, the risk script flagged it, and the reviewer’s checklist (applied by hand, since the reviewer didn’t exist yet) gave a blocker on the lowered permission.

The first five days

From October 12 to 16, the agents merged 129 pull requests. The risk check sent 44 of them through the reviewer, plus one that never merged. Most came back clean, sometimes with a should-fix that turned into a follow-up issue and shipped the same day. Five went back to the building agent with a blocker, and one came to me.

My favorite is a near-repeat of the outage. A change batched my issue emails into one digest every two hours, to save GitHub Actions minutes. The new step asked GitHub for the workflow’s earlier runs, but the workflow’s permissions didn’t include reading them. The agent’s dry run used my credentials, which can read anything, so it passed. On the real schedule every run would have failed, and I’d have stopped getting emails at all. Same workflow, same kind of mistake as October 12. This time it never reached main.

PR #559: Batch issue emails into a digestGitHub pull request, on my phone
  1. Gate green. The risk script flags dispatch-lanes.yml, so the build agent hands off instead of merging
  2. Reviewer (Opus)Blocker: the digest step lists this workflow's earlier runs, but the job's permissions don't include actions: read. The repo is private, so that call gets a 403, the step stops, and no digest is ever sent. The dry run used a personal token, which is why it passed.
  3. Build agentFixed: added actions: read. A failed lookup now falls back to a time window instead of stopping the step.
  4. Reviewer (Opus)Blocker fixed, and the follow-ups too. Merge.
  5. Merged at 1:06 PM, five minutes after the pull request opened
Based on the real pull request, shortened. Times are Central. The gray pills happen with no AI involved.

A few other catches from the same five days:

All of them were found by reading the diff, not by running it.

What broke