SOC 2 and AI coding agents collide at exactly one place in the Trust Services Criteria: change management. For teams shipping with Cursor or Claude Code, SOC 2 AI coding agents is no longer a hypothetical scope question, it is a change-management evidence problem. The audit does not care that an agent wrote the code. It cares whether every change that reached production was authorized, reviewed, tested, and approved by someone who can be held accountable for it.
That is where agent workflows quietly fail. An agent resolves a hundred decisions in a single run and opens a clean, passing pull request. The diff is tidy, the tests are green, and the one thing an auditor will ask for - evidence that a named human approved this change before it shipped - was never captured as an event.
Key Takeaways
- The tool is not the scope question: SOC 2 classifies the change, not the author. Code an agent wrote is in scope for change management the same way human-written code always was.
- One control carries the weight: Common Criteria 8.1 (CC8.1) asks that changes be authorized, designed, tested, approved, and implemented. That is the criterion auditors sample for agent-written code.
- A merged pull request is not approval evidence: A merge proves a diff landed. It does not prove a named person reviewed the agent's approach and signed off before the build.
- Self-approval is the failure auditors look for: When the agent's identity, or the engineer who prompted it, approves the change, segregation of duties breaks and the evidence is worthless.
- The trail has to be built before the agent starts: Approval captured as an attributed event up front makes the SOC 2 record write itself. Reconstructed after the fact, it does not exist.
Does SOC 2 apply to code an AI coding agent wrote?
SOC 2 and AI coding agents meet at one control: change management. SOC 2 does not regulate the fact that an agent wrote the code. It asks whether every production change was authorized, tested, approved, and implemented by an accountable process. When an agent opens a clean pull request and nobody records who approved the approach, that is precisely the evidence a SOC 2 audit comes looking for and does not find.
So the scope question most teams ask first - "we use coding agents, does that change our SOC 2?" - gets the framing wrong. The agent does not create a new control. It stresses one you already have, and it stresses it in a specific, predictable way: it produces output faster than your approval process was built to govern.
The one SOC 2 control that governs agent-written code
SOC 2 is built on the AICPA Trust Services Criteria (TSC), the control criteria a service organization is audited against. Within the Common Criteria, one criterion owns change management: CC8.1 in the AICPA Trust Services Criteria. It asks, in plain terms, that an organization authorizes, designs, develops, configures, documents, tests, approves, and implements changes to infrastructure, data, software, and procedures. The 2022 revised points of focus made the development half explicit, adding secure design, coding standards, and code review to what an auditor expects to see.
Nothing in CC8.1 exempts a change because a machine proposed it. If anything, auditors read agent-written code as a higher-sampling target, because the volume of change is higher and the human judgement behind each change is easier to lose. Treat SOC2 AI generated code as ordinary production change: the same authorization, the same independent review, the same approval record you already owe for a human pull request.
A handful of adjacent criteria come into the same conversation once an agent has credentials. These are the controls an auditor tends to sample together for an agent workflow.
| Criterion | What it covers | What the auditor samples for agent-written code |
|---|---|---|
| CC8.1 | Change management | Evidence each change was authorized and approved before deployment, with review that is independent of the author |
| CC6.1 | Logical access | The agent operates under scoped, least-privilege access, not a shared human admin account |
| CC6.8 | Unauthorized or malicious software | Controls that stop an agent introducing or running code outside the reviewed change path |
| CC7.2 | System monitoring | Logs that detect an agent acting outside the approved process, such as a push straight to main |
The load-bearing row is CC8.1, and the load-bearing word in it is approved. Everything else an agent does well. It designs, it develops, it tests, it documents. The step it cannot perform for you is the one where an accountable human agrees to the approach before it ships.
Why a clean merge is not SOC 2 approval evidence
Here is the collision auditors have started to name. In a conventional team, the approval record is a byproduct of how work moves: a ticket states intent, a design doc or review captures the plan, a reviewer who did not write the code approves the pull request. The evidence of authorization is distributed across artifacts that already existed for other reasons.
An agent compresses all of that into one action. It reads the ticket, makes the design choices, writes the code, and opens the pull request in a single pass. When the engineer who prompted it clicks merge, the record shows a diff was approved. It does not show that anyone evaluated the approach the agent chose, because the review, if it happened, happened in someone's head during a fast skim of a green build. This is the same provenance gap that makes git history unusable as an audit trail for AI-generated code: a commit proves authorship and timing, not that a human agreed to the plan.
The sharper version of the problem is self-approval. If the agent runs under its own identity and that identity can approve, or if the one engineer in the loop both prompts and approves, segregation of duties is gone. A recent field study of a fintech startup, on coding agents, human accounts, and merge-gate evidence, argues the fix directly: give agents their own identities, reserve approval credentials for people, and enforce review at the merge boundary for every author, human or agent, so each action traces back to a session and a human decision.
Workflow summary: when an agent opens a clean pull request, SOC 2 evidence depends on who approved the approach. If the prompting engineer merges their own agent's work, self-approval breaks segregation of duties and leaves no usable evidence. If an independent, named human signs off on the plan and that approval is captured as an attributed event, CC8.1 evidence exists and traces back to a specific person and session.
Where agent workflows break the SOC 2 paper trail
Three failure modes show up repeatedly once agents are in the delivery path, and each maps to a control an auditor will test.
Self-approval at the merge gate. Covered above, and the most common finding. The control is to deny the agent's identity any approval right and require review from a human who did not author or prompt the change. Formalizing who holds that sign-off is its own governance task, which we cover in the spec approval workflow for AI coding agents.
Out-of-band changes that skip the gate entirely. An agent with cloud credentials can apply an infrastructure change locally, or push straight to a branch that deploys, without ever opening a pull request. CC8.1 assumes every change flows through the reviewed path; CC7.2 monitoring is what catches the one that did not. The control is to route all agent actions through the pull-request boundary and alert on anything that bypasses it.
Drift between the approved plan and what shipped. If an agent discovers an unmapped case mid-build and changes course, an earlier approval no longer describes the delivered system, and nothing flags the mismatch. For audit evidence AI development has to treat a stale approval as worse than none: it is a record that misstates what was built. Keeping the approved plan and the delivered code in sync is a discipline in itself, covered in preventing spec drift when agents work the same codebase.
If your organization also ships AI features into regulated use cases, these same gaps resurface under a different regime; see our breakdown of the EU AI Act and AI-generated code for where documentation duties overlap.
The SOC 2 evidence your auditor will ask for
Before an AI coding agent contributes to a system in your SOC 2 scope, confirm each item below has a durable, contemporaneous record. This is the change-management evidence an auditor samples, reframed for an agent in the loop.
- A change-management policy that names agents: Your written CC8.1 process explicitly states that agent-authored changes follow the same authorization, review, testing, and approval path as human changes. Silence here reads as a gap.
- Independent approval, captured as an event: A named person who did not author or prompt the change approved the agent's approach before the build. The record is an attributed event, not a merge timestamp.
- Scoped agent identity: The agent operates under its own least-privilege identity (CC6.1), distinct from any human admin account, and that identity holds no approval rights.
- Approval tied to what shipped: The thing approved is the plan the agent executed, version-locked so that editing it invalidates the approval and forces re-sign-off. This closes the drift gap.
- A monitored change boundary: Logs show every production change passed through the reviewed pull-request path, and CC7.2 monitoring flags any agent action that bypassed it.
- Review records retained: Code review notes, approval records, and change logs are kept for the audit window and show, where relevant, that unreviewed agent code was rejected rather than merged.
- Segregation of duties, demonstrable: You can show on a sample change that the approver and the author were different accountable people, with the agent never approving its own work.
Most of this is not extra work bolted onto delivery. It is the byproduct of deciding, and recording, who approved what before the agent built it. The same discipline shortens the rework that ungoverned agent output tends to create, which is the cost our ROI calculator is built to estimate. For the enterprise and CISO view of wiring this into the delivery process rather than the audit scramble, see the enterprise AI SDLC playbook.
Build the evidence before the agent starts, not at audit time
The pattern under every one of these controls is the same: SOC 2 wants proof that an accountable human authorized a change, and an autonomous agent workflow does not produce that proof unless approval is a real, recorded step. You cannot log your way to it after the fact. If the decision to let an agent proceed on a given plan happened as a captured, attributed event, the CC8.1 record, the segregation-of-duties evidence, and the monitoring trail largely write themselves, because the decision and its owner are already on file. If that gate never existed, no tool reconstructs the human judgement your auditor is asking you to evidence. For SOC 2 and AI coding agents, the task is less about recording what the agent did and more about proving what a person approved. Enact exists to make that approval a traceable gate rather than a gap, keeping the record intact as work moves from the plan into Jira, Linear, and the coding agent.
Build the SOC 2 approval trail into the plan
Bring a real workflow and your change-management control. We will show how Enact records who approved the agent's plan, and links it to what shipped.
Book a call →