ATLAS
← Back to News and Insights

DINUM makes AI controls mandatory for State software development

5 min

Sensitive code cannot go to commercial AI outside controlled infrastructure, while administrations must report commercial-tool use every six months.

LinkedIn Post
DINUM makes AI controls mandatory for State software development
Eiffel Tower, Paris · Photo: Wikimedia Commons · CC BY-SA 2.0

France’s Interministerial Digital and AI Directorate (DINUM) has issued Doctrine IA n°2 for AI-assisted software development within the State. The underlying document, dated 3 December, makes rules 1 to 17 mandatory for the State information system, including systems holding “Diffusion Restreinte” information. Rules 18 to 20 are orientations. The doctrine applies from publication to State administrations and bodies under their supervision.

The immediate compliance task is to document every development environment, restrict what AI agents can access, and preserve human approval at each control point. The doctrine covers AI assistants, autonomous coding agents and related tools, but excludes classified systems, operational and command information systems, and cyber-defence systems. Cyber-defence frameworks must apply at least equivalent security requirements adapted to operational constraints.

Human approval and controlled tools

Rule 1 requires a human to approve every change to the shared code base, tests, production configuration and production deployment. An AI agent may create a branch, write code or open a merge request, but cannot merge into a shared branch. Approval must be supported by evidence proportionate to risk, including testing, security and dependency analysis, architectural compliance and production traceability.

The approver remains responsible for an incident introduced by AI. The doctrine says approval is valid only where the person has the necessary competence, understands the consequences, has sufficient time and evidence, and can reject or require correction. A process that permits only confirmation of the agent’s proposal is not human validation.

Prototypes and proofs of concept, including those made by non-developers, are allowed before production if they have an identified owner and contain neither real production data nor secrets. Before production, the team must either conduct a detailed code review or rebuild from a specification and test base it owns and controls.

Commercial SaaS tools or hosted models outside a trusted cloud are prohibited where the administration cannot guarantee that the AI agent will not access:

- data of particular sensitivity under article 31 of the SREN law;
- classified or legally protected information;
- “Diffusion Restreinte” information;
- passwords, API keys, certificates, access tokens or other technical secrets;
- unauthorised real production data; or
- security mechanisms whose disclosure could directly compromise a critical system.

The prohibition applies only to the sensitive part of a project and the environments that can access it, rather than automatically to the whole project. Those components must be handled internally, on SecNumCloud-qualified infrastructure or an equivalent protected environment. The project assessment must be documented and approved by the information-security officer.

Outside those cases, commercial tools are permitted only as a subsidiary and controlled option. The administration must qualify the data and environments accessible to the tool, reassess the provider and alternatives at least annually, and retain the ability to operate without AI or replace the tool.

Commercial accounts must be centrally administered and linked to named professional identities. Personal and shared accounts are prohibited. Before subscribing, the administration must verify contractually that submitted code and data will not train a model and that retention periods are specified. Budgets, alerts and blocking caps must be set at least per user account and for the administration.

Every six months, each administration must report to DINUM, and subsequently to ARIANE, for each commercial development tool: the projects concerned, number of users, tools declared by contractors, token volume where available and annual cost. DINUM will consolidate the information for the interministerial CoPIA committee.

Agent security and code controls

Security cannot rest on system prompts, skills or configuration files because an agent may ignore, bypass or alter them. An agent capable of executing code or commands must run in an isolated virtual machine or micro-virtual machine. It must have no access to workstation secrets, production or unnecessary project files, and must use narrowly scoped, revocable identities distinct from the developer’s identity.

Network destinations, connected servers and Model Context Protocol tools must be limited to what the task requires. Imported models, skills, MCP servers and other artefacts must be analysed before use. Changes to agent configuration files such as `AGENTS.md` must trigger a security alert unless authorised.

No secret may be sent to a model, including through prompts, context or conversation history. Secret detection must run on every contribution in the forge or integration pipeline, outside the agent’s control. A secret found even in an unmerged contribution is treated as compromised and must be revoked and renewed. Agents may not connect to production or access real production data.

AI-assisted code is treated as an external contribution. Every contribution must undergo static application security testing and software composition analysis in continuous integration. If AI is used to audit code, the audit tool and model must be separate from those that produced the code. Dependencies proposed by an agent remain candidates until their identity, version, provenance and policy compliance are verified.

Agents cannot write directly to CI/CD environments or pipelines. Changes to those systems require human approval under a strict change-control process. Agents also cannot alter logs, audit systems, protected branches, shared tags, signatures or version-control history. Their actions must be logged by a system they cannot control.

Critical code receives stronger safeguards. This includes code affecting critical public services, user rights, authentication, permissions, cryptography, sensitive data, CI/CD, production environments or monetary flows. The doctrine calls for review by two people where the team size permits and prohibits autonomous end-to-end generation for such code.

Contractors and continuity

Rule 17 extends rules 1 to 3, 6 to 14 and 16 to contractors. Where a contractor uses the administration’s workstation, forge or integration chain, the rules apply directly. Where it uses its own environment, the contract must specify permitted tools and models, inference hosting and location, identities, accessible data, retention, training restrictions, telemetry, connectors and network flows.

A contractor’s AI tool must be declared before use on the project. The contractor must guarantee contractually that the administration’s code and data will not be used for training and will have zero or limited retention. Access to the shared code base and production remains conditional on the same integration controls as internally produced code.

The doctrine also requires traceability and reversibility. AI-assisted contributions must be identified automatically in version control, for example through a `Co-Authored-By` entry naming the harness and, where available, the model. The authoritative record is instead the inference gateway, forge or infrastructure logs retained outside the agent’s control. Administrations must keep a functioning development chain without AI and test it at least annually, such as through a representative maintenance exercise.

Rules 18 to 20 encourage sustainable use, continuous training and the recruitment of junior staff. AI usage metrics must not become a tool for individual performance monitoring, and the pace and volume of generated code must not become objectives at the expense of quality, understanding or team health.

The doctrine follows Doctrine IA n°1, which sets State rules for pooling AI computing capacity and shared general-purpose tools. DINUM will be succeeded by ARIANE on 1 January 2027, after which the doctrine’s references to DINUM will mean ARIANE.

Official source: numerique.gouv.fr
AIAI FrameworksAI Governance ControlsAI Use RestrictionsAI Governance

Permanent link to this Atlas analysis

Continue with coverage connected by market, topic and operating context.

Continue with Atlas

Move from this development into the relevant research, comparison and workflow.