NIST AI RMF
Map AI governance, transparency, data quality, human oversight and risk treatment to the NIST AI Risk Management Framework.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Detects jailbreak and prompt-injection signals | Block |
| rbac | Request | Requires the X-User-ID and X-Org-ID headers | Block |
| pii-detector | Request | 2 custom identifier patterns | Redact |
| citation-verifier | Response | Requires cited sources; confidence ≥ 0.85 | Flag |
| quality-scorer | Response | Accuracy ≥ 0.80; relevancy ≥ 0.80; combined score ≥ 0.85; at least 120 characters and 2 sentences | Block |
| human-oversight | Response | Returns an escalated result instead of the assistant content | Escalate |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "fw_ai_governance_baseline"
name: "ai-governance-baseline"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "AI governance baseline starter for transparency, reviewability, and accountable release."
policies:
chain:
- "prompt-injection"
- "rbac"
- "pii-detector"
- "citation-verifier"
- "quality-scorer"
- "human-oversight"
- "audit-logger"
policy:
prompt-injection: {}
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID"]
pii-detector:
action: redact
detect_patterns: [ "(?i)(?:national\\s*id(?:entifier)?|national\\s+insurance\\s+number|ni\\s+number|nid)\\s*[:#-]?\\s*[A-Z0-9-]{5,20}", "(?i)\\bbiometric\\s+(?:data|template|identifier|record)\\b"]
citation-verifier:
require_sources: true
min_confidence: 0.85
quality-scorer:
min_output_chars: 120
min_sentences: 2
thresholds:
min_aggregate: 0.85
min_relevancy: 0.80
min_accuracy: 0.80
weights:
relevancy: 0.5
accuracy: 0.5
human-oversight:
action: escalate
audit-logger: {}