AI agent 常处理含 personal data(如姓名、电话、地址)的 text、image 与 log。泄露可能导致 fraud、stalking 或其他 harm,因此 GDPR、CCPA 等法律要求严格保护。关键方法是 PII redaction:在 storage 或 sharing 前扫描 input 与 output,找到并 mask 任何 personal detail。Redaction 使用 pattern rule、machine learning 或二者结合。团队还应保留 audit log、enforce access control,并经常 test redaction flow 以防 leak。