AI governance for an enterprise software team is a short written policy that says which AI tools engineers may use, what data those tools may see, which AI-written changes need human review before merge, how use is logged, and who owns the rules. Keep it to one page and enforce it in the pipeline, not a slide deck.
Engineers already use these tools. In the Stack Overflow 2025 Developer Survey, 84% of developers said they use or plan to use AI tools, and 46% said they don't trust the accuracy of the output, up from 31% the year before. The point of a policy is to make AI use safe and visible. Stopping it isn't realistic.
What does AI governance cover for an engineering team?#
It covers five decisions: tools, data, review, logging and ownership. Anything outside those five belongs in a company-wide AI policy, not the engineering one.
For a reference point, the NIST AI Risk Management Framework groups AI risk work into four functions: Govern, Map, Measure and Manage. Govern is the cross-cutting one, and it covers culture, policies and accountability. For organisations that want a certifiable system, ISO/IEC 42001 sets requirements for establishing, maintaining and continually improving an AI management system. You don't need either to start. An engineering policy that covers the five decisions below gives you material you can map to both later.
When we run AI strategy work with clients, this is the governance deliverable: a risk policy that sets out approved tools, data rules and review requirements, with owners attached. It's written so engineers can follow it without asking legal first.
Which AI tools should be approved, and who decides?#
Approve a short named list of tools on business accounts. Name one person who can add to it, with security and legal signing off on data terms.
Before you approve a tool, check:
- Account type. Engineers use an enterprise or team plan with admin controls, not a personal login.
- Data terms. The contract says whether prompts and code are kept, for how long, and whether they're used for training.
- Access scope. Which repositories, tickets or systems the tool, or an agent built on it, can read or write.
- Identity. The tool uses SSO, so access ends when someone leaves.
- Exit. You know how to switch it off and remove stored data.
Give engineers a request path with a deadline for an answer, such as five working days. Without one, people use unapproved tools and you can't see it. When a tool is approved for trial, set a time limit and say which repositories it may touch.
What data may engineers and AI tools touch?#
Sort data into classes and write down which classes each approved tool may see. Leave out anything your classification already treats as regulated or secret.
A workable split for most teams:
- Allowed: your own source code in approved repositories, public documentation, synthetic test data, and anonymised logs.
- Allowed with conditions: internal design docs and tickets, but only in tools with no-retention or no-training terms.
- Never: secrets, credentials and keys, production customer data, personal data, regulated records, and anything under a client confidentiality clause that hasn't been cleared.
This isn't only a compliance concern. The OWASP Top 10 for LLM Applications lists Sensitive Information Disclosure (LLM02) among its top risks. Data pasted into a prompt, or pulled in by a retrieval step, can come out somewhere else.
Back the rules with controls, because a document alone won't stop a leak. Scan for secrets before commit and on every pull request. Keep production data out of developer environments. Scope agent credentials to read-only unless a person approves a write. If the data rules are part of a wider effort, link them to your existing classification and ownership work. Data governance is where you decide which data models and agents may see.
Which AI-written changes need human review before merge?#
Every change gets reviewed. Risk decides who reviews it. The author's tool doesn't change the rule. Treat an AI-written change exactly like one a person wrote, then add stricter review for the paths where a mistake costs the most.
Our own engineering standard follows this rule. Tests, security checks and a senior engineer's review run on every release, whether a person or an AI wrote the change.
Sort changes by path and type:
- Standard: tests, docs, internal tooling and boilerplate. One approving reviewer and green pipeline gates.
- Elevated: business logic, public APIs and shared libraries. Approval from the code owner of that area.
- High risk: authentication, payments, cryptography, infrastructure as code, database migrations, new dependencies, prompts and agent permissions. Code owner approval plus a security reviewer.
Make it enforceable in the repository. On GitHub, code owners are requested automatically when a pull request touches their files. Turning on "Require review from Code Owners" in branch protection makes that approval mandatory. Note that approval from any one listed owner meets the requirement. For high-risk paths, list a small team of people qualified to approve.
Reviewers should check intent, not just syntax. A test generated from the same prompt as the code can confirm a bug instead of catching it. For the automated half of this, see our guide to CI/CD security gates for AI-written code.
How do we log AI use and keep an audit trail?#
Log at the pull request. That's where intent, code, gate results and approvals already meet, so you don't need a separate system.
A minimum audit trail has:
- An AI-assisted marker on the pull request, such as a label or a commit trailer, that says which approved tool was used.
- Gate results (tests, secrets scan, static analysis, dependency check) stored with the build.
- Reviewer identity and approval, including the code owner for elevated and high-risk paths.
- Exceptions, meaning any override of a blocking gate, with who approved it and why.
- Release evidence, linking each deployment to the pull requests it contains.
Don't store raw prompts by default. They can contain the very data the policy is meant to protect. Log the tool, the change and the checks. That answers the question auditors usually ask: what shipped, and who confirmed it was right?
Also record whether your team builds AI features or only uses AI tools. That decides which outside rules apply. Under the EU AI Act, for example, obligations for providers of general-purpose AI models entered into application on 2 August 2025. Which ones apply depends on whether you're the provider placing a model on the market.
Who owns the policy after launch, and how often is it reviewed?#
One named person owns it, usually the VP of Engineering or head of platform. They review it every quarter, plus whenever certain events happen.
Security and legal approve changes to the data rules. They don't own the document, because if they did, engineers would treat it as someone else's rules. The owner's job:
- Answer tool requests within the stated deadline.
- Review the approved list each quarter and retire unused tools.
- Read the exception log and fix rules that people keep overriding. A rule bypassed every week is wrong or badly enforced.
- Re-review right away when a vendor changes its data terms, a new model or agent capability arrives, an incident happens, or a regulation changes.
Measure whether it works with numbers you already have: share of pull requests labelled AI-assisted, gate failure rate, exception count, and change failure rate after release. If AI use rises while failures stay flat, the policy is doing its job.
What does a policy look like on one page?#
It fits in one table. If yours doesn't, it's probably trying to be a company AI ethics policy as well.
| Section | Rule |
|---|---|
| Scope | All engineers, contractors and AI agents working in company repositories |
| Approved tools | Named list on business accounts with SSO. Anything else needs a request first. |
| Tool requests | Submitted to the policy owner, answered within 5 working days. Trials are time-limited. |
| Data: allowed | Own source code, public docs, synthetic test data, anonymised logs |
| Data: never | Secrets, production customer data, personal and regulated data, uncleared client material |
| Review | Every change reviewed. Code owners for owned areas. Owner plus security for high-risk paths. |
| Pipeline gates | Tests, secrets scan, static analysis and dependency check must pass before merge |
| Agents | Least-privilege credentials. A person approves any write to production systems. |
| Logging | AI-assisted label on the PR, gate results, approvals, exceptions, release evidence |
| Exceptions | Only the policy owner can approve, and every one is logged with a reason |
| Owner | VP of Engineering (named). Security and legal approve data rule changes. |
| Review cycle | Quarterly, plus on new tools, vendor term changes, incidents or regulation changes |
Most of these rows can be enforced by settings you already have: SSO, branch protection, code owners, pipeline gates. That's why engineers follow it. The policy describes how the repository already behaves.
Conclusion#
A policy engineers will follow is short, names one owner, and is enforced by the pipeline. Approve a small set of tools, keep sensitive data out of prompts, review every change by risk, and log evidence at the pull request. Then review the policy every quarter and let the exception log tell you what to change. If you want help turning this into gates that run on every release, our Quality Engineering team builds that system end to end.
Frequently asked questions
Do we need ISO/IEC 42001 certification to govern AI use in engineering?
No. A one-page engineering policy with enforced pipeline controls covers the day-to-day risk for most teams. ISO/IEC 42001 is useful if customers or regulators ask for a certified AI management system. A policy that already names owners, data rules and review requirements makes that work easier later.
Should we ban personal AI accounts entirely?
For company code and data, yes: require business accounts with SSO and known data terms. A ban only works if the approved tools are good enough and requests get a fast answer. Otherwise engineers go back to personal tools where you can't see them.
How should AI agents that open pull requests be governed?
Treat an agent like a junior contributor with limited permissions. Give it scoped, least-privilege credentials, label its pull requests, and run it through the same gates and code owner review as any change. A person should approve any action that writes to production systems.
How do we roll out the policy without slowing teams down?
Start with the controls that run automatically, like secrets scanning, branch protection and code owners, so most of the policy works without anyone thinking about it. Publish the one-page version, set a short deadline for answering tool requests, and only add stricter review on high-risk paths. Then watch the exception log for rules that get in the way.
What metrics show the policy is working?
Track the share of pull requests marked AI-assisted, the gate failure rate, how many exceptions get approved, and the change failure rate after release. If AI-assisted work grows while change failures and exceptions stay flat or fall, the policy is doing its job.
- AI governance
- engineering management
- software security
- DevSecOps
- AI policy
Newsletter
Get new articles by email
A short monthly round-up of what we've written on engineering pods, quality and AI. No spam.
