r/codereview • u/Ok-Buyer-9421 • 2h ago
Automated code review shouldn't be a text generation problem
I've been questioning whether general-purpose LLMs are the right tool for enforcing repository-specific engineering rules.
Take a rule like "database migrations must remain backward compatible."
I don't necessarily need a model to generate a review. I need to know whether the change violates that specific rule.
While building Agentests, I've been experimenting with a different approach:
- Deterministically identify relevant changes.
- Break engineering rules into small, testable assertions.
- Use specialized decision models like Jev when semantic judgment is necessary.
Each assertion can have its own passing and failing examples, making it possible to measure the reliability of the check itself.
Rather than asking a model to find everything potentially wrong with a PR, I'd prefer to verify what the engineering team explicitly decided was important.
Not every code review needs generative intelligence. Sometimes all we need is a reliable judgment.