When you approve a pull request, what exactly are you approving?

by•

Consider a pull request reviewed by three people:

  • A security engineer who verifies the auth aspects.

  • An architect who verifies the dependency structure.

  • A domain expert who verifies the business rules.

The author subsequently changes the authorization logic. Should all three approvals become invalid? Or only the security engineer's? More importantly, how would our tooling know?

The problem, I think, is that we record approvals against a revision of the code rather than against the properties that were verified.

There are coupe of fair objections to this. Slicing approvals can let reviewers hide behind narrow silos instead of taking collective responsibility for the whole change. Also an auth tweak can silently break a business rule.

Even so, collapsing a multi-dimensional review into a single boolean bit is a broken abstraction. A pull request isn't just a conversation. It's more of an evidence ledger and our tools discard the actual evidence the moment someone clicks approve.

With AI increasingly involved in both writing and reviewing code, is this an abstraction worth revisiting?

I've been exploring this as part of a broader question about the role of pull requests in software engineering.

4 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.