Security
Data Sovereignty

Data Sovereignty

Data sovereignty policies enforce jurisdictional rules for PII (Personally Identifiable Information) processed by AI agents. These policies ensure compliance with GDPR, CCPA, PIPEDA, and other data protection regulations.

Policy Configuration

Configure sovereignty rules in the dataSovereigntyPack:

import { dataSovereigntyPack } from '@veridex/agent-security';
 
const pack = dataSovereigntyPack({
  defaultJurisdiction: 'US',
  piiCategories: ['email', 'phone', 'ssn', 'name', 'address', 'dob', 'financial'],
  jurisdictionRules: [
    {
      from: 'EU',
      to: 'US',
      verdict: 'block',
      reason: 'GDPR prohibits PII transfer to US without adequacy decision',
      regulations: ['GDPR Art. 44-49'],
    },
  ],
  toolJurisdictions: {
    'eu_database': 'EU',
    'us_analytics': 'US',
  },
});

Supported Regulations

RegulationJurisdictionKey Requirements
GDPREU/EEAData transfer restrictions (Art. 44-49), right to erasure, DPO
CCPA/CPRACalifornia, USConsumer opt-out, sale restrictions, access rights
PIPEDACanadaConsent for cross-border transfer, purpose limitation
LGPDBrazilAdequacy requirements, data localization
POPIASouth AfricaCross-border conditions, consent

Enforcement Levels

VerdictBehavior
blockTool call is prevented. Agent receives a denial reason.
flagTool call proceeds but a violation is recorded for review.
allowNo restriction.

Audit Trail

All sovereignty evaluations are recorded:

  • Blocked calls appear as sovereignty_violation events in traces
  • Flagged calls create advisory records in the audit log
  • Evidence bundles include sovereignty context for compliance review

Related