Published
Enterprise AI Governance: Model Registry, Evaluation Suites and Release Gates
Keep enterprise AI under control: a model registry, task-specific eval suites, LLM-as-judge and RAG metrics, risk tiers and release gates for KVKK and GDPR.
- Written by
- Ali ÖzdurmuşFounder, Veni AI
- Updated
- Reading time
- 5 min read

The first AI application in a company is usually a project. The fifth one is a portfolio, and a portfolio needs governance. Which model runs where? Who owns it? How do you know the new version is not worse than the old one? Can you show an auditor what the system did last March?
This guide covers the practical answer: a registry, an evaluation suite, risk tiers and release gates.
Why Governance Becomes Urgent
- Several models, prompts and versions run at the same time and need clear ownership.
- AI output increasingly feeds critical workflows: approvals, customer replies, financial records.
- Data protection rules (KVKK in Türkiye, GDPR in the EU) and, for companies serving EU markets, the EU AI Act expect documented control.
- Providers release new model versions often. Every switch is a change that needs testing.
The Governance Stack
| Layer | What it does |
|---|---|
| Registry | Tracks every model, prompt version, data source, owner and the workflows that use it |
| Evaluation suite | Automated tests and regression checks for each use case |
| Risk classification | Assigns each use case a risk tier that decides how much review it needs |
| Monitoring and audit logs | Records behavior in production and keeps an incident trail |
What goes into the registry
- id: invoice-extraction
owner: finance-ops
model: provider/model-id@version
prompt_version: v3.2
data_sources: [erp.invoices, scanned_documents]
personal_data: false
risk_tier: medium
last_evaluation: 2026-10-01
eval_score: 0.96Treat prompts as versioned artifacts, exactly like code. A prompt change is a release.
Evaluation: Your Tests, Not the Leaderboard
Public benchmarks (MMLU, HumanEval, MT-Bench and their successors) are useful for a first shortlist. They do not tell you whether a model can read your supplier invoices or answer from your HR policy. For that you need task-specific evaluation.
1. Build a test set from real cases
- 100–300 anonymized examples per use case is a solid start.
- Include the hard cases: poor scans, mixed Turkish and English, missing fields, ambiguous questions.
- Store the expected output for each case.
2. Pick metrics that match the task
| Task | Metrics |
|---|---|
| Classification / routing | Accuracy, precision, recall, F1 |
| Extraction | Field-level exact match, missing-field rate |
| Generation (summaries, replies) | LLM-as-judge score, human review sample |
| RAG answers | Faithfulness, answer relevance, context precision |
| All tasks | Latency (p95), cost per task, safety flags |
from sklearn.metrics import precision_score, recall_score, f1_score
def classification_metrics(predictions, labels):
return {
"precision": precision_score(labels, predictions, average="weighted"),
"recall": recall_score(labels, predictions, average="weighted"),
"f1": f1_score(labels, predictions, average="weighted"),
}3. RAG evaluation
from ragas import evaluate
from ragas.metrics import faithfulness, answer_relevancy, context_precision
results = evaluate(
dataset, # questions, answers, retrieved contexts, ground truths
metrics=[faithfulness, answer_relevancy, context_precision],
)Measure retrieval separately (recall@K, MRR) so you know whether a bad answer came from search or from generation.
4. LLM-as-judge
For open-ended outputs, a second model can grade answers against written criteria:
def llm_judge(question, answer, criteria):
prompt = f"""Grade the answer from 1 to 10 against the criteria.
Question: {question}
Answer: {answer}
Criteria: {criteria}
Respond as JSON: {{"score": <1-10>, "reasoning": "<one sentence>"}}"""
result = client.chat.completions.create(
model=JUDGE_MODEL,
response_format={"type": "json_object"},
messages=[{"role": "user", "content": prompt}],
)
return json.loads(result.choices[0].message.content)Calibrate the judge: have people grade a sample and check that the judge agrees with them before you trust it.
5. A/B comparison between versions
class ModelABTest:
def __init__(self, model_a, model_b, judge):
self.a, self.b, self.judge = model_a, model_b, judge
self.results = {"a": 0, "b": 0, "tie": 0}
def compare(self, prompt):
winner = self.judge.pick_better(prompt, self.a.generate(prompt), self.b.generate(prompt))
self.results[winner] += 1Randomize which answer the judge sees first; judges have position bias.
Risk Tiers
| Tier | Examples | Required controls |
|---|---|---|
| Low | Internal search, drafting help | Evaluation before release, usage logging |
| Medium | Data extraction into business systems, customer-facing drafts | Plus: thresholds, sampling review, rollback plan |
| High | Decisions affecting customers, payments, health or employment | Plus: human approval for every action, legal review, full audit trail |
Release Gates
A release gate is an automated check that blocks a new model, prompt or retrieval change if it scores below the agreed threshold.
THRESHOLDS = {"invoice-extraction": {"field_accuracy": 0.95, "p95_latency_s": 8}}
def release_gate(use_case, eval_results):
for metric, minimum in THRESHOLDS[use_case].items():
value = eval_results[metric]
ok = value <= minimum if metric.endswith("latency_s") else value >= minimum
if not ok:
raise ReleaseBlocked(f"{use_case}: {metric}={value} misses {minimum}")Run the gate in CI on every change, and again whenever the provider announces a new model version you plan to adopt.
Monitoring in Production
- Output filters that catch personal data or confidential terms before they leave the system
- Drift checks: re-run the evaluation set on a schedule against the live system
- Incident log: what went wrong, impact, fix, and which test now covers it
- Clear escalation paths across product, security and legal teams
Quick Start
- Inventory every AI use case and assign an owner.
- Classify each one into a risk tier.
- Build an evaluation set for the critical workflows first.
- Add release gates to the deployment pipeline.
- Translate compliance requirements (KVKK, GDPR, sector rules) into concrete technical checks.
- Review the registry and results on a fixed cadence, monthly or quarterly.
Summary
AI maturity is measured as much by control as by model quality. A registry tells you what runs where, evaluation tells you whether it works on your tasks, risk tiers tell you how careful to be, and release gates make sure nothing slips through.
Veni AI builds governance and evaluation into every AI application we deliver, from the test set to the audit log. See how we work or talk to us about your AI portfolio.


