FDA 21 CFR Part 11
Map FDA 21 CFR Part 11 controls for validation, audit trails, access, retention and electronic signatures.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Detects jailbreak and prompt-injection signals | Block |
| rbac | Request | Requires the X-User-ID, X-Org-ID and X-Study-ID headers | Block |
| pii-detector | Request | Healthcare identifiers; 3 custom identifier patterns | Redact |
| dlp-filter | Request | 4 custom patterns | Block |
| citation-verifier | Response | Requires cited sources; confidence ≥ 0.90 | Flag |
| quality-scorer | Response | Accuracy ≥ 0.90; combined score ≥ 0.85 | 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_pharma_baseline"
name: "pharma-baseline"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "Life-sciences baseline starter for regulated records, sources, and supervised release."
policies:
chain:
- "prompt-injection"
- "rbac"
- "pii-detector"
- "dlp-filter"
- "citation-verifier"
- "quality-scorer"
- "human-oversight"
- "audit-logger"
policy:
prompt-injection: {}
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID", "X-Study-ID"]
pii-detector:
healthcare_mode: true
action: redact
detect_patterns: ["(?i)(?:patient\\s*id|patient\\s*#|pt\\s*id)\\s*[:#-]?\\s*[A-Z0-9-]{6,16}", "(?i)(?:subject|participant)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}", "(?i)\\binvestigator\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"]
dlp-filter:
detect_patterns: ["(?i)\\bclinical\\s+trial\\s+(?:data|record|results)\\b", "(?i)\\badverse\\s+event\\s*(?:report|id|#)?\\s*[:#-]?\\s*[A-Z0-9-]{4,20}", "(?i)\\bbatch\\s+(?:record|lot|#)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}", "(?i)\\bdeviation\\s+(?:report|record|notice)\\b"]
action: block
citation-verifier:
require_sources: true
min_confidence: 0.90
quality-scorer:
thresholds:
min_aggregate: 0.85
min_accuracy: 0.90
human-oversight:
action: escalate
audit-logger: {}