Welcome back. So far, you have learned how to use a framework that allows you to select a team composition, a collaboration workflow, a workflow process and the levels of AI delegation. You have also learned that clear decision owners should be assigned beforehand. All these components are essential to improve how teamwork operates when using AI for software engineering. In this lesson, you'll focus on learning how AI is useful at each stage of the software development lifecycle. You'll also learn where new bottlenecks will appear and how to diagnose the root cause of the bottlenecks with possible interventions. Same as before, you'll continue working with our Acme FinTech case study. You certainly recall from previous lessons that we have already seen the seven stages of the software development lifecycle, and we even showed a relative scale of the duration of each stage before and after using AI. So, how is AI supporting each stage? In the plan, analyze, and design stages, AI is useful for researching prior assets, enumerating edge cases, generating multiple options with tradeoffs, and drafting the specifications document. However, it cannot decide which problem is worth solving, or which tradeoff your company is willing to live with. One warning here is that AI makes it very easy to produce documents that appear complete and plausible because the content is well structured and very detailed. However, you as a human need to ultimately review and approve these artifacts. Don't ever overlook the outcome in this phase. In the implementation stage, AI is responsible for writing the code, or at least the first iterations of it. This used to be the biggest bottleneck for software development projects. And now with AI, the human is responsible for orchestrating and directing agents, keeping the changes scoped, and holding the architecture coherent, so that the parallel work development doesn't contradict itself. In the testing and deployment stages, AI helps in reviewing code, writing test cases, and reaching the point of ready to ship. It can check code style, obvious defects, missing tests, security vulnerabilities, and can summarize a large diff into something a human can understand. It is important to remember that AI can generate thousands of passing tests, which may be testing the wrong behavior, So you should define clearly what correct means before the tests are generated. On the other hand, keep in mind that the idea of AI loops and harnesses are impacting the way AI tests and self-improves its own outcome with very limited human intervention. But hey, that will be a topic for another class. Finally, in the maintain stage, AI can be used to cluster and summarize support tickets, analyze logs and traces, and even spot code issues and vulnerabilities for improvements and modernizations. With the help of AI, you can reduce the duration of the timeline required to release a feature. However, new bottlenecks appear, and you will review them in this lesson. If these bottlenecks are addressed proactively with proper teamwork, the end-to-end development timeline can be further optimized. So, what are these new bottlenecks? We have summarized here a few of the most common issues you will encounter while working on real projects. We also highlight the symptoms you can observe or measure, and the potential root causes and interventions you may consider applying. The first example is that both the review queue and the time to first review grows. This is probably the most common bottleneck you'll see when too much code is produced, but the team bandwidth is limited. This happens when the human review capacity doesn't scale. For example, you don't have enough reviewers, or they don't have enough time. Here, you can intervene by adding reviewers, and by using AI as a reviewer when appropriate. You can also apply "Review Stage" limits, which is a cap on how many items are allowed to sit in the review step at once. You will learn more about this when you explore the case study later in this video. Also it is important to note that producing more code is not always better, even though many companies focus on token maxing as a code productivity KPI. As a second example, you may also find that the rework and rollback rate rises. This is the share of work that has to be redone either before or after deployment due to the role of AI in development. This means that more of the work considered done actually needs to be fixed, and this may have different reasons. For example, with more code produced, there is more code that needs to be reviewed. This can also create human fatigue, which causes reviewers to rubber-stamp thousands of lines of code, and technical debt occurs. Potential solutions include rotate reviewers and requiring smaller code changes to simplify the review process. Also, the AI may have been incorrectly assigned the role of decision maker for tasks that should sit within humans. So having proper clarity on which decisions are human versus AI should be determined early on, and you can use the provided framework to assist you on that. In addition, the implementation may begin before there's a clear alignment between team members on what needs to be built and how. If the AI doesn't have proper guidance, it can build the wrong thing very fast. A recommended intervention is to slow the early stages and spend enough time planning and creating the shared artifacts like the technical spec. As you know, alignment is cheap if done early and expensive if done reactively. The next example is the other extreme of what we just mentioned, when too much time is spent on the planning stage before the first line of code is written. This happens when the team is debating nonstop multiple ideas, like comparing the pros and cons of different architectural designs, but no decision is made. We know this as the analysis paralysis. A potential intervention is to have the AI implement multiple solutions in parallel and then select the best from all of these. So there is a balance between spending too much time planning and not enough time planning. Our next bottleneck is when there's a lack of clarity about who the actual decision maker is. This happens when you observe teams waiting to determine who'll make the final call because ownership wasn't assigned. And the simple solution to this is to define ahead of time who is owning which decisions and have some clarity on what the rollback criteria is. Next, you have the problem of overlapping code merges and products inconsistencies. This usually happens because nobody fully understands the full picture, and many decisions are done in silo, which can live in private team and AI chats. In this case, individuals make reasonable decisions for their individual work that don't align well with the overall project. A potential solution would be to build a team memory in logs and docs and even AI agents. Finally, you have non-engineering bottlenecks. They occur when there is a delay from other teams, such as design, legal, and marketing, due to priority misalignment. For example, your number one priority can be their last priority. The goal here is to bring these other departments earlier When it takes a day to implement code and two weeks to get approval from the legal team, suddenly the legal team becomes part of the critical path for the project. Similarly, there can be more work required from these teams. For example, when you build more features, you need more UI and UX designs from the design team, and there are more marketing requirements. And when there is more surface area, there's more privacy, risk, and policies required from the legal and compliance teams. So these teams should be properly staffed, aligned, and informed. Let's go back to our challenge. As you may recall, AI was rolled out within Acme FinTech, and after six months, 94% more PRs were opened. That's great news. However, only 12.5% more features were being released. So in reality, the gains from producing more code slightly improved the number of features released. You will also notice that there is a significant increase in both the time to first review and rework rate. These are the symptoms you observed, and we will explore some potential root causes and interventions. As you can imagine, there are more metrics you can look into, but for this case study, we'll only focus on this. Looking back at our table, you can observe the location of the two main bottlenecks you measured: an increase in the time to first review and the rework rate. As a result, the team analyzed the recommended interventions. One possible intervention is to apply "Review Stage" limits. Let's see what that would look like. Acme FinTech tracks the work they complete by sprint by using a simple Kanban board. They have four columns for the To Do, In Progress, Review, and Done items. Each column has a set of cards, and you can already recognize three of them. At the top, you can see the number of cards available on each column and if there is a limit, meaning that the column should not have more cards than what the limit defines. If the number of cards increases above the limit, the team will prioritize working on the items from that column. You will notice that the In Progress has a limit of five cards, and you currently have four, meaning that you are within the safe boundary. This limit was created before the incorporation of AI, when the implementation phase was a bottleneck. And since then, it hasn't been revisited. On the other hand, the Review column doesn't have a limit, and has a significant amount of cards sitting there waiting for code review. And even worse, they have been sitting there for several days. This is a new bottleneck that has been created since the introduction of AI. One solution is to swap the limits between the In Progress and Review columns, so that the team can prioritize spending more time on review over implementation. In addition, if you add more reviewers to the team and delegate an appropriate level of review to the AI, you may progressively observe a result as shown here. This will also impact a decrease of the time to first review. If you apply some of the other interventions, such as rotating reviewers, requiring smaller code changes, or prioritize creating shared artifacts, you can also improve the rework rate. One example that I want to highlight is that we mentioned that sometimes you can have bottlenecks laying outside of the engineering team. You may recall that when you were exploring implementing the Smart Categories feature, one suggested solution was to use data from similar customers to make the category suggestion, but can you legally do this? The answer is a compliance question that requires the legal team to be properly informed and staffed and early involved so this part doesn't become your bottleneck. And this will obviously allow you to quickly move the card from the To Do to the In Progress column. In this lesson, you have learned how AI can be very useful at each stage of the software development lifecycle, but you have also understood where new bottlenecks are created. Focus on observing the symptoms and analyzing the potential root causes and interventions. The main goal is to use data to measure the impact of the interventions. Now, in the next lesson, you'll bring together all the concepts explored in this course. Get ready!