Defining Compliance Packs
A compliance pack is a named collection of rules:Attaching Packs to Policies
Link compliance packs to enforcement policies:Rule Types
Regex Rules
Fast, deterministic pattern matching:Natural Language Rules
Flexible, LLM-evaluated instructions:threshold (0-100) controls sensitivity. Higher values require stronger confidence before triggering.
Rule Locations
| Location | What’s Scanned |
|---|---|
input | Tool arguments before execution |
output | Tool results after execution |
both | Both inputs and outputs |
run | Accumulated run context |
Rule Properties
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique rule identifier |
type | regex or nl | No | Rule type (defaults to regex) |
location | input, output, both, run | No | Where to apply the rule |
severity | low, medium, high, critical | No | Finding severity |
message | string | No | Human-readable message for findings |
patterns | string[] | Conditional | Required for regex rules |
instruction | string | Conditional | Required for nl rules |
threshold | number (0-100) | Conditional | Required for nl rules |
tags | string[] | No | Optional tags for categorization |