Automotive
Protect connected-vehicle data, preserve functional-safety evidence and restrict AI-assisted engineering actions.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Similarity threshold 0.82 | Block |
| rbac | Request | Requires the X-User-ID, X-Org-ID and X-Safety-Role headers | Block |
| pii-detector | Request | 4 custom identifier patterns | Redact |
| dlp-filter | Request | 4 blocked terms such as “bulk crash export” and “dump recall database”; 6 custom patterns | Block |
| safety-filter | Request | Built-in automotive patterns; 10 extra blocked phrases such as “disable_airbag” and “override_brakes” | Block |
| agent-firewall | Both | Allows 3 tools; denies 4 tools; at most 50 actions per session | Block |
| code-sanitizer | Both | 5 extra code patterns | Block |
| bias-monitor | Response | Bias score threshold 0.80 | Escalate |
| citation-verifier | Response | Requires cited sources; confidence ≥ 0.90 | Flag |
| quality-scorer | Response | Accuracy ≥ 0.92; relevancy ≥ 0.85; combined score ≥ 0.85; automotive profile | Block |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "cfg_demo_automotive"
name: "demo-automotive"
version: "0.2.0"
enabled: true
author: "local"
description: "Automotive AI governance — safety-critical controls for connected vehicle systems"
# Capture metadata only so engineering and safety teams can audit behavior without retaining raw driver or telematics data.
history:
capture:
enabled: true
mode: metadata_only
policies:
chain:
- "prompt-injection"
- "rbac"
- "pii-detector"
- "dlp-filter"
- "safety-filter"
- "agent-firewall"
- "code-sanitizer"
- "bias-monitor"
- "citation-verifier"
- "quality-scorer"
- "audit-logger"
policy:
prompt-injection:
embedding_threshold: 0.82
response:
action: block
# Only identified safety roles may influence vehicle-related AI workflows.
rbac:
deny_if_missing:
- "X-User-ID"
- "X-Org-ID"
- "X-Safety-Role"
pii-detector:
action: redact
detect_patterns:
- "(?i)(?:driver|operator)\\s*(?:id|license)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
- "(?i)\\btelematics\\s+(?:data|feed|log)\\b"
- "(?i)\\blocation\\s+(?:history|trail|log)\\b"
- "(?i)\\bbiometric\\s+(?:data|template|identifier|record)\\b"
# Safety defects, recalls, and supplier economics must never be bulk extracted casually.
dlp-filter:
detect_patterns:
- "(?i)\\bcrash\\s+test\\s+(?:data|results|report)\\b"
- "(?i)\\bsafety\\s+recall\\b"
- "(?i)\\bdefect\\s+(?:report|notice|record)\\b"
- "(?i)\\bproprietary\\s+(?:algorithm|model|formula)\\b"
- "(?i)\\btrade\\s+secret\\b"
- "(?i)\\bsupplier\\s+cost\\s*[:#-]?\\s*\\$?\\d[\\d]*(?:\\.\\d{2})?"
blocked_terms:
- "bulk crash export"
- "dump recall database"
- "export all defect reports"
- "supplier cost download"
action: block
# Block instructions that weaken vehicle safety mechanisms or ADAS safeguards.
safety-filter:
mode: automotive
block_if:
- "disable_airbag"
- "override_brakes"
- "disable_adas"
- "bypass_collision_avoidance"
- "override_speed_limiter"
- "disable_lane_departure"
- "disable_stability_control"
- "override_emergency_brake"
- "modify_steering_assist"
- "disable_tire_pressure_monitoring"
action: block
agent-firewall:
allowed_tools:
- "documentation_search"
- "specification_lookup"
- "recall_database_query"
blocked_tools:
- "vehicle_network_access"
- "ecu_flash"
- "can_bus_write"
- "ota_deploy"
max_actions_per_session: 50
# Never allow generated code to alter safety-critical control paths or deployment channels.
code-sanitizer:
enabled: true
block_on_match: true
additional_patterns:
- "disable_airbag"
- "override_brake_controller"
- "patch_adas_threshold"
- "can_bus_write"
- "ecu_flash"
# Vehicle safety and ergonomics must work across different occupant profiles.
bias-monitor:
threshold: 0.80
citation-verifier:
require_sources: true
require_source_match: true
min_confidence: 0.90
quality-scorer:
industry: automotive
thresholds:
min_aggregate: 0.85
min_accuracy: 0.92
min_relevancy: 0.85
audit-logger: {}