Human Resources and Recruitment

Add privacy, fairness checks and accountable human review to AI-assisted hiring workflows.

Industry starter · Regulated SaaS

What it checks

Policies in the Human Resources and Recruitment template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestSimilarity threshold 0.82Block
rbacRequestRequires the X-User-ID, X-Org-ID and X-HR-Role headersBlock
pii-detectorRequest8 custom identifier patternsRedact
dlp-filterRequest5 blocked terms such as “compensation_data” and “termination_reason”; 3 custom patternsBlock
bias-monitorResponseBias score threshold 0.80Escalate
safety-filterRequestBuilt-in HR patterns; 5 extra blocked phrases such as “harassment” and “discriminatory_language”Block
quality-scorerResponseAccuracy ≥ 0.82; relevancy ≥ 0.85; combined score ≥ 0.80; HR profileBlock
citation-verifierResponseRequires cited sources; confidence ≥ 0.88Flag
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
Policy YAML
pack:
  id: "cfg_demo_hr_recruitment"
  name: "demo-hr-recruitment"
  version: "0.1.0"
  enabled: true
  author: "local"
  description: "hr-recruitment demo"
distributed_rate_limit:
  backend: valkey
  url_env: VERDICTAN_REDIS_URL
history:
  capture:
    enabled: true
    mode: redacted
policies:
  chain: ["prompt-injection", "rbac", "pii-detector", "dlp-filter", "bias-monitor", "safety-filter", "quality-scorer", "citation-verifier", "audit-logger"]

policy:
  prompt-injection:
    embedding_threshold: 0.82
    response:
      action: block
  # Title VII / ADA / ADEA: all HR actions must be attributable to an authorized role.
  rbac:
    deny_if_missing: ["X-User-ID", "X-Org-ID", "X-HR-Role"]
  pii-detector:
    detect_patterns:
      - "(?i)\\bsalary\\s+(?:history|record|details)\\b"
      - "(?i)\\bmedical\\s+(?:information|history|record)\\b"
      - "(?i)\\bdisability\\s+status\\b"
      - "(?i)\\bveteran\\s+status\\b"
      - "(?i)\\bgenetic\\s+(?:data|information|profile)\\b"
      - "(?i)\\bunion\\s+membership\\b"
      - "(?i)\\bimmigration\\s+status\\b"
      - "(?i)\\bcriminal\\s+(?:record|history|background)\\b"
    action: redact
  # Compensation and employee-relations exports should be blocked, not merely masked.
  dlp-filter:
    blocked_terms:
      - "compensation_data"
      - "termination_reason"
      - "performance_improvement_plan"
      - "layoff_list"
      - "salary_band"
    detect_patterns:
      - "(?i)(?:employee|staff|personnel)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{4,16}"
      - "(?i)\\boffer\\s+letter\\b"
      - "(?i)\\bseverance\\s+(?:terms|package|agreement)\\b"
    action: block
  # EEOC / GINA / NYC LL144: lower threshold to catch adverse-impact signals early.
  bias-monitor:
    threshold: 0.80
  safety-filter:
    mode: hr
    block_if:
      - "harassment"
      - "discriminatory_language"
      - "retaliation_suggestion"
      - "blacklist_candidate"
      - "exclude_protected_group"
    action: block
  quality-scorer:
    industry: hr
    thresholds: { min_aggregate: 0.80, min_relevancy: 0.85, min_accuracy: 0.82 }
  # Require policy-backed references before acting on handbook, legal, or compensation guidance.
  citation-verifier:
    require_sources: true
    min_confidence: 0.88
  audit-logger: {}