Compliance and Agent Decisions: SOC2, PCI, HIPAA Notes

Auditors will ask. The control mappings, the evidence to retain, and the architectures that make compliance straightforward instead of painful.

What auditors will ask

Four audit questions cover most ground. Who authorised this action? The audit trail must show agent identity, originating user/system, approval chain. How do you ensure unauthorised actions cannot occur? Tool allowlists, RBAC, two-person approval, all documented. How do you investigate agent errors? Reproducibility, audit logs, postmortem process. How do you protect data the agent processes? Redaction, encryption, access controls.

SOC2 controls

Three SOC2 controls map directly to agent operation. CC7.2 system monitoring (the agent’s audit log satisfies this; document the retention and review process); CC8.1 change management (agent prompt and code changes follow standard change management with PR reviews, approvals, deploys); CC6.1 logical access (the agent’s access is RBAC-controlled; document who can grant the agent new permissions).

PCI considerations

Three PCI requirements deserve attention. Cardholder data (the agent must not process raw PAN; tokenise upstream so the agent sees tokens); audit trails (PCI requires retention for at least 1 year, match your agent’s audit log retention); access controls (cardholder data environment is a tighter control set, the agent runs outside or with extra restrictions).

HIPAA considerations

Three HIPAA principles guide agent design. PHI (the agent must not retain PHI in prompts or logs without BAA-covered storage); encryption (AES-256 at rest, TLS 1.3 in transit, all standard requirements); minimum necessary (the agent’s tools are scoped to the minimum data needed, “just enough” is a HIPAA principle not just a security one).

Architectures that make compliance easy

Four architectural choices reduce compliance friction. Tools as the authorisation boundary (the agent calls tools, tools enforce permissions, the agent has no power outside tools); audit logs as immutable append-only (object storage with object locks, auditors verify in seconds); separate environments for handled data classes (the agent that touches PHI runs in a HIPAA-compliant environment, others run in standard environments); documentation describing the architecture in a one-page document the auditor reads first.