AI agents now write a large share of the code at many SaaS companies. For teams with a SOC 2 report, that raises a hard question about change management.
A recent discussion in a SOC 2 community put it plainly. A small company had a Type 2 report. Its rule said someone other than the author approves every pull request. Then its agents started producing pull requests faster than its one reviewer could handle.
The team asked three things. Who is the author when an agent opens the pull request? Can AI code review count as independent review? And can risk-based review solve the backlog? This guide answers each one from a SOC 2 auditor’s point of view.
What SOC 2 Actually Requires for Code Changes
Change management falls under criterion CC8.1 of the AICPA Trust Services Criteria. It asks you to authorize, design, develop, configure, document, test, approve and implement changes. Notably, it doesn’t say how many people must review code, or that they must be human.
Segregation of duties comes from CC5.1. Its point of focus says management separates incompatible duties. Where that isn’t practical, management chooses other control activities instead.
So where does the “two humans” rule come from? Usually, it comes from your own control description, your policies or promises in customer contracts. That’s why the wording of your control matters so much. For more on those promises, see SOC 2 and customer commitments.
Who Is the Author When an AI Agent Opens the Pull Request?
Treat the engineer who directs the agent as the change owner. The agent may write the code and open the pull request. Still, a named person asked for the change and is responsible for it.
Write this into your policy. In addition, give every agent its own identity and a named owner, so its actions can be traced.
Watch for the self-approval loophole
Here’s the risk most teams miss. Suppose your platform lists the bot as the pull request author. Then the engineer who directed it may be able to approve it. Your branch protection looks fine, but one person both made and approved the change.
So check that your merge rules block the change owner from approving, even when a bot is the listed author. Then keep evidence that the rule works, such as a screenshot of the settings and a test pull request.
Can AI Code Review Count as Independent Review?
AI code review tools catch real issues. However, they’re hard to rely on as the only approval for two reasons.
First, their output isn’t fully predictable. The same change can get different feedback on different runs. That makes it hard for an auditor to confirm the tool works the same way every time.
Second, an AI reviewer is itself part of your system. If it acts as a gate, auditors will treat it like any other automated control. They’ll want to see controls around it:
- Change control: First, its rules, prompts and thresholds go through review before they change.
- No bypass: Next, engineers can’t turn it off or skip it on their own pull requests.
- Effectiveness checks: Also, you test it from time to time, for example with known flawed changes, and record the results.
- Logged decisions: Then its findings and results are kept with each pull request.
- Vendor review: Finally, the AI provider goes through your vendor management process, including how it handles your code.
In practice, the strongest setup uses AI to help the human reviewer. For example, it can summarize the change, flag risky areas and point to test results.
Using Risk-Based AI Code Review to Clear the Backlog
A risk-based model is the most practical fix. The key is that your tools, not the engineer, decide each pull request’s tier. For example, rules can sort changes by file path, repository or code owner:
| Tier | Example changes | Review required |
|---|---|---|
| Low | Docs, comments, test files and copy in non-production paths | First, passing automated checks and AI code review, plus a human spot check of a sample |
| Standard | Features and bug fixes in application code | Next, one independent human approval, helped by an AI summary |
| High | Login, permissions, encryption, data access, infrastructure code, pipelines and the AI reviewer’s own settings | Also, approval by a qualified code owner |
| Emergency | Urgent fixes during an outage | Finally, review after the fact within a set number of days |
A pull request that touches more than one tier takes the highest one. Also, keep strong automated testing in every tier. Our article on why testing patches matters shows what’s at stake.
Handling AI Code Review Findings
AI review tools often raise many findings. If an auditor sees findings that were never addressed, expect questions.
So record a decision for each one. For instance, mark it as fixed, moved to the next sprint or not a risk. Then add the reason, such as the input already being checked. A short note with a name and date is enough.
This shows the findings were reviewed, not ignored. It also makes your AI code review stronger evidence for your change control.
Controls Over the AI Agents Themselves
The coding agents need access controls of their own. Auditors increasingly ask about them:
- Identity and owner: First, each agent has its own account and a named owner.
- Least privilege: Next, agents can open pull requests but can’t approve, merge or push straight to production.
- Secrets: Also, agents never see production secrets they don’t need.
- Access reviews: Then agent accounts are part of your user access reviews.
- Activity logs: Finally, agent actions are logged and kept with your other change records.
For broader guidance, see our article on SOC 2 compliance for AI businesses.
Changing Your Control in the Middle of a Type 2 Period
This is where many teams get into trouble. If you change a control partway through your audit period, the auditor tests both versions. Your system description must also explain the change and when it happened.
Keep these points in mind:
- Pick the timing: First, make the switch at the start of a new period if you can. Otherwise, document the exact date.
- Keep enforcement: Next, don’t turn off branch protection. A rule your tools enforce is easier to test than a manual one, so manual controls often mean larger samples.
- Update the wording: Also, revise the control description, policy and procedures before the change goes live.
- Pilot first: Then try the new model in a few repositories and confirm it works as written.
- Talk to your auditor: Finally, ask how they would test the new control. Your auditor can’t design it for you, but they can explain the evidence they’d expect.
Evidence Auditors Will Ask For
Plan to show items like these for the period:
| Area | Typical evidence |
|---|---|
| Policy | First, the updated change policy, with change owner and tier rules |
| Enforcement | Next, branch protection and merge rule settings, with dates |
| Tiering | Also, the path or code owner rules that set each tier |
| Approvals | Then pull requests showing the right approval for each tier |
| AI review | In addition, AI review results and recorded decisions on findings |
| AI reviewer controls | Also, change records for its settings and effectiveness checks |
| Agents | Next, agent accounts, owners, permissions and access reviews |
| Spot checks | Finally, records of human checks on low-risk changes |
Common Mistakes With AI Code Review and SOC 2
What’s Changing at the AICPA
The AICPA is starting to address AI directly. In September 2026, it issued Technical Questions and Answers section 9561. It covers how a service organization’s use of AI affects SOC 1 and SOC 2 examinations. It didn’t create new criteria. Instead, the question is whether AI use affects the system and risks already in scope.
Then, on October 28, 2026, the AICPA released an exposure draft of proposed 2027 Trust Services Criteria. It includes expanded considerations for AI and automation. Comments are due by January 15, 2027. If approved, the new criteria would apply to engagements starting on or after December 31, 2027, with early adoption allowed.
Until then, the current criteria apply. So the practical steps in this guide still hold.
How Audit Peak Helps
Audit Peak is a licensed, minority-owned CPA firm based in New York City. Our team has Big Four experience and hands-on AWS, Azure and GCP knowledge. We help SaaS companies with:
- SOC 2 audits: First, we perform Type 1 and Type 2 examinations, including change controls for AI-assisted development. See our SOC 2 services.
- Readiness reviews: Next, a readiness assessment shows where your current controls fall short.
- Clear expectations: Also, we explain how we’d test a redesigned control and what evidence we’d need.
- Fixed quotes: Finally, you get a fixed fee and timeline before work starts.
As your independent auditor, we don’t design or run your controls. However, we’ll tell you clearly how we’ll test them.
FAQs About AI Code Review and SOC 2
In summary, AI code review can ease the review bottleneck. Still, it works best as part of a redesigned, risk-based control, not a quiet swap. Name a change owner, keep enforcement in your tools and record what you decide.
Rethinking your change controls for AI? Contact Audit Peak for a free consultation.