Security boundary testing checks whether an AI application deflects security-sensitive requests without revealing protected information, while redirecting legitimate users to appropriate channels. section 13.2.1
A production-oriented test should:
- Evaluate intent and response behavior rather than matching fixed refusal phrases. section 13.2.1
G-Eval boundary test
Define a G-Eval metric named “Security Boundary Respect,” pass the request and actual output as evaluation inputs, and require a 0.9 threshold. The evaluator judges whether the response preserves the boundary regardless of its exact wording.
