AI Needs Assurance

Software that calls LLMs at runtime is becoming common infrastructure, and infrastructure needs assurance. AI evaluations are one of its building blocks.
Author
Published

19 October 2026

Deployed AI systems have promised discounts1 and cited non-existent legal cases2. Medication advice is no safer: in one study of chatbot answers to patients’ drug questions, healthcare experts judged 66% of a preselected subset of inaccurate answers potentially harmful, and 22% potentially severely harmful or deadly3.

In Moffatt v. Air Canada, a tribunal held the airline to a refund policy its website chatbot had invented. In Mata v. Avianca, lawyers were sanctioned for filing a brief citing cases that ChatGPT had made up.

Such facts as these are not designed to give someone great peace of mind.

All the mishaps I mentioned above could have happened while traditional testing and observability reported nothing unusual: no 404s, uptime 100%, acceptable latency, no ERROR-s in logs or traces. Everything looked like it was operationally in perfect health, while still producing dangerously wrong answers.

Traditional testing tells us if the system is correct against clear specifications. Traditional observability tells us how the system is doing. Non-deterministic systems need some extra layers that tell us if the system does the right thing.

Non-deterministic: the same input can give different outputs from one run to the next.

Those of us who work with words data or code, we are very focused, even obsessed, with the LLM that “steals our livelihoods”. Understandably, we are allowed to be worried, but also we must be hopeful, for all the opportunity this new technology brings. There is another angle, just as important: it is not about the AI that writes code, but the AI that traditional code calls to help with tasks which are either difficult to code with traditional programming languages, or plainly impossible.

So the universe I will describe is the one in which generative AI (more precisely LLMs) is used at runtime.

Andrej Karpathy described the change quite nicely, by naming three types of software4:

Andrej Karpathy was a founding member of OpenAI and led AI at Tesla.

A slide headed “A huge amount of Software will be (re-)written”: a square mostly labelled 1.0, a region labelled 2.0, and a spiky region labelled 3.0 with arrows showing it growing into both.

Karpathy illustration of software types.4

I am forcing the vocabulary here, because a large language model is fundamentally just a file full of numbers, it does not do anything by itself.

One interesting feature of the LLMs and associated services, such as Anthropic, OpenAI or DeepSeek is that they are quickly becoming common infrastructure.

And common infrastructure needs assurance to provide safety and trust. The next logical step is obvious: AI needs assurance.

Fortunately there are historical precedents: no one is asking the electricians to be more virtuous when wiring your house. There are certifications, inspections, and standards. Airbus, Boeing, Ryanair or Heathrow Airport have strict standards, but still there are regulatory demands that need to be met before allowing planes to take off. Same with genomics, nuclear, healthcare, and many other industries. There are regulations, audits, and formal verifications.

“In the case of AI, assurance measures, evaluates and communicates the trustworthiness of AI systems.”5

Generative AI is new, highly complex, and evolving rapidly, but efforts to establish a control structure exist and are quickly coalescing, at least in the UK, into a very coherent structure, with a roadmap and clear deliverables.

Details are the subject of a different article, but there is a Minister for AI, an AI Security Institute, there are also an AI Assurance Stakeholder Consortium led by BCS, CETAS of Alan Turing Institute, but also British Standards Institution (BSI), National Physical Laboratory (NPL) and other important British institutions.

There are so many actors because there are so many aspects of AI Assurance: governance, ethics, transparency, legal compliance, cyber security, safety, and today’s main topic, AI Evaluation.

AI Evaluation is one fundamental building block for AI Assurance. AISI defines it as “An evaluation is a structured, controlled process for measuring a property of an AI system. That property might be a capability, a tendency, or a risk.”6

AISI, the UK AI Security Institute, is the government body that tests advanced AI models. It was called the AI Safety Institute until February 2025.

So a systematic measurement of the system’s quality, or, plainly put, they are tests that tell if this system is doing what it was supposed to do. This systematic measurement should also output systematic reports that also act as evidence.

Testing non-deterministic software is no easy feat. LLMs and the agentic systems they power are powerful, but also unpredictable. As opposed to a traditional software that crashes or returns errors which are easier to catch, these new systems have the habit of failing silently.

There is also the nature of many of these agentic systems: they act in your name, and you are directly accountable for their real-world actions.

I will need to deliver a piece of stochastic software in a few months. Its performance will be public, on a site where the logo of UCL and a leading music corporation will be displayed.

What should I, a responsible engineer do? There is an answer in the wisdom of Mark Watney:

“So, in the face of overwhelming odds, I’m left with only one option: I’m going to have to science the shit out of this.” — Andy Weir, The Martian

And this is how I got into AI Evaluations.

After shipping, in production, chats and agents need to be traced (LLM calls, tool calls, control flow) so that they can be monitored and debugged.

Before shipping a prompt, model, or agent we need to answer an important question: is this system reliable and safe enough to run in production?

This is where AI Evaluation comes in, and it has a lot in common with the kind of testing we’re used to: we run the system against a fixed set of inputs, with as many exceptions and stressful edge cases as we can, and compare the output with what we expect to get.

Yet, the nature of both inputs and outputs is quite different, which renders assert equals useless:

A scorer that is itself an LLM is usually called an LLM-as-a-judge.

So a lot of moving parts for a team to manage in a disciplined way. Fortunately AISI, the UK’s AI Security Institute released an open-source framework to help with just that.

It is called Inspect AI and it has composable building blocks – datasets, agents, tools, scorers –, pre-built evaluations, tooling for viewing evaluation results, connectors to most AI labs, support for multi-step evaluations, and a sandboxing system for untrusted models.

To see Inspect AI at work, visit github.com/cdinu/ai-evaluation-thermostat-basic

It runs the evaluations, computes the scores, and saves the evidence in detailed logs.

References

1.
Moffatt v. Air Canada. (Civil Resolution Tribunal of British Columbia, 2024) (2024 BCCRT 149, decided 14 February 2024) https://www.canlii.org/en/bc/bccrt/doc/2024/2024bccrt149/2024bccrt149.html.
2.
Mata v. Avianca, Inc. (United States District Court for the Southern District of New York, 2023) (No. 1:22-cv-01461, 678 F. Supp. 3d 443, opinion and order on sanctions, 22 June 2023) https://en.wikipedia.org/wiki/Mata_v._Avianca,_Inc.
3.
Andrikyan, W. et al. Artificial intelligence-powered chatbots in search engines: a cross-sectional study on the quality and risks of drug information for patients. BMJ Quality & Safety 34, 100–109 (2025) https://doi.org/10.1136/bmjqs-2024-017476.
4.
Karpathy, A. Andrej Karpathy: Software is changing (again). (2025) (Keynote at AI Startup School, San Francisco. Video, 39:31) https://www.youtube.com/watch?v=LCEmiRjPEtQ.
5.
6.
Evaluation framework. (UK AI Security Institute) https://engineering-playbook.aisi.org.uk/evaluate.html.
7.
Mitchell, M., Ghosh, A. & Passi, S. AI agents push humans out of the loop. (arXiv, 2026) (arXiv:2608.23642 [cs.AI]) https://doi.org/10.48550/arXiv.2608.23642.