telo3-ai 5.0.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.
@@ -0,0 +1,494 @@
1
+ # Privacy & Data Protection Compliance
2
+
3
+ > Guidelines for identifying and addressing privacy considerations. This is NOT legal advice—verify requirements with qualified counsel.
4
+
5
+ ---
6
+
7
+ ## Core Privacy Principles
8
+
9
+ 1. **Data Minimization** — Collect only what's needed
10
+ 2. **Transparency** — Be clear about data practices
11
+ 3. **User Control** — Give users control over their data
12
+ 4. **Security** — Protect data appropriately
13
+ 5. **Accountability** — Document decisions and practices
14
+
15
+ ---
16
+
17
+ ## Privacy Audit Framework
18
+
19
+ ### Step 1: Identify Data Collection
20
+
21
+ **What data is collected?**
22
+ - Account information (email, name, password)
23
+ - Profile information
24
+ - User-generated content
25
+ - Usage data (pages visited, features used)
26
+ - Technical data (IP address, browser, device)
27
+ - Location data
28
+ - Analytics data
29
+ - Cookie data
30
+
31
+ ### Step 2: Identify Purpose
32
+
33
+ **Why is each type collected?**
34
+ - Essential for service operation
35
+ - Improve user experience
36
+ - Analytics and insights
37
+ - Marketing and communication
38
+ - Legal/compliance requirements
39
+
40
+ ### Step 3: Identify Third-Party Sharing
41
+
42
+ **What services receive data?**
43
+ - Authentication providers (Auth0, Clerk, etc.)
44
+ - Analytics (Google Analytics, Plausible, etc.)
45
+ - Error tracking (Sentry, etc.)
46
+ - Email services (SendGrid, Resend, etc.)
47
+ - Payment processors (Stripe, etc.)
48
+ - Hosting providers (Vercel, AWS, etc.)
49
+ - CDNs and external resources
50
+ - Session replay tools (FullStory, LogRocket, etc.)
51
+
52
+ ### Step 4: Assess Privacy Sensitivity
53
+
54
+ **High sensitivity (extra care needed):**
55
+ - Children's information
56
+ - Health information
57
+ - Financial information
58
+ - Biometric data
59
+ - Precise location
60
+ - Authentication credentials
61
+ - Private communications
62
+
63
+ **Medium sensitivity:**
64
+ - Email addresses
65
+ - Names
66
+ - IP addresses
67
+ - Usage patterns
68
+ - Non-precise location
69
+
70
+ **Low sensitivity:**
71
+ - Anonymous aggregate statistics
72
+ - Public information
73
+
74
+ ---
75
+
76
+ ## Critical Privacy Safeguards
77
+
78
+ ### A. Children's Privacy
79
+
80
+ **If children can use the service:**
81
+
82
+ ✅ **Do:**
83
+ - Determine minimum age requirement
84
+ - Implement age verification if required
85
+ - Obtain parental consent where legally required
86
+ - Minimize data collection from children
87
+ - Document children's data practices
88
+
89
+ ❌ **Don't:**
90
+ - Knowingly collect children's data in violation of applicable law
91
+ - Assume all users are adults
92
+ - Ignore children's privacy laws (e.g., COPPA in U.S.)
93
+
94
+ **Documentation:**
95
+ ```markdown
96
+ ## Children's Privacy
97
+
98
+ **Minimum age:** [Age or "No restriction"]
99
+ **Age verification:** [Implemented / Not required]
100
+ **Children's data collected:** [List or "None knowingly"]
101
+ **Parental consent:** [Required and implemented / Not applicable]
102
+ **Applicable laws:** [e.g., COPPA (U.S.) if applicable]
103
+ **Legal review needed:** Yes
104
+ ```
105
+
106
+ ---
107
+
108
+ ### B. Third-Party Fonts & External Resources
109
+
110
+ **Privacy risk:** External fonts/resources may disclose IP addresses and referrers to third parties.
111
+
112
+ **Audit:**
113
+ - Google Fonts (fonts.googleapis.com, fonts.gstatic.com)
114
+ - Adobe Fonts
115
+ - Font Awesome CDN
116
+ - External CSS/JS
117
+ - Third-party images
118
+
119
+ **Privacy-friendly approaches:**
120
+ 1. **Self-host fonts** when practical
121
+ 2. **Use system fonts** (no external request)
122
+ 3. **Document unavoidable third-party requests**
123
+ 4. **Check licensing** for self-hosting
124
+
125
+ **Documentation:**
126
+ ```markdown
127
+ ## External Resources
128
+
129
+ **Fonts:** [Self-hosted / System fonts / Google Fonts with disclosure]
130
+ **CDNs:** [List]
131
+ **Third-party scripts:** [List]
132
+ **Privacy implication:** [IP addresses shared with: ...]
133
+ ```
134
+
135
+ ✅ **Good:** "Using system font stack to avoid third-party requests"
136
+ ✅ **Good:** "Self-hosting Inter font for privacy"
137
+ ❌ **Bad:** Claiming external fonts are illegal universally
138
+
139
+ ---
140
+
141
+ ### C. Session Replay & Recording Tools
142
+
143
+ **Tools:** FullStory, LogRocket, Hotjar, Microsoft Clarity, etc.
144
+
145
+ **Privacy risks:**
146
+ - Records user interactions
147
+ - May capture sensitive input
148
+ - May record across sessions
149
+ - Shares data with third-party
150
+
151
+ **Before enabling:**
152
+
153
+ ✅ **Do:**
154
+ - Mask password fields
155
+ - Mask payment information
156
+ - Mask sensitive personal data (SSN, health info, etc.)
157
+ - Exclude authentication secrets
158
+ - Configure privacy settings appropriately
159
+ - Determine if consent is required
160
+ - Document in privacy policy
161
+
162
+ ❌ **Don't:**
163
+ - Enable invasive recording by default
164
+ - Record sensitive inputs
165
+ - Ignore provider privacy settings
166
+ - Assume consent is not required
167
+
168
+ **Documentation:**
169
+ ```markdown
170
+ ## Session Replay
171
+
172
+ **Tool:** [Name or "Not implemented"]
173
+ **What is recorded:** [Describe]
174
+ **Sensitive data handling:** [Masked / Excluded]
175
+ **User consent:** [Required / Opt-out provided / Not applicable]
176
+ **Privacy policy disclosure:** [Yes / Needed]
177
+ **Legal review needed:** Yes
178
+ ```
179
+
180
+ ---
181
+
182
+ ### D. Analytics & Tracking
183
+
184
+ **Types:**
185
+ - Page analytics (page views, referrers)
186
+ - Event tracking (button clicks, features used)
187
+ - User identification
188
+ - Cross-site tracking
189
+ - Advertising tracking
190
+
191
+ **Privacy considerations:**
192
+
193
+ **Privacy-friendly analytics:**
194
+ - Plausible Analytics (no cookies, no personal data)
195
+ - Simple Analytics
196
+ - Fathom Analytics
197
+ - Self-hosted Matomo (configured appropriately)
198
+
199
+ **Privacy-concerning analytics:**
200
+ - Google Analytics (especially Universal Analytics)
201
+ - Facebook Pixel
202
+ - Third-party advertising trackers
203
+
204
+ **Requirements to consider:**
205
+ - Cookie consent (GDPR, ePrivacy)
206
+ - Do Not Track (optional respect)
207
+ - Opt-out mechanisms
208
+ - Data retention limits
209
+ - IP anonymization
210
+
211
+ **Documentation:**
212
+ ```markdown
213
+ ## Analytics
214
+
215
+ **Tools:** [List]
216
+ **Data collected:** [Describe]
217
+ **Personal data:** [Yes/No, describe]
218
+ **Cookies used:** [Yes/No, list]
219
+ **Consent mechanism:** [Implemented / Not required]
220
+ **Privacy policy disclosure:** [Yes / Needed]
221
+ ```
222
+
223
+ ---
224
+
225
+ ### E. Cookies & Local Storage
226
+
227
+ **Audit:**
228
+ - Essential cookies (authentication, security)
229
+ - Analytics cookies
230
+ - Marketing cookies
231
+ - Third-party cookies
232
+ - LocalStorage usage
233
+ - SessionStorage usage
234
+
235
+ **Categories:**
236
+ - **Strictly necessary:** Essential for service operation
237
+ - **Functional:** Enhance user experience
238
+ - **Analytics:** Understand usage patterns
239
+ - **Advertising/Marketing:** Personalized ads
240
+
241
+ **Consent requirements:**
242
+ - EU/EEA: Consent required for non-essential cookies (GDPR/ePrivacy)
243
+ - Other jurisdictions: Varies
244
+
245
+ **Documentation:**
246
+ ```markdown
247
+ ## Cookies
248
+
249
+ **Essential cookies:** [List with purpose]
250
+ **Analytics cookies:** [List with purpose and consent requirement]
251
+ **Marketing cookies:** [List with purpose and consent requirement]
252
+ **Consent mechanism:** [Implemented / Not required]
253
+ **Cookie policy:** [Exists / Needed]
254
+ ```
255
+
256
+ ---
257
+
258
+ ### F. Data Retention & Deletion
259
+
260
+ **Retention questions:**
261
+ - How long is data kept?
262
+ - Why is it kept that long?
263
+ - Is retention documented?
264
+ - Is old data automatically deleted?
265
+
266
+ **Deletion questions:**
267
+ - Can users delete their accounts?
268
+ - What happens to user data after deletion?
269
+ - Is deletion immediate or scheduled?
270
+ - Are backups also deleted (or excluded)?
271
+
272
+ **Best practices:**
273
+ - Define retention periods
274
+ - Implement automated deletion where appropriate
275
+ - Provide user-initiated deletion
276
+ - Document deletion procedures
277
+
278
+ **Documentation:**
279
+ ```markdown
280
+ ## Data Retention & Deletion
281
+
282
+ **Retention periods:**
283
+ - Account data: [Duration or "Until deletion"]
284
+ - Usage logs: [Duration]
285
+ - Backups: [Duration]
286
+
287
+ **User deletion:**
288
+ - Account deletion: [Available / Planned]
289
+ - Deletion process: [Describe]
290
+ - Data erasure: [Immediate / Within X days]
291
+ - Backups: [Excluded from future backups / Retained until backup expires]
292
+ ```
293
+
294
+ ---
295
+
296
+ ### G. Data Security
297
+
298
+ **Technical controls:**
299
+ - Encryption in transit (HTTPS)
300
+ - Encryption at rest (database encryption)
301
+ - Access controls (authentication, authorization)
302
+ - Secrets management (not hardcoded)
303
+ - Secure session management
304
+ - Input validation
305
+ - Output encoding
306
+
307
+ **See `security-quality.md` for detailed security guidance.**
308
+
309
+ ---
310
+
311
+ ## Privacy-by-Design Checklist
312
+
313
+ - [ ] Minimize data collection (collect only what's needed)
314
+ - [ ] Document data collection purpose
315
+ - [ ] Identify all third-party data recipients
316
+ - [ ] Assess data sensitivity
317
+ - [ ] Implement appropriate security controls
318
+ - [ ] Provide transparency (privacy policy)
319
+ - [ ] Obtain consent where required
320
+ - [ ] Implement data retention limits
321
+ - [ ] Support user data deletion
322
+ - [ ] Mask sensitive data in logs and analytics
323
+ - [ ] Self-host resources when practical for privacy
324
+ - [ ] Configure third-party services for privacy
325
+ - [ ] Respect user privacy preferences
326
+
327
+ ---
328
+
329
+ ## Privacy Policy Requirements
330
+
331
+ **A privacy policy should disclose:**
332
+ - What information is collected
333
+ - Why it's collected
334
+ - How it's used
335
+ - Who it's shared with (third parties)
336
+ - How long it's retained
337
+ - User rights (access, deletion, etc.)
338
+ - How to contact about privacy
339
+ - How the policy may change
340
+
341
+ **Important:** The privacy policy must reflect actual practices. Don't copy-paste a generic policy.
342
+
343
+ ---
344
+
345
+ ## Cross-Border Data Transfers
346
+
347
+ **If users are in different countries:**
348
+ - Understand where data is stored (US, EU, etc.)
349
+ - Understand where data is processed
350
+ - Consider GDPR (EU data protection)
351
+ - Consider adequate protection mechanisms (Standard Contractual Clauses, etc.)
352
+
353
+ ---
354
+
355
+ ## Consent Mechanisms
356
+
357
+ **When consent may be required:**
358
+ - Non-essential cookies (GDPR)
359
+ - Marketing emails (various laws)
360
+ - Sensitive data processing
361
+ - Children's data (parental consent)
362
+ - Cross-border transfers (some cases)
363
+
364
+ **Consent should be:**
365
+ - Informed (clear explanation)
366
+ - Specific (not bundled)
367
+ - Freely given (not forced)
368
+ - Easily withdrawn
369
+
370
+ **Consent mechanisms:**
371
+ - Cookie consent banner
372
+ - Email opt-in checkboxes
373
+ - Granular privacy settings
374
+ - Account settings toggles
375
+
376
+ ---
377
+
378
+ ## Privacy Compliance Checklist
379
+
380
+ ### Data Mapping
381
+ - [ ] Identify all data collected
382
+ - [ ] Document purpose for each data type
383
+ - [ ] Identify third-party recipients
384
+ - [ ] Assess sensitivity
385
+
386
+ ### Technical Controls
387
+ - [ ] Implement appropriate security
388
+ - [ ] Mask sensitive data in logs
389
+ - [ ] Configure third-party privacy settings
390
+ - [ ] Self-host privacy-sensitive resources when practical
391
+
392
+ ### User Control
393
+ - [ ] Provide privacy policy
394
+ - [ ] Implement consent mechanisms where required
395
+ - [ ] Provide data access (where required)
396
+ - [ ] Provide data deletion
397
+
398
+ ### Documentation
399
+ - [ ] Document data practices
400
+ - [ ] Document third-party services
401
+ - [ ] Document retention periods
402
+ - [ ] Document security controls
403
+
404
+ ### Legal Review
405
+ - [ ] Identify applicable privacy laws
406
+ - [ ] Verify jurisdiction-specific requirements
407
+ - [ ] Review privacy policy with counsel
408
+ - [ ] Verify consent mechanisms
409
+
410
+ ---
411
+
412
+ ## Privacy Documentation Template
413
+
414
+ ```markdown
415
+ ## Privacy & Data Protection
416
+
417
+ ### Data Collection
418
+
419
+ **Personal data collected:**
420
+ - Email address (account creation)
421
+ - Name (optional profile)
422
+ - [Other]
423
+
424
+ **Purpose:** [Why each type is collected]
425
+
426
+ ### Third-Party Services
427
+
428
+ **Services that receive data:**
429
+ - [Service name]: [Data shared] — [Purpose]
430
+ - [Service name]: [Data shared] — [Purpose]
431
+
432
+ ### Sensitive Data
433
+
434
+ **High-sensitivity data:** [None / List]
435
+ **Special handling:** [Describe]
436
+
437
+ ### Children
438
+
439
+ **Minimum age:** [Age or "No restriction"]
440
+ **Children's data:** [Not knowingly collected / Describe if applicable]
441
+
442
+ ### Data Retention
443
+
444
+ **Retention periods:**
445
+ - Account data: [Duration]
446
+ - Logs: [Duration]
447
+
448
+ **Deletion:** [User can delete account: Yes/No]
449
+
450
+ ### Security
451
+
452
+ **Controls:**
453
+ - HTTPS (encryption in transit)
454
+ - Database encryption (encryption at rest)
455
+ - [Other controls]
456
+
457
+ ### Privacy Policy
458
+
459
+ **Status:** [Exists / Draft / Needed]
460
+ **Last reviewed:** [Date]
461
+
462
+ ### Consent Mechanisms
463
+
464
+ **Cookies:** [Consent banner implemented / Not required]
465
+ **Marketing emails:** [Opt-in required / Not applicable]
466
+
467
+ ### Legal Review
468
+
469
+ **Applicable laws:** [GDPR, CCPA, etc. if known]
470
+ **Legal review needed:** [Yes/No]
471
+ **Status:** [Not started / In progress / Complete]
472
+ ```
473
+
474
+ ---
475
+
476
+ ## Summary
477
+
478
+ **Privacy is not just legal compliance—it's user trust.**
479
+
480
+ **Key principles:**
481
+ 1. Collect only what you need
482
+ 2. Be transparent about data practices
483
+ 3. Protect data appropriately
484
+ 4. Give users control
485
+ 5. Document your approach
486
+
487
+ **Remember:**
488
+ - This is engineering guidance, not legal advice
489
+ - Privacy laws vary by jurisdiction
490
+ - Requirements change over time
491
+ - Verify with qualified legal/privacy counsel
492
+ - Never fabricate compliance claims
493
+
494
+ **Goal:** Build privacy-respectful products that earn user trust and minimize legal risk.