Security
Data Sovereignty

Data Sovereignty

⚠️

Roadmap item — not yet shipped. dataSovereigntyPack is not currently exported from @veridex/agent-security. This page describes the designed API for jurisdictional/PII enforcement so integrators can plan ahead. Until the pack ships, approximate its behaviour with secretDetectionPack + a custom SecurityPack that enforces jurisdiction rules on action.arguments. Track progress in the roadmap.

Data sovereignty policies enforce jurisdictional rules for PII (Personally Identifiable Information) processed by AI agents. These policies are designed to support 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