Humanitarian Aid

Protect beneficiary data, check sources, review bias and protection risks, require approval and retain redacted history.

Industry starter · Regulated SaaS, Sovereign region

What it checks

Policies in the Humanitarian Aid template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestDetects jailbreak and prompt-injection signalsBlock
rbacRequestEnforces role, identity, and data-sensitivity access rulesBlock
pii-detectorRequest2 custom identifier patternsRedact
dlp-filterRequest3 blocked terms such as “controlled unclassified information” and “sealed filing”Block
citation-verifierResponseChecks that the request context supports the citations in the outputFlag
bias-monitorResponseEscalates when the HR bias score reaches the thresholdEscalate
quality-scorerResponseAccuracy ≥ 0.80; relevancy ≥ 0.78; combined score ≥ 0.86; at least 120 characters and 2 sentencesBlock
human-oversightResponseNo action is set, so it does not review responsesNone
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
Policy YAML
pack:
  id: "cfg_humanitarian_aid"
  name: "humanitarian-aid"
  version: "0.1.0"
  enabled: true
  author: "verdictan"
  description: "Humanitarian controls for beneficiary privacy, citation checks, and configurable bias-monitor and human-oversight policy points."
history:
  capture:
    enabled: true
    mode: redacted
    include_blocked: true
    fail_open: false
policies:
  chain:
    - "prompt-injection"
    - "rbac"
    - "pii-detector"
    - "dlp-filter"
    - "citation-verifier"
    - "bias-monitor"
    - "quality-scorer"
    - "human-oversight"
    - "audit-logger"
policy:
  prompt-injection: {}
  rbac: {}
  pii-detector:
    action: redact
    detect_patterns:
      - "(?i)(?:case|docket|matter)\\s*(?:#|number|no\\.)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
      - "(?i)\\bbenefits?\\s+recipient\\s*[:#-]?\\s*[A-Za-z ,'-]{3,80}"
  dlp-filter:
    blocked_terms:
      - "controlled unclassified information"
      - "sealed filing"
      - "investigative file"
    action: block
  citation-verifier: {}
  bias-monitor: {}
  quality-scorer:
    min_output_chars: 120
    min_sentences: 2
    thresholds:
      min_aggregate: 0.86
      min_relevancy: 0.78
      min_accuracy: 0.80
    weights:
      relevancy: 0.5
      accuracy: 0.5
  human-oversight: {}
  audit-logger: {}