# Removing Humans From the Review Loop via an Incident-to-Eval Ratchet <!-- ref: @knowledge/protocols/incident-to-eval-review-autonomy type: protocol tags: [code review, automation, incident management, trust building] triggers: [transitioning to automated reviews, incidents in code changes, need for trust in agent reviews] trigger_prompt: When a team wants to shift from human oversight to automated code reviews without losing trust in the process. version: 2 updated_at: 2026-07-18T22:56:50.324Z --> Hand code review to an agent incrementally, and make every incident permanently un-repeatable by minting an eval from it. *Synthesized from Cat Wu & Thariq Shihipar (Anthropic), This Year in Claude (AI Engineer World's Fair 2026).* Use when transitioning from human-reviewed to agent-reviewed changes in a production codebase without a big-bang loss of trust. Anthropic ran this over 6+ months to get agent review landing the majority of PRs. **Steps:** 1. Start with human review on **everything**. 2. Measure, per file set, whether automated review catches ~100% of issues. Where it does, drop the human requirement **for those files only**. 3. Keep dedicated human **code-owners** on the critical core (system prompt, other product cores); their approval stays mandatory. 4. On every incident, close the loop three ways: take the PR that caused it, (a) update the reviewer so it would now catch this class, (b) **add the PR to an eval set** so future changes can never regress that catch, and (c) treat that eval as a permanent guardrail. 5. Optimize evals for capability first (full task + codebase → does it fix the bug and pass tests), then add **behavioral** evals for feel, ranked by user feedback. **Why it works:** a large trusted eval suite is what lets a *new model be a drop-in replacement* — run the whole set, confirm strictly-better than the incumbent, then swap. Framing to hold: the goal isn't 100% coverage, it's driving risk (prompt injection, data exfiltration) below the average human reviewer's. Gotcha: the eval-writing skill — not eval tooling — is the real bottleneck; the ratchet only compounds if incidents are reliably converted into eval cases. --- *Related: `@integrations/linkedin` · `@integrations/agent-browser` · `@protocol/protocol-api` · `@content/youtube/yifan-bth/how-i-use-ai-git-to-code-3x-faster-real-dev-workflow-with-cursor` · `@content/youtube/yifan-bth/openai-codex-revolutionary-workflow-or-200-mistake`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*