AI Engineer Code Summit 2026
Should This Merge? — Itamar Friedman, Qodo
Loading slides…
Read the talk
Should This Merge?
A code review can turn up no defects and still leave a risky change on the table. Qodo’s Itamar Friedman breaks merge risk into three questions that help teams improve a change, automate routine approvals and decide when to call a human.
From a talk by Itamar Friedman
At a glance
Ideas worth remembering
A clean findings report leaves open how far a failure could spread, how hard the behavior is to reason about, how much damage it could do and whether recovery is practical.
Explain each risk rating briefly and link to the evidence. Run the assessment independently so an author can try a safer implementation of the same specification and check whether it helped.
Score both the PR and the work package. Reserve automatic approval for qualifying low-risk changes, involve people as the stakes rise and treat unknown risk as high.
Keep approval eligibility separate from the risk rating. Two equally risky PRs can warrant different decisions because the policy also considers whether review findings have been addressed.
Nine pull requests, four repositories, one decision
Imagine nine pull requests arriving across four repositories. They all belong to the same task, and you want them approved together. Coding agents can split the task and work on several parts simultaneously. The people responsible for reviewing the results now have nine decisions waiting for them.
An AI reviewer can take a first pass and flag problems in particular parts of the code. That helps. But if every pull request still waits for someone to read the findings and decide whether it can proceed, approval remains the bottleneck.
Itamar Friedman of Qodo makes a case for keeping both units of review. A small PR is useful when something breaks and you need to identify or revert the offending change. The work package, the set of PRs that accomplishes the task, is useful when deciding whether the pieces can ship together.
Automating either decision requires a second kind of review. Findings tell you what the reviewer thinks is wrong. Merge risk asks what could go wrong in production, how bad it could get and whether you could recover. An empty list of findings leaves all three questions open. 2:06
Separate the damage, the reach and the difficulty of reasoning about the change
Suppose the reviewer rates a PR medium risk. What would you change to make it safer? The answer depends on how it earned that rating. Friedman asks the reviewer to estimate three things separately. 2:45
- Potential damage. How serious would a failure be? A mistake in a shared library that handles transactions can have much worse consequences than a mistake on the documentation site. The business importance of the affected operation belongs here.
- Blast radius. How far can the change reach? Trace the components and user workflows that depend on the changed behavior, including those the PR touches only indirectly. For the transaction library, this means looking beyond the library itself to its callers.
- Behavioral complexity. How difficult is it to work out what the new code will do? A small edit can change an algorithm, the ordering of operations or the way concurrent operations interact. Both human and AI reviewers can struggle to reason through those cases. Counting changed lines gives only a rough clue.
Recovery deserves an explicit question of its own. Is this a one-way door or a two-way door? A database migration makes the distinction concrete. You may be able to revert the commit easily and still have a very hard time returning the production database to its previous state.
Keeping the dimensions separate prevents a common confusion. A change can reach many users and do little harm if it fails. Another can reach a narrow part of the system where failure is expensive. If business importance gets folded into blast radius, the reviewer loses the ability to tell those cases apart.
Give the author enough information to lower the risk
What would a senior reviewer write alongside a medium-risk label? In Friedman’s example, the blast radius is high, behavioral complexity is medium and potential damage is medium. The overall rating is medium. Each dimension gets a sentence explaining the judgment, with room for a short recommendation about what to do next. 5:00
The high blast radius is the detail worth investigating first in this example. Which other components could change behavior? A link to the relevant code, checks or full report lets a reviewer follow that question without making everyone read the whole analysis. The ratings illustrate a judgment. Friedman gives no fixed formula for combining them.
The same explanation can become a prompt for a coding agent. Ask whether another implementation could satisfy the same specification with less risk. In this example, a useful place to look would be whether the change really needs to affect so many callers. If the agent finds a narrower implementation, run the assessment again to see whether the risk actually fell from medium to low.
That is why risk estimation should be possible well before the final merge decision. A developer can fix a reported defect and reduce the reach of a change in the same commit. The review system should still let the developer rerun the risk assessment independently. Closing a finding tells you very little about whether the new implementation is easier to undo or understand. 5:55
Decide how much human review each change needs
Suppose only 30% of PRs qualify for automatic approval. Friedman would still take that deal. Those changes can move without waiting in the human review queue, and their share of completed work could grow as a result. The 30% is a hypothetical starting point. Each team chooses its own approval policy. 6:39
The interesting policy choice is what to do with the rest. For medium risk, a person might review the PR or the work package as a whole. For high risk, it may be worth going back to the specification and the implementation plan as well. If the plan itself entails a difficult recovery, another careful reading of the diff can only get you so far.
Treat unknown risk as high risk. If the reviewer lacks enough information to judge the change, send it for scrutiny. Then improve the information available to future reviews. That gives the team a way to expand automatic approval without quietly counting uncertainty as safety.
Apply the assessment to the work package, too. Go back to those nine PRs. If a necessary part of the package cannot proceed, some of the other changes may serve no purpose on their own. Approving them individually can leave unused code behind. Cheap code generation gives little assurance that the team can keep that drift under control.
So where does the decision to approve actually happen? The team’s policy combines the risk estimate with the status of other review checks. Risk tells the system how much judgment to ask for. A separate finding can still hold up a low-risk PR. This is what Friedman means by level four, or L4, automation here. The system knows when to call a human, and some work will continue to need one.
How risk and findings enter the approval decision
Read the diagram as text
- Merge risk. Review inputs — Assess reach, behavioral complexity and potential damage for the PR and the work package. Reassess after mitigation.
- Review findings. Review inputs — Check whether the team has addressed security issues and other findings.
- Team approval policy. Choose the required review and withhold approval while required checks remain unresolved.
- Green · Automatic approval. Review lanes — The PR can proceed without waiting for a human approver.
- Yellow · Human review. Review lanes — Ask a person to review the PR or the whole work package.
- Red · Broader review. Review lanes — Bring in human judgment and consider reopening the specification and plan.
- Merge risk → Team approval policy: Risk assessment.
- Review findings → Team approval policy: Status of findings.
- Team approval policy → Green · Automatic approval: Low risk and other conditions met.
- Team approval policy → Yellow · Human review: Medium risk.
- Team approval policy → Red · Broader review: High or unknown risk.
Why two PRs with the same risk can get different decisions
Why not ask the coding agent to score its own work? Friedman’s objection is strongest when the agent does both jobs in the same session. The conversation already contains assumptions that led to the implementation. A model inclined to go along with that reasoning can carry the same assumptions into its review. The software directing the agent can introduce biases of its own. That is a reason to get an independent assessment. 9:20
Once the assessment is available, keep the individual dimensions as PR labels alongside the overall rating. That lets an automation rule pick out, say, every change with a large blast radius, even when those changes have different overall ratings.
Now compare the two PRs in Friedman’s example. Both have the same overall risk and medium potential damage. Complexity differs, high versus low, and so does blast radius, large versus small. Qodo marks only the PR on the left as eligible for approval. Did the differences in those individual ratings decide it?
No. Friedman rules out that explanation without naming the particular check that separated the two PRs. One other condition a team can impose is that someone has addressed every security and code review finding. Addressing a finding can mean explaining why the reviewer is mistaken. The team needn’t accept every suggestion to account for every one.
What to open when a label needs explaining
What can a reviewer inspect before acting on those labels? In the Qodo interface Friedman demonstrates, the review gives an overall risk judgment and a brief account of blast radius, behavioral complexity and potential damage. Expanding the assessment reveals the sentence explaining each rating, with more detail available for a person or an agent to investigate.
That gives the author two different places to look when a PR stalls. If the risk is too high, open the explanation, reconsider the implementation and score it again. If the risk is acceptable and the PR still isn’t eligible, check what happened to the findings. Lowering the risk label won’t resolve an outstanding review decision.
Resources
Further reading
Qodo’s product introduction to the approval workflows and agent session review capabilities behind these policy decisions.
A practical starting point for tracing the blast radius of a shared-library or API change into repositories that consume it.
Friedman explains why Qodo separates generation from review, how it divides defect detection among specialized agents and what precision and recall measure on the findings side of the decision.
Full transcript
Loading transcript…