r/softwaredevelopment • • 13d ago

AI code review through a Lean lens: where unverified comments create waste

Process question for people who think about how teams build software. When AI review comments enter a pull-request workflow, they look like free quality inspection. But some of them create work, and Lean has vocabulary for that. This is my own analogy, not an established framework, so take it with that in mind.

Defects (rework). A comment describes a problem that doesn’t exist in this system, because it’s already handled somewhere the reviewer can’t see. Someone applies the fix, tests pass, and the change ships. Later, someone asks why the extra guard exists. The cost isn’t the comment, it’s the change that now has to be understood, maintained and possibly reverted.

Over-processing. Style opinions phrased as defects (“too long”, “rename this”, “prefer composition”) that no team convention backs. They consume review time and can crowd out comments that matter. Another version: a technically correct suggestion whose cost isn’t stated (a migration, an API change, twelve files in a PR meant to touch two).

Inventory (unfinished work). Comments nobody verified and nobody explicitly set aside. They sit as “resolved” in the thread while nobody checked them. I think this is the quietest one: a third state, “unverified, flagged for discussion”, seems worth making explicit next to “applied” and “rejected with a reason”.

The inverse problem: what isn’t inspected. A review that comments on naming while the diff touches authentication or payments feels like quality control but hasn’t looked at the risky part. In Lean terms, it’s an inspection step that gives false assurance. One light countermeasure is to write down your own two or three worries about a change before reading the review, then check whether anything addressed them.

Where this lens breaks:

  • Verification has a cost too, and for a three-line change in a well-tested module it’s overkill. Effort should follow risk.
  • Some claims can’t be settled in an afternoon (“this design won’t scale”), so leaving them open is sometimes the honest result.
  • Lean wasn’t designed for this, and the analogy shouldn’t be pushed too far.

I wrote about five recurring kinds of AI review comments that sound right and aren’t, and how to sort them. I’m the author, and the article also mentions a paid playbook of mine near the end, so treat the link as optional: https://medium.com/@nagatomopedro05/five-kinds-of-ai-code-review-comments-that-sound-right-and-arent-0d02b3fb9ec6

For teams that have added AI review to the workflow: did you change anything in the process (definition of done, review checklist, who’s accountable for applied comments), or did it slot in as-is?

0 Upvotes

3 comments sorted by

5

u/dobesv 13d ago

I guess sometimes I feel like if I wanted to read a little Reddit post from Claude I could go to the source and ask Claude to write one for me. But then again, maybe if it's a good Reddit post it's fine? There's probably a alternative Reddit out there somewhere completely written by AI that I could read like it was Reddit. I wonder what that would be like.

2

u/Unicycldev 12d ago

This is AI slop and disrespectful to add such noise to our lives.

1

u/Rough-Supermarket-97 11d ago

Not going to read this. Came here to say, add an adversarial verifier for code review, simple step, will cut back in the false alarms that bots bring up in review. Bye.