DEV Community

tercel
tercel

Posted on

Measuring AI Pull Request Approvals in Observe Mode

Anthropic introduced Claude Ship on November 23. It brings pull request review, follow-up fixes, and policy-based approval into one workflow. Its observe mode is where I would start. Before a repository starts relying on an agent's approval, the team needs to know where the agent and its reviewers disagree.

Make the comparison fair

Run the agent on a single repository for a limited trial and leave its existing branch protections in place. For each pull request, record the head commit SHA, the agent's proposed decision, and an independent maintainer decision. Record the reason for each decision. If the agent pushes another commit, start a new comparison for that SHA. Otherwise, the agent and the maintainer may be signing off on different code without anyone noticing.

I would use three labels: approve, request changes, and defer to an owner. The last label matters for areas such as authentication, billing, or data migrations, where a reviewer may need context outside the diff. Have the maintainer record a decision before reading the agent's recommendation. An independent judgment makes disagreements more informative.

Count the mistakes that affect a release

An overall agreement rate tends to be dominated by easy changes. Suppose 40 routine documentation edits get two approvals, while the agent incorrectly approves one of three configuration changes. A single percentage makes the trial look reassuring. The configuration results tell the team where to keep its current approval rules.

I would review these numbers by change type:

  • False approvals. How often did the agent recommend approval when the maintainer found a blocking problem?
  • Unnecessary escalations. How often did it ask for an owner when the repository's existing policy allowed a routine approval?
  • Reviewer time. How long did it take to verify the recommendation, including time spent chasing misleading findings?

For each disagreement, note whether the agent missed evidence, the owner knew something the repository never documented, or the policy itself was ambiguous. Each calls for a different fix.

Keep the first rollout narrow

A useful first category might be documentation-only changes with required checks passing and no changes to generated files or release instructions. A policy can express that category explicitly and leave everything else with the existing owners. Track approvals against the exact commit that would merge, and make it easy to disable the rule if the change mix shifts.

The outcome I would look for is a list of changes the team can delegate with evidence, plus a list of changes that still need an owner. That makes observe mode an engineering exercise with a decision at the end.

AI disclosure: This article was drafted with AI assistance.

Top comments (0)