Skill 4.2.3
Design guardrail testing and validation, including using synthetic data
Key Concepts
A guardrail test set contains adversarial cases (direct jailbreaks, indirect injection in documents and tool results, harmful requests, exfiltration attempts) and benign cases that resemble them, such as a security analyst legitimately discussing attacks. Synthetic data generation scales both sets across languages, phrasings and attack strategies, and the AI Red Teaming Agent produces adversarial conversations automatically.
Validation measures the block rate or attack success rate on adversarial data and the false positive rate on benign data, per intervention point and per agent. Results are compared across guardrail versions in CI, and production samples of blocked and allowed content are reviewed to find gaps.