CMP-10Required EU law
Screen every new feature for a DPIA
Before a feature that touches personal data starts, answer a fixed screening list. When the result says high risk, finish a data protection impact assessment first.
Region
European Union (EU). The duty comes from the law there. The rule applies only when the project serves people there, and its Applies when also holds.
How to do it
GDPR Article 35(3) always requires one for three cases. They are automated decisions with legal or similar effect, large-scale special categories, and large-scale monitoring of public places. The EDPB guidelines (WP248) add nine criteria, and two or more usually mean a DPIA. Your supervisory authority also publishes a national list. Keep the questions as data in the feature spec. If the risk stays high after your measures, Article 36 requires you to consult the authority before you start. For security risks, also plan attacks before building.
Examples
YAML example
feature: delivery-time-predictions
criteria:
evaluation_or_scoring: true
automated_decision_with_legal_effect: false
systematic_monitoring: false
special_or_highly_personal_data: false
large_scale: true
matching_or_combining_datasets: true
vulnerable_people: false
new_technology: true
blocks_a_right_or_service: false
dpia: docs/dpia/delivery-time-predictions.md
JavaScript example
const isDpiaRequired = ({ criteria }) =>
criteria.automated_decision_with_legal_effect || Object.values(criteria).filter(Boolean).length >= 2;
if (isDpiaRequired(screening) && !screening.dpia) throw new Error(`${screening.feature}: DPIA required before launch`);
Python example
def is_dpia_required(screening: dict) -> bool:
criteria = screening["criteria"]
return bool(criteria["automated_decision_with_legal_effect"]) or sum(map(bool, criteria.values())) >= 2
if is_dpia_required(screening) and not screening.get("dpia"):
raise SystemExit(f"{screening['feature']}: DPIA required before launch")
How to check
Every pull request that adds a processing activity or a flagged column carries a screening file. The build fails when it scores two or more criteria, or marks an automated decision with legal effect, and no DPIA link is filled in.
Sources
Related rules
- APS-1 Plan attacks before building in Application security
- CMP-12 Weigh every legitimate interest in writing in Compliance and governance
- CMP-86 Assess the effect on fundamental rights before deploying high-risk AI in Compliance and governance
- CMP-60 Assess risky processing for US laws too in Compliance and governance
- MLO-36 Hold sensitive traits for bias checks apart from training in Machine learning
- ANA-17 Name the lawful basis for every experiment in Product analytics and experiments
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/compliance/records-and-data-map/dpia-screening">Agent Wranglers compliance and governance playbook</a>. In code you write, add a comment next to it with the same link.