Choose the task
Do not evaluate "AI in general"; evaluate one capability of one system: RAG faithfulness, PR size, tool-call correctness.
Collect the data
Capture layer + golden set with 100-300 examples, adversarial cases, and a regression set from real production bugs.
Build the grader
Code-based, model-based, and human grader. Production almost always needs a combination embedded in CI.
Why read this
If you are a CTO of a product company with 30-150 engineers, and in the last 12 months you have:
- AI features in the product: LLM search, agents, summarization, classifiers;
- rolled out an AI engineering toolchain: Copilot, Cursor, Claude Code, Codex;
- first agentic/MCP workflows with tool use;
- but no reproducible quality measurement for any of these loops,
then this conversation is about you.
Without evals, all three loops work “by feel” and in 2-3 quarters turn into verification debt: unpredictable SLO, non-passable audit trail, and bugs that are impossible to distinguish from vendor regression.
What I see in CTOs without an eval layer
- The AI feature was rolled back for the third time in a quarter. The team catches regressions not in CI, but in production through user complaints. The postmortem always sounds the same: “the model started answering differently after a prompt / context / version update.” Sometimes even without changes on your side.
- Review tax doubled in six months. Seniors manually validate every PR from an AI assistant. In public engineering-telemetry breakdowns in 2026, the same pattern keeps surfacing: median time to first review rises by multiples, time in review rises even more, and code output grows faster than review capacity. Without a grader in CI, the only gate is a human.
- Shadow evals. Each team has its own set of “check questions” in Google Docs. In 2026 survey signals, a notable share of developers access top AI tools through personal accounts. That means some evaluation runs never enter the corporate audit log at all.
- AI Act timelines became concrete. The AI literacy obligation applies from 02.02.2025, GPAI obligations from 08.2025, supervision/enforcement under Article 4 from 08.2026. “We test manually” is not evidence for an auditor.
- The junior pipeline breaks. Hiring signals from 2025-2026 show compression of the entry-level funnel, and engineering leaders already speak about reduced mentoring exposure after AI rollout. Juniors write code with AI, but cannot prove that the code works on the right data. It is easier for a senior to rewrite than to teach.
All these symptoms have one cause: the missing layer that turns “seems to work” into reproducible measurement explainable to the team, an auditor, and you three months later.
Recipe: 3 steps in three projections
The base rules are simple: task -> data -> evaluator. But a CTO in 2026 no longer has one AI loop, but three different loops with different risk models.
Step 1. Choose a concrete task
Not “evaluate AI,” but evaluate one concrete capability of one concrete system.
AI features in the product
Here the task is an observable product capability that can be checked on real user scenarios.
- LLM search: grounding, where the answer relies on retrieved fragments instead of hallucinating.
- RAG: retrieval accuracy and faithfulness.
- Product agent: success of target scenarios and tool-call correctness.
- Classifier / extractor: precision / recall on the golden set.
- Safety / refusal: correct refusal on dangerous requests.
AI tooling in the delivery system
Here the task is code conformance to the specification and SDLC rules, not "the model explained the solution nicely."
- Spec -> code conformance: the AI PR does what the acceptance criteria describe.
- PR size: AI does not exceed the line and file limit.
- Quality of generated tests: they catch real regressions.
- Refactoring safety: behavior after AI refactoring does not change.
- Security hygiene: AI-authored diff passes SAST, secret scan, and dependency checks.
Agentic / MCP scenarios
Here the task is the agent's action boundary: what it may call, where it must stop, and how it recovers after failure.
- Tool-call correctness and schema conformance.
- Scope adherence: the agent did not leave stated boundaries.
- Boundary violations: attempted write to a read-only resource or call to a forbidden endpoint.
- Long-task completion rate without manual rescue.
- Recovery from tool failures: 5xx, timeout, partial result.
MCP is a supply chain and an access-control surface. So in this projection, deny-by-default is the baseline, and the eval suite must catch boundary violations, not only answer quality. For broader routing of these practices, see the AI Engineering Radar.
Step 2. Collect data for evaluation
Before data collection, there is a precondition without which baseline is useless: capture layer.
On every run, log:
- model name;
- provider;
- model/version identifier;
- system prompt stack;
- tool list;
- timestamp;
- session / run id.
This takes roughly one engineering day and immediately gives an audit baseline. If this layer is not configured, every later number is a number for an unknown configuration.
Then for each task, assemble a set of “input -> expected behavior” pairs.
| Set type | What is inside | Why |
|---|---|---|
| Golden set | ~100-300 typical inputs with reference outputs | Quality baseline, regressions |
| Adversarial set | ~50-150 edge cases, jailbreak, prompt injection, tool abuse | Safety, robustness, boundary protection |
| Regression set | Every bug ever caught in production, turned into tests | Do not return to solved problems |
The minimum to start is a golden set of ~100 examples. Without it, discussing “AI-feature quality” is meaningless: you cannot say whether it became better or worse after a prompt change.
Where to get data:
- real production logs, with PII redaction before they enter the eval repository;
- historical support tickets;
- hand-crafted scenarios from product / QA;
- adversarial cases generated by a separate LLM and checked manually.
What not to do: do not use the same LLM to generate reference answers. References are human. Otherwise you evaluate the LLM against itself.
Step 3. Build the grader
There are three grader types, and a real production eval almost always combines all three.
Code-based grader
if/else, unit tests, regex, schema validation, exact match.
- Where to use
- Tool-call correctness, JSON schema compliance, exact-match QA, code-passes-tests, PR-size enforcement, scope/boundary checks for agents.
- Strengths
- Cheap, deterministic, runs in CI on every PR.
- Weaknesses
- Works poorly where several answers can be correct.
Model-based grader
LLM-as-judge with an explicit rubric and regular human calibration.
- Where to use
- Faithfulness in RAG, summarization quality, safety, tone, subjective acceptance, conformance of the agent's final action to intent.
- Strengths
- Scales and can run on thousands of examples.
- Weaknesses
- The judge itself can be wrong, so calibration with a human is required.
Human grader
Operator / SME / engineer who analyzes borderline cases and audit-sensitive decisions.
- Where to use
- Edge cases, new input types, compliance audit, approval-gated actions by agents.
- Strengths
- The only way to catch nuance and context absent from the data.
- Weaknesses
- Expensive, slow, does not scale as the only mechanism.
Distribution rule by projection:
- AI features in product: code-based + model-based in CI, human on the adversarial sample.
- AI engineering tooling: code-based dominates; model-based on subjective acceptance; human on critical PR review.
- Agentic / MCP: code-based dominates even more; model-based on intent match; human on approval-gated actions and adversarial scenarios.
Calibration is not optional. The model grader is regularly rechecked by a human. If divergence is above the agreed threshold, the rubric is revised.
Vendor drift detection: the new operating function of evals
Before 2026, "AI quality" was often treated as a property of the repository. That is no longer true. Now quality is composed of four layers at once.
Repository
Code, tests, fixtures, acceptance criteria, and change history.
Model and provider
Model name, provider, version identifier, and version-change date.
Prompt stack
System prompt, policy files, retrieval context, and tool instructions.
Toolchain settings
Tool list, permissions, temperature, routing, fallback, and degraded mode.
What this changes in management
- you distinguish vendor drift from your own regression;
- escalation to the vendor happens with evidence, not chat screenshots;
- there is an exact answer to the audit question "when did behavior change and why?"
If even one layer is not logged and checked, a regression will be inexplicable to the team and to an auditor.
Minimum protection:
- Canary suite on every model/version change, even a minor update.
- Capture: model name, version, provider, system prompt stack, tool list, timestamp.
- Baseline metric recorded in an ADR with a concrete model name/version.
- Alert threshold: regression below the agreed percentage from baseline sends a signal to the owner.
What it looks like when it works
In a team of 50-100 engineers after 3-4 months of implementation:
- every PR with an AI feature runs the eval suite in CI;
- regression above the threshold blocks merge like a failed test;
- any prompt / context / model / vendor-version change goes through the same suite;
- the audit log has a record: model X, version Y, provider Z, golden set W, quality N, date, commit;
- seniors stop being the only gating mechanism and return to architectural review;
- juniors get an objective feedback loop: “your PR failed on these 12 cases from the golden set”;
- vendor drift is discovered by your own alerting, not by user complaints.
What this cannot work without
- Capture layer. Without logging model/provider/version/system-prompt/tools, reproducibility is impossible.
- Acceptance criteria. Without explicit acceptance, it is unclear what belongs in the golden set. Evals are a partner of SDD, not an alternative.
- Ownership. The eval suite must have an owner. Otherwise in a quarter it goes stale and the team “temporarily” disables checks.
- Versioning. Prompts, golden sets, judge rubrics: everything in git.
- Data discipline. Production logs without PII redaction in the eval set are a compliance incident, not efficiency.
EU/EEA governance overlay
For CTOs in the EU/EEA, the AI Act is no longer a side concern, but a gating factor. Evals do not “close legal”; they build an evidence chain you can explain.
AI literacy obligation
The eval layer should show internal records for team training/guidance and attribution of AI-assisted changes.
GPAI obligations
Provider/model inventory and version capture are needed on every run.
Article 4 supervision / enforcement
Repeatable evaluation evidence, audit trail, and session IDs are needed for significant AI-assisted workflows.
What the eval layer does not cover by itself: indemnity carveouts. If vendor legal cover does not extend to beta/preview features or requires enabled mitigations, the eval suite should explicitly block preview/beta AI features on production-critical delivery paths. For more on the governance perimeter, see Shadow AI and the AI Act.
Minimal steps for 6 weeks
- Week 1. Choose one AI feature in the product and one AI-tooling use case. In parallel, configure capture for model/provider/version/system-prompt/tools.
- Weeks 2-3. Assemble a golden set of ~100-150 examples for each task. PII redaction happens before data enters the eval repository.
- Weeks 3-4. Write a code-based grader for what can be deterministic. Run it in CI as a non-blocking job. For the tooling loop, the quick win is PR-size enforcement.
- Weeks 4-5. Add a model-based grader with an explicit rubric and immediately embed a calibration loop with a human sample.
- Week 5. Enable CI gating: regression above roughly 5% from baseline blocks merge. Configure a canary suite for model/vendor-version changes.
- Week 6. Record baseline metrics in an ADR, including concrete model name and version.
Next: second task, adversarial set, agentic/MCP projection, release-pipeline integration. If you want to check overall team maturity first, see 12 AI-maturity questions for CTOs.
FAQ
We do not build an AI product; we have Copilot and Claude Code for engineers. Do we need evals?
Yes, but different ones. For the tooling loop, the task is "the AI assistant does what acceptance criteria say, and no more." The golden set is a set of features you gave AI to do and the reference diff. The grader is mostly code-based: tests pass, PR is within the limit, there is no drift from architecture decisions, conformance to `agents.md`.
Is LLM-as-judge not just another self-licking ice cream cone?
It can be if not calibrated against a human. Basic rule: a human regularly rechecks a sample from the judge, and divergence above the threshold means the rubric is revised. Concrete ratios are an engineering-economics question.
How much does one eval suite in production really cost?
For a 50-100 engineer team, rough breakdown: one senior for 4-6 weeks of setup + 5-10% of owner time for support. Compute for the model-based grader depends on golden-set size and run frequency. Usually it is less than the cost of one production regression in an AI feature plus senior hours for manual analysis.
If we already have QA, why add a separate eval layer?
QA checks a feature in a deterministic environment. An AI feature is nondeterministic: the same input can produce different outputs. Eval is a statistical contract: "on the golden set, quality stays at least X." It is not a QA replacement, but a neighboring layer.
Where does this fit into AI-ready SDLC?
Between acceptance criteria and release gating. Spec answers what the system should do. Eval measures how close we are to acceptance. Release gate decides whether to merge. Without the middle link, spec remains a declaration and release gating is a lottery.
Where do we start if we have nothing at all?
Not with all features at once. Step 0 is capture layer: model name, provider, version, system prompt stack, tool list on every AI run. Then choose one AI feature that already had a production regression. If there are no AI features yet, but there is AI tooling, start with PR-size enforcement.
What if the vendor silently changes the model tomorrow?
Canary suite on every model/version change, capture in audit log, baseline in an ADR, and alerting on regression below the threshold. This is not paranoia, but 2026 operational hygiene.
Can public benchmarks like SWE-bench help with a rollout decision?
Not as the only argument. Public benchmarks are useful as a signal of capability boundaries, but rollout should be decided through an internal eval suite on your acceptance criteria, data, and failure budget.