EU AI Act Control Mapping

Map EU AI Act risk, transparency, conformity-assessment and human-oversight controls without implying compliance.

Industry starter · Regulated SaaS

What it checks

Policies in the EU AI Act Control Mapping template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestSimilarity threshold 0.80Block
rbacRequestRequires the X-User-ID and X-Org-ID headersBlock
gdpr-complianceRequestRequires the X-GDPR-Consent headerBlock
pii-detectorRequest5 custom identifier patternsRedact
dlp-filterRequest6 custom patternsBlock
bias-monitorResponseBias score threshold 0.80Escalate
language-validatorBothAllowed languages: en, de, fr, es, ptBlock
citation-verifierResponseRequires cited sources; confidence ≥ 0.85Flag
quality-scorerResponseRelevancy ≥ 0.85; combined score ≥ 0.80Block
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
Policy YAML
pack:
  id: "cfg_demo_eu_ai_act_compliance"
  name: "demo-eu-ai-act-compliance"
  version: "0.3.0"
  enabled: true
  author: "local"
  description: "EU AI Act compliance baseline — high-risk governance with GDPR-aligned controls; eu-ai-act is reporting-only via POST /verdictan/compliance/report"

# Data minimization: keep auditable metadata without retaining full raw content.
history:
  capture:
    enabled: true
    mode: metadata_only

policies:
  # Runtime enforcement chain only. Do not place reporting-only `eu-ai-act` here —
  # configure it under policy.eu-ai-act and call POST /verdictan/compliance/report.
  chain:
    - "prompt-injection"
    - "rbac"
    - "gdpr-compliance"
    - "pii-detector"
    - "dlp-filter"
    - "bias-monitor"
    - "language-validator"
    - "citation-verifier"
    - "quality-scorer"
    - "audit-logger"

policy:
  # Article 15 — robustness and cybersecurity defenses begin with prompt-injection protection.
  prompt-injection:
    embedding_threshold: 0.80
    response:
      action: block

  # Articles 11-12 — traceability requires attributable actors on every decision path.
  rbac:
    deny_if_missing:
      - "X-User-ID"
      - "X-Org-ID"

  # Reporting-only: Articles 6 and 9-15 gap detector for high-risk systems.
  # Not admitted as runtime enforcement; consumed by POST /verdictan/compliance/report.
  eu-ai-act:
    risk_class: high
    action: warn
    articles:
      - 6
      - 9
      - 10
      - 11
      - 12
      - 13
      - 14
      - 15

  # GDPR Articles 7, 17, and 20 — consent, erasure workflow hooks, and retention discipline.
  gdpr-compliance:
    consent_required: true
    consent_header: "X-GDPR-Consent"
    data_categories:
      - "personal"
      - "sensitive"
      - "biometric"
      - "high_risk_decisioning"

  # Article 10 data governance: redact EU identifiers before downstream processing.
  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)\\b(?:iban)\\s*[:#-]?\\s*[A-Z]{2}\\d{2}[A-Z0-9]{11,30}\\b"
      - "(?i)(?:tax\\s*(?:id|identification)|ein|tin)\\s*[:#-]?\\s*\\d{2}-?\\d{7}"
      - "(?i)(?:health|member|patient)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{6,20}"
      - "(?i)\\bpassport\\s*(?:#|number|no\\.)?\\s*[:#-]?\\s*[A-Z0-9-]{6,12}"

  # High-risk system artifacts should not be casually extracted or redistributed.
  dlp-filter:
    detect_patterns:
      - "(?i)\\brisk\\s+classification\\b"
      - "(?i)\\bconformity\\s+assessment\\b"
      - "(?i)\\bfundamental\\s+rights\\s+impact\\s+assessment\\b"
      - "(?i)\\bpost[-\\s]?market\\s+monitoring\\b"
      - "(?i)\\bincident\\s+(?:register|log|record)\\b"
      - "(?i)\\bbiometric\\s+template\\s*[:#-]?\\s*[A-Z0-9-]{4,64}"
    action: block

  # Article 10 fairness controls across fundamental rights and protected categories.
  bias-monitor:
    threshold: 0.80

  # Article 13 transparency across the currently supported multilingual deployment set.
  # Extend this list as validator coverage grows to encompass the full EU official language set.
  language-validator:
    allowed_languages:
      - "en"
      - "de"
      - "fr"
      - "es"
      - "pt"
    min_confidence: 0.70
    action: block
    apply_to: both

  # Article 13 transparency: material claims should cite reviewable sources.
  citation-verifier:
    require_sources: true
    require_source_match: true
    min_confidence: 0.85

  # Article 15 accuracy and relevance monitoring for high-risk deployments.
  quality-scorer:
    thresholds:
      min_aggregate: 0.80
      min_relevancy: 0.85

  # Articles 11-12 — retain evidence long enough for technical documentation and regulator review.
  audit-logger: {}