| name | compliance |
| description | Use when the user wants to understand compliance requirements, identify regulatory triggers, or know what artifacts are required for GDPR, PCI, HIPAA, or SOC 2. Also use when the user mentions 'compliance', 'GDPR', 'PCI DSS', 'HIPAA', 'SOC 2', 'data privacy', 'regulatory requirements', or 'audit artifacts'. |
Compliance
Expert knowledge for identifying regulatory triggers, classifying data, and producing the required compliance artifacts for web applications handling sensitive data.
Regulatory Trigger Table
Read this table first. If your project matches any row, the listed requirements apply.
| Regulation | Trigger | Core Requirements |
|---|
| GDPR | Processing personal data of EU residents | Consent management, right to erasure, data processing records, DPA with processors, breach notification (72h) |
| CCPA | California users, > $25M revenue or > 100K records | Privacy policy, opt-out of sale, do-not-sell link, data deletion on request |
| PCI DSS | Accepting, storing, or transmitting card data | Never store raw card numbers, use PCI-certified payment processor, quarterly scans, SAQ completion |
| HIPAA | Storing or transmitting US health information | PHI encryption at rest + in transit, BAA with all vendors handling PHI, audit logs, minimum-necessary access |
| SOC 2 | Selling B2B SaaS to enterprises | Trust Service Criteria (Security mandatory; Availability, Confidentiality, Privacy, Processing Integrity optional), annual audit |
| Quebec Law 25 | Processing personal data of Quebec residents | Privacy impact assessment, explicit consent, privacy officer designation, 72h breach notification |
Data Classification
Classify every data element before storing it. Classification drives encryption, access control, and retention requirements.
| Class | Examples | Requirements |
|---|
| Public | Marketing copy, published prices | No special handling |
| Internal | Employee names, internal docs | Access control, no external sharing |
| Confidential | Customer PII, business financials | Encryption at rest, access logs, retention policy |
| Regulated | Card data, health records, biometrics | Regulation-specific requirements (see table above) |
Required Artifacts by Regulation
GDPR
PCI DSS
HIPAA
SOC 2 (Security Criterion — mandatory)
Privacy by Design Checklist
Apply at project start, not as a retrofit:
Phase Gate Behavior
At project start: Scan the data model and integration list for regulatory triggers. Produce a compliance surface map listing triggered regulations and required artifacts.
Before production launch: Verify all required artifacts exist and are current. A missing DPA or incomplete privacy policy is a launch blocker at Candidate/Production maturity.
Common Rationalizations
| Rationalization | Reality |
|---|
| "We don't store sensitive data" | Logs, analytics, and support tools often store more than you think. Audit your data flows. |
| "We're too small for GDPR to apply" | GDPR applies based on where your users are located, not your company's size. |
| "We'll add compliance later" | Retrofitting consent management and deletion workflows into a live system is expensive. Design it in from day one. |
| "Stripe handles PCI for us" | Stripe handles card storage. You handle your own network, logs, and key management. SAQ still required. |
Verification