Rodolfo Biazi · Product Designer, Sonar
“Sorry, not merging this. It’s correct, I’m just not touching the pricing path for now. I’d have to re-read every branch to be sure and it’s not worth the afternoon.”
“Sorry, not merging this. It’s correct, I’m just not touching the pricing path for now. I’d have to re-read every branch to be sure and it’s not worth the afternoon.”
Nothing changed. No value was delivered.
CHALLENGE 01
remediation-agent · on request of @you
+4 −7 · 1 file
CHALLENGE 02
A pull request nobody opens is indistinguishable, from the repository’s point of view, from a patch that was never generated.
No reviewer: a random developer with no context sees it, maybe.
Assigned: someone has to make a decision.
CHALLENGE 03
The agent read the code to write the fix.
The reviewer should not have to read it all again to trust it.
Removed SQLException from the throws clause of processOrders, since it can never be thrown there, plus the now-unused import.
java:S1130Remove the thrown exception ‘SQLException’MINOROrderService.java:8throws clauses hurt readability and maintainability.SonarQube Remediation Agent uses AI. Check for mistakes.
CHALLENGE 04
A fix is not a one-off. Every merge, rejection and comment is a signal the next fix should learn from.
long bufferBytes = blocks * 8 * 1024;
private static final int BUFFER_SIZE = 8192; long bufferBytes = blocks * BUFFER_SIZE;
private static final int BLOCK_KB = 8; private static final int BYTES_PER_KB = 1024; long bufferBytes = blocks * BLOCK_KB * BYTES_PER_KB;
CHALLENGE 05
Correctness is the property we can compute.
Mergeability is the property that provides value.
Correctness is a property of the patch.
Mergeability is a property of the patch, the codebase, and the person.
Not worth fixing.
The finding is real, but the team decided it doesn’t matter here.
01 workflowThis code is going away.
Being deleted or rewritten. Correct about a file with no future.
01 workflowWrong person.
It landed on someone with no authority over that module.
02 discoverabilityNo time to be sure.
Review cost exceeded the perceived benefit.
03 reviewabilityNot how we’d write it.
Correct, and foreign to the codebase’s conventions.
04 evolvabilityToo late.
It sat long enough to conflict. Mergeability decays, correctness doesn’t.
05 mergeabilitySo the question stops being “can we fix this issue?”
and becomes “should we spend a developer’s attention on this issue?”
They were not rejecting AI.
They were rejecting anything they could not reason about.
A patch delivers no value until a person merges it.
So, the experience of getting it merged is not around the problem. It is the problem.