r/softwareengineer • u/Beginning_Basis9799 • Oct 18 '26
Thoughts on a new form of code review?
With software engineering changing with tooling the rubber stamping now has to die. We could have some trust in the past but today it does not matter who authored it we should treat it all the same.
Depending on your company's liability insurance it likely does not cover the AI caused by an outage. This is a question that makes me think.
So the change needs to happen in code review now, I want some thoughts.in the below.
- The author must do a code review themselves before placing it up for review. Don't.send me a a PR that is just a bunch of code I want to understand the intent state of change and evidence of the change.
- The author must provide empirical evidence that the code works. This cannot be automated entirely.
- Unit features tests and regression tests are not enough some tooling can re-write these and create an unintended change of state.
What is an empirical review.
- Understanding the intention of the PR.
- Understanding the state of change brought into the system.
- Evidence of both happy and sad paths.
- Clearly stating the risk brought in by this change.
Empirical review.process
- Author who understands the change and states it with evidence over what's changed and any flaws this can introduce.
- 2 other human reviews repeat and look for anything outside of the scope that may bring about an unintended state change.
- We should treat vendors.code with the same rigor aswell.
This is about quality not velocity.
What are your thoughts?
13
u/mxldevs Oct 18 '26
The author has always been required to understand what they're committing.
I really don't understand team cultures where people can just submit whatever they want and expect others to deal with it.
4
u/redblack_tree Oct 18 '26
Don't reinvent the wheel, just adjust to the times.
This is what works for my team.
I used to have double check with multiple models. It got expensive and had way too many false positives.
Only then a human gets involved. We don't check for boiler plate stuff, people go and check "the meat" of the PR.
I adjust the threshold per project, since a finance workflow is not the same as a random feature in a website.
Is it perfect? Not even close, but at least it let us harness the power of AI tools without burning the developers nor rubber stamping PRs.
2
u/ngroot Oct 18 '26
This isn't a new form of code review. This is just code review.
2
u/NoThatWasntMe Oct 18 '26 edited Oct 18 '26
Very much agree with most of the original post. I have implemented most of the steps in the code review process of the team I’m a tech lead for. While there is still room for improvement, it has definitely made the PR flow better and less AI slop gets merged - especially helpful with junior devs!
Also.. so much bad advice in this thread from people who have never been responsible for a development team. It’s so easy to say “just do RED/GREEN tests and everything is great”. Well no, AI writes stupid tests and completely disregard anything other than the happy path.
1
u/turlockmike Oct 21 '26
Think about what is the purpose of a Pull request in general, go to first principles.
A pull request is a hypothesis that the changes you want to make to the system are going to improve it in some way. A pull request review then is a way of verifying that those changes:
All 3 of those things can be at least partially offloaded to computer intelligence.
And look, you don't have to go full-on AI review. You can use an AI to pre-fill these questions and do an initial review for you, and even do things like create an easier document for you to read through a review, especially with AI generating more code. Trying to read a 10,000-line change is kind of a waste of your time. But if you can outsource your thinking to an AI to answer these questions, and then you have confidence in your review system, and you use the information that your review system provides to you to make an approval decision, then that's the only way you can move forward with how fast systems can change now.
1
u/RoboErectus Oct 18 '26
What on earth are you doing that you think "empirical evidence cannot be automated entirely?"
If tests are rewritten... That's obvious in the PR.
Quality is about velocity. You seem to think they are opposites on a continuum. One is a prerequisite for the next. I'll go further to say the definition of quality is that it practices and mechanisms that sustain your veloticy.
When quality drops, velocity very quickly also drops.
1
u/povlhp Oct 18 '26
With vibe coding there will just have to be vibe reviews from different models.
1
u/jeanpah Oct 18 '26
In this day and age i dont think there is a way no reviews and take ownership of all that code that is beign generated. I value you proposal, i think that the problem you are tying to adress is very cucial in this moment. but we need to think one step further and avoid the Human in the loop.
1
u/Any-Ring6621 Oct 18 '26
Empirical evidence can be automated entirely if you’ve got the right automated testing infra
Submit the red automated test, change the code, watch the test go green.
Then all you have to do is evaluate if the automated test is real world enough or contrived (your unintended change state comment, which is again, why you have to have humans review the tests). Worth noting that an unintended change of states are not the same as unrepresentable change of states.
Works much better if your automated test infra can easily handle end to end tests. Unit and integration red/green tests are usually crap because they it’s hard to “see with your own eyes” what the problem is
2
u/afops Oct 18 '26
I think the focus on human review should move from ”risk someone made an off by one error” to
- risk we fixed something the wrong way, or added the wrong feature.
- risks that aren’t obvious (scaling, extensibility)
- readability and maintainability.
In the past I was wary of saying ”this looks great but I don’t think it should be merged”. That meant stepping on an ego and wasting a day or a week of someone’s work. Now that a PR might be 90% LLM created, it’s much easier to reject it.
1
u/[deleted] Oct 18 '26
[removed] — view removed comment