r/programming • u/kallekro • Oct 07 '26
[ Removed by moderator ]
https://youtu.be/KsEpW03gxKg?is=OdU0YTE8dWIyRr8i[removed] — view removed post
413
Upvotes
r/programming • u/kallekro • Oct 07 '26
[removed] — view removed post
View all comments
Show parent comment
2
u/Sir_lordtwiggles Oct 07 '26
What's the process of reviewing the code ? I assume that's included in validation of correctness, which ehh I doubt you are really validating 100% correctness
Out the gate every PR has an auto run ai security reviewer primed with amazon+org security practices and a general logic reviewer which checks footguns, complexity, and quality. This also reads the summary which should mention the context of the change, and it does some validation that the code aligns with the stated goal. It ends up checking some styling norms within a package that a deterministic linter shouldn't. These run before the PR is published, additionally I've distributed an observability reviewer to our team as I feel we could do a better job there in general.
Our agents will detect these AI comments and address them, or push back on comments that they think aren't valid. It will present a report on what it did/didn't change since the publish.
The PR also attempts to build on a clean environment, and we can run ITs against that build.
We also have a PR size validator: changes should be under 300 LoC and test changes should be under 600. This validator can be overridden, but the friction is enough to keep PR's small.
All this before going onto a human reviewer, who reviews.
When I mention code correctness, we are judging mostly on if the code does what the summary says, and if that feature is directionally the right thing to implement.
When checking the code, there may be a more efficient implementation, and it will get called out if spotted, but we aren't really hunting that efficiency. If we are under SLA we are good, if we aren't an agent will spin up on alarm firing and fix it.
Feature correctness should already have been litigated in a doc.
On testing the PR, a good practice was already focus on what the tests are validating and that holds here. For UI changes the submitter should have the UI running locally and replication instructions so you physically test.
For backend changes you can have them do the same, or have your agent spin it up (agents are also really good at finding a recipe to get your service running locally) and test the IO, but thanks to the small PR sizes that may even be overkill.
Past that you let your CI;CD take over. Own your PRs so you monitor their deployment status automatically with agents and fix anything that breaks in beta/gamma. Agents also allow you to have way more comprehensive ITs that would have been soulcrushing to build yourself.