← All posts
SOC 2 for AI coding agentsSOC 2 AI-generated codeAI coding agent change management

SOC 2 for AI Coding Agents: Prove the Change Path

Using an AI coding agent does not replace change control. Trace each product change from authorization through review, tests, release, and deployment with source evidence.

Agent-written code still needs a traceable path from the approved request to the deployed revision.
Agent-written code still needs a traceable path from the approved request to the deployed revision.

You can use AI coding agents while pursuing SOC 2. The question is whether your team can show how it authorized, reviewed, tested, approved, and deployed the changes the agents helped create. Keep the same trace from request to production that you need for any other product change, then add the agent’s access and data paths to your risk review. A chat transcript may explain an action, but it does not by itself prove what reached production.

What does SOC 2 ask of an AI coding agent workflow?

The AICPA Trust Services Criteria, CC8.1 address how the company authorizes, develops, documents, tests, approves, and implements system changes. The criterion does not name a code authoring tool or set one pull-request template. Your company must describe and operate a change process suited to its service. A qualified CPA firm evaluates that process and the evidence for the examination.

Start with the actual paths into production. An agent may write code in a developer’s branch, open a pull request through its own service account, edit infrastructure configuration, or run a deployment command. Those paths have different permissions and records. If an agent can change production without the normal gate, your documented process must account for that route. The general change evidence guide covers source, build, and deployment proof for every authoring method.

Give the agent a named authority boundary

Before the next run, write down what the agent can read and change. Include the credentials it uses, the systems it can call, and who can grant or revoke access. A prompt that says “ask before deploying” does not restrict a token that can deploy on its own.

Agent action Control question Record to inspect
Read repository or tickets Can it see secrets, customer data, or restricted code? Access grant, repository scope, data-handling settings
Write a branch Which identity does the source system record, and can the agent change the protected branch? Token scope, branch rule, commit and audit records
Request review Does the reviewer see the final diff and test result after the agent’s last edit? Pull request revision, approval, check runs
Merge or release Can the agent approve its own work or bypass a required gate? Merge rule, bypass list, release approval
Deploy or change configuration Which revision reached which environment, and who could roll it back? Build identity, deployment event, configuration history

Use the least authority that lets the agent do its assigned work. A dedicated identity can make actions easier to distinguish, but the source systems must still record who authorized the run and who approved the result. If the agent works under a person’s token, a platform event attributed to that person may not tell you which action the person performed and which action the agent performed. Record the assignment and inspect the platform’s actual audit fields rather than guessing from the commit author.

Trace one AI-written change to production

Take a recent production change the agent helped write. For that change, collect a small chain of records with stable revision or artifact IDs:

  1. The request or issue showing the intended change and who authorized the work.
  2. The final diff, its author or acting identity, and the review decision on that revision.
  3. The test and security check results used for approval, including any failed or skipped check.
  4. The merge and build record tying the reviewed revision to the released artifact.
  5. The deployment record showing the environment, artifact, time, and person or system that initiated it.

If the chain breaks, describe the gap instead of filling it with a generated summary. A successful agent session does not prove that its branch was merged. A merged branch does not prove that the reviewed artifact was deployed. For a Type 2 period, work with the CPA firm on the complete population of changes and the records it will sample; do not select only the clean examples.

NIST’s Secure Software Development Framework recommends code review or analysis based on the organization’s own secure coding standards and recording the issues found. It also describes secure release and provenance practices. Use it to improve your engineering process, not as an extra SOC 2 checklist. The AICPA criterion remains the basis for the SOC 2 control evaluation.

Check approval and bypass behavior, not just the policy

Your written control may say that someone reviews every production change. Test whether the source-control and deployment settings enforce that statement. Can an administrator merge without the required review? Does an approval remain valid after a new agent push? Can a release credential publish an artifact without a reviewed revision? GitHub’s protected-branch documentation shows that bypass behavior depends on repository settings, including how protections apply to administrators. Check the settings of the systems you actually use.

An AI review can find issues, and your team may include it in the control design. Do not label a generated comment as a separate human approval. The AICPA criterion does not prescribe a universal reviewer count; the company still needs a process that authorizes and approves changes and addresses separation of responsibilities. If your policy promises a human reviewer, keep that approval on the final revision. If your process uses another design, document how it prevents or detects unauthorized changes and review it with the CPA firm. Preserve emergency changes and the later reviews your policy requires. Record departures from the approved emergency path as exceptions.

Include the model provider in the data map

An agent may send source code, ticket text, logs, or test output to a model provider. That is a separate path from the Git change history. Check what data the agent can read, what it sends out, provider terms, retention settings, and whether prompts or outputs contain customer information or credentials. Keep secrets out of prompts and ordinary repository history. The vendor review guide helps record the provider’s role and your team’s decision. A provider relationship does not by itself make the provider a subservice organization for the report; discuss the actual service dependency with the CPA firm.

If you have not begun SOC 2, the startup decision guide helps you ask a buyer what report it needs before you build a control set around a guessed deadline. You can still set narrow agent access and preserve change records now because those practices help you understand the product you run.

FileGRC is a Git-native GRC workspace for SOC 2 work. JSON holds structured records, Markdown holds long-form work, and Git supplies the change history. You can connect a proposed change control to its owner, source systems, review cadence, exceptions, and evidence references so an agent can prepare source-backed answers and flag missing proof. Starter records are proposals, not compliance claims. FileGRC does not review product code, run CI, deploy software, or decide whether evidence is sufficient. Your team operates those controls, and an independent CPA firm performs the examination and issues the report.

Open source · MIT

Run your SOC 2 program as files in Git.

Keep policies, controls, work, and evidence indexes in a repository your team and agents can inspect. Add optional FileGRC Autopilot email and Slack reminders to keep work moving.

Frequently asked questions

Can a startup use AI coding agents and still pursue SOC 2?

Yes. The AICPA's change management criterion addresses how a company authorizes, documents, tests, approves, and implements changes. It does not prescribe who types the code. Define controls for the actual agent workflow, keep source evidence, and review the design with the CPA firm.

Does an AI code review satisfy SOC 2?

An AI review can be part of a company's review and testing process, but a generated comment alone does not prove that the required approval occurred or that the deployed revision passed the checks. The company should document its control design, confirm what its review gate actually enforces, and ask the CPA firm how it will assess the evidence.

Must a human approve every AI-written pull request?

The AICPA change management criterion does not set a universal one-human-approval rule for every pull request. Follow the approval and separation rules your company has adopted, check that no actor can silently bypass them, and discuss the design and exceptions with the CPA firm.

Are agent session logs enough SOC 2 change evidence?

No. A session log can explain what the agent attempted, but source-control, CI, release, and deployment records show what was approved and implemented. Tie those records to the same revision and retain the evidence needed for the specified examination period.

Does FileGRC review AI-generated code?

No. FileGRC is a Git-native GRC workspace for SOC 2 work. It keeps structured records in JSON, long-form work in Markdown, and change history in Git. Code hosting, CI, and deployment systems run the change controls and produce evidence; the independent CPA firm performs the examination.