A clinical-support multi-agent solution built in Microsoft Foundry has output guardrails. Automated guardrail tests already run in the deployment pipeline. Last week, a pharmacist found an agent output that recommended a dosage without the required clinician-review wording. The guardrail did not block it.
You need to ensure that every future build is tested against this specific failure before it is deployed.
What should you add to the guardrail testing and validation design?
Guardrail validation includes a regression suite that grows with each production incident: every case where a guardrail missed a violation or fired wrongly becomes a test case. Because the regression tests run in the deployment pipeline, each future build is checked against the recorded failure. Benign-set measurement, a one-time red-teaming run or fine-tuning do not provide this repeatable check.
- Not correct: Add the incident's input and corrected output to the fine-tuning training dataset. Correction pairs are used as training examples for fine-tuning. That changes the model; it does not add a guardrail test that each build must pass before deployment.
- Not correct: Run the guardrail against a production-representative set of benign inputs for each build. A benign input set measures false positives, meaning legitimate requests that are blocked. It does not contain the missed violation, so it does not test this failure.
- Not correct: Run the AI Red Teaming Agent once before the next deployment to generate new attacks. The AI Red Teaming Agent generates adversarial inputs automatically to supplement manual test cases. A single run before the next deployment does not cover every future build, and it does not add the recorded incident as a permanent test.
- Correct: Add the incident as a test case in the guardrail regression suite that runs in the pipeline. The guidance says each incident where a guardrail missed a violation becomes a test case in a growing regression suite, and these regression tests run in the deployment pipeline. Every future build is therefore checked against this failure.