[research@ai4se] : ~ $
cd ../
[process] | | 8 min

# Review Pipeline: How to Review Code When AI Wrote 80% of It

Traditional code review assumes code is human-written and every diff can be read line by line. The AI4SE era needs a new review paradigm — shifting from line-by-line inspection to spec-conformance acceptance.

[review-pipeline][process]

The Old Paradigm Breaks Down

Traditional code review has implicit assumptions:

  • Change volume is small (a few hundred lines)
  • Humans understand the intent behind every line
  • Reviewer and author share common context

AI-generated PRs can be:

  • Thousands of lines / dozens of files
  • Generation logic humans don’t understand
  • Agents with no “original intent” you can ask about

New Paradigm: Three-Step Review

StepWhat to doWho does it
Spec conformanceDiff vs. Spec — did it produce what it should have?Human + Agent
Quality scanAutomated checks for security, performance, maintainabilityAgent (independent Evaluator)
Human judgmentIs the architecture sound, are the trade-offs acceptable?Human

Practical Recommendations

  • Agent generates + another Agent reviews ≠ safe
  • There must be an Evaluator independent of the generation chain
  • PR templates should include a Spec link and acceptance criteria
  • AI PRs over 500 lines should be split into smaller submissions