Chapter 17 · Layer 3 · Runtime Safety

The Chatbot Was Not a Separate Legal Entity

On 11 November 2022, Mr Moffatt's grandmother died in Ontario.

Sanket Kulkarni · · 6 min read

Part of The Seven-Layer Tokenomics Stack

A refund promise nobody checked

On 11 November 2022, Mr Moffatt's grandmother died in Ontario. He booked flights with Air Canada, and asked the chatbot on the airline's website about cheaper fares for people travelling after a death in the family. The chatbot told him Air Canada "offers reduced bereavement fares" and that he could apply for the discount afterwards, "within 90 days of the date your ticket was issued". Air Canada later admitted the chatbot had used "misleading words".

He flew, applied for the discount, and was refused. He took the airline to British Columbia's Civil Resolution Tribunal. In its defence, the tribunal recorded, "Air Canada suggests the chatbot is a separate legal entity that is responsible for its own actions." Tribunal member Christopher C. Rivers called that "a remarkable submission" and wrote: "It should be obvious to Air Canada that it is responsible for all the information on its website."

On 14 February 2024 the tribunal ordered Air Canada to pay 812.02 Canadian dollars: 650.88 in damages, plus interest and fees. A small sum. A very large lesson. Nobody checked the answer before it reached the customer, and the company owned every word of it.

The company owned every word of the answer.

Yesterday we tuned the stove. Today we meet the food taster.

The note-counting machine at the bank counter

Runtime safety means the checks that run every time the AI is used, on the question coming in and on the answer going out.

Think of the cash counter at an Indian bank. The cashier feeds every bundle through a note-counting machine that also flags fakes. It checks the notes you deposit, and it checks the notes it hands back. The machine does not decide who may open an account (that is the front desk, Layer 5). It simply inspects what passes through, every single time.

The Tokenomics Foundation's framework lists four checks under runtime safety:

  1. Spotting personal data. Finding names, phone numbers, card numbers and similar details, so they can be hidden before they reach a model, a log or a reply.
  2. Moderation. Screening questions for abuse, threats or attempts to misuse the system.
  3. Content safety. Classifying answers against categories of harm before they are shown.
  4. Checking answers before release. Confirming an answer is in the right shape and agrees with the facts it should rest on. This is the check that would have saved Air Canada.

In the kitchen, this is the food taster and the person at the pass who looks at every plate before the waiter takes it out. A wrong dish costs more once it reaches the table.

A volume lever with a price tag on failure

The lower layers set the price of a token; the upper layers set how many get spent. Runtime safety sits in the upper layers and moves volume in two directions.

First, it adds work. Every check is another step, and many checks are themselves calls to a model. If a request is screened on the way in and again on the way out, each request now carries extra tokens and extra waiting time (the industry calls this delay latency). A check that blocks an answer and asks the model to try again roughly doubles the tokens for that request.

Second, it prevents the most expensive volume of all: a wrong answer that a customer, a regulator or a court acts on. In India this now has a number attached. The government notified the Digital Personal Data Protection Rules on 14 November 2025, with compliance phased over eighteen months. The Press Information Bureau's explainer says the highest penalty, up to 250 crore rupees, applies when a business fails to keep reasonable security safeguards for personal data. Failing to tell the regulator or affected people about a breach can cost up to 200 crore rupees.

A wrong answer that leaks personal data now has a price tag in crores.

So the question is not "safety or no safety". It is how much checking each kind of traffic needs, and how cheaply.

The good news is that the checks do not need your biggest model. The tools have become small and specific:

  • OpenAI's documentation says its moderation models are "free models designed to detect harmful content", and the latest one checks images as well as text.
  • Meta's Llama Guard 3-1B is a small model, with about one billion internal settings, built only to classify questions and answers against 13 categories of harm. Its model card lists Hindi among its eight languages and a compressed version for running on phones.
  • Presidio, open-source software first published by Microsoft and now run by its community, finds personal data using patterns, rules and language analysis. Its own documentation is honest: "there is no guarantee that Presidio will find all sensitive information."
  • NVIDIA's NeMo Guardrails documentation says checks can run side by side rather than one after another, which "can improve latency and throughput", for checks that call outside services.

Here is my own illustration. If a chat answer costs 1,000 tokens and you add a full-size model as a judge that reads the whole conversation again, you can come close to doubling the bill. A small dedicated classifier reading the same text costs a fraction of that. Same protection target, very different volume.

The key decisions in this component are: which checks apply to which traffic, whether each check is a rule, a small classifier or a large model, whether checks run in sequence or side by side, and what happens on a failure (block, hide the sensitive part, or retry). Each choice moves cost, waiting time and risk at the same time.

The framework also lists a response check in Layer 5. My reading: Layer 5 decides whether a request may run at all; Layer 3 inspects what flows through the cooking line. We reach Layer 5 in Chapter 26.

What I would do on Monday morning

  1. Put a cost on every check. For each AI feature, list every safety check a request passes through, and measure the tokens and milliseconds each one adds.
  2. Use the smallest checker that does the job. Rules and pattern matching for phone numbers and card numbers. Free or small dedicated classifiers for harm. Keep the large model as a judge only for the cases that truly need judgement, and run outside-service checks side by side.
  3. List every promise your AI can make, and check those against the source of truth. Refunds, prices, eligibility, delivery dates. Check them against your own policy data before release, every time.

Tomorrow

Chapter 18 covers Agent Iteration: the loop in which an AI plans, uses a tool, checks the result and goes again. Today we checked one plate. Tomorrow the cook keeps tasting and adjusting, and every round of tasting is billed.


This series builds on The Seven-Layer Tokenomics Stack by the Tokenomics Foundation, used under a Creative Commons Attribution 4.0 licence. The commentary, and any mistakes, are mine. Views are my own and do not represent my employer.

Sources

Every figure was checked against its source on 20 November 2026.

  1. Tokenomics Foundation, The Seven-Layer Tokenomics Stack (full paper), 14 October 2026 (page modified 16 October 2026), Creative Commons Attribution 4.0 licence. Runtime safety's four items in Layer 3 (personal data detection, moderation, content safety, output validation); "runtime safety checks" as part of the runtime around the engine; Layer 5's "Pre-flight guardrails & compliance" and "Response validation". The paper gives no cost figures or separate signals for runtime safety.
  2. Tokenomics Foundation, The Seven-Layer Tokenomics Stack, 14 October 2026. Inference stack described as including "runtime safety checks".
  3. Civil Resolution Tribunal of British Columbia, Moffatt v. Air Canada, 2024 BCCRT 149, 14 February 2024. Date of death, chatbot wording, "misleading words", Air Canada's "separate legal entity" submission, tribunal member Christopher C. Rivers, "a remarkable submission", "It should be obvious to Air Canada that it is responsible for all the information on its website", 650.88 Canadian dollars damages and 812.02 total.
  4. Press Information Bureau, Government of India, DPDP Rules, 2025 Notified, 17 November 2025. Rules notified 14 November 2025; eighteen-month phased compliance; up to 250 crore rupees for failing to maintain reasonable security safeguards; up to 200 crore rupees for failing to notify a breach.
  5. YourStory, Govt notifies Digital Personal Data Protection Rules 2025; rollout stretched over 18 months, November 2025. Corroborates the phased rollout and the 250 crore rupee ceiling (its body text says 12 to 18 months; the government explainer says eighteen).
  6. OpenAI, omni-moderation model documentation, as of 20 November 2026. "Moderation models are free models designed to detect harmful content"; accepts images as well as text.
  7. Meta, Llama Guard 3-1B model card (Hugging Face mirror), as of 20 November 2026. One-billion-parameter model for classifying prompts and responses; 13 hazard categories; eight languages including Hindi; pruned and compressed version for mobile devices.
  8. Presidio, Data Protection and De-identification SDK (moved from microsoft.github.io/presidio), as of 20 November 2026. Detects personal data using named-entity recognition, regular expressions, rules and checksums; "there is no guarantee that Presidio will find all sensitive information"; now a community-owned project.
  9. NVIDIA, NeMo Guardrails: Parallel Execution of Input and Output Rails, as of 20 November 2026. Running checks in parallel "can improve latency and throughput"; best for checks that call outside services.

The near-doubling of tokens from a full-size model acting as judge, and from a retry, are the author's illustrations, not measured figures.