HomeEnterprise AI

Mandatory Review And Testing Gates Keep AI Coding Agents From Skipping Quality Checks

December 4, 2026

Laszlo Nagy, CEO of DuoClarity LLC, explained how mandatory checks keep autonomous coding workflows accountable to engineering standards.

Mandatory Review And Testing Gates Keep AI Coding Agents From Skipping Quality Checks
Credit: CIOnews

Get the latest from CIOnews.

Enterprise AI, governance, risk, and leadership insights for CIOs, CTOs, CISOs, and technology leaders.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
"You need senior engineers who know the architecture and know all these methods. You need the engineers to be able to design the system."

Laszlo Nagy

CEO
DuoClarity

When an AI coding agent fails a test in Laszlo Nagy’s workflow, it has to fix the problem before it can move on. As agents take on assignments spanning multiple tasks and days of execution, review and testing have to run throughout the workflow, with checks that block the next step when something fails. For CIOs expanding autonomous development, that means defining what counts as completed work and making those requirements enforceable before agents start building.

Laszlo Nagy is CEO of DuoClarity, an advisory firm focused on production AI architecture and operations. His background spans electrical engineering, industrial automation, embedded systems, enterprise cybersecurity, and AI product leadership, including a previous role as SVP of AI Product Management. He has spent roughly two years iterating on his own agent development framework, where the central requirement is that each stage actually happens.

"You have to set up hooks, and the hooks will force it to use whatever it needs to use, like a test agent. It cannot pass a stage without deploying a test agent, for example," Nagy said. These hooks are automatic checks triggered at defined points in development. In his setup, agents carry out specialized work inside a framework that also runs conventional testing tools. The scope for autonomous execution depends on whether that surrounding process reliably catches and returns failed work.

  • Specify the outcome: Nagy starts with architecture, design, and clearly defined tasks. Security expectations belong in those instructions before coding begins, alongside the functionality the system needs to deliver. "Think of it like any development team. If you don't give them the exact specifics of what you need, they will not be able to read your mind." That puts a concrete responsibility on the person commissioning the work: define the requirements closely enough that a reviewer has something to judge the result against.

  • Separate the roles: His framework divides discovery, design, planning, coding, review, verification, quality, and testing among agents. Nagy described giving it a larger assignment containing 10 to 20 tasks, then letting the orchestration work through them individually. "It has a planning agent, and it has a coding agent. Then it has a review agent, verification and quality agent, and a test agent," he explained. He reported that the setup runs for several days, sometimes a week, with shared memory helping agents retain project context and replan larger tasks. Those runs are his account of his own environment, where completed modules may still need corrections.

Longer assignments make the handoffs consequential. A planning decision carries into implementation, and an implementation change can affect code written earlier in the run. The development process needs a way to preserve requirements and check the resulting behavior at each step. NIST's secure development framework provides an established foundation: define security criteria, review or analyze code, test executable software, and record the issues discovered. Applying those disciplines to agent workflows gives leaders evidence to inspect when deciding how much work to delegate.

  • Grow the tests: "While it has everything in memory and the context of what it built, it also builds the test for that, because that's the moment where it knows best what is there. As soon as it has built the test and got it to pass, it commits and pushes automatically." Nagy's framework deploys into a local test environment and runs end-to-end checks, with failed results feeding another round of fixes. Tests stay in the repository as new modules arrive, creating a way to detect whether later changes break earlier functionality. NIST similarly recommends incorporating tests for previously reported vulnerabilities into the test suite to help prevent their return. For an enterprise team, the accumulated tests become part of the system's maintenance capacity, subject to review of whether they cover the intended behavior.

  • Block the bypass: A failed check only protects the workflow if the agent can't evade it. Nagy described agents reaching for a command option that skips verification after repeated failures, which makes control over that bypass part of the design. "AI will forget and will skip, and it will do everything to make it work," he said. "But if you have these hooks and block it from doing these things, then it will have to pass the tests before it can call it done." His setup uses checks before code is committed and pushed. The enterprise implication is to put enforceable limits around the agent's authority to change or skip the process itself. Installing a local check alone doesn't establish that boundary; the team also needs to control the paths around it.

That leaves senior engineers with continuing responsibility for the design and the judgment that testing supports. They need to understand the architecture, guide the plan, and inspect whether the finished system does what was intended. A growing test suite supplies evidence for that review, while the people responsible still have to assess what the tests leave uncovered.

"You need senior engineers who know the architecture and know all these methods. You need the engineers to be able to design the system," Nagy said. "The humans still need to look into it to make sure that you do a proper test every now and again."

research report

From the Edge to the Core:
Bringing Agentic AI to the Heart of the Enterprise.