Skip to content

AI

AI writes code fast. Who is accountable for it?

Mobiddiction ·

Source Code Screenshot

AI coding tools can produce in minutes what used to take a day. That speed is real, and so is the risk that comes with it. The answer isn't to ban the tools or to trust them. It's to make sure every line still has a person who owns it.

Most professional software teams now use AI somewhere in their work. It writes first drafts of functions, suggests tests, explains unfamiliar code and drafts documentation. Used well, it removes a lot of slow, repetitive work and leaves engineers more time for the parts that need judgement.

For anyone buying software or relying on a development partner, that raises a fair question. If a machine wrote some of the code running your service, who is accountable when it goes wrong?

Our answer is simple. The same people who were accountable before. AI changes how code gets written. It doesn't change who owns it.

Where AI helps, and where it goes wrong

AI coding assistants are very good at:

  • boilerplate and repetitive code

  • writing first drafts of tests

  • refactoring and tidying existing code

  • explaining legacy code that nobody has touched in years

  • drafting documentation and change notes

They are also good at producing code that looks right. That's the problem. Generated code can:

  • be plausible but wrong, with subtle logic errors that pass a quick read

  • introduce insecure patterns, such as weak input validation, injection risks or secrets in configuration

  • use outdated or deprecated libraries and APIs the model learned about in training

  • suggest packages that don't exist, or aren't what they seem. Attackers have started publishing malicious packages under names AI tools tend to invent.

  • raise licensing questions when generated code closely resembles code under a restrictive licence

  • leak information the other way, if engineers paste credentials, personal information or client data into an external AI tool

None of these are reasons to avoid AI. They are reasons to keep the controls that catch human mistakes, and to apply them to AI output just as strictly.

Accountability doesn't move

The most important rule is cultural, not technical: the AI is never the author.

The engineer who accepts a suggestion and commits it owns that code, exactly as if they had typed it themselves. The reviewer who approves the change shares that ownership. "The AI wrote it" is never an explanation for a defect, a vulnerability or a missed requirement.

That sounds obvious, but it has practical consequences. Engineers need to understand code before they commit it, not just check that it runs. Reviewers need to review AI-assisted changes as carefully as any other change, and arguably more carefully, because generated code can be confidently wrong in ways a tired human rarely is. Managers need to resist measuring productivity by volume of code, because AI makes volume cheap.

The controls that matter more now

Good engineering practice already has the safeguards AI needs. The difference is that they now carry more weight.

  1. Mandatory peer review on every change. No code reaches production without a second person reviewing and approving it, however it was written.

  2. Automated testing in the pipeline. Tests catch the plausible-but-wrong code that slips past a reviewer. AI can help write tests too, but a person decides whether they test the right things.

  3. Security scanning on every codebase. Static analysis (SAST), dynamic testing (DAST) and dependency checks should run automatically, across backend, web and mobile code. AI can help triage the findings so the important ones surface first. Engineers decide what's real and how to fix it.

  4. Dependency discipline. Every new package is checked: does it exist, is it maintained, is its licence acceptable, and is it what the AI said it was?

  5. Clear rules about what goes into AI tools. Approved tools only, on business accounts with training on your data turned off. Never personal information, production data or credentials.

  6. Traceable changes. Every change is recorded and reviewed through change management, so you can always see who approved what, and when.

  7. Documentation checked against reality. AI is useful for checking that documentation still matches the code and configuration it describes, a problem that grows quietly over years on long-running systems.

How we do it at Mobiddiction

We use AI throughout our engineering work, under rules we're happy to show anyone:

  • Approved tools. Claude (Anthropic) is our primary tool for development, code review, technical planning and documentation. We use ChatGPT and Codex (OpenAI) to cross-check and review its output. Both run on company business accounts with training on our data turned off.

  • What never goes in. Our AI policy permits source code, configuration and technical documentation, with secrets removed. It never permits personal information, production data or credentials.

  • Review and testing. Every code change, AI-assisted or not, goes through mandatory peer review and automated testing in CI/CD pipelines run by our DevOps team.

  • Security testing. Our AI-driven and AI-triaged SAST and DAST framework runs standard security testing tools across our backend, web, and iOS and Android codebases. Engineers review the findings and decide on fixes.

  • Documentation review. AI-assisted documentation review, with access to source code and configuration, checks that our documentation stays accurate.

  • Governance. All of this sits inside our Information Security Management System, certified to ISO/IEC 27001:2022, and under our AI policy. Each AI tool is recorded in our AI register with an accountable owner.

  • Contracts. Where a client contract governs AI use in delivery (for example, clause 6.11 of the NSW ICT Agreement), we follow it. That means listing or notifying the AI tools we use, and keeping records clients can ask to see.

The principle we hold to across all our AI use applies here too: people sign off, AI does not.

Five questions to ask your development partner

  1. Which AI tools do your engineers use, and on what kind of accounts? Business accounts with training turned off are the minimum.

  2. What data are they allowed to put into those tools? Listen for a clear "never" on personal information, production data and credentials.

  3. Is every change peer reviewed, whoever or whatever wrote it?

  4. What automated security testing runs on our code, including mobile apps, and who decides what gets fixed?

  5. Can you show us your AI policy and tell us who is accountable for it?

A partner who answers these plainly is using AI to go faster without giving up control. A partner who can't is asking you to carry risks you can't see.

Talk to us

Mobiddiction has been assembling and running digital programs for Government and Enterprise since 2012. If you'd like to see how we use AI in delivery, or talk about bringing AI into your own engineering practice safely, get in touch.

We love tech, but speak human.

Work With Us

Turn the ideas in this article into a working program

We assemble and run Government and Enterprise programs on M4, our multi-tenant platform. Tell us what you are working on.