Compliance Modes
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: