Compliance Modes
| Mode | Allowed Models | Use Case |
|---|---|---|
gdpr | gpt-4o, gpt-4o-mini, gpt-3.5-turbo | EU data protection |
hipaa | gpt-4o, gpt-4o-mini | Healthcare data |
pci | gpt-4o-mini, gpt-3.5-turbo | Payment card data |
strict | gpt-4o | Maximum restriction |
Usage
Enforcement Behavior
When a model outside the allowlist is requested:- In
observemode: the trace recordsaction: "switch_model"with the suggested compliant alternative, but execution continues with the original model - In
enforcemode: the harness blocks the non-compliant model and either switches to a compliant alternative or stops execution
Combining with Budget
Compliance and budget constraints are independent. Both are checked at every step:Custom Allowlists
The built-in allowlists cover common regulations. For custom requirements, set compliance at the integration level or use theHarnessConfig directly: