Government coding agents are coming. Who controls the test?

Government coding agents can speed up software development. But a system that proposes a change must not be able to rewrite the independent checks used to approve it.

The next step is to make the acceptance criteria for an AI-assisted software change independent of the agent that developed it. Image: Canva

Imagine a government coding agent updating an online licensing service. It changes an eligibility rule, rewrites several automated tests to match the new behaviour, and produces a green report.

 

The code works as its tests now describe. 


But did anyone independently check that the rule still matches what the agency actually approved?


This hypothetical case points to a practical risk as AI agents begin writing code, proposing tests and preparing releases: the system producing the change may also influence the yardstick used to

Burak Oktenli is an independent researcher working at the intersection of AI governance, national security, and critical infrastructure resilience.

judge it. 


The problem is not whether artificial intelligence (AI) can code. It is who controls the meaning of “passed.” 


Unlike an initial pilot review, that question returns with every software update after launch.


Singapore offers a timely starting point. Its updated Model AI Governance Framework for Agentic AI includes a GovTech Singapore case study describing a phased rollout of coding assistants. 


GovTech initially limited their use to internal staff and low-risk systems, with no external tools, while developing central logging, monitoring and safeguards for a wider rollout. 


That is an example of building controls alongside capability, not proof that all future releases are risk-free.


At STACK 2026 on November 4, GovTech leaders also emphasised shared government platforms, common guardrails and evaluation rather than leaving agencies to build isolated solutions, as GovInsider reported on November 6. 


The next step is to make the acceptance criteria for an AI-assisted software change independent of the agent that developed it.

Protect the test that defines success


AI coding assistants should be welcome to suggest new tests. 


They can find edge cases, generate counterexamples and help engineers improve coverage. 


But a test proposed by the coding agent should not silently replace the agency-approved tests that establish what a public service must do.


For a licensing application, that protected baseline may contain eligibility examples drawn from current law and policy, accessibility checks, privacy restrictions, and conditions for rejecting an invalid application. 


The agent can edit implementation code and propose additional cases. 


Changing the protected acceptance criteria should require a separately reviewed request with a recorded justification.


The distinction is already compatible with established practice. The UK Home Office’s March 2026 engineering guidance requires AI-assisted code to meet the same security expectations as human-written code, while NIST’s software verification guidance emphasises testing code against security requirements. 


The added safeguard proposed here is narrower: ensure the tool writing a change cannot quietly redefine the requirements it must pass.

Make the release decision independent


For consequential government services, the release record should identify the exact code and configuration being deployed, the protected test version, any approved changes to the criteria, the tests that failed, and the person authorised to accept residual risk. 


A passing report for one build should not be reused for a materially different one.


Independence needs technical enforcement, not just an organisational chart. 


If the coding agent uses credentials that can alter the official tests and promote its own build into production, separate review screens provide limited protection. 


The agency can instead put acceptance tests and deployment approval in a separate workflow with narrowly assigned permissions. 


This does not require banning AI from evaluation; it prevents any one development process from controlling the evidence and the release decision together.


The intensity of review should match the consequence. Formatting changes or reversible internal tools can move through heavily automated checks. 


Changes to benefit eligibility, personal records, payments or critical infrastructure require stronger protection and accountable sign-off. Public servants need a practical gate, not a new committee for every typo.

Test whether the gate can fail


The most revealing exercise is to introduce a deliberate disagreement. 


Ask an AI coding assistant to propose a change that conflicts with a protected policy example.

 

Then allow it to write additional tests and explain why the change is an improvement. Can an independent pipeline still detect the policy conflict and prevent an unauthorised release?


Repeat with missing logs, a dependency update, a changed configuration and unavailable reviewers. 


The result should show not only whether a bad change was blocked, but also how much legitimate service delivery was delayed. 


Agencies should recognise the limits. Locked tests can be incomplete, reviewers can make mistakes and a legitimate policy change may require changing the baseline. 


The purpose is not to claim that every defect will be found. It is to prevent an avoidable conflict of interest from being hidden behind a successful automated report.


The first step can be taken tomorrow: select one upcoming AI-assisted software release and ask whether the agent proposing the change can also alter the tests that determine acceptance or the credentials that authorise deployment. 


If the answer is yes, separate those powers before the next release.


AI may become a remarkable partner in building better government systems. It should not be allowed to give its own work the final passing grade.


----------------------------------------


The author is an independent researcher focusing on systems assurance, autonomous technologies and AI governance. He holds a bachelor’s degree in Computer Science and Engineering from the University of South Florida and an MBA from Lynn University, and is pursuing a Master of Professional Studies in Applied Intelligence at Georgetown University. His commentary has appeared in GovInsider, Eurasia Review, RealClearDefense and The Space Review.