# Human in the loop and checkpoints

> People keep the judgment calls: what to build and which risks to accept. The pipeline checks every change first. People step in where their judgment matters, without watching every action the agent takes.

Human attention is set by the risk of the change. Upstream, people shape the intent; a plan is written only for large or ambiguous work (see Versioned artifacts and specs). The pipeline checks every change before any review: tests, security scans, policies written as code. Depending on the sector and its regulation, a green pipeline can be enough: the author merges and the pipeline deploys. Elsewhere, a second review is required, by a person or an agent. In pair or mob programming, review already happens while the code is written.

A person can also step in while the work is under way, in one of two ways: by correcting the agent as it works, or by taking over its work, locally for example. In a multiplayer session, several people can give instructions to the same agent.

Autonomy varies by environment. In development, the agent deploys freely. In production, nobody deploys by hand, agent or person: the pipeline rolls out in stages behind feature flags and rolls back on its own if the metrics degrade. A common mistake is to require a human approval while the agent is writing code. Every parallel session then waits on the same person.

The level of review follows the risk of the change. Mechanical, reversible work merges as soon as the pipeline is green. A bounded fix may need a review. A sensitive area (authentication, payments, data) needs its named owner’s approval. Verification and review explains how to make this call: five questions about the change, then Ship / Show / Ask. The rules live in the repository and pipeline configuration, and each has a named owner who answers for it.

**When**: As soon as agents touch a shared environment, and each time they get access to a new one.

**Trade-offs**: Every checkpoint adds a wait. Too few, and risk reaches production. Too many, and the software factory sits waiting on people. The right setting depends on the environment and the risk of the change.

## Where to start

- List the approvals your current process requires
- Turn the ones an automated check can handle into pipeline steps
- Let risk and regulation decide who reviews each PR, and how many people
- Enforce them with hooks or branch protection
- Set agent autonomy per environment

## Common mistakes

- Giving every change the same level of review, whatever its risk
- Putting a human approval in the middle of code writing
- Letting the agent judge its own work, with no independent check in the pipeline
- Keeping a manual release approval when the pipeline can ship and roll back on its own

## Metrics

- Wait time at each checkpoint
- Rule violations that reached production

## Sources

- [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)
- [Port, AI SDLC: a practical guide to SDLC AI agents](https://www.port.io/blog/ai-sdlc)
- [Atlassian, The AI SDLC transformation playbook](https://www.atlassian.com/blog/ai-at-work/ai-sdlc-transformation-playbook)
- [The Pragmatic Engineer, How Anthropic builds software in 2026](https://newsletter.pragmaticengineer.com/p/how-anthropic-builds-software-in)
