[
  {
    "startMs": 880,
    "text": "We're probably all playing this game: Should This PR Merge? Thanks to all the AI code generation tools out there, we can now take a task, break it down really quickly to many subtasks, act on each one of them quickly, but even simultaneously. Then it means that we have a pile of PRs that we need to deal with and review, and the SLAs are getting worse. Now, the first thing you're all probably doing is injecting or using an AI-empowered code"
  },
  {
    "startMs": 30800,
    "text": "review tool. That's helpful. Most AI code review tools, and Qodo is one of them, is providing findings, telling us what's wrong, like in different part of the code. That's great, but we're still having humans needing to review that, and that's not good. We have to automate this bottleneck. So in this call, I'm gonna talk about a killer feature for AI: Should This PR Merge? It's not only about telling what are"
  },
  {
    "startMs": 60800,
    "text": "the findings that we can act on. Rather, if it's okay to actually merge. And what's important in order to get there is understanding the merge risk. So we're gonna talk about how to teach AI code review when to stop and stop the PR and not approve it, where when it can auto-approve, where it needs to call a human for, like high-level judgment or, uh, speciality. Okay, so one of the things we talked about, and uh, I guess like we don't need additional"
  },
  {
    "startMs": 90700,
    "text": "motivation, but it's still important, is that these, these days, like PRs are not getting arriving one by one. There might be arriving nine of them in four different repos, and we want them all to be approved all, all at once. At the same time, there is some usefulness in having the PR unit. For example, if you need to reverse, recover, uh, you need to blame a small change that made some issue. So that's why PR are still useful so"
  },
  {
    "startMs": 120540,
    "text": "far. Now we want to automate both the PR process, the PR approval, and the work package approval. The first thing is that AI code review tools help us with findings, tell us what's wrong with certain parts of, uh, of the change that we're, we're doing. But in order to automate, we also need to know what can go wrong. These are different question. For example, can I revert? Can I undo what I just pushed? Um, what are the"
  },
  {
    "startMs": 150520,
    "text": "possible failure modes? Uh, is it recoverable? How bad it will be if it goes wrong, and so on. So there are a few question we want to ask because we don't want just, like, review “merge risk [unclear],” “merge risk medium.” We need to break it down in order to be able to act upon. So the first question we want to ask: What's the potential damage? For example, if you're making a change in a shared library that is in charge of transactions, it's probably worse than something on the, your documentation site,"
  },
  {
    "startMs": 180620,
    "text": "which is important as well, of course, but it's not the same damage. The second question you want to ask yourself: What is the blast radius? Like, what's the reach? What are the user-- different user stories or different component that this change might impact implicitly? And then we want to understand, uh, is it a one-way door or a two-way door? Can we go back and return back? Or once we push this, uh, code to production, we cannot go back. One of... A great example, although there are many, is migration of"
  },
  {
    "startMs": 210560,
    "text": "databases that is usually really hard to go back from. Now, the last thing I want you to think about is complexity. It's important. By the way, size doesn't mean complexity. Of course, there is correlation, but you can have like some, uh, change, algorithm change or concurrency, uh, change, ordering, uh, change, and things like that, um, that are really complex. And the problem is that not only human could, you know, have higher chance to"
  },
  {
    "startMs": 240560,
    "text": "have issues understanding it, but also AI. So you might want to treat differently the, the PR high complexity or, or low complexity. So kind of recap, and I'm gonna summarize into three topics: blast radius, behavioral complexity, and potential damage. These three are orthogonal, and that's why they're... each one of them is useful. Considering if you... Especially if you consider blast radius as the reach and not, you know, business"
  },
  {
    "startMs": 270320,
    "text": "criticality, I put that in the potential damage. So these are the three things you want to teach your AI code review tool to be able to estimate in high accuracy in order to automate the pull request process, pull request review process. So once you have these, okay, the first thing that people think about is putting them in the labels for, for triage. I think it's important, but it's not enough. It doesn't, like, enable you enough information to, to act on it. So what you"
  },
  {
    "startMs": 300280,
    "text": "want is like a senior reviewer level of description. It means not too much, not too little, uh, concise. So here's an example of how you can do it. Uh, merge risk overall medium because blast radius is high, complexity is medium, and potential damage is medium. And here's a little like one sentence of information for each and maybe some summary or [unclear] or what to do next. I do feel it's useful if you have more information that you can link to, like a full report,"
  },
  {
    "startMs": 330680,
    "text": "supporting code, and checks, whatever, which is, which is to, to justify this. And also very useful to have some prompt for an agent if it wants to, you know, try to make a change that moves the merge risk from medium to low. We'll talk about it. That's like one of the major use cases for, um, for, for this estimation, okay? Now, once you have this risk, I suggest it's not a one-time thing that you run by the end of the review and decide if to merge or"
  },
  {
    "startMs": 360644,
    "text": "not. Basically, what you wanna do is being able to mitigate and act upon, and it also helps you to change the mindset of your developers. If you can reach the same specification, especially if it's exactly the same, but even similar specification, but with lower risk, that's exactly what you want to do in order to automate. So basically, you want this estimation to be independent to the findings review. You can have them in one commit if you don't want too many commits, but I suggest you also have it independent because you want to"
  },
  {
    "startMs": 390684,
    "text": "have, uh, the risk being mitigated if possible and then re-estimated, uh, again. And that's like a separate unit. Now, eventually, when you have that, this is the framework I suggest to think about. You're probably not going to automate your entire software, but you wanna have three lanes. In case of low risk, then you want to... Even if it's just thirty percent, by the way, you wanna auto-approve. That's amazing because that lane of thirty percent have really high throughput, right? Because it's"
  },
  {
    "startMs": 420324,
    "text": "auto-approved and you can make it more than thirty percent because of it, uh, eventually on the overall throughput. And then, uh, if you think about, uh, additional lane, I actually suggest you divide it into two: medium and high. And why? Because you might want to have different policies. If it's medium, maybe you want a human reviewer on the PR or on the work package as a whole. But if it's high, not only you want a reviewer on, on the PR, maybe, or the work"
  },
  {
    "startMs": 450264,
    "text": "package, maybe you want to review also the specification, the plans and, and so on. Okay? Uh, so you choose your policy, but these are the three lanes, and this is the setup that will actually help you to push towards software factory L4, level four of automation. Because now that when you have this, basically what you're trying to do is have as many PRs in the green lane and then less in the yellow and as much as possible less in the red. Although I don't think like in the near future it will be"
  },
  {
    "startMs": 480284,
    "text": "zero, of course. So kind of summarizing, orthogonal metrics is better than one number because you can act on and explain. You don't only want the label, you want explanation. Do not allow unknown. That's high risk. And improve your software factory and all the signals you can bring to make it high accuracy signal. You wanna score the PR, but you also wanna score the work package. You don't want PRs that are not gonna be used because there are other parts of the PRs are"
  },
  {
    "startMs": 510204,
    "text": "gonna be wasted. Don't tell me that it's easy these days to change code, et cetera. Let's talk about in a different talk about software drift and if it is really easy to, to fight that drift with, with AI. And then eventually, I'm suggesting to make this signal, the, the ultimate signal of merge risk as composable independent because you might want to rerun it quite a few times. So basically, uh, as you are on your process to automate your software developer-"
  },
  {
    "startMs": 540144,
    "text": "development and want to reach L4 automation, the idea that humans are not watching and making all the little annoying, um, judgment points like reviewing every PR. It's about system that knows when to call a human, okay? And that's exactly what we talked about today and why merge risk is a, is a killer signal, the ultimate signal for, for that. Okay, the talk ended, but I do have some appendix for those who want to hear a bit more. So first of all, one thing I'm hearing, why not,"
  },
  {
    "startMs": 570264,
    "text": "you know, use a coding agent to score themself, provide their own merge risk? So there's plenty of papers and tweets out there. Basically, just one example, if you do that in the same session, then there is bias there inside the session itself that agents and LLMs love to comply with and even the harness itself has some bias that you want to [unclear]. Okay? Uh, I suggest you, you look for some material and you'll find. The second thing is like how these labels could"
  },
  {
    "startMs": 600184,
    "text": "look like. I got this question a few times and, uh, I suggest not only to put the label of the risk, but actually putting the, the labels, um, that, that are the, the independent orthogonal metrics. It really helps with different type of automation. So this is how it could look like. And then the, uh, another question is why is the left side, the left example, got Qodo eligible for approval and the right side did not? Yeah, the, the orthogonal, the risk is the same, but orthogonal are different. Is it because of that? The"
  },
  {
    "startMs": 629944,
    "text": "spoiler, no. So indeed, complexity is high versus low. Blast radius large versus small. Um, but potential damage is medium and I think it's one of the most important, by the way, by the way, like, uh, metrics out of the three. Um, but it's not, it's, it's not because of these differences because w-- I wanna make sure that... Do not mistake the fact that I think that merge risk is a very important signal with the fact that there should be other signals. For example, were all the rest of the finding being addressed? Doesn't mean like agreeing with"
  },
  {
    "startMs": 659844,
    "text": "everything but being addressed. Security, AI code review, uh, findings and, and so on. This is, by the way, like the kind of like findings and merge risk information that you can get from Qodo. Everything I just presented so far you can get from Qodo. So this is how Qodo looks like. It's, it's one, uh, user interface. We, we have a few. Basically, Qodo will give you like the general risk and this is in addition to the label of course and, and give you like high level, really high level explanation about the"
  },
  {
    "startMs": 689884,
    "text": "blast radius, behavioral complexity, potential damage. If you open it up there will be that one sentence that I, I talked about and even there's more information that you can get and that helps humans or agents if they wanna dig into."
  }
]
