What happens when software development loses accountable developers and meaningful oversight of the code they write?
That’s the question I’d want answered before letting an agent touch a production codebase. The agent might write good code. The team might move faster. But neither tells you what the organisation has always depended on, or if it’s still there.
How businesses delegate authority
Every business relies on delegated authority. People act for the company when they sign contracts, approve payments, change prices, talk to customers and handle the books. You can’t physically stop most of this. Anyone with the right banking access, for example, can send a payment. Delegation works because the people acting for the company are identifiable, employed by it and know they’re subject to discipline and the law. That arrangement starts with the board. As authority is delegated down the organisation, each person who receives it is accountable for how they use it.
When you can’t attach accountability, you narrow the authority instead. A temp doesn’t get signing rights. A new finance hire gets a low payment limit and needs a second approver. A contractor gets supervised access. These limits let businesses delegate work while keeping approval with someone who can answer for the decision.
Software development works the same way. Peer review, release gates and tests help teams catch problems before a change goes live. Those controls can be effective without covering every possible failure because people are held responsible for the decisions the controls leave to them. Developers answer for the changes they make, reviewers for the changes they approve, and whoever authorises a release for the decision to ship it.
Existing controls can fall short when an agent takes on work that previously depended on a developer’s judgement. Tests still cover only the cases someone thought to check, and a release gate can pass a change whose wider effects nobody has examined. If a team gives agents the same access as developers while reducing human oversight, it needs stronger controls or tighter limits on what the code can do.
What can the code do in production?
Once an agent can insert or change code, ask what damage a change could cause once it runs.
Application processes usually run with limited permissions. Within those limits, a change can often exercise the full authority of the service it runs in. A small change to an invoice calculation might run in a service that can read customer records, update invoices and send email. The operating system sees the same process using the same permissions in each case.
A database can enforce limits of its own. A role can read a view that exposes only selected columns. A constraint can reject invalid values on write. Those checks run regardless of which application code issued the query, provided the service role lacks permission to alter them. The same principle applies to product rules such as who can approve a refund and which records a customer can export.
AI-written code in that environment can exercise the service’s authority. The people who approve and deploy it remain accountable for the change. It can corrupt data, leak it, weaken access controls, add a backdoor, change a financial calculation, bypass the audit trail, or introduce a subtle bug that goes unnoticed for months. None of this needs to be malicious; it can happen with a mistake when no one is watching.
The models are not safe by default
A common assumption is that an agent is a neutral tool whose risks depend on how people use it. Two cybersecurity evaluations in July 2026 showed what agents can do with the access they have under test conditions.
OpenAI ran its evaluation with reduced cyber refusals and without the classifiers it uses in production to block high-risk cyber activity. The models had no direct internet access. They still reached the internet through a failure in the test environment’s isolation and compromised parts of Hugging Face’s infrastructure. OpenAI’s incident report
The UK AI Security Institute deliberately enabled internet access and switched off provider cyber classifiers. An agent used the access it had to submit a malicious change to a real open-source project. A maintainer refused to approve it. AISI’s incident report
These were deliberately permissive cyber evaluations. OpenAI’s experience shows why a boundary has to hold across the services it depends on. AISI’s shows what can happen through access granted by design, and how a reviewer can stop a dangerous change.
How safe these systems are overall is a topic for another article. The point here is simpler: you can’t assume an agent’s output is safe, even if it was trying to do the right thing.
“But we have controls”
The usual response is that this is an acceptable residual risk, because there are controls: CI, tests, code scanning, approval workflows, monitoring, logs, rollback, incident response.
All of these are useful. But the argument conflates three different things:
- Controls over the process that produces code. Pipelines, scans, approval gates, branch protection.
- Oversight of the code artefact itself. A competent person reads the change and decides whether it is correct, safe, and appropriate.
- Limits on the code’s authority at runtime. What it can reach, change and send once it is live.
Process controls show evidence about the system that made the change, not whether the change itself is good. A good pipeline tells you the code compiled, the tests someone wrote still pass, and the scanner didn’t find anything it knows. But it doesn’t tell you the change is correct.
Monitoring can surface unexpected behaviour and help teams intervene. Some failures become visible only after data has left the system or a transaction has gone through.
The numbers already show the pressure. Sonatype’s analysis of four years of enterprise development data, published in August, found that applications are being created almost five times faster in the AI era, and the average application in the cohort carried over four times as many critical and high-severity vulnerabilities at the end of the study as at the start. Teams are fixing issues faster too. The median age of an open vulnerability fell 59% from its peak, but they’re still falling behind. The scanners are working, but the volume is outpacing them.
So when code runs with broad authority, process controls can’t replace actually reading the code. You need one or the other. If you have neither, you’re not managing the risk.
Containment in the product
Monitoring helps teams detect problems and intervene. Containment limits the damage a change can do before anyone has to intervene.
Start with what the code needs to do with the data. Suppose a change calculates a refund. Give that code the transaction fields needed for the calculation and let it propose an amount. A separate payments service can verify that the refund goes back to the original payment method, reject amounts above the remaining refundable balance, and require independent approval above a threshold. The code proposing the refund should lack the credentials to issue it directly or the permissions to change those checks or edit the audit record.
Process isolation helps enforce those product rules. Restrict network access, use scoped credentials and keep access to sensitive records behind interfaces that enforce customer and record-level permissions. Check what happens when a caller requests another customer’s record, submits the same refund twice or tries to export more data than the feature needs.
The less you limit the code, the more oversight it needs. The more you truly limit it, the safer it is to reduce human review of the code.
If an organisation wants agents to write a lot of its code, it should set up boundaries first. Bounded code can be reviewed lightly because its worst-case impact is limited. Unbounded code can’t, no matter how good the pipeline.
Accountability at the top
Senior leaders are responsible for making sure the controls match the actual risk. Unbounded application code written by someone who isn’t accountable creates a different risk than the one the old controls were meant for, and those controls aren’t enough. An earlier audit report reflects the workflow it assessed. Revisit the risk assessment when agents change who can submit changes, how much code needs review or what reviewers can realistically check. Accountability means someone with the right authority has understood the risks, reduced them where possible, monitored them, and accepted them. “It passed the tests” isn’t enough.
The board can delegate decisions about what goes into production. The organisation still bears the consequences of those decisions. The same principle applies to the payment approval at the start of this article. Set limits on the authority you delegate and make clear who can approve an exception. For a production release, that means knowing who can approve a high-impact change, who can halt a rollout and who has the authority to accept the remaining risk.
The order of work
- First, limit what AI-generated code can do. Decide what it can access and make sure those limits are built into the system.
- Add controls over how it is produced and deployed. As evidence, not proof.
- Monitor what the code does in production, but know you won’t catch everything.
- Have people review the code when the possible impact is still significant.
- Make accountability clear. Decide who owns the risk, who can step in, and who is responsible for the consequences.
Most organisations do steps two and three, skip the first, do the fourth poorly, and have never written down the fifth.
Where this leaves us
Existing architectures assume a trusted, accountable author, and their controls were designed for that. AI agents are neither, and they can be turned against you. If an organisation removes accountable developers or reduces their review to a formality, it has two choices: bring back real oversight of the code, or redesign the system so that new code can’t do serious harm. Neither is easy. Both require building controls strong enough to stand alone, which most organisations have never done. Waiting for an incident to force the choice isn’t a third option.
AI doesn’t remove the need for accountability in software. It exposes where accountability was hidden inside trusted human development practices. As AI writes more of our code, software architecture has to recognise that some code may have no consequence-bearing author, and therefore must not be allowed consequence-bearing authority.
Working out what AI-written code should be allowed to do?
