AI Governance: Model Cards, Risk and Compliance
A model card is not a document you write once. It is the visible surface of a governance system â the thing an auditor, a customer, or an on-call engineer opens to answer three questions: what is this model, what is it allowed to do, and how do we know it is still behaving. Teams that treat governance as paperwork produce documents that are stale on the day they are approved. Teams that treat it as an operating discipline produce artifacts that update themselves because they are generated from the same pipelines that deploy the model.
The pressure making this urgent is regulatory. The EU AI Act imposes tiered obligations based on use case risk, GDPR constrains personal-data processing, the NIST AI Risk Management Framework offers a voluntary structure many organizations adopt as a baseline, and ISO/IEC 42001 provides a certifiable management-system standard. Even in jurisdictions without AI-specific law, existing product liability and sector rules (financial services, medical devices) apply.
This lesson covers the three working pieces of an AI governance program: a model card that stays current, a risk assessment that produces actionable findings rather than a spreadsheet nobody reads, and compliance mapping that turns regulation-specific language into checkable requirements.
Governance as a system, not a document
Effective governance has four moving parts that feed each other. Policy defines who may deploy what, under which conditions. Assessment evaluates each model against that policy before release. Documentation records the assessment and the model's intended boundaries. Monitoring verifies after release that reality still matches what was documented. When any one part is missing, the others degrade: policy without assessment is theater, assessment without documentation evaporates, documentation without monitoring goes stale.
The design principle that makes this survivable is automation at the boundaries. Anything a pipeline already knows â model version, training data hash, evaluation metrics, latency profile â should flow into documentation automatically. Human effort belongs on the judgments a pipeline cannot make: intended use, known failure modes, ethical considerations. Splitting the work that way keeps documentation accurate precisely because accuracy requires no extra human discipline.
The model card as a living artifact
A model card should answer the reader's questions in the order they arise. Who made this, what does it do, what was it trained on, how was it evaluated, where should it not be used, and what residual risks remain. The structure below is the working implementation:
from dataclasses import dataclass, field
from datetime import datetime
from typing import Dict, List
@dataclass
class ModelCard:
name: str
version: str
owner: str
intended_use: List[str]
out_of_scope: List[str]
training_data: Dict[str, str]
metrics: Dict[str, float]
limitations: List[str]
ethical_notes: List[str]
created_at: str = field(default_factory=lambda: datetime.now().isoformat())
def to_markdown(self) -> str:
lines = [
f"# Model Card: {self.name}",
"",
f"- **Version:** {self.version}",
f"- **Owner:** {self.owner}",
f"- **Last updated:** {self.created_at}",
"",
"## Intended Use",
*[f"- {u}" for u in self.intended_use],
"",
"## Out of Scope",
*[f"- {u}" for u in self.out_of_scope],
"",
"## Training Data",
*[f"- **{k}:** {v}" for k, v in self.training_data.items()],
"",
"## Evaluation Results",
*[f"- **{k}:** {v}" for k, v in self.metrics.items()],
"",
"## Limitations",
*[f"- {l}" for l in self.limitations],
"",
"## Ethical Considerations",
*[f"- {e}" for e in self.ethical_notes],
]
return "\n".join(lines)
card = ModelCard(
name="Support Ticket Triage",
version="2.3.1",
owner="customer-ops-ml",
intended_use=["Priority routing", "Category suggestion for human review"],
out_of_scope=["Automatic refund decisions", "Any use outside English tickets"],
training_data={"source": "2023â2025 resolved tickets", "size": "140k examples"},
metrics={"accuracy": 0.91, "macro_f1": 0.87},
limitations=["Degrades on dialectal input", "Rare categories underrepresented"],
ethical_notes=["Escalation stays human-in-the-loop by policy"],
)
The out-of-scope section does more compliance work than any other field. It converts an abstract risk conversation into an explicit, checkable boundary that engineering can enforce â if the model is out of scope for refund decisions, a product rule should prevent that integration from being built. A card whose out-of-scope list has no corresponding enforcement mechanism is documentation without governance.
Generating the card from structured data (as above) rather than writing it freehand is the difference between a card that ships with every version and a card that lags months behind production.
Assessing risk before deployment
Risk assessment turns "is this safe?" into a repeatable procedure. Score each risk category â bias and fairness, privacy, security, reliability, transparency â on likelihood and impact, then map the combination to a risk level with a required mitigation. The value is not the scores themselves but the enforced follow-through: a HIGH rating should gate deployment until a named mitigation lands.
from dataclasses import dataclass
from enum import Enum
from typing import Dict, List
class RiskLevel(Enum):
LOW = "low"
MEDIUM = "medium"
HIGH = "high"
CRITICAL = "critical"
@dataclass
class Finding:
category: str
description: str
level: RiskLevel
mitigation: str
owner: str
def assess(context: Dict) -> List[Finding]:
findings: List[Finding] = []
if context.get("uses_personal_data"):
findings.append(Finding(
category="Privacy",
description="Model processes personal data at inference time",
level=RiskLevel.HIGH,
mitigation="Minimize retention, encrypt at rest, document lawful basis",
owner="privacy-lead",
))
if context.get("high_stakes_decisions"):
findings.append(Finding(
category="Reliability",
description="Output influences high-stakes decisions without human review",
level=RiskLevel.CRITICAL,
mitigation="Mandatory human approval step with logged rationale",
owner="product-owner",
))
if not context.get("bias_audit_done"):
findings.append(Finding(
category="Bias and Fairness",
description="No bias audit across demographic groups",
level=RiskLevel.HIGH,
mitigation="Run subgroup metrics before release; re-run quarterly",
owner="ml-lead",
))
if not context.get("red_team_done"):
findings.append(Finding(
category="Security",
description="No adversarial prompt testing for generative components",
level=RiskLevel.MEDIUM,
mitigation="Red-team suite in CI with passing threshold",
owner="security-lead",
))
return findings
def gate(findings: List[Finding]) -> Dict:
blocking = [f for f in findings if f.level in (RiskLevel.HIGH, RiskLevel.CRITICAL)]
return {
"approved": len(blocking) == 0,
"blocking": [f"{f.category}: {f.mitigation} ({f.owner})" for f in blocking],
"accepted": [f"{f.category}: {f.mitigation}" for f in findings if f not in blocking],
}
findings = assess({
"uses_personal_data": True,
"high_stakes_decisions": False,
"bias_audit_done": False,
"red_team_done": True,
})
decision = gate(findings)
The gate function is the part worth copying. Assessments that only produce a report are read once; assessments wired into the release process are read every time, and their findings get owners and deadlines automatically. Treat HIGH and CRITICAL as deployment blockers by default, with a documented exception process for anything a named leader signs off on.
Mapping regulation to checkable requirements
Regulations arrive in prose; engineering needs checkboxes. The translation step â turning each obligation into a boolean that a model's metadata can answer â is where governance becomes operational. The regimes below differ in when they apply and what evidence they expect, but the checking mechanism can be shared:
| Regime | Trigger | Core obligations | Evidence artifact |
|---|---|---|---|
| EU AI Act (high-risk) | Use case listed in the annexes | Risk process, data governance, technical documentation, human oversight | Model card, eval reports, oversight log |
| GDPR Article 22 | Automated decisions with legal or similarly significant effect | Lawful basis, human intervention, meaningful information about the logic | Decision log, DPIA, reviewer access record |
| NIST AI RMF | Voluntary organizational adoption | Govern, map, measure, manage across the lifecycle | Risk register, measurement reports |
| ISO/IEC 42001 | Certification or customer requirement | Documented management system with continuous improvement | Internal audit records, policy set |
A compliance checker encodes obligations per regime and evaluates them against what the pipeline records:
REQUIREMENTS = {
"eu_ai_act_high_risk": [
("risk_management_system", "A documented risk process exists for this system"),
("data_governance", "Training data has documented provenance and quality checks"),
("technical_documentation", "Model card and eval reports current for this version"),
("transparency", "Users are informed they interact with an AI system"),
("human_oversight", "A human can override or stop the system"),
("accuracy_robustness", "Accuracy and robustness metrics measured on target data"),
],
"gdpr_art22": [
("lawful_basis", "Lawful basis recorded for personal-data processing"),
("human_intervention", "Ability to obtain human review of decisions"),
("explainability", "Meaningful information about the logic available"),
("data_minimization", "Only necessary fields processed at inference"),
],
}
def evaluate(profile: Dict, regime: str) -> Dict:
results = {}
for key, description in REQUIREMENTS[regime]:
results[key] = {
"description": description,
"satisfied": bool(profile.get(key, False)),
"evidence": profile.get(f"{key}_evidence", ""),
}
return results
def render(results: Dict) -> str:
lines = ["# Compliance Evaluation", ""]
for key, r in results.items():
status = "PASS" if r["satisfied"] else "FAIL"
lines.append(f"- [{status}] **{key}** â {r['description']}")
if r["evidence"]:
lines.append(f" - Evidence: {r['evidence']}")
return "\n".join(lines)
Two structural lessons sit behind that code. Evidence fields matter as much as the booleans â a PASS with no link to the artifact that proves it will not survive an audit. And regimes overlap: human oversight satisfies obligations under the AI Act, GDPR's automated-decision rules, and most internal policies at once. Model obligations once in a shared vocabulary and map each regime onto it, rather than maintaining separate checklists per regulation that drift out of sync.
Roles, cadence, and the operating rhythm
Frameworks name functions â risk management, documentation, oversight â but not who performs them or how often, and that gap is where programs stall. A workable assignment gives every model a single accountable owner (usually the engineering lead who ships it), a reviewer independent of that owner (a risk or compliance function), and an executive sponsor for exceptions. The separation between owner and reviewer is the load-bearing piece: the person accountable for shipping cannot also be the person who approves the exception, or the exception becomes the default path.
Cadence should match how fast the system changes rather than the calendar year. Prompt-only updates to a generative feature might warrant a lightweight automated evaluation check per release and a quarterly human review; a model retrained on new data warrants a fresh assessment before promotion; a change in intended use â expanding from drafting assistance to automated decisions â warrants the full pre-deployment assessment again regardless of how small the code diff looks. Annual reviews exist as a backstop for everything that slipped through, not as the primary control.
Writing these rules down takes a page and prevents the most common governance failure: good process that exists informally in one senior person's judgment and evaporates when they change teams. An operating rhythm with defined roles, triggers, and artifacts is also what auditors look for, because it demonstrates a system rather than a series of isolated good decisions.
Continuous auditing and the feedback loop
Pre-release assessment covers the model you tested; production is the model you actually have. Continuous governance therefore monitors drift in both directions: statistical drift in inputs and outputs (which can invalidate the training-data assumptions behind the card) and behavioral drift against the documented boundaries â is the model being used in ways the out-of-scope section forbids?
The loop closes when findings feed back into process. Quarterly reviews should ask not only whether each model still meets its thresholds, but whether the assessment itself caught what it should have: incidents that governance missed become new checklist items, and checklist items that never fire get simplified. Governance programs die when they accumulate obligations without pruning; they live when the review process improves the process itself.
Common Mistakes
Writing model cards by hand and updating them annually
Fix: Generate cards from pipeline metadata so every release ships with an accurate version.
Risk assessments that produce reports but no deployment gate
Fix: Wire HIGH and CRITICAL findings into the release process with named owners and deadlines.
Keeping a separate compliance checklist per regulation
Fix: Model shared obligations once (evidence-backed booleans) and map each regime onto the shared vocabulary.
Treating out-of-scope lists as disclaimers
Fix: Back every out-of-scope entry with a technical enforcement rule; unenforced boundaries do not govern.
Assessing only before launch
Fix: Monitor drift against the documented boundaries continuously and feed incidents back into the checklist.
Key Takeaways
- Governance is policy, assessment, documentation, and monitoring â remove any one and the rest degrade.
- Generate model cards from pipeline metadata; hand-written documentation goes stale on the first hotfix.
- Risk assessments only change behavior when their findings gate deployment and carry named owners.
- Translate regulation into evidence-backed booleans, not prose â that is what makes compliance checkable.
- Continuous audit catches drift between the model you assessed and the model you are actually running.