GDPR, CCPA & AI Agents: The Compliance Playbook for Agentic Commerce
How to design privacy-aware agentic commerce: a minimal-data boundary, DSAR endpoints, cookie consent v2, IP pseudonymization, EU AI Act classification, and encrypted checkout sessions.
Felix Pumeda Seoane13 min
Executive summary
Compliance playbook for agentic commerce covering GDPR (16/17 gaps resolved), CCPA (tiered DSAR SLAs), ePrivacy (granular cookie consent v2), and EU AI Act (trust score classified as LIMITED RISK). Covers a minimal-data boundary, IP pseudonymization, AES-256-GCM encrypted checkout sessions, Shopify ToS ML guard, and audit logging.
In this article
When AI agents browse, compare, and purchase products on behalf of users, who is responsible for data protection? The merchant? The platform? The agent? This post explains how Trusteed handles GDPR, CCPA, ePrivacy, and EU AI Act compliance: with production code patterns you can adapt for your own agentic commerce platform.
The Minimal-Data Boundary Principle
Checkout Session Encryption
Prohibited practices (enforced by policy + CI): no caching of agent search queries, no ML training on product view sequences, no embedding merchant descriptions for shared index, no cross-merchant order data training, no third-party AI training pipeline exports.
GDPR Compliance: What's Implemented
Of the 17 gaps we identified in our own internal review, 16 are resolved. The remaining one is pending DPA signatures with Stripe and Google (templates complete). This is an internal count, not a certification or a legal opinion. Here's what is implemented:
Privacy Notice (Art. 13/14)
Bilingual privacy policy (EN + ES) covering 12 sections: data collection, processing purposes, retention, recipients, rights, security, cookies, LSSI-CE compliance, AI system transparency (agents can produce errors or be subject to prompt injection), and merchant obligations.
Data Subject Access Requests (DSAR, Art. 15)
IP Pseudonymization (Rec. 30)
Critical nuance: pseudonymization happens at DB persistence only. Live request rate-limiting uses real IP to function correctly. The real IP is never stored.
Granular Cookie Consent (Art. 7 + ePrivacy Art. 5(3))
CCPA: California-Specific Requirements
CCPA compliance uses the same DSAR infrastructure with a 45-day SLA (vs 30 days for EU/EEA). The DSAR endpoint response includes both deadlines. The consumer deletion right (§1798.105) is implemented via the same cascade-delete process that serves GDPR Art. 17 (right to erasure).
EU AI Act: Trust Score Classification
- 1<strong>Transparency requirement (Art. 52)</strong>: Public methodology at <code>/en/trust/methodology</code>: v4.1 dimensions and bonus, per-response engine selection, and legacy v2 compatibility
- 2<strong>Human oversight</strong>: Merchant dashboard displays score + component breakdown. Merchants can appeal via the trust score appeal mechanism (logged as audit event)
- 3<strong>Automated decision notice (Art. 22 GDPR)</strong>: "Trust Score is advisory only" disclaimer in UI. Agents must inform users before restricting checkout (trust < 0.5)
Shopify ToS: The ML Import Guard
Shopify ToS Section 2.3.24 restricts certain uses of merchant data. To ensure compliance, a CI-enforced guard blocks 33 ML/AI packages (TensorFlow, PyTorch, ONNX, Pinecone, Weaviate, NLP libraries, embedding tools) from the MCP server codebase. 12 tests enforce this at lint + CI stage. If a developer accidentally imports a blocked package, the build fails.
Agent Policy: Machine-Readable Privacy
Payment Processor Roles
- 1<strong>Stripe</strong>: Data Processor (Art. 28). Direct Charges model: funds flow directly to merchant's Stripe Connected Account. No card data reaches Trusteed servers, which is an architecture choice, not a PCI DSS certification.
- 2<strong>PayPal</strong>: Independent Data Controller (NOT a processor). PayPal's own Privacy Policy applies to PayPal-collected data.
- 3<strong>Google Analytics</strong>: Data Processor. GA4 analytics are opt-in only via cookie consent. DPA signature pending.
Audit Logging
Every privacy-relevant event is logged with context but without sensitive data. The security logger tracks: login success/failure/blocked, registration, unauthorized access, rate limit exceeded, MFA events, DSAR requests, trust score appeals, and threshold alerts. Sensitive keys (password, token, apiKey, creditCard, mfaSecret, ssn) are automatically redacted. Audit logs are retained for 180 days.
Testing Compliance
The E2E test suite checks compliance directly. It includes: 9 scenarios for cookie consent (accept/reject/customize/migration), 6 scenarios for DSAR (form validation, SLA display, request types), and 15 assertions for payment processor disclosure and merchant checklists. The Shopify ML guard has 12 unit tests ensuring blocked packages are caught at CI time.
Implementation Checklist for Developers
- 1<strong>Minimal-data boundary</strong>: Never persist agent browsing data, search queries, or customer profiles. Checkout sessions hold buyer data encrypted (AES-256-GCM). The session expires after 30 minutes; expired sessions without an order are purged after 7 days by default, and sessions that end in an order are kept with the order (/en/privacy).
- 2<strong>IP pseudonymization</strong>: Zero the last octet (IPv4) or last 64 bits (IPv6) before DB write. Use real IP only for rate limiting.
- 3<strong>Cookie consent</strong>: Implement granular categories (necessary, functional, analytics, marketing). Integrate with GA4 Consent Mode v2.
- 4<strong>DSAR endpoint</strong>: Rate-limit (3/hour), pseudonymize requester IP, support 5 request types, display dual SLA (30d EU / 45d CCPA).
- 5<strong>Audit trail</strong>: Log all security events with automatic PII redaction. Retain for 180 days.
- 6<strong>AI classification</strong>: If your scoring system is rule-based (no ML), document it as LIMITED RISK under EU AI Act. Publish methodology publicly.
- 7<strong>ML guard</strong>: If you integrate with Shopify, block ML libraries from your MCP server at CI level.
What's Next: EU Cyber Resilience Act (CRA)
Phase 1 of CRA compliance is in progress (April-May 2026): Technical Dossier, EU Declaration of Conformity, vulnerability disclosure policy, and SBOM enhancements. Phase 0 (SBOM generation, Dependabot, product classification) is already complete. The CRA reporting deadline is September 11, 2026, with full compliance required by December 11, 2027.
Frequently asked questions
Does Trusteed store personal data about end customers?
Only what a checkout needs. When an agent starts a checkout, the buyer's name, email, phone and shipping address are stored in the checkout session, encrypted with AES-256-GCM. The session expires after 30 minutes, but its data is not deleted then: expired sessions without an order are purged after a grace period (7 days by default), and sessions that end in an order are kept with the order according to the privacy policy (/en/privacy). Browsing history, search queries and customer profiles are not persisted.
How do I exercise my GDPR/CCPA rights?
Visit /privacy/dsar and submit a request. We support 5 types: ACCESS, DELETE, RECTIFICATION, PORTABILITY, and OBJECTION. Response time: 30 days for EU/EEA residents, 45 days for California residents under CCPA.
Is the trust score considered a high-risk AI system under the EU AI Act?
We assess that it is not. The Trust Score Engine is deterministic and rule-based (no machine learning), and we classify it as limited risk under Regulation 2024/1689 because we do not believe it falls under the Annex III high-risk categories. This is our own assessment, not a regulator's ruling or a legal opinion.
Does Trusteed handle credit card data?
No. Payments use Stripe Direct Charges: funds flow directly to the merchant's Stripe Connected Account. No card data touches Trusteed servers. This is an architecture choice that keeps card data out of our systems; it is not a PCI DSS certification.
What happens to my data if I delete my merchant store?
Hard delete via CASCADE across 28 dependent tables. No archival copy is retained. Audit logs are kept for 180 days per legal retention requirements, then purged.
Sources and references
- GDPR: Regulation (EU) 2016/679
EUR-Lex
- CCPA: California Consumer Privacy Act (§1798.100)
California Attorney General
- EU AI Act: Regulation (EU) 2024/1689
EUR-Lex
- ePrivacy Directive 2002/58/EC
EUR-Lex
Published
2026-04-06
Updated: 2026-10-29
Author
Felix Pumeda Seoane
Founder · Published by Trusteed
Felix Pumeda Seoane is the founder of Trusteed, as recorded in the site's legal notice. Technical claims in these articles are backed by the surfaces linked from each piece and by the signed capability registry at /.well-known/trusteed-capabilities.json, which is the arbiter when an article and a status surface disagree.
About TrusteedCategory
Compliance
Related articles
Developer Guides
Building Agentic Commerce #3: Reading Trust Score v4.1
Trust Score v4.1: three weighted dimensions, an optional bonus and confidence caps. Read each response's engine; v2 is only a fallback if the v4.1 calculation fails.
Developer Guides
Building Agentic Commerce #1: Multi-Protocol Checkout with MCP + x402 + ACP in One Flow
One agent, three protocols, one checkout. Here's how MCP, x402 stablecoin payments, and ACP work together to let AI agents buy products, with code examples you can run today.
Agentic Commerce
Trust Receipts: Signed Context for Agentic Commerce
A TrustReceipt preserves signed context for a covered action. It does not by itself prove buyer intent, payment settlement or that the event occurred.