Anatomy of AI Governance & Risk
Policies, model cards, approvals, audit trails for regulated teams.

Policies, model cards, approvals, audit trails โ how regulated teams ship AI that is safe, compliant, and trustworthy without slowing innovation to a crawl.
TL;DRโ
- AI governance turns innovation into trust: safe, ethical, lawful, and aligned with company values.
- Eight pillars: Safety ยท Fairness ยท Privacy ยท Security ยท Accountability ยท Transparency ยท Reliability ยท Compliance.
- Match controls to risk tier (Minimal โ Critical). Don't over-govern low risk; never under-govern high risk.
- Every system has a model card, an approval trail, and an audit log.
- Trust by design. Guardrails live in code, not slide decks.
Why this mattersโ
AI without governance is a liability waiting to happen โ biased outputs, leaked PII, surprise costs, unexplained decisions, or a regulator at your door. Governance done well is the opposite of slow: it's the operating system that lets you ship AI faster because the safety, legal, and ethical questions have already been answered.
Bottom line: Safe, reliable, compliant AI creates value without surprises.
The Big Picture โ Governance Lifecycleโ
Principlesโ
- ๐ก๏ธ Safety first
- โ๏ธ Fairness
- ๐ค Accountability
- ๐ช Transparency
- ๐ Privacy
- ๐งฑ Security
- ๐ Compliance
Bottom line: Everything else is details. These are the guardrails.
Governance Pillarsโ
| Pillar | What it ensures |
|---|---|
| ๐ก๏ธ Safety | Prevent harm, unsafe outputs, misuse, security risks |
| โ๏ธ Fairness | Avoid bias and discrimination; treat everyone fairly |
| ๐ Privacy | Respect data minimization, consent, and rights |
| ๐ Security | Protect systems, prompts, data, and models |
| ๐ค Accountability | Clear ownership, approvals, and escalation |
| ๐๏ธ Transparency | Explain decisions where possible โ operationalized usage |
| โ Reliability | Consistency, robustness, and measurable quality |
| ๐ Compliance | Meet laws, regulations, industry standards, and contracts |
Risk Classification Matrixโ
Match controls to risk. Don't over-govern low risk; never under-govern high risk.
| Risk level | Description | Examples | Controls |
|---|---|---|---|
| ๐ด Critical (High) | Significant impact on safety, rights, finances, or reputation | Healthcare diagnosis, credit decisions, PII handling | Full approval, red team, monitoring, audit, human-in-the-loop, strict usage |
| ๐ High | High business impact, sensitive data, regulatory exposure | HR screening, fraud detection, AI agents with actions | Risk review, evals, monitoring, approvals, usage limits |
| ๐ก Medium | Moderate impact or lower sensitivity | Internal copilots, content summarization, code suggestions | Standard review, logging, evals |
| ๐ข Low | Low impact, minimal sensitivity | Help docs, internal Q&A, non-sensitive tasks | Basic logging, monitoring |
| ๐ต Minimal | Negligible impact or no personal data | Playground, research prototypes | Logging (optional), segment environment |
๐ก Tip: Match controls to risk. Re-assess as the use case changes. A copilot that "just summarizes" turns into a regulated system the moment it starts taking actions for users.
Model Card (example)โ
A model card is the fact sheet for any model or AI system. It travels with the system across teams, audits, and incidents.
model_card:
model_name: claude-sonnet-4
provider: anthropic
version: 2025-05-01
release_date: 2025-05-01
intended_use:
- Code assistance
- Documentation generation
- Internal Q&A
out_of_scope:
- Medical / legal advice
- Financial advice
- High-risk autonomous decisions
training_data_summary:
- Public data, licensed data
- No customer data used for training
performance:
mmlu: 0.86
humaneval: 0.92
accuracy_internal_bench: 0.89
limitations:
- May hallucinate
- Knowledge cutoff: 2024-12
- Bias and fairness risks exist
safety_measures:
- PII filtering
- System prompt guardrails
- Hooked sandbox
- Logging & audit
known_risks:
- Hallucinations
- Bias suggestions
risks_mitigated:
- Prompt injection (via prompt guardrails)
- Eval suite (safety, bias, jailbreak)
- Logging & drift detection
contact: ai-governance@company.com
approval:
approved_by: <name/role>
date: 2025-05-10
Model card must-havesโ
- โ Identity & version
- โ Intended use
- โ Out of scope
- โ Training data summary
- โ Performance metrics
- โ Limitations
- โ Risks
- โ Mitigations & guardrails
- โ Evaluation results
- โ Monitoring plan
- โ Approval & review cycle
- โ Owner & contact
๐ก Tip: Keep model cards up to date. Revisit on every material change โ new version, new use case, new data source, new region.
Approval Workflowโ
What each stage ownsโ
| Stage | Owner | Key questions |
|---|---|---|
| Submit | Product / Engineering | What problem, what data, what risk? |
| Risk Assessment | AI governance / risk | Which tier? Which controls? |
| Technical Review | Engineering / ML | Does it meet quality & safety bars? |
| Ethics & Legal Review | Legal ยท Privacy ยท Ethics | Lawful, fair, contractually OK? |
| Approval & Registration | Governance board | Sign-offs collected; registry updated |
| Deploy with Guardrails | Platform / SRE | RBAC, rate limits, logging on by default |
๐ก Tip: No production without approval. No exceptions. Make the approval workflow fast so it doesn't get bypassed.
Policy Framework (starter)โ
A short, opinionated policy set beats a 200-page document nobody reads.
| Policy | What it covers |
|---|---|
| โ Acceptable Use | What AI can and cannot be used for |
| ๐๏ธ Data Classification | What data is allowed where |
| ๐ Access & Permissions | Who can do what, and how |
| ๐ฅ Human Oversight | When humans must be in the loop |
| ๐ก๏ธ Prompt & Tool Safety | Guardrails, content filters, tool sandboxing |
| ๐ Logging & Audit | Everything important is logged and traceable |
| ๐๏ธ Retention & Deletion | How long we keep data & logs |
| ๐ค Third-Party Models | Vendor assessment & contracts |
| ๐จ Incident Response | Containment plan (see Incident Response anatomy) |
| โป๏ธ Continuous Improvement | Measure, learn, and evolve |
Policy mini-templateโ
# Policy: <name>
**Owner:** <role> **Effective date:** YYYY-MM-DD **Review:** quarterly
## Purpose
Why this policy exists in one paragraph.
## Scope
Who & what is covered.
## Requirements
- MUST โฆ
- MUST NOT โฆ
- SHOULD โฆ
## Exceptions
How to request a documented exception.
## Enforcement
Detection, response, consequences.
## Related
Links to other policies, runbooks, regulations.
๐ก Tip: Policy in code beats policy in slides. Wire each requirement to a hook, eval, or CI check.
Data & Access Controlsโ
Data is a risk. Treat it like security.
| Control | What it ensures |
|---|---|
| ๐๏ธ Data minimization | Collect only what you need. โ Avoid sensitive data in prompts. |
| ๐ PII / PHI handling | Mask, pseudonymize, or disable. Follow regulations. |
| ๐๏ธ Secrets management | Never put secrets in prompts or logs. |
| ๐ฅ RBAC | Role-based access to tools, models, and data. |
| ๐๏ธ Environment segmentation | Dev / Staging / Prod are isolated. |
| ๐ซ Egress controls | Restrict outbound traffic from AI systems. |
๐ก Tip: A great rule of thumb: if it's not allowed in your data warehouse, it's not allowed in a prompt.
Evaluations & Red Teamingโ
Test before you trust. Continuously re-test.
| Eval | Focus | Measure |
|---|---|---|
| ๐ฏ Quality Eval | Accuracy, groundedness, coherence, helpfulness | โฅ threshold |
| ๐ก๏ธ Safety Eval | Toxicity, hallucination, prompt injection, policy violations | 0 tolerance |
| โ๏ธ Fairness Eval | Bias, disparate impact, representation, equal treatment | Fairness metrics |
Red teamingโ
- ๐งจ Adversarial prompts โ try to break it on purpose.
- ๐ Jailbreaks โ can guardrails be bypassed?
- ๐ช Edge cases โ out-of-distribution inputs.
- ๐ ๏ธ Tool abuse โ misuse of agentic capabilities.
- ๐ฉน Data leakage โ can secrets or PII be coaxed out?
Cadenceโ
- ๐ข On release
- ๐ Monthly
- ๐ After changes
- โ ๏ธ Before high-risk use
๐ก Tip: Build the eval suite into CI; block the release if any safety eval fails. (See the Anatomy of AI Observability for the full eval framework.)
Audit Trails & Loggingโ
Logs are how you prove what happened โ to yourself, your team, and any regulator.
{
"ts": "2025-05-20T14:03:47Z",
"trace_id": "c7f3wabu2",
"user_id": "u_123",
"session_id": "s_abc123",
"action": "model.call",
"model": "claude-sonnet-4",
"input_tokens": 21000,
"output_tokens": 832,
"tool_calls": [
{ "tool": "git.diff", "ok": true, "ms": 310 }
],
"status": "success",
"policy_checks": ["pii_scan:ok", "egress:ok"],
"approval_ref": "AR-2025-051"
}
Log what mattersโ
- โ Who did what, when
- โ Model, version, prompt hash
- โ Tokens, latency, cost
- โ Tools used & parameters
- โ Response (or approved hash)
- โ Decisions & approvals
- โ Policy checks (pass/fail)
Propertiesโ
- ๐ Immutable logs
- ๐ Searchable
- ๐๏ธ Retained per policy
- ๐ Correlated by
trace_id
๐ก Tip: Store logs in append-only storage (e.g. S3 + Object Lock). Make redaction a first-class capability, not a manual job.
Alerting & Risk Signalsโ
Pair every governance risk with an alert and a runbook.
Risk signals to monitorโ
- ๐ค Model drift detected
- ๐ Eval score below threshold
- ๐ง High hallucination rate
- ๐ก๏ธ Policy violation detected
- ๐ฐ Cost budget exceeded
- ๐ ๏ธ Unusual tool usage
- ๐ Secrets detected in logs
Alert routingโ
| Severity | Routes to |
|---|---|
| P0 | IC + on-call + exec |
| P1 | on-call + team |
| P2 | team channel |
| P3 / P4 | backlog |
Good alertsโ
- โ Actionable
- โ Low noise
- โ Right people
- โ Has runbook link
- โ Auto-escalate
- โ Auto-remediate where safe
๐ก Tip: Every governance alert links to a runbook and an owning team โ never to a generic mailing list.
Step-by-Step Setupโ
1. Pick your risk tiersโ
Adopt the matrix above; map your top 10 use cases to a tier.
2. Author core policies (one page each)โ
Start with: Acceptable Use, Data Classification, Access & Permissions, Human Oversight.
3. Create the model registryโ
A single, queryable registry that holds every model card and approval status.
4. Stand up the approval workflowโ
Submit form โ risk assessment โ tech review โ ethics/legal โ governance board โ registry.
5. Wire policy enforcement to codeโ
- Pre-prompt PII scan (hook).
- Egress allowlist (config).
- Tool sandbox (subagent permissions).
- RBAC on models & tools.
6. Ship the audit pipelineโ
Append-only logs ยท redaction ยท retention policy ยท trace_id everywhere.
7. Build the eval & red-team cadenceโ
CI on every release; monthly red team; cross-sign on high-risk launches.
8. Run a quarterly governance reviewโ
Review incidents, eval trends, exception requests, and policy effectiveness.
Variants for Different Team Settingsโ
๐ค Solo developerโ
- Minimal: one policy page, one model card per project, logs to a file.
- Use only Low/Minimal risk tiers.
๐ฅ Small team (2โ10)โ
- 3 policies (use, data, access), shared registry (one Markdown table), CI evals.
- Designate a part-time AI governance owner.
๐ข Enterprise / regulatedโ
- Full pillar coverage; governance board; legal/privacy/security review.
- Vendor risk assessments for all third-party models.
- Quarterly external audit; tabletop exercises; signed model cards.
- Regulations to map to: EU AI Act, GDPR, HIPAA, SOC 2, ISO/IEC 42001, NIST AI RMF.
๐ Open-source / communityโ
- Public model cards, public policies, anonymized audit summaries.
- Coordinated disclosure for safety issues.
- Community contribution guide for evals & red-team cases.
Bottom line: Same pillars. Escalating proof.
Common Patterns & Recipesโ
Pattern 1 โ Policy-as-code check (CI)โ
#!/usr/bin/env bash
# scripts/policy-check.sh โ runs on every PR touching prompts/agents
fail=0
./scripts/pii_scan.sh || fail=1
./scripts/egress_allowlist.sh || fail=1
./scripts/license_scan.sh || fail=1
exit $fail
Pattern 2 โ Pre-prompt guardrail hookโ
"PreToolUse": [
{ "matcher": "*",
"hooks": [{ "type": "command", "command": "./scripts/pii-scan.sh" }] }
]
Pattern 3 โ Approval registry entryโ
- id: AR-2025-051
system: code-reviewer-agent
risk_tier: high
model_card: model-cards/code-reviewer.yml
approvers:
- role: AI Governance Lead
- role: Privacy Officer
- role: Engineering Director
effective_date: 2025-05-10
next_review: 2025-08-10
conditions:
- PII scan must pass on every call
- No PHI inputs
Pattern 4 โ Exception requestโ
# Exception Request โ EX-2025-014
- System / use case:
- Requested by:
- Policy(ies) waived:
- Risk introduced:
- Compensating controls:
- Expiry date:
- Approvers (โฅ 2):
Pattern 5 โ Quarterly risk reviewโ
Inputs: incidents, eval trends, exceptions used, cost trend,
audit findings, regulatory changes.
Output: updated policies, controls, training plan.
Pattern 6 โ Vendor risk one-pagerโ
- Vendor / model:
- Data handling claims:
- Security certifications:
- Contractual protections:
- Data residency:
- Termination & deletion:
- Acceptable use:
Pattern 7 โ Decision card for high-risk deploysโ
- Decision:
- Alternatives considered:
- Evidence:
- Trade-offs:
- Mitigations:
- Decision owner & date:
Best Practices โ โ
- ๐ก๏ธ Match controls to risk.
- ๐ Policy-as-code wherever possible.
- ๐ One
trace_idacross logs, evals, approvals. - ๐ชช Model cards travel with the system.
- ๐ฅ Two-person rule for high-risk approvals.
- โป๏ธ Re-assess when use cases or data change.
- ๐งช Continuously red-team what's deployed.
- ๐ช Be transparent โ internally and (where possible) externally.
Anti-Patterns โโ
- ๐ซ Governance theater โ slide decks with no enforcement.
- ๐ซ One-size policy for every use case.
- ๐ซ Approve once, forget forever.
- ๐ซ Secrets / PII in prompts or logs.
- ๐ซ No red teaming or evals.
- ๐ซ Manual audit trails (will rot).
- ๐ซ Exceptions that never expire.
Troubleshootingโ
| Symptom | Likely cause | Fix |
|---|---|---|
| Approvals take weeks | Heavy process, no tiers | Adopt the risk matrix; lightweight path for low risk |
| Policies ignored | Not in code | Wire to hooks/CI; deny by default |
| Audit gaps | No trace_id standard | Standardize schema; enforce via library |
| Drift unnoticed | No eval cadence | Monthly evals + alerts |
| Vendor lock-in surprises | No contract review | Vendor risk one-pager + legal sign-off |
| Exception sprawl | No expiry | Cap to 90 days; mandatory renewal |
| Repeated incidents | No learning loop | Quarterly governance review |
Quick-Start Checklistโ
- โ Risk classification adopted (top 10 use cases mapped)
- โ Four core policies authored
- โ Model registry stood up
- โ Approval workflow wired (with SLA)
- โ Policy-as-code checks in CI
- โ Append-only audit logs + redaction
- โ Eval + red-team cadence
- โ Quarterly governance review on the calendar
๐ง Mantra: Trust by design. Guardrails in code. Measure everything. Learn always.
Starter Configsโ
governance/model-registry.ymlโ
systems:
- id: code-reviewer-agent
owner: @eng/ai-platform
risk_tier: high
model_card: model-cards/code-reviewer.yml
approvals:
ai_governance: { by: "<role>", date: 2025-05-10 }
privacy: { by: "<role>", date: 2025-05-10 }
legal: { by: "<role>", date: 2025-05-10 }
next_review: 2025-08-10
monitoring:
eval_dashboard: dashboards/code-reviewer.json
alert_runbook: runbooks/code-reviewer-quality.md
policies/acceptable-use.md (excerpt)โ
# Policy: Acceptable Use of AI
**Owner:** AI Governance **Effective:** 2025-05-01 **Review:** quarterly
## Requirements
- MUST use only approved models and systems (see registry).
- MUST NOT process sensitive data unless the system is approved for it.
- MUST log every action with a `trace_id` and `approval_ref`.
- MUST escalate any suspected policy violation via `/incident`.
## Exceptions
Submit via the Exception Request template (โค 90-day expiry).
Suggested layoutโ
governance/
โโโ policies/
โ โโโ acceptable-use.md
โ โโโ data-classification.md
โ โโโ access-and-permissions.md
โ โโโ human-oversight.md
โ โโโ retention-and-deletion.md
โโโ model-cards/
โ โโโ _template.yml
โ โโโ code-reviewer.yml
โโโ approvals/
โ โโโ AR-2025-051.yml
โ โโโ exceptions/EX-2025-014.md
โโโ evals/
โ โโโ cases/
โ โโโ rubrics/
โโโ audits/
โโโ 2025-Q2.md
Glossaryโ
- Model card โ Fact sheet describing a model's purpose, data, performance, risks, and mitigations.
- Risk tier โ Categorization of a use case by potential impact (Minimal โ Critical).
- RBAC โ Role-Based Access Control.
- Policy-as-code โ Policies enforced by automated checks rather than documents.
- Red teaming โ Adversarial testing to find weaknesses.
- Audit trail โ Immutable, searchable record of actions.
- Approval registry โ Source of truth for what's been approved, by whom, and until when.
- DPIA โ Data Protection Impact Assessment.
- AI RMF โ NIST AI Risk Management Framework.
- EU AI Act โ European regulation classifying AI systems by risk.
Further Readingโ
- Search: "NIST AI Risk Management Framework"
- Search: "ISO/IEC 42001 AI management system"
- Search: "EU AI Act overview 2026"
- Search: "model cards for model reporting Mitchell et al."
๐ช Promise, Goal, Approach, Loopsโ
- ๐ค Our promise: We improve the system, not the person. Curiosity over blame. Always.
- ๐ฏ Our goal: Safe, reliable, compliant AI that creates value without surprises.
- ๐งฑ Our approach: Trust by design. Guardrails in code. Measure everything.
- โป๏ธ Our loops: Observe โ Analyze โ Improve ยท Validate โ Deploy โ Observe.
"We don't rise to the level of our goals. We fall to the level of our systems." โ James Clear