Who Can Approve an AI Agent’s Code Changes?

Treat agent review as evidence, not release authority, and require independent human approval against a trustworthy reference for sensitive changes.

OpenThunder Editorial · 2026-11-27

Imagine an agent changes an account-access check to let every organization member read every account, although access should be limited to assigned account owners. A second agent approves tests encoding the same mistake, and the directing engineer approves the merge.

The second review added activity without resolving the central risk. Both agents accepted the wrong account-access requirement.

I would permit streamlined approval for narrowly defined routine changes, but require an uninvolved, qualified human for changes affecting security boundaries or similarly consequential behavior. That person must check behavior against a trustworthy reference, not just another reviewer's confidence.

The useful distinction is between producing a patch, producing evidence, and accepting responsibility for release.

Classify the effect of the change, not its size

A one-line authorization change can deserve more scrutiny than a large formatting patch. Use the highest applicable class, and escalate when the effect is unclear.

The following is a starting policy, not a universal risk classification:

Change class Example scope Minimum evidence Who may authorize
Routine Documentation or formatting changes with no executable, build, or security effect Confirmation of scope, diff inspection, and applicable checks The directing engineer, if team policy explicitly permits self-approval
Standard Bounded application behavior outside sensitive areas Relevant tests, an explanation of changed behavior, and review of failure paths A qualified, uninvolved human with assigned approval authority, as defined below
Sensitive Authorization, secrets handling, destructive migrations, deployment permissions, or approval controls Standard evidence plus domain-specific checks and a recovery or containment plan A qualified, uninvolved human with authority for the affected domain

Keep the routine class narrow. A documentation file that controls a build, or a formatting operation that rewrites generated executable code, does not qualify merely because of its filename or tool label.

For this policy, independent human approval is non-negotiable for sensitive changes outside an explicitly recorded emergency exception. Requiring it for standard changes is a more conservative recommendation: bounded application behavior can still encode a mistaken requirement. The cost is another person's review time and a possible queue before release. Teams choosing a different standard-change boundary should document it rather than quietly treat those changes as routine.

Recovery planning also has limits. Restoring an earlier version does not necessarily undo disclosed data or an irreversible external action. Review those consequences before authorization.

Use this reviewer-eligibility matrix

For this policy, an involved reviewer is someone who authored the patch, materially directed its implementation, or supplied expected results that became the only reference for judging its behavior. Stating the business goal or identifying an authoritative requirement alone does not make someone involved.

An uninvolved reviewer must also be qualified to assess the change. Distance from the work is not a substitute for relevant knowledge.

Actor What they may produce May authorize routine changes? May authorize standard or sensitive changes?
Authoring agent Code, configuration, migrations, tests, explanations, and review evidence No No
Second agent Review findings, analysis, tests, and unresolved questions, with inputs and scope recorded No No
Involved human, as defined above Changes and review evidence Yes, where expressly permitted No
Qualified, uninvolved human reviewer Review evidence and an authorization decision within their assigned scope Yes, with assigned authority Yes, with assigned authority; sensitive changes require authority for the affected domain

Identify the authoring agent and accountable directing engineer. For all review evidence, record what was checked, against which revision, and with what limitations.

One actor can perform more than one responsibility where policy allows it. The directing engineer might authorize a routine documentation fix. That is an explicit allowance for self-approval, not independent review.

Evidence supports approval; it does not grant approval authority.

Automated deployment can still follow human authorization. An agent producing evidence must not be able to grant itself permission to release by changing a status label or submitting a favorable review.

A separate bot account changes identity, not accountability.

Independent review needs a trustworthy reference

A second agent becomes more useful when it checks a different question against evidence beyond the author's explanation. For the account-access example, it could derive allowed and denied cases from an approved access policy rather than simply assess whether the patch matches its own description.

An uninvolved human can also accept the same mistaken assumption. Passing tests that allow every organization member to read every account confirms the wrong behavior when the requirement restricts access to assigned account owners.

The reviewer needs a reference outside that shared assumption: an approved access rule, a documented invariant, or a requirement clarified by its accountable owner. Approval alone is insufficient if it merely endorses the expected results already used to build the patch.

Continue the account-access example. Suppose an access policy established before this change explicitly restricts reads to assigned account owners. Its requirements owner points the team to that rule, but neither authors nor materially directs the implementation. The owner remains eligible, provided they are qualified and have domain approval authority: they can compare the patch and its tests with a rule established separately from this implementation.

Now suppose no such reference exists. The owner supplies a list of expected results, the agent builds the patch and tests around that list, and the owner checks only that they match. That owner is ineligible under the definition above. Approving the list as a requirement does not create an independent basis for review.

An independently established reference has a traceable basis apart from the implementation and its test expectations. A requirement clarified during development can qualify if its basis is established separately; a second signature on the same unsupported assumption cannot. Where that basis is missing, resolve the access rule before treating the change as ready for authorization.

Approval record

For standard and sensitive changes, require four fields:

For the same account-access scenario, a filled record can make missing evidence explicit rather than imply successful checks:

The record need not be long. Its purpose is to expose an unsupported assumption before approval, not to reward lengthy explanations.

A policy clause you can adapt

Every AI-assisted change must have a named human owner. Routine self-approval is permitted only within documented boundaries. Standard and sensitive changes require a qualified, uninvolved human approver under the reviewer-eligibility definition above.

Eligibility

Enforcement

Give emergency exceptions a separate owner

Name the incident commander, or another designated emergency authority, as the owner of exceptions. Do not let the authoring agent or directing engineer silently reclassify a sensitive patch as routine.

An exception record should identify the incident, exact revision, reason normal approval cannot wait, available evidence, and containment or recovery plan. It should also name the person responsible for retrospective review within the team's predefined deadline.

If no uninvolved approver is available, the emergency authority must explicitly accept the departure from normal policy. Record it as an exception, not as independent approval. Emergency status should not remove ownership or the audit trail.

Start with classification and the reference

In five minutes, take one completed pull request and classify its effect using the risk table. Then identify the reference that establishes correct behavior. If the only reference is the expected results supplied to the authoring agent, record that gap.

When the necessary evidence is available, identify the generator, evidence producers, and release authorizer; assess reviewer eligibility; and complete the four-field approval record.

One patch can expose unclear rules, but it cannot validate the workflow.