|
| 1 | +# agt-policies-nigeria |
| 2 | +# AI Agent Model Routing Controls — Universal Safety Control |
| 3 | +# |
| 4 | +# Regulatory alignment: |
| 5 | +# OWASP Agentic AI Top 10 — LLM03 Model Theft / LLM05 Supply Chain |
| 6 | +# NIST AI RMF — GOVERN 1.1, GOVERN 2.2 |
| 7 | +# EU AI Act Art. 9 — risk management for high-risk AI systems |
| 8 | +# NDPA 2023 s.24 — appropriate technical measures for processing |
| 9 | +# CBN Risk-Based Supervision — model risk management requirements |
| 10 | +# |
| 11 | +# ⚠️ This is a universal safety control — jurisdiction-independent. |
| 12 | +# Governs which AI models may process which task types. |
| 13 | +# Prevents sensitive workloads (PII processing, financial decisions, |
| 14 | +# fraud detection) from being routed to unapproved or unverified models. |
| 15 | +# |
| 16 | +# Governance flow: |
| 17 | +# model on banned list → deny |
| 18 | +# sensitive task + unapproved model → deny |
| 19 | +# sensitive task + no model specified → escalate |
| 20 | +# sensitive task + approved model → audit |
| 21 | +# non-sensitive task → allow |
| 22 | + |
| 23 | +version: "1.0" |
| 24 | +name: agent-model-routing |
| 25 | +description: > |
| 26 | + Controls which AI models may process which task types. Prevents sensitive |
| 27 | + workloads (PII processing, financial decisions, fraud detection, AML screening, |
| 28 | + KYC review) from being routed to unapproved, unverified, or banned models. |
| 29 | + Deployer-configurable model lists and sensitive task type classifications. |
| 30 | +
|
| 31 | +config: |
| 32 | + # Runtime configuration keys (passed via OPA data.config.model_routing.*) |
| 33 | + sensitive_task_types: |
| 34 | + description: > |
| 35 | + Set of task_type values (from context.task_type) that require an |
| 36 | + explicitly approved model. Defaults to: pii_processing, financial_decision, |
| 37 | + fraud_detection, medical_advice, legal_advice, authentication, |
| 38 | + credit_scoring, kyc_review, aml_screening. |
| 39 | + example: ["pii_processing", "financial_decision", "hr_decision"] |
| 40 | + approved_sensitive_models: |
| 41 | + description: > |
| 42 | + Set of model identifiers approved to process sensitive tasks. |
| 43 | + Defaults to a list of major frontier models. Override to restrict |
| 44 | + to on-premises or enterprise-contracted models only. |
| 45 | + example: ["gpt-4o", "claude-opus-4", "internal-compliant-model-v2"] |
| 46 | + banned_models: |
| 47 | + description: > |
| 48 | + Set of model identifiers unconditionally blocked from any task. |
| 49 | + Use to prevent use of deprecated, unverified, or non-compliant models. |
| 50 | + example: ["gpt-3.5-turbo", "unknown-model-xyz"] |
| 51 | + require_model_on_sensitive: |
| 52 | + description: > |
| 53 | + Boolean. If true (default), a sensitive task with no model specified |
| 54 | + in context.model escalates rather than allows. |
| 55 | + example: true |
| 56 | + |
| 57 | +rules: |
| 58 | + |
| 59 | + # ========================================================================= |
| 60 | + # Deny: Banned Model |
| 61 | + # ========================================================================= |
| 62 | + |
| 63 | + - name: model-routing-banned |
| 64 | + description: > |
| 65 | + The requested model (context.model) is on the banned list. |
| 66 | + Blocked unconditionally regardless of task type. |
| 67 | + action: deny |
| 68 | + priority: 100 |
| 69 | + |
| 70 | + # ========================================================================= |
| 71 | + # Deny: Unapproved Model on Sensitive Task |
| 72 | + # ========================================================================= |
| 73 | + |
| 74 | + - name: model-routing-unapproved-for-sensitive-task |
| 75 | + description: > |
| 76 | + A sensitive task type (pii_processing, financial_decision, etc.) was |
| 77 | + requested with a model that is not on the approved_sensitive_models list. |
| 78 | + Use an approved frontier or enterprise-contracted model instead. |
| 79 | + action: deny |
| 80 | + priority: 90 |
| 81 | + default_sensitive_task_types: |
| 82 | + - pii_processing |
| 83 | + - financial_decision |
| 84 | + - fraud_detection |
| 85 | + - medical_advice |
| 86 | + - legal_advice |
| 87 | + - authentication |
| 88 | + - credit_scoring |
| 89 | + - kyc_review |
| 90 | + - aml_screening |
| 91 | + |
| 92 | + # ========================================================================= |
| 93 | + # Escalate: Sensitive Task with No Model Specified |
| 94 | + # ========================================================================= |
| 95 | + |
| 96 | + - name: model-routing-no-model-for-sensitive |
| 97 | + description: > |
| 98 | + A sensitive task type was requested but context.model was not specified |
| 99 | + or was empty. Escalate to ensure a human explicitly selects an approved |
| 100 | + model before the task proceeds. |
| 101 | + action: escalate |
| 102 | + priority: 85 |
| 103 | + |
| 104 | + # ========================================================================= |
| 105 | + # Audit: Sensitive Task with Approved Model |
| 106 | + # ========================================================================= |
| 107 | + |
| 108 | + - name: model-routing-audit-approved-sensitive |
| 109 | + description: > |
| 110 | + A sensitive task type was processed with an approved model. |
| 111 | + Log for model governance and compliance audit trail. |
| 112 | + action: audit |
| 113 | + priority: 50 |
0 commit comments