---
agent:
  instructions: "Use this search API to find Trusteed documentation (pages, blog posts, FAQ, error codes, the agent checkout guide and MCP tools) with keywords, instead of crawling individual pages. Results are returned in Markdown. It does not search store catalogues: for products use POST /api/v1/search."
  endpoint: "https://trusteed.xyz/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---
Source: https://trusteed.xyz/en/blog/gdpr-ccpa-ai-agents-compliance-playbook

[Back to blog](https://trusteed.xyz/en/blog)

Compliance

# 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 Seoane April 6, 202613 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

Table of contents

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

The core architectural decision: <strong>Trusteed does not keep browsing history, search queries or customer profiles</strong>. Agents interact with product catalogs (public data) and create checkout sessions. A checkout session does hold personal data: the buyer's name, email, phone and shipping address are stored encrypted (AES-256-GCM). The checkout session expires after 30 minutes, but its data is not deleted at that point: expired sessions that never became an order are purged after a grace period (7 days by default), and sessions that end in an order are kept with the order under the retention rules in our privacy policy (/en/privacy). The aim is to collect as little personal data as possible and keep it only as long as the checkout needs it. That reduces what we hold; it does not remove GDPR obligations for the data we do hold.

What an agent can read depends on the channel. On the public discovery endpoint (no credential): catalog data (title, description, price, images, inventory) and merchant metadata (slug, name, trust score, verification level), and nothing personal. On checkout, the agent that creates a session supplies the buyer's data and can read back <strong>its own</strong> session; another agent cannot open it. Order history and returns sit in the customer bucket and need the customer's OAuth consent. No channel exposes browsing history or other buyers' data.

## Checkout Session Encryption

When an agent initiates checkout, personal data (buyer name, email, phone, shipping address) is collected via the checkout flow and encrypted with AES-256-GCM before database persistence. The checkout 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): <pre><code>// Checkout session PII handling (simplified) const encryptedBuyerInfo = encryptString( JSON.stringify({ name, email, phone }), process.env.CHECKOUT\_ENCRYPTION\_KEY ); // Store encrypted: DB never sees plaintext PII await prisma.acpCheckoutSession.create({ data: { ...sessionData, buyerInfo: encryptedBuyerInfo, fulfillmentAddress: encryptString(address, key), expiresAt: new Date(Date.now() + 30 \* 60 \* 1000), // 30 min TTL }, });</code></pre>

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.

Essential insight

## 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)

A dedicated <code>POST /api/dsar/request</code> endpoint handles 5 request types: ACCESS, DELETE, RECTIFICATION, PORTABILITY, and OBJECTION. Requests are rate-limited (3/hour per IP), IP addresses are pseudonymized at persistence, and the response confirms dual SLA: <pre><code>// DSAR endpoint response { "id": "uuid-of-request", "message": "Request received. We will respond within 30 days (EU/GDPR) or 45 days (California/CCPA)" }</code></pre>

The DSAR admin runbook defines the triage workflow: <code>SELECT \* FROM dsar\_requests WHERE status = 'pending'</code>, then cascade delete across 28 dependent tables for DELETE requests. A public-facing bilingual form at <code>/privacy/dsar</code> makes it easy for data subjects to exercise their rights.

### IP Pseudonymization (Rec. 30)

All IP addresses are pseudonymized before database persistence: IPv4 last octet zeroed (192.168.1.42 → 192.168.1.0), IPv6 last 64 bits zeroed. This applies to DSAR requests, security logs, webhook events, and NLWeb query logs. A retroactive migration pseudonymized all existing IPs: <pre><code>// IP pseudonymization (ip-pseudonymizer.ts) function pseudonymizeIp(ip: string): string { if (isIPv4(ip)) { return ip.replace(/\\.\\d+$/, ".0"); // 192.168.1.42 → 192.168.1.0 } if (isIPv6(ip)) { return zeroLastFourGroups(ip); // 2001:db8::1 → 2001:db8:: } return "0.0.0.0"; // Invalid/null fallback }</code></pre>

Critical nuance: pseudonymization happens at DB persistence only. Live request rate-limiting uses real IP to function correctly. The real IP is never stored.

Essential insight

### Granular Cookie Consent (Art. 7 + ePrivacy Art. 5(3))

Cookie consent v2.0 implements four categories: <strong>Necessary</strong> (always on, cannot be disabled: session, security, CSRF), <strong>Functional</strong> (performance monitoring), <strong>Analytics</strong> (opt-in only: GA4 through Google Tag Manager, which loads only after consent), and <strong>Marketing</strong> (opt-in only). The tools actually loaded in each category are listed in the Cookie Policy (/en/cookies); there is no product-analytics or session-recording tool. The consent banner offers Accept All / Reject All / Customize, and integrates with GA4 Consent Mode v2.

Legacy <code>cookie\_consent: "accepted"</code> values are automatically migrated to the granular v2 format. 9 E2E test scenarios verify banner behavior, category toggles, and persistence.

## 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).

For agentic commerce, the key CCPA question is: <em>who is the "business" collecting consumer data?</em> In our architecture, Trusteed is a <strong>service provider</strong> (processor in GDPR terms). The merchant is the business. Our terms require merchants to maintain their own privacy policies disclosing agent-assisted commerce.

## EU AI Act: Trust Score Classification

The EU AI Act (Regulation 2024/1689) requires AI systems to be classified by risk. Our Trust Score Engine, the system that ranks merchants and determines checkout eligibility, has been formally assessed and classified as <strong>LIMITED RISK</strong>.

Why not HIGH-RISK? The trust score is <strong>deterministic and rule-based</strong>: no machine learning, no neural networks, no training on historical data. Same inputs always produce same outputs. It does not fall under Annex III (no critical infrastructure, employment, justice, education, or essential services evaluation). The formal AI Impact Assessment (v1.1) is published for regulatory review.

- 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

The <code>/.well-known/agent-policy.json</code> (v1.4) serves as a machine-readable privacy contract for AI agents. It defines allowed actions (read, recommend, start\_checkout, complete\_checkout), confirmation requirements (always require for checkout, never require for search), dollar thresholds ($100 confirm, $500 max per session), and fail-safe rules: <pre><code>// Agent policy fail-safe rules (excerpt) { "failSafe": \[ { "condition": "trustScore < 0.5", "action": "DO\_NOT\_PROCEED" }, { "condition": "verificationLevel == UNVERIFIED", "action": "WARN\_USER" }, { "condition": "checkout\_response.status == error", "action": "ABORT\_AND\_INFORM" }, { "condition": "availability\_freshness > 24h", "action": "WARN\_USER" }, { "condition": "ambiguous\_user\_intent", "action": "ASK\_FOR\_CLARIFICATION" } \] }</code></pre>

## 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.

Table of contents

## 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](https://eur-lex.europa.eu/eli/reg/2016/679/oj)
  
  EUR-Lex
  
- [CCPA: California Consumer Privacy Act (§1798.100)](https://oag.ca.gov/privacy/ccpa)
  
  California Attorney General
  
- [EU AI Act: Regulation (EU) 2024/1689](https://eur-lex.europa.eu/eli/reg/2024/1689/oj)
  
  EUR-Lex
  
- [ePrivacy Directive 2002/58/EC](https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32002L0058)
  
  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 Trusteed](https://trusteed.xyz/en/about)

[LinkedIn](https://www.linkedin.com/in/felix-pumeda-8645a66/)[X](https://x.com/fpumeda)

Category

Compliance

GDPR CCPA compliance privacy EU AI Act ePrivacy DSAR data protection agentic-commerce trust

## Related articles

Developer Guides

### [Building Agentic Commerce #3: Reading Trust Score v4.1](https://trusteed.xyz/en/blog/building-agentic-commerce-trust-scores)

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](https://trusteed.xyz/en/blog/building-agentic-commerce-multi-protocol-checkout)

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](https://trusteed.xyz/en/blog/trust-receipts-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.
