# Verification and review

> When agents produce more code, review becomes the bottleneck. The agent has to show that its change works. The pipeline makes the first pass, an AI review the second and a person reviews where the risk calls for it.

Proving that a change actually works is the biggest hurdle today. So the agent attaches evidence to the PR: test results, the plan it followed, before-and-after screenshots, a short video of the app in use. That evidence should be enough to merge without rereading everything or rerunning the change locally.

Always give the agent a way to check its own work: tests, a build, screenshot comparison, with a measurable goal. For a bug, write the failing test first, and use a hook to stop the agent from editing tests while it fixes the code. A verification subagent can do a final check with a fresh context. The pipeline also runs security scans on every change (see Roles and organization).

A generated test can rest on the same wrong assumption as the code it checks, and a green suite does not show that the product solves the right problem. Writing down the expected behavior of a significant change before implementing it, as acceptance criteria or examples, reduces that risk (see Versioned artifacts and specs). When evidence is missing or misleading, fix the harness that produced the change as well: its instructions, tests and checks.

In most companies, the PR is still where a person actually reviews the change. Many published software factories keep a human review on every PR. The Atlas suggests tuning it with Ship / Show / Ask: the author, person or agent, merges straight away (Ship), merges and then shows the change to the team (Show) or asks for review before merging (Ask). The choice depends on the risk of the change, the area it touches and how regulated the sector is. The review policy sets the limits.

Five questions help choose between Ship, Show and Ask, and set how much evidence a change needs. Consequence: what happens if the change is wrong? Reversibility: can you roll it back cleanly? Access: which systems and data can the agent reach, and which external actions can it take? Detectability: will tests, observability or users catch the mistake quickly? Novelty: does the work stay within a known pattern, or does it change the pattern itself? The more worrying the answers, the more evidence you stack up: comparison against a reference, observed user behavior, production telemetry. Repetitive code in a bounded module is mostly validated by automated checks and can merge as a Ship. A change to pricing, personal data or access control, or a destructive action in production, needs stronger evidence and a named owner, and calls for Ask.

AI review follows a written policy. It sets the passes (bugs, security, adherence to the plan and spec) and what counts as important. Before fixing an issue raised by AI review, reproduce it with a test or a run. If it does not reproduce, drop it. Every PR gets the same passes, against standards shared across the organization. By default, AI review comments without approving: the review policy says where its verdict is enough. In risky areas, branch protection requires a human owner. For mechanical, reversible work, some teams hand approval to an automated reviewer: a bot that rates each PR’s risk at Zalando, an agent at Anthropic and an agent at OpenAI in its low-risk areas. A mistake flagged twice goes into the instructions file. With these passes and the attached evidence, the human reviewer arrives better informed: they focus on intent and risk and leave the mechanical details to automated checks.

**When**: When review slows everything down, or when PR volume outgrows what the team can review comfortably.

**Trade-offs**: Poorly sorted evidence buries the reviewer, and an overly chatty AI review wears them out. Attach artifacts to the run trace and tune the review policy to what really matters.

## Where to start

- Bundle tests and build into one command
- Add verification and a watched production release to the definition of done
- Add a visual check for interfaces
- Write the review policy
- Set review and evidence by the change’s consequence, reversibility, access, detectability and novelty
- For a rewrite, compare the old and new service on real traffic
- Use branch protection to require human approval where risk or regulation demands it

## Common mistakes

- Opening a PR with no proof that the change works
- Letting the agent weaken tests to make them pass
- Trusting a generated test built on the same wrong assumption as the code
- Letting an AI review flood PRs with minor comments
- Reviewing every line instead of intent and risk
- Fixing an issue raised by AI review without reproducing it first

## Metrics

- CI pass rate on the first run
- Time to first review
- Review time per PR
- Defects caught before merge, compared with those found in production

## Sources

- [Warp, 7 core components for building a software factory](https://www.warp.dev/blog/7-ways-to-build-a-software-factory)
- [Warp, Becoming a factory engineer](https://www.warp.dev/blog/factory-engineering-software-factories)
- [Anthropic, The AI-native SDLC playbook](https://claude.com/fr/resources/articles/the-ai-native-sdlc-playbook)
- [Atlassian, The AI SDLC transformation playbook](https://www.atlassian.com/blog/ai-at-work/ai-sdlc-transformation-playbook)
- [Anthropic, Migrating our Messages API to Rust](https://www.anthropic.com/research/migrating-api-to-rust)
- [Zalando, Agentic Engineering at Zalando: a snapshot](https://engineering.zalando.com/posts/2026/08/agentic-engineering-at-zalando-a-snapshot.html)
- [The Pragmatic Engineer, Inside OpenAI’s agentic software factory](https://newsletter.pragmaticengineer.com/p/openai-software-factory)
- [Rouan Wilsenach, Ship / Show / Ask (martinfowler.com)](https://martinfowler.com/articles/ship-show-ask.html)
- [SFEIR, An AI-driven SDLC (in French)](https://www.sfeir.com/articles/sdlc-ai/)
- [The Pragmatic Engineer, How Anthropic builds software in 2026](https://newsletter.pragmaticengineer.com/p/how-anthropic-builds-software-in)
- [Kief Morris, Humans and Agents in Software Engineering Loops (martinfowler.com)](https://martinfowler.com/articles/exploring-gen-ai/humans-and-agents.html)
