SOC 2 is an attestation report, issued by an independent auditor, on how a service organization designs and applies controls over its systems, measured against the AICPA Trust Services Criteria. A software house is asked for one when an enterprise client adds it to its supplier list. The report does not certify the product: it describes the controls and, in a type II report, says whether they worked over a period. For teams that write software with AI agents, the auditor's question is concrete: who authorized this change, who verified it, where is the proof. The three answers must exist when the work is done, because rebuilding them later from a closed session does not produce acceptable evidence. This page explains which development controls fall in scope, where an agent complicates them, and which records are worth producing while you work. It is not compliance advice: scope decisions belong to you and your auditor.
Why does an enterprise client ask you for SOC 2?
Because its procurement and security teams must justify every supplier that touches data or systems, and an independent report is cheaper to assess than a hand-written questionnaire. The AICPA describes SOC 2 reports as a way to tell clients how an organization manages the risks of its services. The report comes in two types:
| Type | What it says | When it is enough | | --- | --- | --- | | Type I | Controls are well designed at a specific date | A first step, or a client asking only for a commitment | | Type II | Controls operated effectively over an observed period | Enterprise client with structured procurement |
The observation period of a type II report is agreed with the auditor. The difference matters for agent users: in type II the auditor samples real changes made during the period, so each one needs a trace.
Which development and change management controls fall in scope?
Scope depends on the criteria you choose. The security category, also called the common criteria, is the base of every SOC 2 report; the others (availability, processing integrity, confidentiality, privacy) are added if the service promises them. For developers, the recurring themes are:
- change management: every change to software is authorized, developed, tested, approved and released under a procedure (in the common criteria, block CC8.1);
- logical access: who can write to the repository and release systems, and how access is revoked (block CC6);
- monitoring and incident handling: how a production problem is detected and treated (block CC7);
- vendor management: third-party tools and services entering the process, agents included (block CC9);
- separation of duties: whoever writes does not alone approve what is released.
The criteria are public and should be read in the current version published by the AICPA; this page summarizes them and does not replace them.
Where does an agent that writes code complicate the evidence?
For a sample of changes, the auditor asks to see the request, the approval before release, the tests run and the name of who decided. With an agent, each link can break in a specific way.
| Expected control | What happens with an agent | Risk to the evidence | | --- | --- | --- | | Traceable request | The request lives in a chat or a prompt | No ticket tied to the change | | Independent review | The same agent writes and then checks | Author and verifier are the same | | Tests run | The session summarizes the outcome in words | No re-runnable log | | Approval before release | A generic click, or no approval | You cannot show who decided and when | | Third-party tools | The agent and its plugins are new vendors | Missing entry in the vendor list |
The common thread is that the agent's session closes and takes the context with it. The change record is covered in software audit trail when an agent made the change, and the approving body in change advisory board when the change came from an agent.
Which evidence can you produce while you work?
The kind the process generates by itself, with nobody filling it in at period end. A minimal list:
- The original request, written somewhere that does not depend on the session, with an identifier that appears in the commit.
- One commit per unit of work, with a message that points back to the request.
- Checks run by the system, not narrated by the agent, with outcome and date recorded and re-runnable.
- An approval with the full name of a person, dated before release and not editable afterwards.
- The list of tools and versions used, including the agent and its external services, treated as vendors.
- A periodic review of write permissions on the repository.
With this material the auditor's sampling becomes a reading exercise, not a reconstruction. On the principle that author and verifier must be distinct, see separation of duties when an agent writes and tests.
Detent, the end-to-end delivery system (detent-ai.com), produces these elements as part of the flow: a person signs the plan and the final delivery, the system runs the checks, and everything stays in versioned files. It does not issue a SOC 2 report, which belongs to an independent auditor: it supplies the raw material the auditor samples.
What should you answer in the client questionnaire?
Answer with artifacts, not reassurance, and never claim a report you do not hold. An honest approach separates three situations: you have a SOC 2 report (attach it, with type and period), you do not but the controls exist (describe the controls and the evidence available), or you do not have them yet (say so and give a plan). Typical questions and a documentable answer:
- How do you authorize code changes? A description of the flow, with a recent example and the name of who approved it.
- Do you use AI tools on our code? A list of tools and versions, access rules, where the code travels.
- Who verifies work produced by an agent? A process separate from whoever wrote it, with the outcome recorded.
- Can you show last quarter's changes? A record extract with request, tests and approval for each.
Questions specific to AI-assisted supply are collected in vendor risk assessment questions for AI-assisted suppliers. For the wider picture see AI software development; to compare tools on what they leave after the session, the comparison table and the benchmark page.
