Capability 03 of 04 · Development

Code Review & Quality

How AI-generated code is reviewed, validated, and approved before merging. A review counts only if the change, and the agent that wrote it, cannot edit the rules it is judged by.

5
maturity levels
15
practices
15
guides
L2 · Stage 02Delegated
Criteria - what to measure
  1. 01An AI reviewer comments on pull requests in the repositories the team works in (CodeRabbit, Qodo, or equivalent)
  2. 02Linter rules are configured and run in CI on every PR
  3. 03PRs clearly indicate whether code is AI-generated or AI-assisted (labels, tags, or commit metadata)
  4. 04AI review suggestions are triaged (accepted/rejected) rather than ignored
  5. 05Linter configuration is committed to the repository and versioned
  6. 06A security review agent runs on every PR, and its fixes are validated by a deterministic scanner or tests before merge
  7. 07Tests, CI configuration and review rules are protected paths with a human code owner, so an agent change that touches them cannot merge without that owner's approval
L3 · Stage 03Systematic
Criteria - what to measure
  1. 01AI review agent runs as a first-pass reviewer on every PR before human review
  2. 02Lint rules enforce architectural standards (not just style) - the "Bug to Codify to Lint Rule" pipeline is active
  3. 03At least 3 architectural guardrail rules have been created from past bugs or incidents
  4. 04AI review agent findings are categorized by severity (info, warning, blocking)
  5. 05New lint rules are proposed automatically when recurring review comments are detected
  6. 06The review agent loads its rules from the default branch, never from the pull request under review
L4 · Stage 04GovernedMost teams aim here
Criteria - what to measure
  1. 01Automated Green/Yellow/Red classification runs on every PR
  2. 02Classification is deterministic: the same change lands in the same class on every run
  3. 03Auto-approve rate target of 60%+ Green PRs is tracked and reported
  4. 04Yellow PRs receive expedited human review (within 1 hour)
  5. 05Classification model accuracy is validated monthly against human review outcomes
  6. 06AI review can raise a PR's risk rating but never lower it below the path-rule rating, and unrated PRs stay visible rather than assumed safe
L5 · Stage 05Self-improving
Criteria - what to measure
  1. 01Agent fleet self-reviews code (error-fix-converge loop) before submitting for merge
  2. 02Human review is limited to Red-classified PRs (architectural decisions only)
  3. 03Continuous auto-refactoring runs in background without human initiation
  4. 04Agent self-review catches 90%+ of issues that would be found by human review
  5. 05Auto-refactoring PRs are tracked separately and have their own quality metrics
  6. 06An agent's audit of its own diff is never counted as the independent check on that diff

Which level is your team at in Code Review & Quality?

The criteria above are what we check in a facilitated assessment. Run it yourself to place this capability, see which gates you have passed, and compare it against the other 3 in Development.

Start the assessment →