Policy
Policy engine: make risk a property of the path, not a hunch
Path-based severity and overrides; deterministic rules for diffs.
Sample policy
policies:
- path: "spec.openapi.yaml"
risk: critical
- path: ".*\/test.*"
risk: low
- path: "secrets\/"
severity: block
Core concepts
- Severity: block / warn / note.
- Risk: critical / high / medium / low.
- Overrides: explicit opt-out with reviewer.
- Secrets: redact before report leaves disk.