The Agentic AI Builder's Playbook

The Pre-Existing Stack You Can’t Ignore

By Jason Newell · ~6 min read · Security & Compliance

AI in the Regulatory Minefield

Guardrails That Actually Hold

Before we had agents that could autonomously query databases, trigger transactions, and move data across borders without a human in the loop, compliance was complicated. Now, with AI woven into the stack, it’s an entirely different problem — and most organizations are approaching it with frameworks built for the world that existed before large language models.

I’ve spent years in the compliance trenches. PCI work spanning multiple brands across e-commerce and brick-and-mortar. HIPAA implementations inside healthcare software platforms. Data governance programs navigating the patchwork of state, federal, and international privacy law. The common thread across all of it: the hardest part was never the technology. It was the intersection of technology with legal obligation, organizational culture, and the uncomfortable reality that the rules keep changing.

AI doesn’t simplify that intersection. It multiplies it.

The Pre-Existing Stack You Can’t Ignore

Start with what was already true before AI entered the picture.

PCI DSS 4.0.1

Version 4.0.1 is now fully mandatory as of March 2025, and it is more demanding than its predecessors. Twelve requirements. Six domains. Continuous compliance, not annual checkboxes. Multi-factor authentication is now required for all non-console access to the cardholder data environment — no longer “addressable,” meaning no longer optional. The new customized approach gives organizations flexibility to design equivalent controls, but makes them fully responsible for proving equivalence to a QSA.

HIPAA Security Rule Overhaul

The U.S. Department of Health and Human Services Office for Civil Rights proposed major updates expected to be finalized by mid-2026. What was “addressable” is becoming required. Annual audits. Mandatory network segmentation. MFA everywhere PHI is touched. The era of flexible interpretation is ending. Covered entities and business associates must now formally test and verify safeguards every twelve months, not just document that they exist.

GDPR Enforcement

The regulation has issued €5.88 billion in cumulative fines since 2018, with €1.2 billion in 2024 alone. The 72-hour breach notification window is not a guideline — it’s a hard deadline with audit trails to prove you met it. The EDPB’s April 2025 report clarified that LLMs rarely meet GDPR anonymization standards, which means every enterprise LLM deployment processing EU resident data likely requires a full legitimate interests assessment before going live.

The U.S. State Patchwork

Over twenty states now have active comprehensive privacy legislation. California’s CPRA. Virginia’s CDPA. Colorado, Connecticut, Texas, and more — each with slightly different thresholds, definitions, and enforcement mechanisms. By the time you layer all of these together, a mid-sized company operating nationally is already navigating five to eight regulatory regimes simultaneously. This was the baseline. Then AI showed up.

What AI Changes — And Why It Changes Everything

AI does not exist outside your compliance perimeter. It is inside it, whether you planned for that or not.

Consider what an agentic AI system can do in a modern enterprise: query a database containing PHI, draft a response using that data, route it through an LLM hosted by a third-party provider, log the interaction to an observability platform, and trigger a downstream workflow — all in a single chain of actions that may cross multiple jurisdictions without a human ever reviewing the intermediate steps. Every one of those steps carries regulatory implications.

The PCI Security Standards Council has been explicit: AI systems that process, store, transmit, or can impact the security of cardholder data are in scope for PCI DSS. An LLM-based customer service agent with access to payment records is a CDE participant. A fraud detection model trained on transaction data is in scope. A RAG pipeline whose retrieval corpus includes billing history is in scope.

The specific risks AI introduces that pre-existing frameworks weren’t designed for:

  • Prompt injection and data leakage — adversarial inputs that cause an agent to reveal cardholder data, PHI, or PII in its outputs, bypassing application-layer access controls even when underlying data controls are technically correct
  • Model memorization — models trained on data containing sensitive information can reproduce that information in outputs even when the source data is no longer accessible, creating a compliance artifact problem inside the model weights themselves
  • Excessive agency — agentic systems given broad tool access can reach data far beyond what the immediate task requires, violating the least-privilege principle that underpins both PCI DSS Requirement 7 and HIPAA’s minimum necessary standard
  • Third-party model risk — when you send data to a third-party LLM provider, that provider becomes a de facto participant in your compliance environment, with all the contractual and jurisdictional obligations that entails

The Regulatory Landscape: What Applies Where

This is the map. Every organization should know which of these regimes applies to their data, their users, and their AI systems — before deployment, not after.

The Geography Layer: One System, Many Regimes

This is where AI compliance gets genuinely hard. Not because any single regulation is impossible to navigate, but because they don’t agree with each other — and AI forces you to confront all of them simultaneously.

European Union

GDPR remains the global high-water mark. The EU AI Act adds a second layer, fully effective August 2, 2026. High-risk AI — systems making automated decisions in healthcare, financial services, employment, and critical infrastructure — requires documented risk assessments, human oversight mechanisms, bias detection, and technical documentation maintained throughout the system lifecycle. Combined penalties reach 7% of global annual turnover.

Canada

PIPEDA governs at the federal level. The proposed Artificial Intelligence and Data Act died on the order paper in January 2025. The federal government now plans to regulate AI through privacy legislation — making the incoming Consumer Privacy Protection Act, with fines up to C$25 million or 5% of gross global revenue, the primary AI governance mechanism. Quebec’s Law 25 is fully in force and materially stricter than federal law.

China

Three overlapping laws — the Cybersecurity Law, Data Security Law, and PIPL — effectively require data localization for critical infrastructure operators. Over 300 generative AI services are now registered with mandatory algorithmic disclosure. The first cross-border enforcement action was issued in May 2025. If your AI system touches Chinese user data, it must be designed for that regulatory environment from the ground up.

India

The Digital Personal Data Protection Act imposes robust consent requirements and significant penalties. Critically, the DPDPA empowers the government to blacklist countries for cross-border data transfers entirely. Any enterprise using a non-Indian LLM provider and processing Indian user data needs a current transfer pathway assessment — and a contingency plan if that pathway closes.

United States

No federal data privacy or AI law exists. The CLOUD Act gives U.S. law enforcement extraterritorial data access — including to data stored abroad by U.S. companies. Over twenty state privacy laws are active, with California’s automated decision-making opt-out rights enforced beginning 2027. The fragmentation is itself a compliance risk: different thresholds, different definitions, different enforcement mechanisms, all applying simultaneously.

Data at Rest, in Motion, and in Use

The classic framework distinguishes between data at rest and data in motion. AI creates a third state that most security architectures weren’t designed for: data in use — inside the context window of an LLM, in the embeddings of a vector database, in the memory of an agent across a multi-step workflow.

At Rest

Encryption (AES-256), access controls tied to identity, audit logging. AI complicates this by creating new repositories — vector databases, model training datasets, fine-tuning corpora — that often don’t surface in standard data discovery scans. If you run a data classification exercise, those repositories need to be in scope.

In Motion

TLS 1.3 for data in transit. For AI, this extends to API calls made to LLM providers — data that leaves your perimeter with every inference request. If that data contains PHI, PII, or cardholder data, you need a Business Associate Agreement, a Data Processing Agreement, or equivalent contractual protection with that provider. Standard consumer API terms do not provide this.

In Use

This is the new frontier. Prompt caching, context windows, retrieval-augmented generation — all create transient states where sensitive data is present in a system not specifically designed to contain it. The guardrails here are architectural: PII detection and redaction before data enters the context window, output filtering before responses reach users, audit logging of every LLM call with the full prompt and response preserved for compliance evidence.

The most dangerous compliance gap in most AI deployments is not at rest or in motion. It’s in use — where sensitive data sits inside a context window, a cache, or an embedding with no equivalent of the database access controls that govern it everywhere else.

What a Real Guardrail Architecture Looks Like

After years of building systems that had to survive regulatory scrutiny, here is the framework I apply when AI enters the stack. These are not theoretical controls. They are the ones that hold up under a QSA review, an OCR audit, and a GDPR supervisory authority investigation.

How to Approach It: The Sequence That Works

The organizations that fail compliance reviews for AI systems are almost always the ones that built first and governed later. The ones that pass built classification, access controls, and logging before the first line of application code.

  • Classify before you build. Every AI system should be classified by risk tier before development begins. Is it high-risk under the EU AI Act? Does it touch PHI, PII, or cardholder data? Does it make or influence automated decisions? The classification determines the controls required.
  • Map your data flows completely. Every input source, every third-party provider, every output destination. Every jurisdiction that data crosses. This is your compliance surface area, and you cannot defend what you haven’t mapped.
  • Apply existing frameworks to new surfaces. PCI DSS’s least-privilege logic applies to AI agent permissions. HIPAA’s minimum necessary standard applies to what data you put in a context window. GDPR’s purpose limitation applies to how you use data for model training. The frameworks predate AI but the principles transfer.
  • Build residency into the architecture. Data residency requirements are not a deployment decision. They are an architecture decision. Make them at design time, not go-live.
  • Treat every third-party AI vendor as a subprocessor. Map them. Contract them. Audit them. A breach at your LLM provider is your breach under GDPR, HIPAA, and PCI DSS.
  • Run AI-specific security testing before launch. Standard penetration testing does not cover prompt injection, model memorization, or excessive agency. Add it to your testing regimen explicitly.
  • Document everything, continuously. The EU AI Act, HIPAA’s proposed updates, and SOC 2 all require demonstrable, ongoing compliance — not point-in-time certification. Your audit evidence should be generated automatically from your production systems, not assembled by hand before an audit.

2026 Is the Compliance Year

The EU AI Act’s high-risk provisions take full effect in August. HIPAA’s Security Rule overhaul is finalizing. PCI DSS 4.0.1’s new mandatory requirements are already in force. GDPR enforcement is intensifying. The patchwork of U.S. state privacy laws is thickening. Canada is about to introduce some of the steepest penalty thresholds anywhere in the world.

None of this means stop building with AI. It means build correctly.

The organizations that move fastest in 2026 are the ones that built compliance into their AI architecture from the first line of code.

Classification, least privilege, redaction, immutable logging, residency-aware deployment, contractual coverage: these are not compliance theater. They are the engineering decisions that determine whether your AI investment survives contact with a regulatory audit.

I’ve sat in those rooms. The organizations that got through them were the ones who had done the work before they were asked to.

Jason Newell · The Agentic AI Builder’s Playbook · Article 26

Agentic AISER-AGT-026

Related

Related field notes

Keep reading

More field notes

This piece is part of the MAX Research Collective library. Browse the rest, or connect on LinkedIn.