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

As developers we are very focused, to the point of being obsessed about the LLM that steals our living. It is understandable to be worried, but also hopeful. But there is another angle which is as important: it is not about the AI that writes code, but the AI that is called by the traditional code to help with tasks which are either onerous to code with traditional programming languages, or plainly impossible.

So the universe I will describe is the one that uses generative AI (more precisely LLMs) at runtime.

Andrej Karpathy described the change quite nicely, by naming three types of software (Karpathy 2025):

Karpathy illustration of software types

Source: (Karpathy 2025)

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.” (‘Introduction to AI Assurance’ 2024)

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.” (‘Evaluation Framework’, n.d.).

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 system 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.

Deployed AI systems have promised discounts and cited non-existent legal cases. 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 deadly (Andrikyan et al. 2025).

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

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.

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.

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:

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.

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

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

References

Andrikyan, Wahram, Sophie Marie Sametinger, Frithjof Kosfeld, et al. 2025. ‘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 (2): 100–109. https://doi.org/10.1136/bmjqs-2024-017476.
‘Evaluation Framework’. n.d. UK AI Security Institute. Accessed 19 October 2026. https://engineering-playbook.aisi.org.uk/evaluate.html.
‘Introduction to AI Assurance’. 2024. GOV.UK, February. https://www.gov.uk/government/publications/introduction-to-ai-assurance/introduction-to-ai-assurance.
Karpathy, Andrej. 2025. ‘Andrej Karpathy: Software Is Changing (Again)’. June. https://www.youtube.com/watch?v=LCEmiRjPEtQ.
Mitchell, Margaret, Avijit Ghosh, and Samir Passi. 2026. AI Agents Push Humans Out of the Loop. arXiv. https://doi.org/10.48550/arXiv.2608.23642.