Reviewing AI-Generated Code Is Already Too Late

Validate Intent. Specify Behavior. Then Generate Code.

AI Writes Code Faster Than We Know What to Build

AI has dramatically accelerated code generation, but most organizations still discover what the code should have done only after it has been written.

Imagine a coding agent producing a substantial implementation in two minutes. The resulting pull request then requires twenty minutes of review by senior engineers and AI review agents. They inspect the implementation, question assumptions, identify missing requirements, and check whether architectural constraints have been respected. At first glance, code review appears to be the new bottleneck in software delivery.

But this interpretation misses the fundamental problem. From a knowledge-centric perspective, software development is a knowledge-discovery process. Knowledge is the fuel that drives it. Its essential challenge is closing the gap between what is already known and what must be known to deliver the intended behavior. Source code is the tangible output of that process, not its fundamental constraint.

AI coding agents dramatically accelerate the transformation of available knowledge into working software. But faster generation does not guarantee that the necessary knowledge is available in the first place. When product intent is ambiguous, architectural decisions remain undocumented, or engineering standards are missing, agents must make assumptions. They can produce technically convincing implementations that are fundamentally wrong.

Traditional pull request reviews attempt to catch these problems after implementation. Senior engineers and specialized review agents reconstruct the intended behavior, examine decisions, and discover knowledge gaps that should have been resolved earlier. Review remains essential, but discovering missing knowledge after code generation cannot undo the effort already spent implementing incorrect assumptions. It merely creates another cycle of correction, regeneration, and review.

For engineering leaders, this exposes a critical weakness in the delivery system. Organizations invest heavily in making coding agents faster and code reviewers more capable, while paying far less attention to whether the knowledge entering implementation is sufficiently complete, consistent, and correct. They optimize the production and inspection of code without adequately controlling the knowledge that determines its correctness.

The problem is not that AI writes code too quickly. It is that we let AI write code before establishing what it needs to know.

Cheap Code Can Produce Expensive Rework

When you accelerate code generation without improving knowledge discovery, you risk turning AI productivity gains into defects, rework, and mounting pressure on your most experienced engineers.

Failure begins with missing knowledge. A coding agent generates a plausible implementation based on incomplete product requirements, undocumented architectural constraints, or incorrect assumptions. The code looks professional, passes basic checks, and appears ready for delivery. Only during review—or worse, after deployment—does someone discover that the implementation solves the wrong problem or violates an important constraint.

The economic damage extends far beyond fixing a few lines of code. Senior engineers must reconstruct the original intent, identify the missing knowledge, explain the necessary corrections, and review the regenerated implementation. What took an agent two minutes to produce can require hours of human investigation and rework. As these interruptions accumulate, senior engineering capacity shifts from solving new problems to correcting mistakes that could have been prevented.

The evidence suggests this is becoming a systemic issue. Faros AI's 2026 engineering report, based on telemetry from 22,000 developers across more than 4,000 teams, found that higher AI adoption coincided with a 33.7% increase in task throughput per developer, but also an 861% increase in code churn and a 242.7% increase in the incidents-to-PR ratio. Median time in review increased by 441.5%, while pull requests merged without any review increased by 31.3%. These findings do not prove that missing knowledge causes every failure, but they expose the growing gap between code production and effective validation.

This changes the economics of software delivery. Spending twenty minutes validating product intent, specifications, and constraints before implementation may prevent several hours of expensive rework afterward. More importantly, discovering a missing requirement early prevents that same misunderstanding from propagating through tests, implementation, documentation, and subsequent changes. The relevant measure is therefore not how quickly an agent produces code, but how efficiently the entire engineering system delivers correct, maintainable software.

When you optimize code generation instead of knowledge discovery, you make mistakes faster.

Stop Reviewing Mistakes. Start Preventing Them

You must move quality assurance upstream, from inspecting generated code to validating the knowledge that determines what the code should do.

You have three approaches. Traditional pull request reviews preserve familiar human oversight but find many problems after implementation. Pre-commit reviews by specialized AI agents detect defects earlier and reduce human effort, yet still inspect code that may have been generated from incorrect assumptions. Knowledge-centric agentic reviews, my recommended approach, validate the knowledge used to generate each deliverable before allowing it to become the input to the next stage.

The principle is simple: every significant knowledge artifact must be reviewed before another agent builds upon it. In my practical workflow, AI agents collaborate through a sequence of validated deliverables. A User Manual Agent describes expected product behavior and passes specialized reviews against product intent and documentation standards. A BDD Specification Agent transforms that behavior into explicit, testable scenarios, checking completeness, consistency, and business rules before proceeding.

Next, an E2E Testing Agent turns the approved specifications into executable end-to-end tests before implementation begins. These tests establish the observable behavior the product must deliver, independently of how the code is structured. Only then does the Implementation Agent generate code, using the tests as an executable specification while respecting architecture, security, and coding standards. Specialized review agents validate each stage, identify missing or contradictory knowledge, and escalate unresolved decisions to humans.

This is Test-Driven Development organized around product behavior rather than unit tests and implementation details. End-to-end (E2E) tests provide the primary behavioral contract, while unit tests remain useful where they address specific risks. Humans retain authority over product intent, governing standards, and consequential decisions; agents perform routine validation and surface uncertainty.

This approach requires more than adding AI reviewers to an existing pipeline. It changes what gets reviewed, when it gets reviewed, and what qualifies as ready for the next stage. The objective is not to eliminate code review, but to prevent avoidable mistakes from reaching it.

Review the intended behavior first, the implementation second.

The Winners Won't Be the Teams Writing the Most Code

Adopting knowledge-centric agentic reviews changes the economics of software engineering: organizations invest more effort in validating knowledge upfront to reduce the much greater cost of correcting mistakes downstream.

For executives, this is not simply a tooling decision. It requires redesigning how Product, QA, Architecture, and Engineering collaborate. Product managers must express intent clearly enough for humans and AI agents to understand and test. QA must establish executable behavioral expectations before implementation, while architects make critical design decisions and constraints accessible to agents. Engineering teams must maintain explicit standards and specialized review agents that prevent incomplete or contradictory knowledge from moving downstream.

The trade-off is that more validation does not necessarily mean faster individual tasks. Multiple agents reviewing specifications, tests, and implementations increase token consumption, execution time, and operational complexity. Some changes may require substantially more time to validate than to generate. Review agents can also produce false positives, disagree with one another, or overlook problems when governing standards are incomplete. Human judgment remains essential for resolving uncertainty and making consequential decisions.

Act now, and you redirect engineering effort toward preventing mistakes rather than correcting them. Experienced developers spend less time reconstructing requirements and rescuing flawed implementations, freeing capacity for architecture, innovation, and complex decisions. Validated knowledge artifacts become reusable organizational assets, reducing the need for subsequent agents to rediscover the same information. The expected return is lower rework, fewer escaped defects, greater delivery predictability, and a reduction in total delivery cost—not simply more code produced per hour.

Do nothing, and the imbalance between generation and validation continues to grow. More AI-generated code enters a delivery system still organized around inspecting completed implementations. Senior engineers become increasingly occupied with reviewing, correcting, and explaining decisions that should have been established earlier. Organizations may celebrate rising pull request throughput while overlooking growing rework, accumulated technical debt, and declining engineering efficiency.

The ultimate management question is therefore not how fast your agents write code, but how efficiently your engineering system transforms uncertainty into validated, working software. Measure knowledge-discovery efficiency, rework, delivered quality, predictability, and total delivery cost. These measures reveal whether AI actually improves the delivery system or merely accelerates one activity at the expense of others.

The organizations that win with AI will not be those that generate the most code, but those that waste the least effort discovering what should have been known before generating it.

Next Step

Stop treating code review as the final defense against missing knowledge. Select one engineering workflow, validate product intent, specifications, and executable tests before implementation, and measure the impact on rework, quality, and total delivery cost. In the agentic era, the competitive advantage is not generating code faster. It is discovering what must be known before generating it.

Dimitar Bakardzhiev

Getting started