A clean code review is not the same as a safe merge

Qodo’s Itamar Friedman separates potential damage, reach and behavioral complexity to decide which changes need human review.

IFItamar FriedmanIntervenant · Qodo
Chaîne
AI Engineer
Publié
4 déc. 2026
Vidéo
11:42
Lecture
4 min
Diapositives
4
Original
anglais
Ouvrir sur YouTube
En faisant défiler, la vidéo se réduit en bas à droite et continue. Les sous-titres suivent votre langue de lecture.
Langue de lectureDisponible en 2 langues
Cet article n’est pas encore disponible en français ; il s’affiche dans l’original en anglais.
RÉSUMÉ

En 30 secondes

A review that finds no defects does not answer what might happen if a change fails, says Qodo’s Itamar Friedman. He proposes assessing three separate dimensions: how far a change reaches, how complex its behavior is and how much damage failure could cause. Explain each briefly, mitigate what can be reduced and assess again. His suggested policy routes low-risk changes toward automatic approval, while medium- and high-risk changes receive different levels of human review; unresolved unknowns count as high risk.

  1. 1Finding no defect does not answer what could go wrongFriedman distinguishes code-review findings from failure modes, reversibility and the consequences of a bad merge.
  2. 2Score reach, behavioral complexity and damage separatelyA small concurrency change can be complex, while a change in a shared transaction library can have consequences different from a documentation edit.
  3. 3Explain each score and reassess after mitigationHe suggests a concise reviewer-style explanation with links to supporting evidence, then a separate risk check after changes reduce the risk.
  4. 4Route changes through three review lanesHis proposed policy automatically approves low-risk changes, asks a person to review medium-risk work, and adds broader review for high-risk work.
  5. 5Keep risk scoring independent and combine it with other signalsFriedman worries about bias when a coding agent scores its own work in the same session and says unresolved security or review findings also affect approval.

À retenir

  1. Separate identified defects from merge risk: ask what could go wrong, how damaging it would be and whether it can be reversed.
  2. Assess reach, behavioral complexity and potential damage separately so the result explains what can be changed.
  3. Provide a concise explanation and supporting evidence, not just a risk label.
  4. Reassess risk after mitigation instead of treating it as a one-time check.
  5. Friedman proposes different approval policies for low-, medium- and high-risk changes, treating unknowns as high risk.
  6. Evaluate the overall work package as well as individual pull requests, and consider other signals such as unresolved security findings.
TEXTE INTÉGRAL

Lire le texte remanié, chapitre par chapitre

Transcription seule
01

Why findings alone do not answer whether to merge

AI can generate changes faster than humans review them. Friedman separates defects already found from the risk of a change failing after release.

AI coding tools can break work into many subtasks and execute them quickly or in parallel, leaving teams with a pile of pull requests to review. I want to address a question beyond the findings produced by an AI review tool: should this change actually merge?

Pull requests may arrive together across several repositories, but the unit still has value: a small change can be reviewed, traced or reversed. The challenge is to assess both each pull request and the larger package of work.

Findings identify apparent problems in specific parts of a change. Merge risk asks a different question: what could go wrong, how bad would it be, and could the team recover or undo the change? A clean list of findings does not itself answer those questions.

02

Break risk into reach, complexity and damage

The three dimensions describe different characteristics of a change. Reversibility and failure modes help explain the consequences.

I separate potential damage from blast radius. Damage concerns the consequences of failure: a transaction-library change may have a different downside from a documentation edit. Blast radius is the reach of the change—components or user journeys that could be affected, including indirectly.

Reversibility matters too. A change can be a two-way door that is readily rolled back or a one-way door that is hard to undo; a database migration is one example where reversal can be difficult.

Behavioral complexity is the third dimension. Size and complexity can correlate, but a small change in an algorithm, concurrency or ordering can be difficult for both humans and AI to understand. Treating complexity separately helps distinguish it from reach and damage.

Three dimensions of merge risk
DIAPOSITIVE 1 / 4Three dimensions of merge riskThe slide separates blast radius, behavioral complexity and potential damage.

These three dimensions are intended to be independent: reach is not the same as business criticality, which I place under potential damage. An assessment should estimate each accurately enough to support an approval policy.

03

Explain risk, reduce it and score again

A concise explanation gives people and agents something to act on. Risk assessment can run again after mitigation.

A label such as medium risk is useful for triage but is not enough to act on. I want a concise explanation like a senior reviewer’s: an overall assessment, a sentence on each dimension and, where useful, a suggested next step.

An actionable risk explanation
DIAPOSITIVE 2 / 4An actionable risk explanationA sample assessment gives the overall rating, a reason for each dimension and evidence gaps.

Link the short explanation to a fuller report, relevant code and checks so a person or another agent can investigate. A prompt for an agent can also suggest how to change the implementation to reduce the risk.

I do not want risk assessment to run only once at the end. If the same or a similar specification can be achieved with less risk, mitigate the problem and assess again. Keeping this assessment independent from the findings review makes repeated checks easier.

04

Use three lanes for approval

Friedman proposes automatic approval for low risk and progressively more human involvement for medium and high risk. Unknowns and the full work package also matter.

I suggest three lanes rather than trying to automate every decision. Low-risk changes can be automatically approved; even if that is initially only part of the queue, that lane can move much faster.

Three review lanes
DIAPOSITIVE 3 / 4Three review lanesThe proposed policy routes low-, medium- and high-risk changes to different levels of review.

For medium risk, a human might review the pull request or the whole work package. For high risk, the policy might also require review of the specification and plan. The precise policy is a team decision; the lanes make different policies possible.

Treat unknowns as high risk rather than quietly approving them. Improve the available signals so that assessments become more accurate, and score the work package as well as its individual pull requests.

Make merge-risk assessment a separate, composable signal because it may need to run repeatedly. The goal of a more automated development process is not that a person watches every small decision, but that the system knows when to involve one.

05

Independent scoring and other approval signals

He warns that self-assessment in the coding session may be biased. Risk labels should be combined with addressed findings and other checks.

Can the coding agent score its own work? I prefer an independent assessment because the same session and harness can introduce bias toward the choices already made. Separate labels for the three dimensions can also support different automation rules.

Equal risk ratings, different approval eligibility
DIAPOSITIVE 4 / 4Equal risk ratings, different approval eligibilityThe examples show why the individual dimensions and additional findings matter alongside an overall score.

Equal overall risk scores need not mean equal approval decisions. Teams should also ask whether security and other review findings have been addressed. Qodo, my company, presents an overall risk assessment with short explanations of reach, complexity and damage, plus more detail for anyone who needs to investigate.

Sur la même chaîne

6 diapositives1:01:25EN
AI Engineer· 4 déc. 2026From Coding Prompts to Delegated Projects: Factory’s WorkstreamsRoss Cefalu, Dex Horthy · FactoryRoss Cefalu and Dex Horthy show how an orchestrator, shared context and human review support long-running agent work.Agents de codeAgent orchestrationWorkflows de développement et tests+2
7 diapositives23:31EN
AI Engineer· 4 déc. 2026Ankit Jain: Review Decisions and Evidence, Not Just AI CodeAnkit Jain · AviatorAviator’s nine engineers moved from reading every diff toward checking decisions, rules and evidence as AI quadrupled their output.Code review & verificationAgents de codeWorkflows de développement et tests+2
5 diapositives1:01:19EN
AI Engineer· 3 déc. 2026Build a coding agent harness: tools, budgets and contextTejas Kumar · IBMTejas Kumar turns a chat loop into an agent, then swaps the model and tools to show which pieces can be reused.Ingénierie d’agentsAgents de codeIngénierie du contexte+2
5 diapositives26:34EN
AI Engineer· 3 déc. 2026Joe Zein: Turn private-equity archives into context AI agents can useJoe Zein · Soal LabsA low-cost-first pipeline extracts, reconciles and traces decades of fund records before agents can rely on them.Data quality & curationAI agentsKnowledge graphs+1
4 diapositives17:31EN
AI Engineer· 3 déc. 2026Natalie Serrino: Faster AI changes what agents can doNatalie Serrino · Gimlet LabsA two-minute agent turn breaks a builder’s flow. Faster inference can help, but tool calls and the speed–throughput tradeoff still matter.InferenceAI cost & performanceAgents de code+2
8 diapositives1:02:59EN
AI Engineer· 2 déc. 2026Kent C. Dodds: build a feedback loop before letting agents shipKent C. Dodds · KodyMaps of reusable components, verifiable pull requests and tested recovery help coding agents work with less human review.Agents de codeIngénierie d’agentsWorkflows de développement et tests+2