Privacy by design is the principle in Article 25 of the GDPR (Regulation (EU) 2016/679): the controller puts in place appropriate technical and organisational measures, such as pseudonymisation, both when deciding the means of processing and during the processing itself, and ensures that by default only the personal data necessary for each purpose are processed (Art. 25(1) and (2); source: EUR-Lex, consulted 13/10/2026). The principle still applies when a coding agent writes part of the code, because responsibility stays with the controller, who must be able to demonstrate compliance (Art. 24(1)). In practice you need three things: know which parts of the code touch personal data, have a check run by something other than the agent, and keep the signature of whoever approved the choice. Without those records, the data decision exists in the code but cannot be reconstructed. This piece is written about EU rules, for teams serving customers subject to the GDPR.
This is practical, not legal. It promises no compliance and does not replace the advice of your data protection officer or a consultant.
What does the principle actually ask for in practice?
The phrase rests on two halves. The first is design: data decisions are made early, when you define how the processing works, not after release. The second is demonstration: Article 24(1) requires the controller to be able to show that processing complies. A correct but undocumented choice is worth much less in an audit or in front of a customer than a documented one.
| Requirement | Reference | What it means for a development team | | --- | --- | --- | | Appropriate measures from the design stage | Art. 25(1) | Decisions on fields, access and retention are made before the code is written | | Only necessary data by default | Art. 25(2) | Default values do not collect or expose more than needed | | Ability to demonstrate compliance | Art. 24(1) | Every decision leaves evidence that can be consulted later | | Processors with sufficient guarantees | Art. 28(1) | Whoever processes data on a customer's behalf must be able to show it |
Which data decisions does an agent make today?
A coding agent working on a module with personal data makes small decisions, even unannounced: which fields to store, what to write to logs, which default to give a parameter, which data to pass to an external service, how long to keep a record. These are exactly the choices Article 25 wants to be deliberate.
The risk is not that the agent errs more than a person. The point is that the decision is not born in a traceable meeting: it is born inside a session that ends and leaves nothing but the code. The METR study of 10/07/2025 measured experienced developers using AI tools taking 19% longer while believing they were faster: a feeling of having checked is no substitute for a recorded check.
How do you prove a decision nobody remembers making?
You do not rebuild it from memory: you make it leave a record as it happens. Three concrete steps:
- A scope written beforehand: for each task, state which files the agent may touch and whether that scope includes code that handles personal data.
- A check run by a deterministic command and not by the agent, for example a test that verifies a field does not end up in logs.
- A person's signature on the delivery, saying who decided and when.
What should you record, at a minimum, on these parts of the code?
A short list, built for whoever has to answer a customer:
- the original request and the declared scope;
- the list of modified files that touch personal data;
- the outcome of the automated checks, with date and command run;
- the name of whoever approved the delivery;
- the bill of materials of included components, see the software bill of materials for AI-generated code.
The record of processing activities (Art. 30) and the impact assessment (Art. 35, when processing is likely to result in a high risk) remain the controller's tasks: these records do not replace them, but give them material to start from.
How do you answer the customer who asks for an account?
A customer who has appointed you as processor can ask how a piece of processing was built (Art. 28(1): they must choose suppliers offering sufficient guarantees). The best answer is not a statement but a file: what was requested, what scope you had, which checks ran, who signed. If an agent wrote part of it, you say so and show that the agent worked inside verifiable rules, as in provable context management.
Detent, the end-to-end delivery line (detent-ai.com), leaves this trail by default: request, checks and a person's signature in versioned files. It is not a GDPR compliance certification and it is a single station on the line: the assessment of the processing stays with whoever answers for it. For data on how it compares with other tools, see the benchmark page.
