Zero-Retention Routing
Route requests only to targets that operators mark as zero retention, with local privacy safeguards.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Similarity threshold 0.80 | Block |
| pii-detector | Request | 2 custom identifier patterns | Redact |
| data-routing-policy | Request | Zero-data-retention providers only; providers that do not train on data | Block |
| quality-scorer | Response | Accuracy ≥ 0.85; combined score ≥ 0.80 | Block |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "cfg_zero_data_retention"
name: "zero-data-retention"
version: "0.2.0"
enabled: true
author: "local"
description: "Zero Data Retention demo — privacy-maximizing routing with defense-in-depth safeguards"
# Defense in depth: redact sensitive content before routing, then only select providers with strict no-retention guarantees.
# Optional redacted history capture for deployments whose schema/runtime supports it:
# history:
# capture:
# enabled: true
# mode: redacted
policies:
chain:
- "prompt-injection"
- "pii-detector"
- "data-routing-policy"
- "quality-scorer"
- "audit-logger"
policy:
prompt-injection:
embedding_threshold: 0.80
response:
action: block
# Defense in depth: catch personal data before any compliant provider ever sees it.
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)(?:health|member|patient)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{6,20}"
data-routing-policy:
require_zero_data_retention: true
require_no_training: true
on_no_compliant_provider: "block"
log_provider_selection: true
quality-scorer:
thresholds:
min_aggregate: 0.80
min_accuracy: 0.85
audit-logger: {}
providers:
targets:
# US processing region; typical compliance posture includes SOC 2 Type II and ISO 27001.
- id: "openai-zdr"
provider: "openai"
model: "gpt-5.4-mini"
base_url: "https://api.openai.com"
secret_key_ref:
env: "OPENAI_API_KEY"
data_policy:
zero_data_retention: true
training_opt_out: true
allow_internet_egress: false
# Example additional compliant targets for production rollout:
# - id: "azure-openai-baa"
# provider: "azure-openai"
# provider_type: "azure-openai"
# format: "openai"
# model: "gpt-5.4-mini"
# base_url: "https://your-resource.openai.azure.com"
# secret_key_ref:
# env: "AZURE_OPENAI_API_KEY"
# api_key_header: "api-key"
# api_key_prefix: ""
# azure_deployment: "gpt-5.4-mini"
# azure_api_version: "2024-02-01"
# data_policy:
# zero_data_retention: true
# training_opt_out: true
# data_processing_region: "eu"
# compliance_certifications:
# - "HIPAA BAA"
# - "SOC 2 Type II"
# - "ISO 27001"
#
# - id: "google-vertex-dpa"
# provider: "google-vertex"
# provider_type: "google-vertex"
# format: "google-gemini"
# model: "gemini-1.5-pro"
# base_url: "https://us-central1-aiplatform.googleapis.com"
# gcp_project: "your-gcp-project"
# gcp_region: "us-central1"
# secret_key_ref:
# env: "VERTEX_AI_API_KEY"
# data_policy:
# zero_data_retention: true
# training_opt_out: true
# data_processing_region: "us"
# compliance_certifications:
# - "Google Cloud DPA"
# - "ISO 27018"
# - "SOC 2 Type II"
# Explicit non-compliant example used to prove routing exclusion during audits.
- id: "anthropic-standard"
provider: "anthropic"
provider_type: "anthropic"
format: "anthropic"
model: "claude-sonnet-4-20250514"
base_url: "https://api.anthropic.com"
secret_key_ref:
env: "VERDICTAN_ANTHROPIC_API_KEY"
api_key_header: "x-api-key"
api_key_prefix: ""
data_policy:
zero_data_retention: false
training_opt_out: true
allow_internet_egress: false
routing:
strategy: "ordered"