ronce-racine 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/AGENTS.md +90 -0
  2. package/LICENSE +21 -0
  3. package/README.md +281 -0
  4. package/agents/code-reviewer.md +33 -0
  5. package/agents/qa-tester.md +28 -0
  6. package/dist/hooks/README.md +182 -0
  7. package/dist/hooks/bash-npm-silent.mjs +81 -0
  8. package/dist/hooks/session-inject.mjs +53 -0
  9. package/dist/hooks/session-precompact.mjs +36 -0
  10. package/dist/hooks/session-writer.mjs +142 -0
  11. package/dist/hooks/skill-reminder.mjs +89 -0
  12. package/dist/hooks/truncate-bash-output.mjs +46 -0
  13. package/dist/hooks/truncate-output.mjs +88 -0
  14. package/dist/hooks/worktree-env-setup.mjs +123 -0
  15. package/dist/install.js +962 -0
  16. package/docs/adopting-a-repo.md +80 -0
  17. package/docs/architecture.md +76 -0
  18. package/docs/decisions.md +72 -0
  19. package/docs/developing.md +143 -0
  20. package/docs/evaluating-skills.md +41 -0
  21. package/docs/git-worktrees.md +62 -0
  22. package/docs/rules/clean-architecture-deps.md +66 -0
  23. package/docs/rules/commits.md +59 -0
  24. package/docs/rules/detection-gap-protocol.md +55 -0
  25. package/docs/rules/error-handling-discipline.md +62 -0
  26. package/docs/rules/minimal-code.md +58 -0
  27. package/docs/rules/no-raw-sql-interpolation.md +57 -0
  28. package/docs/rules/pre-commit-secret-detection.md +54 -0
  29. package/docs/rules/secure-logging.md +53 -0
  30. package/docs/rules/sql-migrations-discipline.md +58 -0
  31. package/docs/rules/subscription-cleanup.md +63 -0
  32. package/docs/rules/test-discipline.md +66 -0
  33. package/docs/rules/ui-states-complete.md +52 -0
  34. package/docs/templates/SKILL.template.md +66 -0
  35. package/docs/templates/rule.template.md +16 -0
  36. package/docs/writing-a-rule.md +43 -0
  37. package/docs/writing-a-skill.md +118 -0
  38. package/package.json +45 -0
  39. package/rules/clean-architecture-deps.md +20 -0
  40. package/rules/commits.md +16 -0
  41. package/rules/detection-gap-protocol.md +35 -0
  42. package/rules/error-handling-discipline.md +23 -0
  43. package/rules/minimal-code.md +32 -0
  44. package/rules/no-raw-sql-interpolation.md +20 -0
  45. package/rules/pre-commit-secret-detection.md +14 -0
  46. package/rules/secure-logging.md +16 -0
  47. package/rules/sql-migrations-discipline.md +18 -0
  48. package/rules/subscription-cleanup.md +22 -0
  49. package/rules/test-discipline.md +20 -0
  50. package/rules/ui-states-complete.md +23 -0
  51. package/scripts/subscription-leak-scan.ts +53 -0
  52. package/skills/adversarial-feature-challenge/README.md +65 -0
  53. package/skills/adversarial-feature-challenge/SKILL.md +96 -0
  54. package/skills/adversarial-feature-challenge/assets/fuzz-payloads.txt +60 -0
  55. package/skills/adversarial-feature-challenge/templates/challenge-report.md +42 -0
  56. package/skills/api-contract-versioning/README.md +62 -0
  57. package/skills/api-contract-versioning/SKILL.md +76 -0
  58. package/skills/api-contract-versioning/templates/consumer-inventory.md +29 -0
  59. package/skills/audit-architecture/README.md +56 -0
  60. package/skills/audit-architecture/SKILL.md +97 -0
  61. package/skills/audit-architecture/reference/ar-architecture.md +275 -0
  62. package/skills/audit-architecture/reference/di-disponibilite.md +252 -0
  63. package/skills/audit-architecture/reference/im-incidents.md +217 -0
  64. package/skills/audit-architecture/reference/pa-pannes.md +362 -0
  65. package/skills/audit-architecture/reference/re-recuperation.md +300 -0
  66. package/skills/audit-architecture/reference/sc-scalabilite.md +173 -0
  67. package/skills/audit-architecture/reference/su-support.md +180 -0
  68. package/skills/audit-ci-cd/README.md +54 -0
  69. package/skills/audit-ci-cd/SKILL.md +124 -0
  70. package/skills/audit-ci-cd/reference/artefacts.md +39 -0
  71. package/skills/audit-ci-cd/reference/deploiement.md +100 -0
  72. package/skills/audit-ci-cd/reference/dora.md +94 -0
  73. package/skills/audit-ci-cd/reference/iac.md +40 -0
  74. package/skills/audit-ci-cd/reference/pipeline-ci.md +36 -0
  75. package/skills/audit-ci-cd/reference/supply-chain.md +44 -0
  76. package/skills/audit-compliance/README.md +69 -0
  77. package/skills/audit-compliance/SKILL.md +176 -0
  78. package/skills/audit-compliance/reference/conformite-rgpd.md +295 -0
  79. package/skills/audit-compliance/reference/finops.md +318 -0
  80. package/skills/audit-compliance/reference/gouvernance-donnees.md +238 -0
  81. package/skills/audit-industrialisation/README.md +53 -0
  82. package/skills/audit-industrialisation/SKILL.md +251 -0
  83. package/skills/audit-observability/README.md +64 -0
  84. package/skills/audit-observability/SKILL.md +134 -0
  85. package/skills/audit-observability/reference/alerting.md +214 -0
  86. package/skills/audit-observability/reference/logging.md +114 -0
  87. package/skills/audit-observability/reference/metriques.md +166 -0
  88. package/skills/audit-observability/reference/traces-dashboards.md +90 -0
  89. package/skills/audit-performance-frontend/README.md +91 -0
  90. package/skills/audit-performance-frontend/SKILL.md +194 -0
  91. package/skills/audit-performance-frontend/reference/assets-cache-network.md +129 -0
  92. package/skills/audit-performance-frontend/reference/css-rendering-pipeline.md +154 -0
  93. package/skills/audit-performance-frontend/reference/html-critical-path.md +128 -0
  94. package/skills/audit-performance-frontend/reference/js-engine-runtime.md +280 -0
  95. package/skills/audit-performance-frontend/reference/memory-gc.md +126 -0
  96. package/skills/audit-performance-frontend/reference/profiling-tooling.md +98 -0
  97. package/skills/audit-quality/README.md +85 -0
  98. package/skills/audit-quality/SKILL.md +126 -0
  99. package/skills/audit-quality/reference/qa-devops.md +539 -0
  100. package/skills/audit-quality/reference/qu-qualite-donnees.md +402 -0
  101. package/skills/audit-report/README.md +72 -0
  102. package/skills/audit-report/SKILL.md +241 -0
  103. package/skills/audit-report/reference/scoring-model.md +45 -0
  104. package/skills/audit-security/README.md +72 -0
  105. package/skills/audit-security/SKILL.md +140 -0
  106. package/skills/audit-security/reference/auth-identite.md +98 -0
  107. package/skills/audit-security/reference/autorisation.md +66 -0
  108. package/skills/audit-security/reference/chiffrement-tls.md +97 -0
  109. package/skills/audit-security/reference/detection-patching.md +67 -0
  110. package/skills/audit-security/reference/incident-response.md +98 -0
  111. package/skills/audit-security/reference/reseau-conteneurs.md +72 -0
  112. package/skills/audit-security/reference/secrets.md +36 -0
  113. package/skills/audit-testing/README.md +82 -0
  114. package/skills/audit-testing/SKILL.md +131 -0
  115. package/skills/audit-testing/reference/golden-dataset.md +65 -0
  116. package/skills/audit-testing/reference/resilience-chaos.md +93 -0
  117. package/skills/audit-testing/reference/tests-contractuels.md +65 -0
  118. package/skills/audit-testing/reference/tests-e2e-flaky.md +67 -0
  119. package/skills/audit-testing/reference/tests-unit-integ-ci.md +125 -0
  120. package/skills/bug-ticket-root-cause/README.md +67 -0
  121. package/skills/bug-ticket-root-cause/SKILL.md +86 -0
  122. package/skills/bug-ticket-root-cause/templates/bug-ticket.md +43 -0
  123. package/skills/bug-triage-structured/README.md +63 -0
  124. package/skills/bug-triage-structured/SKILL.md +104 -0
  125. package/skills/bug-triage-structured/templates/bug-triage.md +38 -0
  126. package/skills/ci-pipeline-orchestration/README.md +55 -0
  127. package/skills/ci-pipeline-orchestration/SKILL.md +110 -0
  128. package/skills/commit-readiness-review/README.md +66 -0
  129. package/skills/commit-readiness-review/SKILL.md +82 -0
  130. package/skills/commit-readiness-review/scripts/precommit-scan.ts +81 -0
  131. package/skills/comprehensive-test-strategy/README.md +64 -0
  132. package/skills/comprehensive-test-strategy/SKILL.md +108 -0
  133. package/skills/comprehensive-test-strategy/reference/testing-advanced.md +85 -0
  134. package/skills/daily-workflow-optimization/README.md +56 -0
  135. package/skills/daily-workflow-optimization/SKILL.md +80 -0
  136. package/skills/database-schema-evolution/README.md +54 -0
  137. package/skills/database-schema-evolution/SKILL.md +107 -0
  138. package/skills/ddd-backend-implementation/README.md +63 -0
  139. package/skills/ddd-backend-implementation/SKILL.md +95 -0
  140. package/skills/design-system-component-lifecycle/README.md +56 -0
  141. package/skills/design-system-component-lifecycle/SKILL.md +97 -0
  142. package/skills/design-system-component-lifecycle/templates/component-contract.md +43 -0
  143. package/skills/detection-sweep/README.md +58 -0
  144. package/skills/detection-sweep/SKILL.md +93 -0
  145. package/skills/detection-sweep/scripts/sweep.ts +80 -0
  146. package/skills/domain-modeling-design/README.md +57 -0
  147. package/skills/domain-modeling-design/SKILL.md +83 -0
  148. package/skills/frontend-fullstack-implementation/README.md +60 -0
  149. package/skills/frontend-fullstack-implementation/SKILL.md +133 -0
  150. package/skills/frontend-spec-call-site-audit/README.md +66 -0
  151. package/skills/frontend-spec-call-site-audit/SKILL.md +82 -0
  152. package/skills/frontend-spec-call-site-audit/scripts/audit-entry-points.ts +79 -0
  153. package/skills/frontend-spec-call-site-audit/templates/ticket-frontend.md +32 -0
  154. package/skills/merge-request-review/README.md +60 -0
  155. package/skills/merge-request-review/SKILL.md +77 -0
  156. package/skills/merge-request-review/templates/mr-review-report.md +29 -0
  157. package/skills/production-incident-diagnostic/README.md +63 -0
  158. package/skills/production-incident-diagnostic/SKILL.md +103 -0
  159. package/skills/production-incident-diagnostic/templates/incident-report.md +33 -0
  160. package/skills/qa-session-intake/README.md +56 -0
  161. package/skills/qa-session-intake/SKILL.md +78 -0
  162. package/skills/recording-decisions/README.md +91 -0
  163. package/skills/recording-decisions/SKILL.md +84 -0
  164. package/skills/recurring-bug-root-cause/README.md +64 -0
  165. package/skills/recurring-bug-root-cause/SKILL.md +93 -0
  166. package/skills/recurring-bug-root-cause/scripts/detect-recurring-fixes.ts +46 -0
  167. package/skills/recurring-bug-root-cause/templates/postmortem-recidive.md +37 -0
  168. package/skills/refactoring-shared-component-api/README.md +50 -0
  169. package/skills/refactoring-shared-component-api/SKILL.md +84 -0
  170. package/skills/refactoring-shared-component-api/scripts/sweep-call-sites.ts +85 -0
  171. package/skills/refactoring-shared-component-api/templates/migration-checklist.md +19 -0
  172. package/skills/validating-features-end-to-end/README.md +50 -0
  173. package/skills/validating-features-end-to-end/SKILL.md +90 -0
  174. package/skills/visual-regression-check/README.md +51 -0
  175. package/skills/visual-regression-check/SKILL.md +89 -0
  176. package/skills/writing-robust-tests/README.md +53 -0
  177. package/skills/writing-robust-tests/SKILL.md +88 -0
  178. package/templates/.adopted.example +8 -0
  179. package/templates/anti-drift.gitlab-ci.yml +23 -0
@@ -0,0 +1,176 @@
1
+ ---
2
+ name: audit-compliance
3
+ description: Compliance, Data Governance & FinOps audit. Use when auditing GDPR compliance, data governance, data retention, consent management, FinOps, or regulatory requirements. Triggers on "audit conformité", "audit compliance", "compliance audit", "audit RGPD", "audit GDPR", "audit données", "audit data governance", "audit finops", "audit gouvernance".
4
+ version: 1.0.0
5
+ metadata:
6
+ last-reviewed: 2026-06-19
7
+ category: audit
8
+ ---
9
+
10
+ ## When ME and not audit-industrialisation
11
+
12
+ - **ME** when: audit targeted at this domain only
13
+ - **audit-industrialisation** instead if: global multi-domain audit - it orchestrates every audit (including ME) and produces a consolidated report
14
+
15
+ > For a full project audit, use `audit-industrialisation` rather than invoking each skill separately.
16
+
17
+ ---
18
+
19
+ # Compliance, Data Governance & FinOps Audit
20
+
21
+ ## Overview
22
+
23
+ Audit a project's compliance maturity: GDPR adherence, data governance, consent management, retention, right to erasure, and cloud cost optimization. Covers the CO (Compliance), DG (Data Governance) and FI (FinOps) sections. Produces a maturity score (0-4) per question.
24
+
25
+ **29 questions** across 3 sections:
26
+
27
+ | Section | Domain | Questions |
28
+ |-------|---------|-----------|
29
+ | CO | Compliance & Regulatory (GDPR, retention, consent, right to erasure) | 10 |
30
+ | DG | Data Governance (ownership, catalog, quality, classification, lifecycle) | 8 |
31
+ | FI | FinOps: Cost Management (monitoring, cache, attribution, waste) | 11 |
32
+
33
+ ## Score calculation
34
+
35
+ - Each scored question receives a level from 0 to 4.
36
+ - Questions marked **N/A** are excluded from the calculation.
37
+ - **Overall score** = sum of levels / number of scored questions (excluding N/A).
38
+ - Conditional sub-questions (co-02a, co-04a, co-07a, fi-01a, fi-02a, fi-06a) are N/A if their parent question does not reach the required level.
39
+
40
+ ## Audit protocol
41
+
42
+ 1. **Identify the project type**: backend, frontend SPA, fullstack, library, microservices. Mark questions N/A per the variants below.
43
+ 2. **Section CO - Compliance**:
44
+ - Examine the data model: DB schema, types, identified PII data (CO-01, CO-02)
45
+ - Check anonymization quality if applicable (CO-02a)
46
+ - Look for the retention policy (CO-03)
47
+ - Check the DPIA and risk tracking (CO-04, CO-04a)
48
+ - Examine the purge APIs and propagation (CO-05, CO-06)
49
+ - Check deletion logging and evidence access (CO-07, CO-07a)
50
+ 3. **Section DG - Data governance**:
51
+ - Check ownership and the catalog (DG-01, DG-02)
52
+ - Examine migrations (DG-03)
53
+ - Look for data contracts (DG-04)
54
+ - Check data-quality monitoring (DG-05)
55
+ - Examine classification of sensitive data (DG-06)
56
+ - Check retention/lifecycle policies (DG-07)
57
+ - Examine data architecture (DG-08)
58
+ 4. **Section FI - FinOps**:
59
+ - Check cost monitoring and granularity (FI-01, FI-01a)
60
+ - Examine caching and invalidation (FI-02, FI-02a)
61
+ - Look for detection of superfluous calls (FI-03)
62
+ - Check per-customer attribution and reporting (FI-04, FI-05)
63
+ - Examine abuse detection and actions (FI-06, FI-06a)
64
+ - Check waste detection and reservations (FI-07, FI-08)
65
+ 5. **Run the verification commands** listed for each question
66
+ 6. **Evaluate the conditional sub-questions**: CO-02a (if CO-02 ≥ 2), CO-04a (if CO-04 ≥ 2), CO-07a (if CO-07 ≥ 2), FI-01a (if FI-01 ≥ 2), FI-02a (if FI-02 ≥ 2), FI-06a (if FI-06 ≥ 2)
67
+ 7. **Assign a level** per question with justification and confidence level
68
+ 8. **Mark N/A** the questions not applicable to the project type
69
+ 9. **Produce the report** in the format below
70
+
71
+ ### Variants by project type
72
+
73
+ **Frontend SPA/PWA local-first**
74
+ - **CO-01**: Adapted - PII data is stored locally (IndexedDB, localStorage). No server transfer = reduced GDPR risk, but the PII is still present client-side.
75
+ - **CO-02, CO-02a**: Adapted - consent mainly concerns third-party cookies/trackers.
76
+ - **CO-03**: Adapted - retention concerns local storage.
77
+ - **CO-04, CO-04a**: Adapted - simplified DPIA if there is no server data.
78
+ - **CO-05 to CO-07a**: N/A if there is no backend (no server-side user data).
79
+ - **DG-03**: Adapted - migrations concern IndexedDB schemas or local data formats.
80
+ - **DG-04 to DG-08**: N/A if there is no backend.
81
+ - **FI-01 to FI-08**: N/A if static hosting (CDN, GitHub Pages, Netlify).
82
+
83
+ **Library / SDK**
84
+ - **CO-01 to CO-07a**: N/A - a library does not collect user data directly. Only check that it does not force PII collection in its API.
85
+ - **DG-01 to DG-03**: Adapted - ownership concerns the API surface and the changelog. Migrations concern breaking changes to the public API.
86
+ - **DG-04 to DG-08**: N/A.
87
+ - **FI-01 to FI-08**: N/A.
88
+
89
+ ## Per-section grids
90
+
91
+ Each grid details, per question: statement, criticality, conditions, bash verification commands and the level tables 0-4.
92
+
93
+ - [**Section CO - Compliance & Regulatory**](reference/conformite-rgpd.md) - GDPR, anonymization, retention, DPIA, right to erasure, deletion logging (10 questions: CO-01, CO-02, CO-02a, CO-03, CO-04, CO-04a, CO-05, CO-06, CO-07, CO-07a)
94
+ - [**Section DG - Data Governance**](reference/gouvernance-donnees.md) - ownership, catalog, migrations, data contracts, quality, classification, lifecycle, Data Mesh (8 questions: DG-01 to DG-08)
95
+ - [**Section FI - FinOps**](reference/finops.md) - cost monitoring, cache, batching, per-customer attribution, abuse detection, cloud waste, reservations (11 questions: FI-01, FI-01a, FI-02, FI-02a, FI-03, FI-04, FI-05, FI-06, FI-06a, FI-07, FI-08)
96
+
97
+ ## Output format
98
+
99
+ ```markdown
100
+ ## Compliance, Data Governance & FinOps - Overall score: X.X/4
101
+
102
+ ### Summary
103
+ [2-3 sentences summarizing compliance maturity]
104
+
105
+ ### Section CO - Compliance & Regulatory - Score: X.X/4 (Y questions scored out of 10)
106
+
107
+ | Code | Question | Criticality | Level | Confidence | Justification |
108
+ |------|----------|-----------|--------|-----------|---------------|
109
+ | CO-01 | Sensitive data minimized | MUST | X | high/medium/low | ... |
110
+ | CO-02 | Anonymization where possible | MUST | X | high/medium/low | ... |
111
+ | CO-02a | Anonymization quality | SHOULD | X or N/A | high/medium/low | ... |
112
+ | CO-03 | Retention policy | SHOULD | X | high/medium/low | ... |
113
+ | CO-04 | DPIA | MUST | X | high/medium/low | ... |
114
+ | CO-04a | DPIA risk tracking | SHOULD | X or N/A | high/medium/low | ... |
115
+ | CO-05 | Purge API (right to erasure) | MUST | X | high/medium/low | ... |
116
+ | CO-06 | Third-party deletion propagation | MUST | X | high/medium/low | ... |
117
+ | CO-07 | Deletion logging | MUST | X | high/medium/low | ... |
118
+ | CO-07a | Deletion evidence accessibility | SHOULD | X or N/A | high/medium/low | ... |
119
+
120
+ ### Section DG - Data Governance - Score: X.X/4 (Y questions scored out of 8)
121
+
122
+ | Code | Question | Criticality | Level | Confidence | Justification |
123
+ |------|----------|-----------|--------|-----------|---------------|
124
+ | DG-01 | Ownership and stewardship | SHOULD | X | high/medium/low | ... |
125
+ | DG-02 | Catalog and dictionary | SHOULD | X | high/medium/low | ... |
126
+ | DG-03 | Migrations and schema | MUST | X | high/medium/low | ... |
127
+ | DG-04 | Data contracts | SHOULD | X | high/medium/low | ... |
128
+ | DG-05 | Data-quality monitoring | SHOULD | X | high/medium/low | ... |
129
+ | DG-06 | Sensitive-data classification | MUST | X | high/medium/low | ... |
130
+ | DG-07 | Retention and lifecycle | MUST | X | high/medium/low | ... |
131
+ | DG-08 | Data architecture (Data Mesh) | SHOULD | X | high/medium/low | ... |
132
+
133
+ ### Section FI - FinOps - Score: X.X/4 (Y questions scored out of 11)
134
+
135
+ | Code | Question | Criticality | Level | Confidence | Justification |
136
+ |------|----------|-----------|--------|-----------|---------------|
137
+ | FI-01 | Third-party API cost monitoring | SHOULD | X | high/medium/low | ... |
138
+ | FI-01a | Cost-tracking granularity | SHOULD | X or N/A | high/medium/low | ... |
139
+ | FI-02 | Caching | SHOULD | X | high/medium/low | ... |
140
+ | FI-02a | Cache invalidation strategy | SHOULD | X or N/A | high/medium/low | ... |
141
+ | FI-03 | Superfluous-call detection | SHOULD | X | high/medium/low | ... |
142
+ | FI-04 | Per-customer cost attribution | SHOULD | X | high/medium/low | ... |
143
+ | FI-05 | Per-customer consumption reporting | COULD | X | high/medium/low | ... |
144
+ | FI-06 | Abuse / abnormal-usage detection | SHOULD | X | high/medium/low | ... |
145
+ | FI-06a | Actions on abuse | SHOULD | X or N/A | high/medium/low | ... |
146
+ | FI-07 | Cloud-waste detection | SHOULD | X | high/medium/low | ... |
147
+ | FI-08 | Commitments and reservations | COULD | X | high/medium/low | ... |
148
+
149
+ ### Strengths
150
+ - ...
151
+
152
+ ### Weaknesses
153
+ - ...
154
+
155
+ ### Recommendations
156
+ 1. [MUST] ...
157
+ 2. [SHOULD] ...
158
+ 3. [COULD] ...
159
+
160
+ ### Non-auditable items
161
+ - [List the aspects impossible to verify through static code analysis: infra access, organizational processes, runtime cloud configuration, etc.]
162
+ ```
163
+
164
+ ## Exit condition
165
+
166
+ - [ ] Project type identified, N/A questions marked per the variants
167
+ - [ ] All 3 sections (CO, DG, FI) covered, each applicable question scored 0-4
168
+ - [ ] Verification commands run for each question
169
+ - [ ] Conditional sub-questions evaluated (N/A if parent < required level)
170
+ - [ ] Level + confidence + justification provided per question
171
+ - [ ] Per-section scores and overall score computed (excluding N/A)
172
+ - [ ] Report produced in the format above, including strengths/weaknesses, recommendations and non-auditable items
173
+
174
+ ## Changelog
175
+
176
+ - 1.0.0 (2026-06-19) - initial versioned release + state-of-the-art enrichment (routing, context, protocol, traps, exit condition); audit grids in reference/ (progressive disclosure)
@@ -0,0 +1,295 @@
1
+ # Section CO - Compliance & Regulatory (10 questions)
2
+
3
+ ## Table of contents
4
+
5
+ - [CO-01 - Sensitive data minimized (GDPR)](#co-01--sensitive-data-minimized-gdpr--criticality--must)
6
+ - [CO-02 - Anonymization where possible](#co-02--anonymization-where-possible--criticality--must)
7
+ - [CO-02a - Anonymization quality](#co-02a--anonymization-quality--criticality--should)
8
+ - [CO-03 - Data retention policy](#co-03--data-retention-policy--criticality--should)
9
+ - [CO-04 - DPIA (Data Protection Impact Assessment)](#co-04--dpia-data-protection-impact-assessment--criticality--must)
10
+ - [CO-04a - DPIA risk tracking](#co-04a--dpia-risk-tracking--criticality--should)
11
+ - [CO-05 - Dedicated purge API (right to erasure)](#co-05--dedicated-purge-api-right-to-erasure--criticality--must)
12
+ - [CO-06 - Propagation of deletions to third-party systems](#co-06--propagation-of-deletions-to-third-party-systems--criticality--must)
13
+ - [CO-07 - Deletion logging](#co-07--deletion-logging--criticality--must)
14
+ - [CO-07a - Deletion-evidence accessibility](#co-07a--deletion-evidence-accessibility--criticality--should)
15
+
16
+ ---
17
+
18
+ ### CO-01 - Sensitive data minimized (GDPR) - Criticality: **MUST**
19
+
20
+ **Analyze:** Data model (DB schema, types), data collected vs needed
21
+
22
+ **Verification commands:**
23
+ ```bash
24
+ # PII fields in the code
25
+ grep -ri "email\|phone\|name\|address\|ssn\|date_of_birth\|pii" . --include="*.ts" --include="*.py" --include="*.rs" --include="*.go" --include="*.java" --include="*.php" 2>/dev/null | grep -v node_modules | grep -v test | grep -v vendor | head -15
26
+ # PII in logs
27
+ grep -ri "console.log\|println!\|log\.\(info\|debug\|warn\)" . --include="*.ts" --include="*.rs" --include="*.go" --include="*.py" 2>/dev/null | grep -v node_modules | grep -v test | head -10
28
+ # Processing register
29
+ find . -name "*rgpd*" -o -name "*gdpr*" -o -name "*treatment*" -o -name "*traitement*" -o -name "*privacy*" 2>/dev/null | head -10
30
+ ```
31
+
32
+ **Check:**
33
+ - Minimization principle respected (collect only what is necessary)
34
+ - Documented justification for each piece of personal data
35
+ - No unnecessary PII fields in the logs
36
+ - Pseudonymization where possible
37
+
38
+ **Levels:**
39
+ | Level | Criteria |
40
+ |--------|----------|
41
+ | 0 | Excessive data collection without justification. PII in the logs. |
42
+ | 1 | Awareness of the principle. Some reduction efforts. |
43
+ | 2 | Collected data justified. PII cleaned from the logs. |
44
+ | 3 | Processing register. Pseudonymization of non-essential data. |
45
+ | 4 | Privacy by design. Automated data minimization. Systematic PIA. |
46
+
47
+ ---
48
+
49
+ ### CO-02 - Anonymization where possible - Criticality: **MUST**
50
+
51
+ **Analyze:** Anonymization mechanisms, pseudonymization, hashing, masking
52
+
53
+ **Verification commands:**
54
+ ```bash
55
+ grep -ri "anonymi\|pseudonym\|hash\|mask\|obfuscat\|tokeniz" . --include="*.ts" --include="*.py" --include="*.rs" --include="*.go" --include="*.php" 2>/dev/null | grep -v node_modules | grep -v vendor | head -10
56
+ grep -ri "consent\|gdpr\|privacy\|cookie\|opt.in\|opt.out" . --include="*.ts" --include="*.vue" --include="*.html" 2>/dev/null | head -10
57
+ ```
58
+
59
+ **Check:**
60
+ - Anonymization of data when identification is not necessary
61
+ - Pseudonymization for internal processing
62
+ - Robust techniques (not a simple name removal)
63
+ - Anonymized test data
64
+
65
+ **Levels:**
66
+ | Level | Criteria |
67
+ |--------|----------|
68
+ | 0 | No anonymization. Personal data used everywhere in clear text. |
69
+ | 1 | Ad-hoc anonymization on a few cases. Technique not validated. |
70
+ | 2 | Systematic pseudonymization for non-prod environments. |
71
+ | 3 | Formal anonymization for analytics data. Validated techniques (k-anonymity). |
72
+ | 4 | Anonymization by design. Differential privacy if applicable. External audit of the techniques. |
73
+
74
+ ---
75
+
76
+ ### CO-02a - Anonymization quality - Criticality: **SHOULD**
77
+
78
+ **Condition:** Evaluate if CO-02 >= 2
79
+
80
+ **Analyze:** Resistance to re-identification, k-anonymity, re-identification tests
81
+
82
+ **Verification commands:**
83
+ ```bash
84
+ grep -ri "k.anonymity\|l.diversity\|t.closeness\|re.identif\|singling.out\|linkability\|inference" . --include="*.ts" --include="*.py" --include="*.md" 2>/dev/null | head -10
85
+ ```
86
+
87
+ **Check:**
88
+ - Resistance to singling-out, linkability, inference attacks
89
+ - Quality metrics (k-value)
90
+ - Documented re-identification tests
91
+ - External audit if sensitive data
92
+
93
+ **Levels:**
94
+ | Level | Criteria |
95
+ |--------|----------|
96
+ | 0 | No validation. Anonymization "by feel". |
97
+ | 1 | Manual review by sampling. |
98
+ | 2 | Documented re-identification tests. |
99
+ | 3 | Anonymization metrics (k-value). External audit. |
100
+ | 4 | Automated re-identification tests. Certification. Research partnerships. |
101
+
102
+ ---
103
+
104
+ ### CO-03 - Data retention policy - Criticality: **SHOULD**
105
+
106
+ **Analyze:** Purge scripts, TTL configs (Redis, DB), documented policy
107
+
108
+ **Verification commands:**
109
+ ```bash
110
+ grep -ri "retention\|purge\|ttl\|expire\|cleanup\|archive" . --include="*.ts" --include="*.py" --include="*.rs" --include="*.yml" --include="*.yaml" 2>/dev/null | head -10
111
+ find . -name "*retention*" -o -name "*lifecycle*" -o -name "*data.policy*" 2>/dev/null | head -5
112
+ ```
113
+
114
+ **Check:**
115
+ - Retention duration defined per data type
116
+ - Automatic purges implemented
117
+ - Purge verification (monitoring)
118
+ - Archiving vs deletion
119
+
120
+ **Levels:**
121
+ | Level | Criteria |
122
+ |--------|----------|
123
+ | 0 | No retention policy. Data kept indefinitely. |
124
+ | 1 | Policy defined but not implemented. |
125
+ | 2 | Automatic purges on the main data. TTLs configured. |
126
+ | 3 | Policy per data type. Purge monitoring. Separate archiving. |
127
+ | 4 | Automated retention with alerts. Compliance verification. Deletion audit trail. |
128
+
129
+ ---
130
+
131
+ ### CO-04 - DPIA (Data Protection Impact Assessment) - Criticality: **MUST**
132
+
133
+ **Analyze:** DPIA/PIA documentation, impact analysis, processing register
134
+
135
+ **Verification commands:**
136
+ ```bash
137
+ find . -iname "*dpia*" -o -iname "*pia*" -o -iname "*impact*assessment*" -o -iname "*analyse.impact*" 2>/dev/null | head -10
138
+ grep -ri "dpia\|pia\|impact.assessment\|analyse.impact\|privacy.impact" . --include="*.md" --include="*.adoc" 2>/dev/null | head -10
139
+ ```
140
+
141
+ **Check:**
142
+ - DPIA carried out for high-risk processing (mandatory GDPR art. 35)
143
+ - Formal risk analysis with mitigation measures
144
+ - Review by the DPO
145
+ - Integration into the development cycle (SDLC)
146
+ - Regular update
147
+
148
+ **Levels:**
149
+ | Level | Criteria |
150
+ |--------|----------|
151
+ | 0 | DPIA not carried out. Not aware of the obligation. |
152
+ | 1 | DPIA carried out at project inception. No update. |
153
+ | 2 | DPIA documented. Risks identified. No tracking of mitigation measures. |
154
+ | 3 | DPIA updated annually. Mitigation plan tracked. DPO review. |
155
+ | 4 | DPIA integrated into the SDLC. Automated privacy risk scoring. Continuous compliance monitoring. |
156
+
157
+ ---
158
+
159
+ ### CO-04a - DPIA risk tracking - Criticality: **SHOULD**
160
+
161
+ **Condition:** Evaluate if CO-04 >= 2
162
+
163
+ **Analyze:** Risk register, tracking of mitigation measures, KPIs
164
+
165
+ **Verification commands:**
166
+ ```bash
167
+ grep -ri "risk.*register\|registre.*risque\|mitigation\|attenuation\|residual.risk" . --include="*.md" --include="*.yml" 2>/dev/null | head -10
168
+ ```
169
+
170
+ **Check:**
171
+ - Risk register with tracking
172
+ - KPIs on the mitigation measures
173
+ - Periodic review
174
+ - Reporting to management / DPO
175
+
176
+ **Levels:**
177
+ | Level | Criteria |
178
+ |--------|----------|
179
+ | 0 | Risks identified but not tracked. |
180
+ | 1 | List of risks in a document. Occasional review. |
181
+ | 2 | Risks in a tracking tool. Quarterly review. |
182
+ | 3 | Mitigation KPIs. Alerts if a risk is untreated. DPO reporting. |
183
+ | 4 | Integrated risk management. Automated re-evaluation. Management reporting. |
184
+
185
+ ---
186
+
187
+ ### CO-05 - Dedicated purge API (right to erasure) - Criticality: **MUST**
188
+
189
+ **Analyze:** Deletion endpoints, purge workflow, propagation
190
+
191
+ **Verification commands:**
192
+ ```bash
193
+ grep -ri "delete.*user\|purge.*user\|erase\|forget\|right.to.be.forgotten\|droit.oubli" . --include="*.ts" --include="*.rs" --include="*.py" --include="*.go" --include="*.php" 2>/dev/null | head -10
194
+ grep -ri "DELETE\|destroy\|remove.*account" . --include="*.ts" --include="*.rs" 2>/dev/null | grep -i "user\|account\|profile" | head -10
195
+ ```
196
+
197
+ **Check:**
198
+ - User-data deletion API implemented
199
+ - Deletion across all subsystems (DB, cache, logs, backups)
200
+ - Deletion SLA (< 1 month GDPR)
201
+ - Deletion confirmation
202
+ - Self-service portal if applicable
203
+
204
+ **Levels:**
205
+ | Level | Criteria |
206
+ |--------|----------|
207
+ | 0 | No purge API. Manual deletion in the DB. |
208
+ | 1 | Basic deletion endpoint. No propagation. |
209
+ | 2 | Documented API. Deletion in the main system. Deletion logs. |
210
+ | 3 | API with propagation to subsystems. Deletion confirmation. Audit trail. |
211
+ | 4 | Self-service portal. Deletion guaranteed within SLA. Deletion certification. Documented public API. |
212
+
213
+ ---
214
+
215
+ ### CO-06 - Propagation of deletions to third-party systems - Criticality: **MUST**
216
+
217
+ **Analyze:** Mapping of systems holding user data, propagation scripts
218
+
219
+ **Verification commands:**
220
+ ```bash
221
+ grep -ri "propagat\|cascade.*delete\|sub.processor\|third.party.*delete\|tiers.*suppression" . --include="*.ts" --include="*.rs" --include="*.py" --include="*.md" 2>/dev/null | head -10
222
+ grep -ri "crm\|analytics\|email.*service\|stripe\|sendgrid\|mailchimp" . --include="*.ts" --include="*.env*" --include="*.yml" 2>/dev/null | head -10
223
+ ```
224
+
225
+ **Check:**
226
+ - Mapping of third-party systems holding user data
227
+ - Deletion-propagation scripts/APIs
228
+ - Retry mechanism on failure
229
+ - Deletion confirmation from each system
230
+ - Coverage reporting
231
+
232
+ **Levels:**
233
+ | Level | Criteria |
234
+ |--------|----------|
235
+ | 0 | No propagation. Data persists in third-party systems. |
236
+ | 1 | List of third-party systems known. Manual deletion on request. |
237
+ | 2 | Scripts for the main systems. Not all covered. |
238
+ | 3 | Deletion orchestration. All systems mapped. Retry on failure. Reporting. |
239
+ | 4 | Deletion as a service. Confirmation from each system. Guaranteed SLA. Compliance proof. |
240
+
241
+ ---
242
+
243
+ ### CO-07 - Deletion logging - Criticality: **MUST**
244
+
245
+ **Analyze:** Deletion logs, audit trail, compliance evidence
246
+
247
+ **Verification commands:**
248
+ ```bash
249
+ grep -ri "deletion.*log\|suppression.*log\|audit.*delete\|deletion.*proof\|preuve.*suppression" . --include="*.ts" --include="*.rs" --include="*.py" --include="*.md" 2>/dev/null | head -10
250
+ grep -ri "append.only\|tamper.proof\|immutable.*log" . --include="*.ts" --include="*.rs" --include="*.yml" 2>/dev/null | head -5
251
+ ```
252
+
253
+ **Check:**
254
+ - Deletion log (who, when, what, why, from which systems)
255
+ - Log immutability (append-only, tamper-proof)
256
+ - Log retention (3-5 years)
257
+ - No PII in the deletion logs
258
+ - Certified timestamping
259
+
260
+ **Levels:**
261
+ | Level | Criteria |
262
+ |--------|----------|
263
+ | 0 | No logging. Impossible to prove a deletion. |
264
+ | 1 | Basic application logs. No retention guarantee. |
265
+ | 2 | Dedicated deletion log. Defined retention. |
266
+ | 3 | Tamper-proof log. Certified timestamping. Accessible audit. |
267
+ | 4 | Cryptographic signature or blockchain. Legal proof of deletion. Export for authorities. |
268
+
269
+ ---
270
+
271
+ ### CO-07a - Deletion-evidence accessibility - Criticality: **SHOULD**
272
+
273
+ **Condition:** Evaluate if CO-07 >= 2
274
+
275
+ **Analyze:** Ability to provide deletion evidence to users, regulators, auditors
276
+
277
+ **Verification commands:**
278
+ ```bash
279
+ grep -ri "deletion.*certificate\|certificat.*suppression\|deletion.*report\|proof.*deletion" . --include="*.ts" --include="*.rs" --include="*.py" --include="*.md" 2>/dev/null | head -10
280
+ ```
281
+
282
+ **Check:**
283
+ - Deletion evidence accessible to users
284
+ - Verifiable and structured format
285
+ - Self-service portal for deletion certificates
286
+ - API for auditors
287
+
288
+ **Levels:**
289
+ | Level | Criteria |
290
+ |--------|----------|
291
+ | 0 | No process. Manual search on request. |
292
+ | 1 | Manual log export on request. |
293
+ | 2 | Deletion report can be generated. Structured format. |
294
+ | 3 | Auto-generated deletion certificate. Sent to the user. Archived. |
295
+ | 4 | Self-service portal. Verifiable cryptographic proof. Verification API. |