Scopic CTO on AI Code Quality and QA
AI Code Generation Raises New Risks
Mike Vizard speaks with Mladen Lazic, CTO of Scopic, about AI code quality and the impact of AI-assisted development on software teams. Lazic says AI coding tools can improve productivity, but they also create new trade-offs. Teams are now generating more code at a faster pace. That speed can increase technical debt, code repetition, security gaps and quality issues when the work is not carefully reviewed.
Code Review Becomes the Bottleneck
The discussion highlights a growing challenge for engineering teams. AI can create large amounts of source code quickly, but review and quality assurance still take time. Lazic explains that reviewing AI-generated code can be harder when engineers were not involved in how it was created. Scopic tries to keep developers in the loop from the start. The goal is to guide AI tools like junior developers, not let them build large features without direction.
QA Needs Independent Validation
Lazic says teams should not use the same AI agent to write code, create tests and review the results. That approach can lead to an agent grading its own work. Scopic is moving toward separate agents for coding, pull request review and test creation. Some testing agents do not see the source code. Instead, they work from requirements. That helps validate whether the software meets the original goal, rather than simply matching the code that was written.
Software Engineers Move Toward Oversight
The conversation also looks at the future role of software engineers. Lazic expects AI to remain part of software development. He says engineers will spend more time instructing, monitoring, verifying and improving AI-driven work. That shift makes AI code quality a long-term concern for DevOps teams, security teams and application leaders.
As more of the software development lifecycle becomes agentic, organizations will need better gates, observability and QA practices. Lazic says the goal should not be shipping faster alone. Teams need to ship better software sooner, while reducing technical debt and avoiding hidden security risks.
Transcript
Hey guys, thanks for the thrill. We're here with Mladen Lazic, who's the CTO for Skopic, and we're having a little chat about what impact is AI having on source code and the way we generate it, because, well, there's a lot more of it all of a sudden, but it's not clear to me that it's any better than the code we used to have before. Miladin, welcome to the show.
Yeah. Hi. Nice to be here with you and to have you, and thank you for the invite.
So, yeah. So we all see it, more code than ever is being generated with these tools, but it seems like the code itself is, shall we say, of uncertain quality. Sometimes it's good, sometimes it's not.
It's not clear to me that that's any better than what the humans were doing beforehand. But it seems like there's just a lot more technical debt and things we're not thinking through. So what's your impression on what's going on here, and how do we maybe need to rethink software engineering?
Well, yeah, this is now a hot topic around the software engineering world. The source code that is being generated by AI is definitely helpful and definitely boosts the productivity, but it does come with some trade-offs and some not so hidden problems, especially as the code base grows. It's visible that rapid code generation using the tools and relying on tools too much, especially in environments where the software is vibe coded, ends up with a source code that does have deficiencies that we didn't have before as much because previously with humans doing things, things were slower.
But I think all this technical debt and everything that has existed before was piling up at a much slower pace, and it was manageable. Now, when you have a tool that can generate thousands of lines of code very fast, then the technical debt also increases and also the security around it. Bad practices sometimes, code repetition, those are all problems that are becoming very obvious very fast with unsupervised AI code generation.
Are we seeing the code actually being reviewed? Because I talked to some folks, and I feel like there's so much code that they can't even review it, so they're just kind of passing it through and hoping for the best. And do we need better tools for reviewing the code these days?
Yeah. Unfortunately, the productivity that we get from the code generation is then a bit lost when it comes to code review and when it comes to quality assurance because those are now becoming bottlenecks. And if you do it right, it does take a lot of time because the amount of code generated is huge, so for anybody to actually review it in details will take time.
So what we are now doing at Skopic is we are trying to develop tools and practices and policies that allow us to do the code reviews more efficient and, even more important, to do the quality assurance after it to be more detailed and not strictly linked to the code written. Meaning that at the beginning when this Claude Code and all the other AI generators came to be, the practice was basically that it was doing everything. So basically, you give it task, it does the code, it does the unit test, it does the end-to-end test or whatever other tests you have from the code base that it wrote.
So basically, if there is a problem in the code base, there's a problem in the test as well. Now we are kind of shifting that, and we are trying to do the QA independent of the actual code and the actual code generation, which kind of increases the stability and increases the confidence in the code, in the quality of the software. So yeah, there are techniques that we are now trying to do and, ironically, some of these techniques are also linked to the AI doing some of the work after the fact as well.
So... And when I hear from folks is one of the challenges they encounter with AI code is they didn't write it so then when they review it, they don't really understand how it was built in the first place, so the actual reviewing process takes them longer. Is there a way to maybe prioritize certain things that need to be reviewed other others, or do we need just better tooling, or how are we going to approach all this?
Yeah. So what we try to at Skopic is that we do try to not let AI autonomously just generate code. We try to navigate it in a way that the people that are involved in the product actually know what AI is doing as opposed to just giving it the specs and then get the vast amount of code back that they need to review, right?
So that's one thing that we are trying to do to kind of be in the loop all the time. Because that's, I think, the most important thing. Because otherwise you are getting a situation that you just explained, which means that you are getting at your hands on the code that is huge and that you have no knowledge of, and it's very difficult to kind of from that point take it further, right?
It's the same as previously when we, as a vendor, we took source code from another vendor. That's pretty much the most difficult thing that you can do, like review somebody else's code. This is the same thing.
So being in the loop from the get-go, not allowing AI to be too autonomous. And then thinking about, again, we are shifting now our focus to quality assurance more than code generation because ultimately the product needs to be good, needs to work well, needs to be security tested and everything else. And that now I think should be the focus more than the actual code generation.
Because ultimately, if you ship something out that may be optimally written in terms of source code, but it's well tested, it's bulletproof from security standpoint, that's still acceptable delivery, right? While in the other, the opposite, if the code is very well-written, but it has a lot of holes, a lot of back doors, a lot of vulnerabilities, then it's a different story. Then the code itself is becoming less important than it really should be.
So, yeah. What's your sense of how much of the code we're creating actually makes it into a production environment or gates to the point where it's basically rejecting a lot of that code, and that kind of defeats the purpose of having the AI coding tool in the first place? Well, I think it depends on the size of the project, my opinion, but I think that a lot of code is actually being, at least at Scopic, we don't have a big rejection rate.
At Scopic, we do have big kind of churn rate or parts of the code that we want to be redone, but we don't have rejection rate, especially in smaller projects. So smaller projects, small to medium projects, I think that AI with the current models that are out there can comprehend quite well the entire big picture, and then it does fairly good job. Now, the problem becomes when the project is too big, and then the AI starts losing the big picture and losing the context, and then it starts, instead of searching for things and finding things that were done and reusing them, it starts writing them again, sometimes in a different way, sometimes even with a different understanding of how they should be done.
And that's where the problems, and that's where when we start rejecting the code more and more, right? So I would say that for small to medium projects, rejection is not a problem. As it grows, then you need to go back to the best practices, change the process a bit, be more involved in what AI is doing, give it more specific details, like instead of telling it the feature or the requirement, you also tell it how to do it as an engineer.
Basically, you navigate it the same as we would navigate juniors back in the days. So you would tell them how to do it, where to do it, what to use, what libraries are available, and then it does, again, a fairly good job. So I would say it boils down to feel free to let it do its own thing to some degree, and then after that, start being more involved and navigate it like you would a junior developer.
Are we amassing a certain amount of technical debt now that will bite us later? Because a lot of this AI code is making it into production environments, and maybe we didn't review it as well as we should have, and at some point, there'll be an issue or an incident, right? Yeah, absolutely.
So that's a big risk, and actually, a very realistic risk because I think that people get kind of carried away with the productivity they're getting. And after some time, they start trusting AI too much and relying on it too much, and then they start accepting what it does without actual proper review, and that's where the problem comes to pile up right after a while. So I think, and then because of the speed of the code generation, this technical debt is being generated or piled up in a much faster pace, and then you get into a problem.
Now, I don't know any instance so far that has been the technical debt or maybe some improper reviews have caused big damages, but there has been occasions where, for example, we have identified that a vibe coded app doesn't have any security behind the API endpoints. Basically, it has an API that is open to the world, and it shouldn't be because it's an internal API. And so those kind of things are some things that we have been finding in these vibe coded apps that are very dangerous.
Depends on the app, but it can be dangerous to a point that you pretty much give your data, leak your data to the world without even knowing about it. So yeah, I think that the risk is very real. The damages can be very real, and I think that people should start paying attention to this more and more.
Does that mean we're going to ultimately need better tools for observability? And I ask the question because we've been making some strides on that level, but not everybody is down that path equally well. But if we all embrace AI, does that kind of force the observability issue?
Yeah, absolutely. So the question about observability, the question also about maintainability and all that, I think that tooling is catching up, not as fast. I think it looks like the primary focus from the big companies was always to kind of increase the productivity of the development, and then catch up with the rest of the things.
So I think that now things are catching up in terms of observability, in terms of quality assurance as well, like not talking about the code reviews and code itself, but the actual tests and the end-to-end tests and all the other tests that are out there. That is all now catching up with tools and techniques that can maybe bridge the gap. But so far, there is no tool that kind of stands out, in my opinion.
So for example, at Scopic, we are trying to also build some of our own that will help us because as a vendor, we do have a lot of clients, and we need to take care of this and take this seriously because we are working for somebody else, right? And building products for somebody else, and ultimately, it's going to be damaging them if something is wrong. So we take this seriously, but there is nothing yet out there that is kind of bulletproof or is showing promise of becoming like a number one go-to tool for in terms of observability and also maintainability and all these other things.
One of the things that keeps coming up is that if we have all this code And it was written by AI. It seems like a lot of developers are using the same AI agent to validate the code or review the code. And do we need to be smarter than that and have AI agents that didn't participate in the creation of the code review the code?
Otherwise, basically, the AI agent is grading its own homework. Yes, absolutely. So I did mention at some point during the interview that we have, at the beginning, people were using the same agent and actually the same context to build the code and also test the code and then review the code.
So now, at least at Scope, the best practice is that we don't use the same agent to do these things. So we have code review, pull request agents that are getting their own context and working independently from the coding agents. But also we have, when building tests of any sorts, we use another agent which has no access to the source code so that it doesn't really reverse engineer the requirements from the source code, but actually use the requirements to write the tests and then basically test the code based on requirements, not based on the written code, right?
We have had situations at the beginning, like a year and a half ago, where we have kind of needed to redo things because we were doing exactly what you explained, right? We were using it, the same agent to write the code and to write the tests and to review, and basically it did a fairly okay job for itself, but it was not actually accurate because the code had bugs that were not according to the specs, and that's where the problem, those bugs were clipped into the code and clipped into the final test environment. Now, luckily, we caught it.
I mean, at this point, it was never in production, but we learned the lesson the hard way. As you kind of look at all this stuff, what is the role of the software engineer going to be in the future? How does that job evolve, and the application developers who work with them, how does that whole DevOps team start to look?
Yeah. So first of all, I don't think that there's no coming back, right? So I don't believe that there is ever going to be non-AI engineering in the future, at least unless something big happens.
But I just think that even the software engineers would not like to end up not using AI, right? So AI helps a lot. So I think that the future of software engineers and DevOps and everybody else will be to come up with tools and techniques to be able to properly instruct and navigate, monitor, and verify what the AI agents are doing, right?
So basically, software engineers are going to become more of a quality assurance people than they are actually coders. They're going to be reviewing something else, somebody else's work, and they're going to be focused on monitoring the progress and being able to have an insight on what's actually going on, and then join only when absolutely needed, when AI starts going in circles or similar things. So yeah, that's why I think that the basis is still important, right?
So people, I'm afraid for the new generation of software engineers, how are they going to be and how are they going to work, because the engineers that have been here before 2022, they all know how things should be done, and then they can maybe navigate AI. But the engineers that are upcoming, that are now starting their journey or that are going to be starting their journey in five, six, seven, eight years, they're not going to know the world without AI, and that's going to be difficult for them to get to know the basics, to understand why some things are done the way they are. And I'm worried about the future generation of engineers, to be honest, more than I am of the current one, right?
So yeah, that's kind of... So what do you know now? I mean, you're pretty far down the path here, but compared to where you were a year ago, what do you wish you knew when you were first starting out that you know now?
Well, I mean, I do wish-- So some of the lessons that I mentioned that we learned the hard way, I would love to know them before. I mean, I guess at that point, the only way to know this is to try and then see how it ends up. I mean, I guess the second thing that I would like to know is that, I mean, I wish I knew back then is that how much will people depend on this AI a year from now, right?
Because I was always back like a year and a half ago, I was always thinking of AI like a glorified code suggestion mechanism. And there was indication that it's going to be at some level better, but I didn't expect that it was going to come to a point where we have people that are not engineers at all building apps, right? So that's something that if somebody told me a year ago, "Prepare for this," I would probably focus more on QA from the get-go than on the coding itself.
So I think that's the one thing that I maybe didn't anticipate from the get-go, that QA is going to play a massive part and a very important part. So what is your crystal ball telling you now about where we're going to be a year from now? I mean, I know it's hard to guess, but as you kind of look at where things are headed, what do you expect next?
Well, I do think that it's going to come to a point that the whole SDLC is going to be automated, is going to be agentic, AI-driven, that some projects at some maybe smaller scale will actually be able to be implemented without much of human intervention or engineering intervention. So I do see that there will be-- I do anticipate that tools, maybe some of the well-known tools also evolve into something that will allow the entire pipeline to be done through AI, right? And that's something that I think where people should be kind of looking out for these gates or places in the pipeline where human intervention will be needed, and then focus on how to increase the value of human being there by better reviews and more observability, as you said, and things like that.
But I do see that there will be a point when pipeline is automated fully, right, from start to finish. And it's going to be a massive impact on the industry, I think, maybe even more than it is now. But yeah, I mean, it is here to stay, so there is no running away from it.
So we have to be preparing for that and see how we can increase the value of our services more by controlling the AI in the way that others cannot, right? So that's kind of what we are now doing and thinking. Oh.
Hey, folks, you heard it here. Look, application development is never going to be the same again, that's for sure, and what we're doing a year from now might even not look like anything we do today. Hopefully, though, the goal is not to just ship faster, but to ship better software sooner, so then we don't have as much technical debt.
Hey, Miladin, thanks for being on the show. No worries. Thank you for having me, and it was a pleasure, and yeah, it was nice talking to you.
All right. And back to you guys in the studio.