How to set up an AI-enabled SDLC in a large organisation
Written by Alex Vakhitov, founder of Comonad Limited. Published . Last updated: .
On this page
What is an AI-enabled SDLC?
An assistant in an IDE and an agent that opens pull requests are both inside the lifecycle. What matters to a large organisation is whether that use is agreed, checked and written down.
Leave it unagreed and each team makes its own bargain. One team pastes production code into a personal account. Another lets an agent merge when the tests are green. A third bans the tools and watches people use them anyway. The lifecycle below is the same stages you already run, with a decision at each one about what the AI may do.
| Stage | What people agree | Where an assistant or agent may act |
|---|---|---|
| Specification | Scope, acceptance criteria, and what stays untouched | Drafting a specification a person edits and accepts |
| Implementation | The agreed specification | Generating or editing code in an approved repository |
| Review | Someone other than the author reads the diff | A second model can comment. It does not approve its own change |
| Test | The tests and static checks that must pass | Generating tests, which a person still owns |
| Release | The same release checks as any other change | Only if you have explicitly allowed an agent to open the release |
A coding assistant proposes a change a person can accept. A coding agent can take several steps, including opening a pull request. A harness is the software around the model: what it can read, which commands it can run, and when it must stop. Plan first, then route is our dated view on sending work across harnesses. Agents that act in production are covered by the six-layer framework for governing AI agents. This guide does not replace it.
What is the Comonad AI SDLC control model?
Five controls, in this order: Policy, Approval, Gates, Records, Rollout. Together they are the Comonad AI SDLC control model. Naming them means a board, a security lead and an engineering manager can talk about the same five things, and a later reader can find them at this URL.
| Control | Question it answers | What you keep |
|---|---|---|
| Policy | Which assistants and agents are allowed, on which code and data, and who may grant an exception? | The written policy and its owner |
| Approval | Has security and procurement accepted this tool, including where prompts go and what the provider keeps? | The approval record |
| Gates | What must pass before an AI-assisted change moves on? | The gate result on the change |
| Records | Can audit and incident review see which changes were AI-assisted, and which checks ran? | The change record |
| Rollout | Which teams are using it, and how do you switch a step off? | The rollout plan and the runbook |
Policy comes first. The other four have nothing to attach to until someone has said which tools are allowed. Approval lets a specific assistant into the estate. Gates check a change. Records are what you can show later. Rollout is how the first teams become the rest of the organisation, and how you switch a step off. The engagement that puts this in place is the AI-enabled SDLC consultancy.
What should the policy say before a pilot widens?
Write it while the pilot is still small. A policy that arrives after every team has a favourite tool is a retrospective. It should name the approved assistants, the repositories and data they may see, how an AI-assisted change is reviewed, what is recorded, and the person who can grant an exception.
Own it in engineering, with security and risk as reviewers. A policy that only the security team has read will not survive a release deadline. The clause-by-clause outline, which you can copy without an email gate, is in Writing an AI coding assistant policy for a large engineering organisation.
How do you approve an assistant?
Security and procurement do this, not only the team that wants the tool. The questions are ordinary third-party questions, applied to a product that sees source code.
Where are prompts and code sent? What does the provider store, and is customer content used to train models? Which subprocessors are on the path? Is the account a company tenant or a personal login? What licence applies to the output? Read the vendor's current terms. They change, and a blog post is not the contract.
Personal accounts for company repositories fail that test, because you cannot see what was sent or close the account when someone leaves. Record the product, the account type, the data it may see, the date and the owner. An assistant that is not on that list is not approved.
Which quality gates should an AI-assisted change pass?
The pipeline you already run stays. Add the gates the risk calls for, and run them on AI-assisted changes rather than on a side path. A side path is how generated code skips the checks everyone else is held to.
| Gate | What it checks | Where it runs | Evidence |
|---|---|---|---|
| Specification accepted | A person has agreed the scope and the acceptance criteria | Before generation | The accepted specification, with a name and a time |
| Independent review | The change is read by a person, or a model, other than the one that wrote it | Pull request | Review comments and the approval |
| Tests | The change passes the tests you already require | CI | The CI result |
| Static and dependency checks | Secrets, known-vulnerable dependencies, licence signals | CI | The scan result |
| Release | The change meets the same release bar as any other change | The release pipeline | The release record, marked if the change was AI-assisted |
A person agrees the specification before generation starts, so the model works to a plan the team has accepted. Review is independent of authorship: the model that wrote the change is a poor choice for the only review it receives. A second model can comment. A person still approves. Tests generated with the change are useful, and they are not a substitute for tests the team already trusts.
What record should you keep of an AI-assisted change?
Enough that an incident review months later can see how the change was made. That means the assistant, the person who accepted the change, and the gates that ran. If you know the model, record it. If an agent opened the pull request, record that too.
You do not need a percentage of lines. Line counts are easy to game and hard to explain. A mark on the change, in the pull request or the ticket you already use, is enough to search later. Keep it where the change record already lives. A separate AI log that nobody opens during an incident is a record in name only.
How do you keep code, secrets and licences under control?
Prompts are a poor place for secrets, production data and personal data. If a prompt contains personal data, UK GDPR applies to that processing. The ICO's guidance on AI and data protection (opens in new tab) is the place to start. Scan repositories and the logs you keep for credentials, and treat a secret in a prompt as a leaked secret.
Generated code can carry a licence notice the model invented, or name a dependency that does not exist. Run the dependency and licence checks you already have. Who owns the output is a question for your counsel. We do not give that advice. The policy records which assistants are used, on what code, under which terms, so counsel has something to read. The NCSC's Guidelines for secure AI system development (opens in new tab) (27 November 2023) cover secure design, development, deployment, and operation. Treat the assistant as part of that supply chain, and do not let generated code skip the checks you already require.
How do you tell whether it is working?
Use the measures you already report. Review time, change failure rate, escaped defects. Compare them with the period before the assistants were approved. We do not quote a gain in advance. A vendor's acceptance rate is not one of these measures: it tells you how often a person took a suggestion, not whether the change failed in production.
Agree the measures when you design the gates, and read them with the pilot teams before you add the next one. A longer review is a result, and it belongs in the decision to widen.
How do you roll this out team by team?
Start with one team, or two, on real work, in the repositories and the release process you already have. Change the policy where it snags. Then add the next team. The rules are the same from the start. What changes between waves is the guidance and, sometimes, a gate that was catching the wrong thing.
Each step needs a way back. Turning the assistant off leaves delivery on the process you had. If an agent may open pull requests, suspending it is a runbook the pilot team has tried. How long a rollout takes depends on the estate and on what the first wave shows. We will not put a number of weeks on it.
What is different in a long-lived codebase?
A new repository with a handful of services will absorb a clumsy suggestion. A codebase that has been in production for years often will not. The conventions are local, the failure modes are known to the people who have been paged, and a change that looks tidy can break a path nobody has touched in a year.
Alex Vakhitov spent almost seven years as co-founder and CTO of Cloud KB, building software for UK energy-market participants, in a regulated market. The habit from that work is ordinary and strict: know the boundary of the change, prove the new path, keep a way back. AI does not relax it. A suggestion that ignores the local pattern is more expensive there, because the blast radius is a system other people already depend on.
The people who know the system agree what must stay untouched before any code is generated. Reviewers then read the diff against that agreement.
How does this sit with AI governance and ISO/IEC 42001?
These controls are the engineering half of governance. The AI governance consultancy writes the inventory, the classification and the wider control set. This guide is where those controls meet a pull request.
ISO/IEC 42001:2023 (opens in new tab) is the voluntary management-system standard for organisations that develop, provide or use AI. Annex A is its reference list of controls. The free ISO page does not reproduce that text, so this guide does not quote control numbers. A written policy, gate definitions and change records are the sort of documented information an AI management system expects you to show. Mapping is not certification. Comonad does not certify. See ISO/IEC 42001 readiness.
The NIST AI Risk Management Framework (opens in new tab) (AI RMF 1.0, January 2023) is voluntary. It is organised as Govern, Map, Measure and Manage. The table below is our mapping of the five controls onto those functions. NIST did not publish this table.
| Control | NIST AI RMF function |
|---|---|
| Policy | Govern |
| Approval | Govern, Map |
| Gates | Measure, Manage |
| Records | Measure |
| Rollout | Manage |
Annex III of Regulation (EU) 2024/1689 (opens in new tab) lists high-risk uses, including biometrics, critical infrastructure, education, employment, essential services, law enforcement, migration and the administration of justice. It does not list an engineering team using a coding assistant. A product you place on the EU market can still be high-risk because of what that product does, including where AI is a safety component under Annex I. Whether the Act applies to the assistant is the Article 2 test in Does the EU AI Act apply to UK companies?. Where you are a provider or deployer in scope, Article 4, as amended by Regulation (EU) 2026/1744 (opens in new tab), asks you to support AI literacy for staff and others operating AI on your behalf. It does not require a guaranteed level for each person. This is not legal advice. UK regulators still apply existing law in their sectors: see AI regulation in the UK.
What should be in place before you widen the pilot?
One page, on this page. No email needed.
- Policy: approved assistants, the code and data they may see, and who signs off exceptions.
- Approval: where code and prompts go, what the provider retains, and the licence terms for generated code.
- Gates: an accepted specification, independent review, tests, and static and dependency checks in CI.
- Records: which changes were AI-assisted, by which assistant, and which gates ran.
- Security: secrets and personal data kept out of prompts; scans for leaked credentials and licence issues.
- Measures: review time, change failure rate and escaped defects, before and after, with no figure promised in advance.
- Rollout: one or two teams first, a way to switch each AI step off, then widen.
How Comonad helps
We set the policy, the gates and the records with your engineering and risk teams, then the rollout. That work is the AI-enabled SDLC consultancy. Taking that function from the current team to an agent-run function, controls first, is AI operations. The policy document is Writing an AI coding assistant policy for a large engineering organisation. Routing work across harnesses is covered in Plan first, then route. The wider duties sit with our AI governance consultancy. The operating model is in AI operating model for the enterprise.
Discuss AI in your SDLCSources
- Regulation (EU) 2024/1689 (EUR-Lex) (opens in new tab)
- Regulation (EU) 2026/1744 (EUR-Lex) (opens in new tab)
- ISO/IEC 42001:2023 (opens in new tab)
- NIST AI Risk Management Framework (opens in new tab)
- NIST AI 100-1 (opens in new tab)
- ICO guidance on AI and data protection (opens in new tab)
- NCSC: Guidelines for secure AI system development (27 November 2023) (opens in new tab)
Frequently asked questions
What is an AI-enabled SDLC?
An AI-enabled SDLC is a software delivery process where the use of AI assistants and agents is governed by policy, checked by quality gates and recorded for audit.
Who should own an AI-enabled SDLC?
Engineering leadership owns the policy and the rollout. Security and procurement approve each assistant. Risk and audit use the records. A policy that only one of those groups has read will not hold.
Do AI-assisted changes need different review?
They go through the review you already require, plus two additions. A person accepts the specification before generation, and the review is independent of the model that wrote the change. A second model can comment. A person still approves.
Should we record which changes were AI-assisted?
Yes. Record the assistant, the person who accepted the change, and the gates that ran. Record the model if you know it. A mark on the pull request or ticket you already use is enough. A percentage of lines is not.
How long does a rollout take?
It runs in phases: agree the policy and the gates, pilot with one or two teams on real work, then extend and hand the runbooks to your engineers. The length depends on the estate and on what the pilot shows. We do not promise a number of weeks.