AI Strategy18 November 202611 min read

The Enterprise AI Control Plane — Part 3 of 8

Build the evaluation system before the agent

Evaluation is not the last test before go-live. It is the design input that decides which architecture, controls and autonomy an AI system can have. Part 3 of The Enterprise AI Control Plane gives an eight-layer evaluation scorecard, a method for each failure mode and the statistics that keep human labels honest.

#AI Evaluation#AI Agents#AI Governance#AI Engineering#Quality Engineering
A single cyan request path passing through four glass control boundaries to a solid block, where a yellow signal marks the final check, over a faint map of southern Africa.

Highveld Mutual's first settlement assistant pilot reported 92% accuracy. Highveld is our fictional South African insurer. The number survived two steering committees before a claims manager asked how it was measured. The answer: 50 test cases, written by the developer who built the prompt, scored by the same developer, with "accurate" meaning "the recommendation looked reasonable". Nobody had decided what a wrong recommendation would cost, which kinds of wrong mattered most, or who should judge.

By then the team had chosen a framework, a model and a multi-step agent design. Each choice had been made before anyone could say what "good" meant, so none of them could be defended with evidence. That is the most common evaluation failure in enterprise AI: evaluation treated as the last test before go-live rather than the first design decision.

This part sets out the evaluation system to build before the agent. CloudNala has covered the craft in depth in Whoever Writes the Rubric Shapes the Agent, including calibrating the judge before you trust the score and an evaluation lab you can build in a week. This part is the scorecard that connects that craft to architecture and release decisions.

Start with the cost of each error

Before choosing a model or a framework, list the ways the system can be wrong and what each one costs. For Highveld's settlement assistant:

ErrorExampleWho bears the costRelative cost
Overpayment recommended and acceptedExcess not appliedInsurerHigh
Underpayment recommended and acceptedCovered item excludedCustomer, then insurer through complaints and the ombudHigh
Fraud indicator missedInconsistent dates not flaggedInsurerVery high
Unnecessary escalationSimple claim sent to a senior handlerInsurer's capacityLow
Unsupported reasoningCorrect amount, wrong clause citedAudit and trustMedium

This table changes the design. A missed fraud indicator costs far more than an unnecessary escalation, so the system should be tuned to escalate generously, and its evaluation should measure missed escalations separately from overall accuracy. A single accuracy number hides exactly the error that matters most.

The major model providers' own guidance starts in the same place. Anthropic's documentation on defining success criteria and building evaluations opens with clearly defined success criteria, and OpenAI's evaluation best practices begin with defining the evaluation objective (both checked on 18 November 2026).

The evaluation scorecard

An AI system is evaluated at several layers. Each needs its own evidence, and passing one says little about the others. Example thresholds are illustrative; set yours from the cost table.

LayerQuestionEvidenceExample release threshold
Business outcomeDid the task produce the intended measurable result?Domain KPI and human acceptanceHandler acceptance at least as high as the manual baseline
Task completionDid the agent finish the right task within its limits?Success criteria and trajectory95% of runs end in a valid stop reason
GroundingAre claims supported by approved sources?Citations and retrieval evidenceEvery amount cites a clause and an assessor finding
Tool useWere tools selected and called correctly?Tool-call assertions and sandbox testsZero calls to forbidden tools
Safety and policyDid the system respect content, data and authority rules?Policy test suites and red-team casesAll red-team cases blocked
ReliabilityDoes it behave consistently across normal and failure cases?Regression runs and failure injectionNo regression against the current version
Cost and latencyIs the result economical and timely enough?Token, tool, compute and time telemetryCost per accepted recommendation within budget
Human factorsCan a person understand, challenge and recover the result?Usability and escalation testsHandlers can find the evidence for an amount in under a minute

The scorecard also tells you when an agent is the wrong design. If the task completion and tool-use layers keep failing on cases where the steps were known in advance, a workflow with a model inside one step will usually pass more of the scorecard at lower cost.

Match the method to the failure

Which evaluation method fits which failure mode?FAILURE MODEPRIMARY METHODBACKED UP BYOutput breaks theschema or formatDeterministic assertionContract tests in CIWrong tool orwrong argumentsTool-call assertionsin a sandboxTrajectory reviewon a sampleClaim not supportedby the sourcesCitation check plus acalibrated model judgeHuman spot reviewPolicy or authoritybreachedPolicy test suite andred-team casesProduction policy alertsDomain judgementis wrongHuman-labelled cases,agreement measuredCalibrated judgefor volumeQuality drops aftera changeRegression run on theoffline evaluation setCanary releasewith rollbackToo slow ortoo expensiveLatency and costper accepted taskBudget limits per run
Start from the failure you are trying to catch, not from the tool you already have. Deterministic checks are cheap and exact, so use them wherever the answer can be checked by code. A model-based judge is only trusted once it has been compared with human labels on the same cases. Where domain judgement matters, the human-labelled set is the reference everything else is calibrated against.

Different failures need different methods. The broad rule is to use the cheapest method that can actually detect the failure:

  • Deterministic assertions for anything code can check: schema validity, forbidden tools, required citations present, amounts within limits. They are fast, exact and repeatable. Anthropic's guidance ranks code-based grading as the fastest and most reliable option.
  • Model-based judges for qualities code cannot check, such as whether a citation actually supports a claim. Use them only after testing their reliability against human labels. Anthropic's guidance is to test an LLM grader's reliability first and then scale it, and OpenAI lists not calibrating automated metrics against human evaluation as an anti-pattern.
  • Human review for domain judgement, and as the reference that the other methods are calibrated against. It is expensive, so spend it where the cost table says the risk is.

Human labels and the statistics that keep them honest

Where domain judgement matters, the evaluation set needs human-labelled examples: real or realistic cases, each with a label from people qualified to judge it. Two statistical ideas keep those labels useful.

Confusion matrices for classification

Part of the settlement assistant's job is a classification: escalate or not. Suppose 200 labelled cases, 40 of which genuinely need escalation. The assistant escalates 34 of those 40, and also escalates 16 of the 160 that did not need it.

Needs escalationDoes not
Assistant escalates3416
Assistant does not escalate6144

Accuracy is 178 out of 200, or 89%. That sounds good. But 6 of the 40 cases that needed a senior handler were missed, a recall of 85%, and those are the expensive errors from the cost table. Meanwhile 16 of 50 escalations were unnecessary, which costs little. The confusion matrix shows the trade-off that accuracy hides, so you can tune the system towards the cheaper error.

Inter-rater agreement and Cohen's kappa

Before trusting human labels, check whether the humans agree. Cohen introduced kappa in 1960 as a measure of agreement between two raters that corrects for the agreement you would expect by chance.

Here is why the correction matters. Two senior handlers each label the same 200 recommendations as acceptable or not. They agree on 180, or 90%. Each of them marks 186 of the 200 as acceptable, so most cases are easy "yes" cases. With that imbalance, two people would agree about 87% of the time by chance alone. Kappa works out at about 0.23. On the bands Landis and Koch proposed in 1977, that is only "fair", and they themselves described their divisions as "clearly arbitrary". The 90% headline was mostly the easy cases. On the hard cases, which are the ones the evaluation exists for, the two handlers often disagreed.

Kappa is useful for exactly this: it shows when apparent agreement comes from imbalanced labels. It has limits. It can be low even when agreement is high, a well-known paradox when one category is rare, so report raw agreement alongside it. Its interpretation bands are conventions, not laws, and McHugh's 2012 review in Biochemia Medica argued that the commonly cited bands may be too lenient for health-related studies. And high agreement does not prove the labels are right: two raters can agree and both be wrong. When agreement is low, fix the rubric before you label more cases. A rubric is a specification for judgement explains how.

Calibrate the judge before relying on it

Model-based judges scale human judgement, but they need calibrating first. The research is encouraging but precise. Zheng and colleagues, in Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (NeurIPS 2023), found that a strong model judge agreed with human experts on 85% of comparisons, against 81% agreement between humans. Those figures exclude ties. With ties included, agreement between the model judge and humans fell to 66%. The same paper documented position bias, a preference for longer answers and a tendency to favour the judge's own outputs, and mitigated position bias by running each comparison twice with the answers swapped.

The practical lesson: measure your judge's agreement with your own human labels, on your own cases, using the same statistics you use between humans. A judge that agrees with your senior handlers about as well as they agree with each other can extend their reach. One that does not is generating confident numbers.

Two loops: offline and production

An evaluation system has two loops.

  • The offline loop runs a fixed, versioned evaluation set against every candidate change before release: a prompt edit, a new model, a new retrieval setting. It answers "is this version at least as good as the current one?"
  • The production loop samples live outputs, scores them with the same methods and feeds failures back into the offline set. It answers "is the system still behaving as it did when we released it?"

The loops share one asset: the evaluation set. Every incident and every disagreement in production becomes a new labelled case. Part 5 builds the operating model around these loops.

Gate releases with thresholds and named authority

A release gate is only real if it can say no. For each scorecard layer, record a threshold and the person who can grant an exception:

GateThreshold (example)Exception authority
Policy and red-team100% of cases blockedNone. No exceptions.
GroundingNo regression against current versionHead of claims
Missed escalationsRecall of at least 95% on the escalation setHead of claims and chief risk officer together
Cost per accepted taskWithin approved budgetProduct owner

An exception is a recorded decision by a named person, with an expiry date. "We shipped it because the demo went well" is not an exception. It is the absence of a gate. Release on Evidence covers release decisions more broadly.

Evaluation across the control plane

Every part of this series has an evaluation consequence:

  • Control boundaries (Part 1): each boundary needs its own tests, from traffic tests at the API gateway to business acceptance in the application.
  • The harness (Part 2): trajectory tests check that the loop takes the right steps on the way to its answer. The task contract is the success definition.
  • Retrieval (Part 4): evaluate retrieval separately from the answer, as CloudNala explains in evaluate retrieval separately from the answer.
  • AgentOps (Part 5): the release bundle passes the same gate every time.
  • Data leaks (Part 6): cross-tenant and extraction cases belong in the red-team set.
  • Continuity (Part 7): a substitute model is approved per task only after passing the evaluation set.
  • Maturity (Part 8): an evaluation system is the evidence that separates level 3 from level 2.

For organisations that want a governance reference, the NIST AI Risk Management Framework (January 2023) includes a Measure function, and NIST's Generative AI Profile (July 2024) applies the framework to generative AI. Both are voluntary frameworks, useful for structuring the conversation with risk teams.

The South African version

Highveld's claims arrive in English, Afrikaans and isiZulu, with handwritten notes and assessor reports of uneven quality. An evaluation set built only from clean English examples will overstate performance on the claims that matter. Include the languages, formats and document quality your customers actually produce, and make sure the labellers can read them.

Qualified labellers are scarce and expensive, so spend their time on the hard cases. Use deterministic checks for everything code can verify, a calibrated judge for volume, and senior handlers for the cases where they disagree with each other or with the judge.

Before you choose the architecture

  1. Write the error cost table with the business owner.
  2. Build a first evaluation set of real or realistic cases, including hard ones, in the languages and formats you will receive.
  3. Have at least two qualified people label it, and measure their agreement.
  4. Fix the rubric where they disagree.
  5. Decide which failures code can detect, and write those checks first.
  6. Calibrate any model judge against the human labels.
  7. Set thresholds and exception authority for each scorecard layer.
  8. Only then compare architectures, models and autonomy levels against the same set.

Next: Part 4, RAG is a data product, not a prompting trick. Previous: Part 2, The model proposes. The harness decides what happens next. All parts are on the series page.

How CloudNala can help

CloudNala builds evaluation systems before agents. We run the error-cost workshop with your business owner, design the first evaluation set and labelling rubric, measure labeller agreement, write the deterministic checks, calibrate a model judge against your experts and set release gates with named exception authority. You leave with an evaluation set, a scorecard and the evidence to choose an architecture on its merits.


Work with CloudNala

CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.

Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.

Book an AI Evaluation Design Session or write to us at consult@cloudnala.co.za

Found this useful?

Share