Agentic systems face the Lethal Trifecta (access to private data + exposure to untrusted external content + ability to invoke state-mutating or external-egress tools). Meanwhile, redacting PII completely ([REDACTED]) breaks downstream ERP settlement tools that genuinely need the vendor’s real IBAN inside the trusted corporate network.
src/aegis/policy/taint.py):
UNTRUSTED_EXTERNAL. High-integrity sinks (treasury.execute_wire, vendor.update_bank_iban, approvals, IAM) reject UNTRUSTED_EXTERNAL unconditionally.PII_SENSITIVE or SECRET_CREDENTIAL cannot invoke tools targeting domains outside *.erp.src/aegis/privacy/vault.py):
[PII:<KIND>:<12-hex-hmac>] computed via HMAC-SHA256(hmac_key, tenant_id:kind:plaintext)—preserving referential equality for LLM reasoning while hiding raw PII from model providers AND the audit ledger.AES-256-GCM using AAD = tenant_id:kind:token, and permits detokenization strictly inside SagaCoordinator when target_domain.endswith(".erp").RT-11).