AI governance for enterprise software teams comes down to proof. For every change, you should be able to show who or what wrote it, which tests and security scans it passed, who approved it and exactly what shipped. Auditors rarely ask whether you use AI. They ask whether your change controls still held when you did.

This post covers the proof trail, not the policy text: what evidence to keep for each change and release, and how to collect it from the pipeline so delivery doesn't slow down.

What do auditors and compliance teams actually ask about AI-written code?

They ask the same change-management questions as always, then check whether AI-generated changes slipped around those controls.

The baseline questions come from the frameworks you already report against:

AI adds a second set of questions on top:

  1. Which AI coding tools and agents are approved, and who can use them?
  2. Did AI-written changes get the same review and tests as human-written ones?
  3. Can any agent merge or deploy without a person approving?
  4. What code and data can those tools see, and is their activity logged?

If you can answer these from system records rather than interviews, the audit gets much shorter.

Which evidence should every AI-assisted change leave behind?

Every change should leave one linked record: the request, the diff, its authorship, the automated check results, the approval and the release that included it.

The auditor's test is simple. Pick any change and follow it from request to review to test to deploy without gaps. That only works if each item carries the same identifiers, usually the ticket key and commit SHA.

Evidence Where it lives What it proves
Ticket or request ID Issue tracker, linked in the PR The change was authorized
Diff and commit SHA Version control Exactly what changed
Authorship and AI-assist marker Commit metadata, PR label Who or what wrote it
Test results CI run, linked to the SHA It works as specified
Security scan results CI run, linked to the SHA It meets the security bar
Reviewer approval PR review record A qualified person accepted it
Build provenance and deploy log CI/CD platform, artifact registry What shipped matches what was reviewed

A change that fails a gate stays in the record. It goes back to the author, and the failed run stays in the history. Auditors read failed and fixed runs as proof that the gates really do block changes.

Lifecycle of one AI-assisted change and where each piece of evidence is produced
Lifecycle of one AI-assisted change and where each piece of evidence is produced

For more on which signals to measure on each change, see our guide to measuring AI code quality.

How do you record who or what wrote each change and who approved it?

Give every AI agent its own identity, mark AI-assisted work in the commit or pull request, and accept approval only from a person who did not write the change.

In practice:

  • Separate identities for agents. An agent that opens pull requests should use its own service account, never an engineer's credentials. That way its commits stand out in the history without anyone tagging them by hand.
  • A consistent AI-assist marker. With IDE assistants, the human is still the committer. Agree on one convention, such as a PR label or commit trailer, and enforce it with a PR template check. Apply the same convention in every repository.
  • Approval from a person, not a bot. An AI review comment can be useful input, but it should never count toward required approvals. Set up branch protection so the author, human or agent, cannot approve their own change.
  • Code owners for sensitive paths. Authentication, payments, infrastructure-as-code and data-access code should need a named owner's review.

The goal is a record where "who wrote it" and "who took responsibility for it" always have two different, named answers.

Which security scans and test results should be kept as release evidence?

Keep the result of every check that can block a merge, tied to the commit SHA, along with the tool version and any exceptions granted.

Security evidence for each change:

  • Secrets scanning results
  • Static analysis (SAST) scoped to the diff
  • Dependency and licence scans
  • Infrastructure-as-code policy checks, where the change touches infrastructure

Security evidence for each release:

  • A software bill of materials (SBOM). If you place products with digital elements on the EU market, the Cyber Resilience Act requires an SBOM in a machine-readable format such as SPDX or CycloneDX. It must be kept in the technical documentation and retained for at least ten years after the product is placed on the market.
  • Container or image scan results for what was deployed.

Test evidence:

  • Unit, integration and acceptance test results from the run that produced the release
  • Which tests were skipped or quarantined, and who approved that
  • Coverage changes, read together with assertion quality rather than treated as a target

Exceptions matter as much as passes. A waived finding should record who approved it, why, and when the waiver expires. Our post on CI/CD security gates for AI-written code covers the block rules in detail.

How do you show that a release met its gates without manual paperwork?

Make the pipeline the only route to production and let it write the evidence as it runs.

Three practices do most of the work:

  1. Enforce the controls, then export the settings. Branch protection, required checks and required reviews become the control, and an export of their settings proves the control exists. Deploying only through CI/CD and banning manual console changes lets commits, tests, approvals and release records link end to end.
  2. Sign what you build. SLSA defines build levels where provenance exists at Level 1, is authentic at Level 2 and unforgeable at Level 3. On GitHub, artifact attestations bind an artifact's digest to SLSA build provenance and sign it with a short-lived Sigstore certificate. For private repositories you need GitHub Enterprise Cloud.
  3. Bundle the evidence for each release. A final pipeline step gathers the change list, check results, approvals, SBOM and provenance into one versioned bundle in write-once storage.

Who hands what to whom as evidence is collected automatically from pull request to release
Who hands what to whom as evidence is collected automatically from pull request to release

For SOC 2 Type II, auditors may ask you to export every production deploy for the period and then pick samples from it. With a bundle for each release, that export becomes a query.

How should AI tool access, logs and permissions be documented for review?

Keep an inventory of every approved AI tool and agent, with its scope, data access, identity and log retention. Review it on a schedule, like any other privileged access.

For each tool or agent, record:

  • Owner and purpose
  • Who can use it, and how access is granted and removed
  • Repositories and environments it can read or write
  • Data it may see, including whether code or prompts leave your environment, and under which vendor terms
  • The identity it acts under and where its actions are logged
  • How long logs are kept and who reviews them

Permissions should follow risk. An IDE assistant that suggests code for a human to commit is low risk. An agent that can merge, run migrations or read production data needs a tighter scope and a person approving each risky action.

Example AI tool permissions placed by system access and business impact, showing where approval is needed
Example AI tool permissions placed by system access and business impact, showing where approval is needed

Your AI governance policy decides which tools are approved. Our AI strategy practice covers that side: approved tools, data rules and review requirements. The inventory above is the evidence that the policy is actually followed.

What does a practical audit-ready release checklist look like for an engineering team?

It's a short list of conditions the pipeline checks automatically. A person signs off only where judgment is needed.

Before merge, for every change:

  • [ ] Linked to a ticket or request ID
  • [ ] AI-assisted work marked, and agent commits made under the agent's own identity
  • [ ] Tests pass; skipped tests approved and listed
  • [ ] Secrets, SAST and dependency scans pass or have a dated, approved exception
  • [ ] Approved by a human reviewer who is not the author, plus code owners for sensitive paths

At release:

  • [ ] Built only by the CI platform, with signed provenance
  • [ ] SBOM generated and stored with the release
  • [ ] Evidence bundle written to write-once storage
  • [ ] Deploy run by the pipeline identity and logged

On a schedule:

  • [ ] AI tool and agent inventory reviewed, and unused access removed
  • [ ] Branch protection and required-check settings exported
  • [ ] Emergency changes reviewed afterwards, with approvals recorded

At Calidad, every release passes three gates: tests prove it works, security checks prove it's safe, and a senior engineer's review proves it's right. That applies whether a person or an AI wrote the change. Our Quality Engineering service builds that system, including the review gates, security checks and release evidence, into your own pipeline.

Conclusion

Auditors don't need a new framework for AI-written code. They need your existing change controls to cover it, and records that show they did. Give agents their own identities, keep a person as the approver, store check results against the commit and let the pipeline assemble the evidence for each release. Then an auditor's sample request becomes a query.

If you want help setting this up, start with a paid pilot: one pod, one outcome and success criteria agreed up front, judged on working software and the evidence trail behind it. Talk to an engineering lead →

Frequently asked questions

Do we have to tell auditors which code was written by AI?

Most change-management controls, such as SOC 2 CC8.1 and ISO 27001 control 8.32, care whether a change was authorized, tested and approved, not who typed it. But auditors increasingly ask how AI tools are governed. If AI-assisted changes are clearly marked, you can show they passed the same gates without reconstructing anything by hand.

Can an AI code reviewer count as the required approver on a pull request?

It shouldn't. Treat AI review comments as input to the human reviewer, and set up branch protection so only named people count toward required approvals. The record should always show a person who accepted responsibility for the change and who is not its author.

How long should we keep release evidence?

It depends on the frameworks you report against. A SOC 2 Type II audit samples changes from the whole observation period, so evidence has to cover at least that period. For products in scope of the EU Cyber Resilience Act, the SBOM is part of the technical documentation, which must be kept for at least ten years.

Do we need SLSA Level 3 to pass an audit?

Not usually. Change-management controls ask you to prove what shipped and how it was approved, and signed provenance from a hosted build platform already gives you strong evidence of that. Higher SLSA levels make the provenance harder to forge, which matters more if customers or federal buyers ask about software supply chain integrity.

Where should we start if our evidence is scattered today?

Start with the pipeline, not the paperwork. Require every production deploy to go through CI/CD, enforce branch protection and required checks, and add a final step that bundles the results for each release. Then run one sample trace, from ticket to deploy, to find the gaps before an auditor does.

This article first appeared on Calidad Infotech.