Education
Protect student data, screen age-sensitive content, check sources and review decisions with this education starter.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Similarity threshold 0.80 | Block |
| rbac | Request | Requires the X-User-ID, X-Org-ID and X-User-Role headers | Block |
| student-privacy | Request | Detects student-record markers and replaces student-ID phrases | Redact |
| pii-detector | Request | 6 custom identifier patterns | Redact |
| dlp-filter | Request | 5 blocked terms such as “bulk_transcript_export” and “bulk_gradebook_download”; 5 custom patterns | Block |
| safety-filter | Request | Built-in education patterns; 7 extra blocked phrases such as “self-harm” and “sexual_content” | Block |
| bias-monitor | Response | Bias score threshold 0.80 | Escalate |
| citation-verifier | Response | Requires cited sources; confidence ≥ 0.85 | Flag |
| quality-scorer | Response | Accuracy ≥ 0.82; relevancy ≥ 0.82; combined score ≥ 0.80; education profile | Block |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "cfg_demo_education"
name: "demo-education"
version: "0.1.0"
enabled: true
author: "local"
description: "education demo"
distributed_rate_limit:
backend: valkey
url_env: VERDICTAN_REDIS_URL
history:
capture:
enabled: true
mode: redacted
policies:
chain: ["prompt-injection", "rbac", "student-privacy", "pii-detector", "dlp-filter", "safety-filter", "bias-monitor", "citation-verifier", "quality-scorer", "audit-logger"]
policy:
prompt-injection:
embedding_threshold: 0.80
response:
action: block
# FERPA / COPPA: require authenticated, attributable access before record handling.
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID", "X-User-Role"]
# FERPA: protect education records by redacting sensitive student data.
student-privacy:
action: redact
pii-detector:
detect_patterns:
- "(?i)(?:student|pupil)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{4,16}"
- "(?i)\\bparent\\s+(?:contact|guardian)\\s*[:#-]?\\s*[A-Za-z0-9 ,()+-]{6,80}"
- "(?i)\\bgrade\\s+(?:record|report|transcript)\\b"
- "(?i)\\bdisciplinary\\s+(?:record|action|file)\\b"
- "IEP_data"
- "504_plan"
action: redact
# FERPA financial aid + transcript export controls; bulk extraction is blocked.
dlp-filter:
blocked_terms:
- "bulk_transcript_export"
- "bulk_gradebook_download"
- "bulk_student_roster_dump"
- "unauthorized_record_scrape"
- "mass_financial_aid_extract"
detect_patterns:
- "(?i)\\b(?:academic|official)\\s+transcript\\b"
- "GPA"
- "(?i)\\b(?:sat|act|gre|gmat|lsat)\\s+score\\s*[:#-]?\\s*\\d{2,4}\\b"
- "(?i)\\battendance\\s+(?:record|log|report)\\b"
- "(?i)\\bfinancial\\s+aid\\s+(?:package|award|record)\\b"
action: block
# Age-appropriate safety aligned to COPPA, campus wellbeing, and anti-bullying controls.
safety-filter:
mode: education
block_if:
- "self-harm"
- "sexual_content"
- "illegal_activities"
- "bullying"
- "weapons"
- "drug_use"
- "eating_disorders"
action: block
# Title IX / IDEA / Section 504 sensitivity: escalate possible discriminatory outputs.
bias-monitor:
threshold: 0.80
citation-verifier:
require_sources: true
min_confidence: 0.85
quality-scorer:
industry: education
thresholds:
min_aggregate: 0.80
min_accuracy: 0.82
min_relevancy: 0.82
audit-logger: {}