A coding agent wrote the pull request. Another agent reviewed it and left approving comments. The checks are green. Who is accountable for the decision to put this in production? "The tooling approved it" is not an answer a postmortem accepts. As agents open a growing share of pull requests — and those PRs already wait far longer for human review than human-authored ones — teams need an approval policy that says, in advance, which changes a person must own and which can flow through. This is a risk-based policy you can adapt, not a blanket rule that either blocks everything or trusts everything.
An agent wrote it and another agent reviewed it. Who owns the merge?
Start with the uncomfortable case: passing CI, favourable automated review, a clean diff. Everything mechanical says yes. The question the machinery cannot answer is who is accountable — whose name is on the decision that this change belongs in production, who gets paged when it breaks, and who could have said no. Accountability does not transfer to a tool. If your process cannot name a human for each merged change, you do not have an approval policy; you have an automation that merges things.
Which decisions are hidden inside "approve"?
"Approve" bundles four separate judgements that teams collapse into one click:
- Technical correctness — does the code do what it says?
- Product intent — is what it says what the customer needs?
- Operational readiness — can it deploy, roll back, and be observed safely?
- Authorization to merge — is this change permitted here, now, by this person?
One green check rarely answers all four. A tool can speak to correctness; it cannot authorize a change or vouch for product intent. Naming the four separately is what lets you route each to whoever can actually answer it.
Who are the participants in an agent-written PR?
Five roles, even when one person wears several:
- Human sponsor — the person who asked the agent to make the change and owns the outcome.
- Agent author — the model that wrote the code.
- Code owner — whoever owns the touched module.
- Reviewer — human or automated, who evaluates it.
- Merger — who presses merge.
On a small team one engineer may be sponsor, reviewer, and merger at once. That is fine, as long as the roles stay visible — because the failure mode is a change where no one held a given role, not a change where one person held several.
How to classify the risk of a change
Risk is the axis the whole policy turns on. Rate each change on four factors: customer impact, reversibility, breadth of dependencies, and ease of detecting failure. A typo fix in a help article is low on all four. A change to how refunds are calculated is high on the first and can be high on the rest. Make "low risk" operational — "customer-invisible, trivially reversible, isolated, and caught immediately if wrong" — so it is a test a change passes, not a feeling.

How should a documentation-only change be handled?
"Docs only" is not automatically low risk. A typo fix in a blog post and a one-word change to a production runbook both touch only text. But an incorrect recovery command in a runbook can turn a small incident into a large one. Classify by what the words do, not by file type: prose a customer reads is low risk; prose an on-call engineer executes under pressure deserves specialist review even though it is "just documentation."
Who should review customer-facing business logic?
Take a change to cancellation policy. An engineer can verify the implementation is correct — the code does what it says. Whether what it says matches what the business promised is a different question, and often only the product owner can answer it. Route customer-facing business logic so that a person verifies the implementation and a person with product context confirms the intent. Those can be the same person; they are rarely the same check.
Why migrations require a different approval path
Schema migrations split sharply by reversibility. An additive change — a new nullable column — is low risk and easily rolled back. A destructive cleanup — dropping a column, backfilling, rewriting data — is high risk and often irreversible. These need a reviewer who verifies backward compatibility, deployment ordering (does the code that reads the new column ship before or after the migration?), and the recovery plan. An agent can write a flawless migration and still have no opinion about what happens if it runs at 70% and fails.
What evidence should the human sponsor provide?
The sponsor's job is to make review possible, and that means a PR description a reviewer can actually use: the requested outcome (what the change is for), the affected behaviour, the commands run and their results, the assumptions the agent made, and the open questions the sponsor could not resolve. "The agent did X" is not a description. A sponsor who cannot explain what they asked for and what they verified has not sponsored the change; they have forwarded it.
Which work can an AI reviewer do before human approval?
Give the AI reviewer the mechanical load so the human approval is spent on judgement. It can trace callers of a changed function, surface missing tests, compare the diff against a stated rule, and flag an unhandled error path — real work that shortens the human's job. What a human must still do is inspect the evidence behind each finding before acting on it: a confident comment with no reproduction is a lead to verify, not a fact to merge on. The AI narrows where the human looks; it does not replace the look.
How to route a PR to the right reviewer
Route by domain and by affected behaviour, not just by which file changed. The subtle case: a change edits a shared utility owned by the platform team, but the behaviour it affects lives in the payments service. The file owner and the behaviour owner are different people, and the payments owner is the one who can tell whether the change is safe. CODEOWNERS on the edited path is a start; a policy that also considers the blast radius routes the cross-cutting changes that cause the worst incidents.
What happens when the agent pushes another commit?
A PR approved at revision A and then materially changed at revision B is a new change wearing an old approval. Decide in advance what triggers a fresh review: any change to logic, any new file, any change to the public surface — but not a comment typo or a lint fix. Agents iterate fast and will push "one more fix" after approval; without a re-approval rule, your sign-off certifies code no one actually reviewed.
How to handle urgent fixes
Urgency changes timing, not accountability. Define a narrow exception path: a named person who can approve an emergency merge, a recorded rationale, and a mandatory follow-up review within a fixed window. The exception exists so a production fire does not wait for a full review — not so that "it was urgent" becomes a way to merge unreviewed changes. If the follow-up review never happens, the exception path has quietly become your default path.
How to preserve a readable decision record
For every merged agent change, you should be able to reconstruct why it was accepted: the ticket, the agent-generated diff, the automated findings, the human decision, and the merged commit, linked together. This is not bureaucracy — it is what makes the next incident debuggable and the next audit survivable. The minimum is a trail from "what we wanted" to "what we shipped" with a human decision in the middle.
How to test the policy before rolling it out
Before you announce a policy, run it against five historical PRs — ideally including one that caused an incident. For each, ask: would this policy have routed it to the right reviewer, and would it have added pointless delay to the safe ones? A policy that would have caught the incident but also blocks every dependency bump for a day will be routed around within a week. Tune it on real history so it is both safe and livable.
A one-page approval matrix teams can adopt
Close with a matrix teams can paste into a handbook, one row per change type:
- Documentation (customer-facing) — evidence: diff. Approver: any engineer. Reapproval: none. Exception owner: n/a.
- Documentation (runbooks / ops) — evidence: command verified. Approver: domain + on-call. Reapproval: on any command change.
- Feature / business logic — evidence: tests + requirement link. Approver: code owner + product for customer-facing. Reapproval: on logic change.
- Shared contracts / utilities — evidence: caller trace. Approver: owner + affected-service owner. Reapproval: on surface change.
- Migrations (destructive) — evidence: compatibility + rollback plan. Approver: senior + DB owner. Reapproval: on any schema change.
Set the required evidence, the human approver, the re-approval trigger, and the exception owner for each. That is a policy that scales with agent-written volume without pretending a green check is a decision.
Frequently asked questions
Who is accountable for a pull request written by an AI coding agent? A named human — the sponsor who requested it and the approver who merged it. Accountability does not transfer to the agent or the automated reviewer; if your process cannot name a person per merged change, it has no approval policy.
How should teams decide what needs human review of AI-generated PRs? By risk: customer impact, reversibility, dependency breadth, and how easily failure is detected. Low-risk changes can flow through; customer-facing logic and destructive migrations need specific human owners.
When does an AI-written PR need re-approval? Whenever a post-approval commit changes logic, adds files, or alters the public surface. A typo or lint fix does not; a behaviour change does, or your sign-off certifies unreviewed code.