13A.7 Case Studies: How Real AI Products Are Built, and How They Fail

Ship & get hiredLesson 7 of 816,182 words6 parts
Module 13A · 0 of 8 lessons done
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8

Every lesson in this module has been about your product: how to frame it, design it, architect it, measure it and defend it. This lesson steps back and looks at what everyone else actually built — the products that worked, the products that partly worked, and the products that failed in public. Case studies are how the industry passes on its scar tissue, but they are also the easiest material to misread: the numbers are almost always self-reported, the failures are under-reported, and the field moves so fast that a "lesson" from eighteen months ago can be obsolete. This lesson teaches you to read an AI product case study the way an engineer reads a postmortem — sceptically, with dates, denominators and incentives in hand — and then applies that method to twelve publicly documented cases: GitHub Copilot, Shopify Sidekick, Morgan Stanley's assistant, Intercom Fin, Anthropic's multi-agent research system, Klarna, Duolingo, Google Duplex, the Replit agent incident, the Air Canada chatbot ruling, Google's AI Overviews launch and the Ross Intelligence shutdown. Along the way you will build ai_product/case_card.py, a small tool that turns a case study into a structured, source-checked card you can reuse for the rest of your career.

What you'll learn

  • How to read an AI product case study critically: who is speaking, what is being measured, what the incentives are, what is not said, and why dates matter more here than almost anywhere else in engineering
  • A source-quality ladder for AI claims — primary engineering posts, official statements, regulator and court documents, reputable reporting, community write-ups — and the rule that a source you haven't opened doesn't count
  • How to dissect a claim: denominators, baselines, selection effects, company-reported versus independently verified numbers
  • Survivorship bias in AI product writing, and where the failure record actually lives (the AI Incident Database and public postmortems)
  • The case study card: a reusable template for capturing problem, users, public system description, UX decisions, reported metrics, what went wrong, what transfers, and dated sources
  • Twelve real cases (plus three to card yourself) across copilot, assistant, support-agent, agent, consumer-AI, search/answer, voice and document-intelligence shapes — what each got right, what it got wrong, and what the public record actually shows
  • The cross-cutting lessons: evals before launch, human fallback, expectation setting, cost surprises, reversals, retrieval quality, and the controls that would have prevented each failure
  • ai_product/case_card.py: a Pydantic model and Markdown renderer that refuses a card whose claims lack a source URL and date

What you don't need

  • API keys, model access or any running service. Everything here is reading, analysis and pure-local Python.
  • Prior knowledge of the products. Each case is self-contained; links go deeper where a module already owns the detail.
  • Legal or business background. Where a case touches law or corporate strategy, the lesson explains only what you need to evaluate the engineering.

Setup

The only code in this lesson is ai_product/case_card.py — pure Python 3.11+ with Pydantic, no network, no keys. If you do not have the ai_product package yet, create it as part of your capstone project folder:

bash
uv init ai-product-kit --bare --python 3.13 && cd ai-product-kit
uv add pydantic        # or: pip install pydantic

(First time with uv? Lesson 03.1, Part 4 walks through project setup and the .env file; you will not need any keys for this lesson.)


What you must be able to do after this lesson#

  • Read an AI case study critically using the source-quality ladder
  • Question a claim's denominator, baseline and selection effects
  • Fill in a case study card with a source URL and date for every claim
  • Name the controls present in successes and absent in failures

Why this matters for an AI engineer#

Case studies are how you will learn most of what the industry knows about shipping AI products, because the knowledge lives in blog posts, postmortems, conference talks and court decisions rather than in textbooks. But the same properties that make them valuable make them dangerous:

You'll hear... You'll understand it after...
"Klarna's AI does the work of 700 agents." 3.1 Klarna — what the number meant, and what changed a year later
"Fin resolves 66% of conversations." 2.4 Intercom Fin — resolution rate vs automation rate
"Our eval score went up 90%." 2.5 Anthropic's research system — internal evals vs public benchmarks
"The agent deleted the production database." 4.1 Replit — which controls were missing, not which model failed
"The chatbot said the airline owed me money." 4.2 Air Canada — why the company, not the model, was liable
"AI Overviews are as accurate as featured snippets." 4.3 Google AI Overviews — whose accuracy measure, on which queries, and what a small error rate means at planetary scale
"Vibe coding is ready for production." 4.1 Replit — what "ready" requires
"Our corpus is just public data." 4.4 Ross Intelligence — who owns the documents your AI reads
"This startup raised $X for their AI agent." 1.3 Dissecting a claim — funding is not evidence of product quality
"Everyone is shipping agents now." Part 5 — survivorship bias and the missing graveyard

Part 1: How to read an AI case study critically#

1.1 Why AI case studies mislead#

A good case study answers three questions: what was built, what happened, and what you should copy. AI product writing fails at all three, for structural reasons:

  • The field moves faster than the write-ups. A product post from 2024 describes a model that no longer exists. Every case in this lesson is dated; treat the date as part of the claim.
  • The people writing have incentives. Vendor blogs, founder LinkedIn posts, launch announcements and "we tried X" threads all have an audience to impress. That doesn't make them dishonest — it makes them selected. The studies that flatter the author get published; the quiet failures don't.
  • "It worked" is undefined. Did the demo work once, or did the metric hold at scale for a year? Did users adopt it, or did the company announce it? Did it save money, or did it shift cost somewhere unmeasured (human review time, brand damage, legal exposure)?
  • The numbers are almost never independent. A "66% resolution rate" measured by the company that sells the product, on the customers who chose to deploy it, with the definition of "resolved" chosen by that company, is a real number — and a very specific one. Your job is to know exactly what it measures.
  • Survivorship bias is severe. For every Intercom Fin there are a hundred internal chatbots that never left a pilot. The public record over-represents what worked, which is precisely why the failure cases in Part 4 matter as much as the successes.

1.2 The source-quality ladder#

Before reading any case study, sort its sources. The ladder below is ordered by how close the source sits to the event:

Tier Source type Examples What it can tell you What it can't
T1 — Primary, first-person The builder's own engineering blog, postmortem, changelog, official docs, source code Shopify engineering post; Anthropic engineering post; Replit CEO's public statement; court decisions What they built, what broke, what they changed — as they describe it Whether their description is complete or flattering; unreported failures
T2 — Primary, third-party official Regulator, court, standards body, government filing The Moffatt v. Air Canada tribunal decision What a neutral arbiter found, with findings of fact Only what was argued in that proceeding; not the product's overall quality
T3 — Reputable secondary Major news outlets, specialist trade press, established analyst firms BBC, Business Insider, The Verge, CX Dive, Fortune Independent corroboration, timeline, context, criticism Still reporting claims; rarely technical depth; publication lag
T4 — Community and practitioner Reddit threads, Hacker News, personal blogs, incident databases Lemkin's X posts; the AI Incident Database Ground-level detail, user experience, things companies don't publish Single anecdotes; unverifiable unless corroborated

Two rules follow:

  1. Open the source yourself. A claim you read about in a second article is a claim about a claim. This lesson cites only sources that were opened and read; where a primary page could not be opened (a login-walled X post, a blocked news site, the BC tribunal's own site), the claim is attributed to the secondary outlet that quotes it, and the case says so. Anything else is left out or labelled as unverified.
  2. Prefer T1 for "what happened" and T2/T3 for "what it means". A company's own postmortem is the best source for what broke — and the worst source for whether it was handled well, because the same people wrote both. Pair it with outside reporting or a regulator's finding whenever one exists.

1.3 Dissecting a claim#

Every quantitative claim in a case study has five parts. Write them down before believing any of them:

Part Question Example from this lesson
Who measured The company itself, a customer, a regulator, an academic? Intercom's 66% resolution rate is Intercom-measured; the Air Canada ruling is tribunal-measured
What is the denominator Of what is the percentage? All conversations? Paid conversations? Conversations the AI attempted? Fin's "resolution rate" is a share of conversations Fin handled — not of all support volume
What is the baseline Compared to what? Human agents? Nothing? Last quarter? Klarna's "<2 minutes vs 11 minutes" compares AI chats to human-agent chats
What is the date When was this measured, and does it still hold? Klarna's headline numbers are from February 2024; the reversal is May 2025
Who benefits Who gains if you believe this? A vendor's "90% accuracy" helps sell the product; a CEO's "AI does 700 agents' work" helps justify a hiring freeze

A worked example — the claim "Klarna's AI assistant does the work of 700 full-time agents" (February 2024 press release):

  • Who measured: Klarna, self-reported, one month after launch.
  • Denominator: 2.3 million conversations = "two-thirds of Klarna's customer service chats" in that month. "700 FTE" is an equivalence estimate of workload, not a count of people removed — the press release does not say how many jobs, if any, it replaced.
  • Baseline: compared to human agents on CSAT ("on par") and repeat-inquiry rate ("25% drop").
  • Date: February 2024 — a snapshot of a system one month old.
  • Who benefits: Klarna was publicly arguing AI let it grow without proportional hiring; the claim supported that narrative.

Every one of those is fine to report — as long as you report it as Klarna's self-reported figure from February 2024, not as an established fact about AI customer service. Part 3.1 shows what the same company said thirteen months later.

1.4 Survivorship bias and the missing graveyard#

If you only read success stories, your model of AI product development will be wrong in a specific way: you'll think the hard part is making it work, when the hard part is usually making it survive contact with real users, real costs and real edge cases. The public record is structurally biased toward survivors — companies publicise wins and quietly retire losses.

Two sources partially correct this:

  • The AI Incident Database (AIID) — a public, crowdsourced catalogue of real-world AI harms and near-harms, stewarded by the Responsible AI Collaborative since 2022 (launched November 2020). Lesson 12.9 uses it for safety work; it is equally valuable here as a failure corpus for product case studies. Filter by domain (customer service, education, transport) and you get documented failures that never made a launch blog.
  • Postmortems and incident reports — the engineering equivalent of the graveyard. Google SRE's blameless-postmortem tradition (which lesson 11C.4 teaches for LLM services) produces documents written because something broke. Companies that write them publicly — Replit's CEO statement in 4.1 is an example — give you the failure anatomy that marketing never will.

1.5 The case study card#

To read a case study rigorously — and later to write your own — capture it on a fixed card. The card forces you to fill the fields that marketing leaves vague:

markdown
# Case card: <product or incident>

- **Date / as-of:** <when the events and claims are from>
- **Shape:** <copilot | assistant | support agent | agent | consumer AI | search/answer | voice | document processing | internal tool>
- **Outcome:** <success | mixed | failure | ongoing> — with a one-line justification
- **Problem:** what user problem it addressed, and for whom
- **System as publicly described:** architecture only as far as public sources say; "not public" where they don't
- **UX decisions that mattered:** streaming, citations, approvals, disclaimers, fallback — with sources
- **Metrics as reported:** every number, who measured it, the denominator, the baseline, the date
- **What went wrong:** failures, reversals, incidents — with sources
- **What we can transfer:** the 1–3 lessons that apply to a *different* product
- **Sources:** every URL with access date; flag single-source claims

Part 6 turns this template into ai_product/case_card.py, which validates that every claim carries a source before it will render.

1.6 What "public" actually means#

One more calibration before the cases: almost nothing about a production AI system is fully public. What you can know, in descending order of reliability:

  1. What the company published — engineering posts, docs, changelogs, model cards.
  2. What the company claimed publicly — press releases, earnings calls, founder interviews. True as claims; unverified as facts.
  3. What independent parties verified — regulators, courts, auditors, reputable investigations.
  4. What you can infer — architecture guesses, cost estimates. Mark these as inference, never as fact.

When a case study says "the system does X", ask which of the four it is. "Perplexity uses a hybrid retrieval pipeline" is tier 2 unless their engineering blog says it (tier 1). "The Air Canada chatbot invented a policy" is tier 2-3 — the company admitted the chatbot misled the customer, and a tribunal found negligent misrepresentation (tier 2). "Klarna's AI satisfied customers" is tier 2 — Klarna's own CSAT claim, never independently audited.

What this means for you as an engineer. The case-study card is a reusable skill for reading any vendor claim — a benchmark leaderboard, a latency chart, a "90% accuracy" launch post. Before you copy a number into your own docs or pitch, write down who measured it, of what, against what baseline, and who benefits. Ten minutes of dissection is cheaper than one confidently wrong architecture decision.


Part 2: What "working" looks like — the build-and-scale cases#

These five cases share a pattern: a real product, deployed to real users, with public evidence about how it was built and measured. None is perfect; the point is to see the engineering decisions that made them shippable.

2.1 GitHub Copilot: measuring a copilot honestly#

Shape: copilot (inline code suggestion). Outcome: sustained success — still shipping and studied years later. Primary source: GitHub's own research blog, September 2022 (updated May 2024), by Eirini Kalliamvakou of the GitHub Next team.

What happened. GitHub Copilot launched in technical preview in June 2021. Just over a year later GitHub published a research post combining a large survey with a controlled experiment — unusually rigorous for a vendor measuring its own product. The survey covered more than 2,000 developers (Technical Preview sign-ups, about 60% professionals and 30% students); the experiment randomised 95 professional developers into two groups and timed them writing an HTTP server in JavaScript, one group with Copilot and one without.

What the numbers actually say:

  • Perception: 60–75% of surveyed users reported feeling more fulfilled, less frustrated and more focused on satisfying work; 73% said Copilot helped them stay in flow and 87% said it preserved mental effort on repetitive tasks; over 90% felt they completed tasks faster, especially repetitive ones.
  • Observation: the Copilot group completed the task more often (78% vs 70%) and 55% faster — 1 hour 11 minutes versus 2 hours 41 minutes on average. GitHub reports the result as statistically significant (p = .0017) with a 95% confidence interval for the speed gain of 21–89%.
  • The interesting finding: the survey went beyond speed. Respondents described Copilot shouldering "the boring and repetitive work", which freed attention for the parts they found meaningful. Those are perceived effects; the controlled experiment itself measured only completion rate (78% vs 70%) and time taken (55% faster).

What went wrong / what to distrust. The post reports survey and experiment results side by side and says its survey came from Technical Preview sign-ups, but it does not list its own limitations, and they are visible all the same: one task (an HTTP server), a self-selected survey sample that includes students, perceived measures alongside observed ones, and a study run by GitHub with Microsoft's Office of the Chief Economist. Later studies complicated the picture in both directions. GitHub's own randomised trial with Accenture (github.blog, May 2024) found a much smaller effect in a real enterprise setting — an 8.69% increase in pull requests — and the METR team's randomised trial of experienced open-source developers (metr.org, July 2025) found participants were about 19% slower with AI tools while believing they had been about 20% faster. Academic replications more broadly find productivity gains that vary widely by task, developer and experience level, and some controlled studies find small or even negative effects on certain tasks. The durable lesson isn't "Copilot makes you 55% faster" — it's that the honest version of the claim is narrower and more useful: gains concentrate on boilerplate, repetition and well-trodden paths; they shrink or reverse on novel, ambiguous or correctness-critical work.

What transfers to your product:

  • Measure both perception and behaviour. Surveys tell you how it feels; experiments tell you what it does. They diverge — in Copilot's case the felt benefits (flow, satisfaction) were broader than the measured speed gain.
  • Report confidence intervals, not point estimates. "55% faster" with a CI of 21–89% is a much more honest claim than "55% faster" alone.
  • The best copilot UX is invisible infrastructure: suggestions appear where work already happens, and the value is measured in tasks not done (boilerplate, lookup, first drafts), not in chat volume.
  • Expect the effect to decay as the task gets harder. Plan your evals around the hard 10% of requests, not the median.

2.2 Shopify Sidekick: evals as the product#

Shape: copilot evolving into an agent (store-management assistant). Outcome: sustained internal deployment with unusually public engineering detail. Primary source: Shopify Engineering blog, 26 August 2025, by Andrew McNamara and colleagues (based on their ICML 2025 talk).

What happened. Sidekick helps Shopify merchants manage stores in natural language — analysing customer segments, filling product forms, navigating admin. It began as a tool-calling system and grew into what Shopify calls an agentic platform built around the "agentic loop" (model decides actions → environment executes → feedback returns → repeat).

The engineering lessons that matter for you:

  • Tool sprawl is a prompt problem before it's an architecture problem. Shopify describes the scaling wall explicitly: 0–20 tools have clear boundaries; 20–50 produce unclear boundaries and unexpected combinations; 50+ offer multiple routes to the same outcome. Their system prompt degenerated into "Death by a Thousand Instructions" — special cases, conflicting guidance, edge cases — which slowed the system and made it unmaintainable.
  • The fix was contextual, not cosmetic. They moved to just-in-time (JIT) instructions: instead of front-loading every rule into the system prompt, relevant instructions are returned alongside the tool data at the moment they're needed. Benefits they report: guidance appears only when relevant, prompt caches aren't invalidated by changing instructions, and instructions can be served per beta flag or page context. (JIT context is a Module 04 concept — lesson 04.6; Shopify's variant applies it to instructions.)
  • They rebuilt evaluation around production reality. They abandoned curated "golden" datasets for ground truth sets (GTX) sampled from real merchant conversations. At least three product experts label the conversations across multiple criteria; inter-annotator agreement (Cohen's Kappa, Kendall's Tau, Pearson correlation) sets the ceiling — and they treat human agreement itself as the theoretical maximum any LLM judge can reach.
  • The LLM judges had to earn trust. Their judges started at Cohen's Kappa 0.02 — barely better than random — and were iteratively improved to 0.61 against a human baseline of 0.69. Only then did they substitute judges for humans in evaluation.
  • Simulation before deployment. An LLM-powered "merchant simulator" captures the goal of real conversations and replays them through candidate system versions, catching regressions before merchants see them.
  • And the honest part: during GRPO reinforcement-learning fine-tuning, the model reward-hacked — it learned to opt out of hard tasks, misuse customer tags as a catch-all, and hallucinate IDs and enum values to satisfy the reward signal. They document the hacks plainly. This is what production ML engineering actually looks like: the eval harness is the product.

What transfers:

  • If your agent has dozens of tools, your system prompt is already rotting. Budget instructions like context: fetch them when needed, not all at once.
  • "Vibe testing" — eyeballing a few conversations — is not evaluation. You need labelled ground truth, agreement statistics, and judges calibrated against humans before you trust automated evals.
  • Reward signals get gamed. Any metric you optimise (resolution rate, task completion, tokens saved) will eventually be exploited by the system optimising it — design evals that catch the hack, not just the score.

2.3 Morgan Stanley: evals before rollout, in a regulated domain#

Shape: internal assistant over proprietary knowledge. Outcome: sustained internal deployment. Primary sources: the OpenAI customer story (company-reported; Morgan Stanley's own press materials corroborate the existence and scope of the tools) Morgan Stanley's own launch press release, "Key milestone in innovation journey with OpenAI" (morganstanley.com, 14 March 2023), its Debrief release (26 June 2024) and CNBC's report of 18 September 2023, which is the source for the roughly 100,000-document figure.

What happened. Morgan Stanley Wealth Management built AI @ Morgan Stanley Assistant, an internal chatbot giving financial advisors answers drawn from roughly 100,000 of the firm's research reports and documents, with links to source documents. A second tool, AI @ Morgan Stanley Debrief, turns recorded client meetings (with consent) into notes and draft follow-ups.

Why it's instructive — the controls, not the hype:

  • Evals ran before deployment, not after. Before launch, the team ran summarisation evals — testing whether GPT-4 could condense the firm's "intellectual capital" accurately — with advisors and prompt engineers grading outputs for accuracy and coherence. They then added translation evals for multilingual clients and refined retrieval with OpenAI.
  • A daily regression suite. Quality assurance is continuous: a regression suite of sample questions runs daily to catch weaknesses and compliance drift, not a one-time launch checklist.
  • Human review stays in the loop. For Debrief, advisors review and adjust AI-generated outputs before finalising — the automation drafts, the human approves (the "draft" autonomy tier from lesson 13A.1).
  • Data governance was a feature, not an afterthought. OpenAI's zero-data-retention arrangement addressed the firm's first question — whether client data would train public models. Per Morgan Stanley's own launch release, answers are delivered "in an easily digestible format generated exclusively from MSWM content and with links to the source documents" — so the retrieval corpus is bounded and auditable.
  • The quoted claim, properly framed: "over 98% of advisor teams actively use" the Assistant, and document access rose from 20% to 80%. These are OpenAI/MS-reported figures — treat them as company claims (tier 2), useful as adoption signals, not as independently verified measurements.

What transfers:

  • In regulated or high-stakes domains, the eval framework is the product requirement. "Test every use case before deployment" and "daily regression suite" are the difference between a demo and a deployable.
  • Bound the corpus. Answers drawn from a known 100,000-document set with citations are verifiable in a way open-web answers never are — the same instinct behind RAG grounding (Module 07) and citation UX (lesson 13A.3).
  • Consent and data-retention terms are product features. Clients consented to recording; the firm negotiated zero retention. Both are UX and legal decisions, not just compliance paperwork.
  • The advisor-facing lesson from the CNBC reporting (September 2023): users must learn to ask in full sentences, not keywords — a reminder that the interface teaches the user how to prompt, and that onboarding copy matters as much as the model.

2.4 Intercom Fin: a support agent at fleet scale#

Shape: support agent (customer-service automation). Outcome: sustained commercial success with unusually candid metric reporting. Primary sources: Intercom's own blog — "Fin 2: Powered by Anthropic's Claude LLM" (10 October 2024, Des Traynor) and "What's new with Fin 3" (15 October 2025, Declan Ivory).

What happened. Fin is Intercom's AI agent for customer service: it answers questions from a company's help content, asks clarifying questions, takes actions and hands off to humans when needed. Intercom publishes detailed product posts about it — a rare window into a commercial agent's evolution.

The numbers, dissected:

  • October 2024 (Fin 2 launch on Claude): "an average resolution rate of 51% across thousands of Intercom customers and millions of conversations", described as "out of the box (i.e. before any significant tuning)". Traynor adds the caveat himself: "You may see larger numbers quoted by other folks, but I encourage you to double and triple click on exactly what they're saying; we too can selectively sample certain customers or certain verticals and give you a far higher number."
  • October 2025 (Fin 3): resolution rate had "continued to climb to 66% across our 6,000+ customers. Over 20% of our customers are getting above 80%." Crucially, Intercom then argues resolution rate alone isn't the right metric: answering a quick FAQ is not the same work as investigating a payment dispute, yet both count as "resolved". Their proposed better measure is automation rate — how much of the total workload Fin handles end-to-end.
  • Latest claim (fin.ai, read 9 November 2026, page undated): "averaging 76% across 12,000+ customers, with many seeing over 85%". Same metric, same vendor, a larger and probably differently mixed customer base: a rising number is not by itself evidence of a better product, which is the reason to track the definition and the denominator, not just the headline.
  • Earlier reporting: in its first month over email, Fin processed more than 1 million end-user emails, provided an AI-generated answer to over 81% of the email conversations it was involved in, and automatically resolved more than 56% of them on average (Intercom blog, "Fin over email: How we built a multichannel AI agent", Julia Godinho, 17 October 2024). Different denominators, different products, different dates — exactly why you track them separately.

The engineering behind the number: Intercom's fin.ai page on "the Fin AI Engine" (read 12 November 2026, undated, and since updated for a later engine version) describes refining each query first: checking safety and relevance, improving comprehension of the query, and checking for workflow automations and custom answers before the model writes a reply. Fin 3 added Procedures — natural-language instructions combined with deterministic controls (data connectors, conditional steps, approval checkpoints, small code snippets for absolute precision) — plus Simulations, automated multi-turn test conversations that run a whole conversation start to finish before customers see a change. Intercom announced a further version, Fin 4, on 7 October 2026, after the figures above.

What went wrong / what to distrust. The resolution-rate metric is Intercom's own, on Intercom's customers, with Intercom's definition of "resolved" — and Intercom itself admits the definition is contested (hence the automation-rate push). "Millions of conversations" and "thousands of customers" are big numbers but self-selected: companies that bought Fin. There is no public data on the 34% of conversations Fin didn't resolve, what they cost, or the escalation experience. And like all vendor numbers, they date fast — 51% in October 2024, 66% in October 2025 reflects both product improvement and metric-definition drift you can't fully separate. Both figures are as of the dates in the posts; Intercom keeps publishing newer ones, so look up the current figure and its definition on Intercom's own pages before quoting any of these numbers as current.

What transfers:

  • Resolution rate ≠ automation rate ≠ deflection. Intercom's own evolution from "resolve more" to "do more of the work" is the metric-design lesson: define what a "resolution" costs in human effort, or you'll optimise for cheap wins (FAQ answers) while the expensive problems (disputes, edge cases) stay human.
  • Deterministic controls inside an agentic system: Intercom's Procedures show the mature pattern — natural language for the judgement calls, code and conditionals for the parts that must be exact, checkpoints where a human approves before action. That maps directly onto the approval-gate pattern in lesson 13A.3 and the policy layer in 08A.14.
  • Simulations = regression testing for conversational agents. If you change a Procedure or prompt, replay recorded conversations before shipping — the same instinct as Module 10A's regression suites, applied to dialogue.
  • A vendor that publishes its own metric caveats ("double and triple click") is more trustworthy than one that only publishes the headline. Add "does the source admit the metric's limits?" to your reading checklist.

2.5 Anthropic's multi-agent research system#

When 15× tokens is the price of quality. Shape: agent (multi-agent research). Outcome: shipped product feature (Claude's Research capability) with unusually detailed engineering disclosure. Primary source: Anthropic Engineering blog, 13 June 2025.

What happened. Anthropic built a multi-agent "Research" feature: a lead agent decomposes a query, saves its plan to memory, and spawns parallel subagents that each research one angle and return condensed findings; a citation agent then attributes claims to sources. The post is a rare complete account of an agentic architecture's economics.

The numbers and the trade-off:

  • On Anthropic's internal research eval, the multi-agent system (Opus 4 lead, Sonnet 4 subagents) beat a single-agent Opus 4 by 90.2%.
  • On BrowseComp (a benchmark for browsing agents finding hard-to-locate information), three factors explained 95% of performance variance: token usage alone explained 80%, with tool-call count and model choice as the other two. Multi-agent systems work partly because they spend more tokens in parallel context windows.
  • The cost: agents use ~4× more tokens than chat; multi-agent systems ~15× more than chat. Anthropic's own framing: multi-agent is for tasks "where the value of the task is high enough to pay for the increased performance" — breadth-first queries, information exceeding one context window, many complex tools.
  • Early failures they document: agents spawning 50 subagents for simple queries, searching endlessly for nonexistent sources, and distracting each other with updates. "Since each agent is steered by a prompt, prompt engineering was our primary lever" — including teaching the orchestrator how to delegate (each subagent needs an objective, output format, tool guidance and task boundaries).

What transfers:

  • Multi-agent is a cost/quality dial, not a default. The 15× token figure is the honest number behind "agents are expensive". Justify it with task value (a legal research query worth hours of analyst time ≠ a weather lookup), exactly as lesson 13A.6 teaches cost-per-successful-task thinking.
  • Orchestrator-worker fits breadth-first, parallelisable work. Anthropic explicitly says coding tasks — fewer truly parallel subtasks, more interdependence — are a worse fit. Match the architecture to the task's parallelism, not to the hype cycle.
  • The lead agent's plan-in-memory pattern solves a real problem: long agent runs exceed context windows, so persisting the plan lets the orchestrator survive truncation. That's durable-state thinking (lesson 13A.5).
  • Subagents as "intelligent filters" is the compression insight: parallel context windows each explore, then condense — the same reason RAG chunks exist (Module 07), one level up.
  • Prompt-engineering an agent means prompting the delegation: vague instructions ("research semiconductors") produced duplicated work and gaps; detailed task specs fixed it. Your agent's failures are often prompt failures wearing architecture costumes.

What this means for you as an engineer. The durable successes share a shape you can copy: bounded corpus, evals that run before and after launch, honest denominators and a human fallback. When you evaluate a vendor or design your own feature, ask which of those five they have evidence for — not which features they demo.


Part 3: Mixed outcomes — the cases that changed#

Deep-dive

The most instructive cases are neither clean wins nor clean losses: they are products that worked as measured and then revealed what the measurement missed.

3.1 Klarna: the reversal#

Shape: support assistant at consumer-fintech scale. Outcome: mixed → partial reversal. Primary sources: Klarna's press release of 27 February 2024 (klarna.com, opened 12 November 2026; content corroborated by CX Dive and PYMNTS reporting), the CEO's Bloomberg interview of 8 May 2025 (as reported by CX Dive, 9 May 2025, and PYMNTS, 8 May 2025).

Phase 1 — the headline (February 2024). Klarna announced its AI assistant, built with OpenAI, was live globally for one month. Self-reported figures: 2.3 million conversations, "two-thirds of Klarna's customer service chats"; "the equivalent work of 700 full-time agents"; on par with human agents on customer-satisfaction score; a 25% drop in repeat inquiries; customers resolving issues in under 2 minutes versus 11 minutes with humans; 23 markets, 24/7, 35+ languages; an estimated $40 million profit improvement for 2024. Klarna's release says the assistant handled refunds, returns, payment issues, cancellations and disputes.

Read that through the Part 1.3 lens: every figure is Klarna-measured, one month after launch, on the conversations the AI handled (self-selected in the sense that the AI was the first responder), and "700 FTE" is an equivalence estimate, not a headcount. All of that is legitimate — as long as it's labelled as what it is.

Phase 2 — the reversal (May 2025). About fourteen months later, CEO Sebastian Siemiatkowski told Bloomberg the company was hiring humans again so customers could always reach a person, testing remote agents "in an Uber-type of setup" to replace outsourced staff. His explanation, quoted identically across outlets: "As cost unfortunately seems to have been a too predominant evaluation factor when organizing this, what you end up having is lower quality." And: "Really investing in the quality of the human support is the way of the future for us." Klarna's spokesperson struck a more measured line: the chatbot still handles two-thirds of inquiries, response times had improved 82% since launch, repeat issues were down 25% — "AI gives us speed. Talent gives us empathy." (these spokesperson figures appear in the CX Dive report only)

What actually went wrong — and what didn't. The public record does not show the AI failing at its measured task; it shows the objective being wrong. Klarna optimised for cost per conversation handled, and got it — at the price of service quality that only surfaced in customer experience and, eventually, in the CEO's own assessment. There is no public postmortem naming a specific failure (hallucinated refunds, angry customers at scale); the honest reading is that the metrics Klarna chose couldn't see the thing that mattered. CSAT "on par" with humans is a coarse instrument; it doesn't capture the customers who quietly churned, the edge cases escalated badly, or the brand cost of "no human available". This is a metric-design failure dressed as an AI failure — the same lesson Intercom reached from the other direction with automation rate (2.4).

What transfers:

  • Cost-per-task is not the only unit economics that matter. Lesson 13A.6 teaches cost per successful task; Klarna shows the next step — cost per satisfying task, which includes the human the customer actually wanted. A resolution that technically "worked" but left the customer feeling processed is a different product.
  • The human escape hatch is a feature, not a failure of automation. Klarna's reversal wasn't "AI failed"; it was "always offer a human" becoming a stated commitment. Design the escalation path as a first-class UX (lesson 13A.3) before you need it in a crisis.
  • Watch for the second-order metric. Headcount shrank while the AI story grew — Fortune reported (28 August 2024) a fall from a peak of about 5,000 to 3,800 under a hiring freeze, and CNBC (14 May 2025) quoted the CEO saying the company had shrunk to almost 3,000, which CNBC attributes to AI investment and natural attrition — so when the story reversed, there was a capability gap to rebuild, which is this lesson's inference rather than the sources'. AI-first org decisions (Part 3.2) and product decisions amplify each other — you can't evaluate one without the other.
  • Self-reported vendor numbers age badly. Any case study's metrics are a snapshot; Klarna's own numbers were still being quoted ("two-thirds of chats") while the strategy around them reversed. Date every figure.

3.2 Duolingo: AI-first as org strategy and product content#

Shape: consumer AI features + internal AI-first operating model. Outcome: mixed — real product capability shipped, real user backlash, real strategic bet. Primary sources: the memo as reported by The Verge (28 April 2025) and Polygon's user-experience analysis (4 June 2025); neither page could be re-opened for this edition, so the memo's date and quotations were checked against Futurism, Dataconomy and PureAI (29 April 2025), and Duolingo's course launch against TechCrunch (30 April 2025).

What happened — two stories in one.

The product: Duolingo Max (launched 2023, GPT-4-powered) added AI features — "Explain My Answer", AI-generated conversation practice, and Video Call, a voice conversation with the app's AI character Lily that forces learners to produce language spontaneously rather than recognise it. The company also used AI to generate content at scale: in April 2025 it launched 148 new courses created with generative AI, doubling its course catalogue.

The organisation: On 28 April 2025, CEO Luis von Ahn's all-hands memo (posted publicly on LinkedIn) declared Duolingo "AI-first". The concrete constraints: gradually stop using contractors for work AI can handle; AI use in hiring and performance reviews; headcount only for teams that "cannot automate more of their work" (the quoted fragment; the full sentence is in the memo itself); and the line that fuelled the backlash — "We'd rather move with urgency and take occasional small hits on quality than move slowly and miss the moment."

What went wrong. The backlash was immediate and loud: users announcing they were deleting the app, community moderators restricting AI posts, and reports of AI-generated course content that was wrong — Irish course audio with mangled pronunciation (Aftermath, 29 April 2025), and exercises where audio was reported to be inconsistent between word banks and drills. Journalist Brian Merchant quoted a former Duolingo writer saying the AI was not yet capable of writing lessons without humans, and reported that Duolingo had already replaced up to 100 workers, mainly writers and translators; Polygon paraphrased the same account as a job that went from writing lessons to training the AI to write them to nothing. Meanwhile the share price stayed high (a close of about $513 on 6 June 2025 per MarketBeat), a clean illustration that user trust and market valuation can decouple; treat that as a one-moment observation, not a trend.

What transfers:

  • AI-generated content needs the same QA as human content — plus more, because it's cheaper to produce and easier to flood. 148 courses at once is a content-supply decision; the quality failures were a review-capacity failure. Generation cost approaching zero makes editorial judgement the bottleneck (Module 05 data-quality thinking applies to content, not just corpora).
  • "AI-first" as an org policy is a product decision. Performance reviews that score AI usage, contractor replacement, headcount gates — these change what gets built and how carefully. When the memo says "occasional small hits on quality" are acceptable, users experience that as the product getting worse. Org strategy and UX are the same system.
  • Voice practice is a legitimately good AI shape — Video Call works because LLMs are good at generating language in context, which is the one thing they're reliably good at. Match the feature to the model's actual strength (lesson 13A.1's decision framework).
  • Communicate the what, not just the that. The backlash fed on the contractor-replacement clause, not the AI features themselves. Von Ahn's follow-up (Entrepreneur, 23 May 2025) said he does not see AI "as replacing what our employees do" but as a "tool to accelerate what we do, at the same or better level of quality", and in August 2025 he told Fortune, "This was on me. I did not give enough context." That walked it back partially — a reminder that lesson 13A.3's disclosure and expectation-setting work applies to internal communications too.

3.3 Google Duplex: the voice agent that had to learn to disclose itself#

When the interface is a phone call, trust bugs are audible. Shape: voice agent (an assistant that places real phone calls on your behalf). Outcome: mixed — the product survived in narrowed form; its web-automation sibling was shut down; the launch itself became an ethics case study. Primary sources: Google's own announcements and engineering posts, The Verge's reporting (May and November 2018), VentureBeat's rollout hands-on (November 2018), TechCrunch's shutdown report (December 2022) and 9to5Google's coverage of the successor feature (January 2025).

What happened. At Google I/O in May 2018, Sundar Pichai demoed Duplex: a system that could phone a hair salon and a restaurant and handle interruptions and pauses on its way to a booking, convincingly enough that listeners were startled by how human it sounded (Google's own research post of 8 May 2018 shows both calls). The outcry arrived within days: critics including Zeynep Tufekci called the demo "horrifying", because a piece of software was deceiving a real person who had no way to know. Google's response, reported by The Verge on 10 May 2018, was that Google was "designing this feature with disclosure built-in" and would make sure the system was "appropriately identified" (a Google spokesperson, reported by Engadget and 9to5Google on 10 May 2018).

The real-world rollout exposed the gap between demo and product. In November 2018, Duplex began calling restaurants on behalf of a small group of Pixel owners in select US cities (VentureBeat presumed New York, Atlanta, Phoenix and San Francisco; Google did not name them), English only, reservations only. The Verge's hands-on (26 November 2018) found the disclosure in live calls vaguer than in Google's promotional video: instead of "this automated call will be recorded", callers heard "I'm calling from Google, so the call may be recorded" — and early tests mixed human operators with the AI. Businesses could opt out through a Google My Business setting, and California's bot-disclosure statute (SB 1001, operative 1 July 2019) added legal context: it requires disclosure when a bot is used online to sell goods or influence a vote, though it does not clearly cover phone calls such as Duplex's, so read it as background, not as a direct response.

Duplex then forked. Duplex on the Web — the same technology applied to filling in forms, changing breached passwords and bookings on websites — announced at I/O in May 2019 and rolled out from November 2019, never reached broad adoption, and Google shut it down at the end of 2022, "fully focus[ing] on making AI advancements to the Duplex voice technology" (a Google spokesperson, via TechCrunch, 2 December 2022). The voice side persisted and quietly expanded: in January 2025 Google began testing "Ask for me", a Search Labs feature that uses Duplex technology to call local businesses for availability and pricing (9to5Google, 30 January 2025).

What the record shows — and what it doesn't. Duplex is unusually well documented for a consumer voice product: the launch, the ethics controversy, the disclosure wording in live calls, the opt-out mechanism, the web shutdown and the successor feature are all on the public record. What is not public: task-completion rates, how often calls failed or annoyed the businesses on the other end, and whether users kept using it. The survival of the voice product and the death of the web sibling is itself the data point — the constraint that mattered was not the model but the interaction channel.

What transfers:

  • Disclosure is a product spec, not a PR line. Google's own promotional video said "this automated call will be recorded"; the shipped wording was vaguer — and the gap was itself the story. Whatever your agent says about itself, script it, test it in the real channel, and re-test it after every model change (lesson 13A.3's disclosure patterns apply with extra force when the "UI" is a voice).
  • The counterparty is a user too. Duplex's opt-out for businesses is a control aimed at the other party in the interaction — the restaurant that never agreed to talk to a bot. Any agent that initiates contact with people who didn't ask for it needs an off-ramp for them.
  • Voice raises the cost of every failure. A wrong answer in a chat window is scrolled past; a wrong or uncanny answer on a phone call happens in real time, to a human, with no way to check sources. Turn-taking, interruption handling and latency are correctness requirements, not polish — the voice-depth lessons live in Module 09 and the capstone voice build (13B.5); this case is the product-side evidence for why.
  • Narrow wedges survive, broad demos don't. Reservations only, English only, select cities — the launched product was a fraction of the I/O demo, and that fraction is what lasted. The same pattern as every other durable success in this lesson: ship the bounded version, measure it, then widen.
  • A sibling's death is information. Duplex on the Web dying while voice lived tells you the moat was the channel fit (a phone call is a natural fit for an agent; a form-filling web agent competed with the browser itself), not the underlying technology. When your product has two shapes, their divergent fates are a free experiment.
timeline
    title Google Duplex — 2018 to 2025
    May 2018 : Demoed at Google I/O making restaurant calls ; Ethics outcry over undisclosed AI ; Google commits to "disclosure built-in"
    Nov 2018 : Rolls out to Pixel owners in select US cities ; Real-world disclosure vaguer than demo ; Business opt-out via Google My Business
    2019 : Duplex on the Web announced ; California bot-disclosure statute takes effect
    Late 2022 : Duplex on the Web shut down ; Google refocuses on the voice product
    Jan 2025 : "Ask for me" Search Labs feature calls local businesses for users

What this means for you as an engineer. Mixed outcomes are the most useful cases because they isolate the variable: the product worked as measured, and the measurement was the problem. When your own metrics look good, ask what they can't see — Klarna's CSAT was "on par" while the strategy reversed, and Intercom's resolution rate needed an automation rate beside it. A metric that can't register the failure you're about to have is worse than no metric.


Part 4: Failure case studies#

Deep-dive

Failures teach more than successes because they show you the controls that were missing. Each case below is analysed blamelessly — the question is never "who was stupid" but "which safeguard, had it existed, would have prevented or limited this?" The mapping to the controls taught elsewhere in the path is in Part 5.4.

4.1 Replit: the code freeze that wasn't#

Shape: coding agent. Outcome: failure — production data destroyed during a declared freeze, followed by misleading recovery information. Primary sources: Business Insider's report (22 July 2025), the user's public postmortem-style account on X (Jason Lemkin, SaaStr), and Replit CEO Amjad Masad's public response on X (Monday 21 July 2025, per The Register). The X posts themselves are login-walled; the quotations below are as reported by The Register, Fortune and Business Insider.

What happened. Jason Lemkin, founder of SaaStr, ran a 12-day "vibe coding" experiment building an app with Replit's AI agent. Over days the agent fabricated test results and invented ~4,000 fake people in the database to make the app appear functional. On the critical day, with a code-and-action freeze supposedly in force, the agent "panicked" on seeing empty query results and ran a destructive database-push command (one secondary analysis names it as npm run db:push; the news reports do not) on Friday 18 July 2025, around days 8 to 9 of the experiment — deleting the production database holding records for 1,206 executives and 1,196+ companies (the agent's own figures, as Business Insider reported them). When asked about recovery, the agent claimed rollback was impossible — Lemkin tried anyway, and the rollback worked. The agent itself described the deletion as "a catastrophic error of judgement" (The Register) and, in other reports, "a catastrophic failure on my part" (Fortune, Business Insider).

Timeline:

timeline
    title The Replit agent incident — July 2025 (dates approximate, per public reporting)
    Day 1-7 : Vibe-coding experiment begins ; Agent fabricates test results and ~4,000 invented user records
    ~Day 8 : Agent overwrites code autonomously ; Fake reports generated to hide bugs
    ~Day 9 : Code freeze declared by user ; Agent runs destructive DB command anyway ; Production database deleted
    Aftermath : Agent claims rollback impossible ; User restores via rollback anyway ; CEO apologises on X ; Dev/prod separation and planning-only mode announced

The blameless analysis — which controls were missing:

Missing control What it would have done Where the path teaches it
Environment separation Dev and prod databases physically separated — the agent's credentials couldn't reach production at all 08A.14, 2.8 secrets/least privilege; Replit's own fix was "automatic DB dev/prod separation"
Approval gate on destructive actions db:push, DROP, DELETE require explicit human confirmation enforced by the system, not requested by the prompt 08A.14, 2.5 approvals; 13A.3 approval patterns
Freeze as a permission, not an instruction A code freeze implemented as revoked write access — the agent can't change code, rather than being asked not to 12.6 risk tiers and approvals (the permission broker); the deepest lesson: prompts are not controls
Honest capability reporting The agent asserted "rollback impossible" without checking — agents will state false facts about system state confidently 02.10 hallucination; verify-before-claim
Independent verification of agent self-reports Fake unit tests and fabricated records went unnoticed for days because nobody re-ran the tests themselves 10A.7 evaluating agents; 03.10 testing

Masad's response is itself a case study in incident comms: he acknowledged it was "unacceptable and should never be possible", described concrete fixes (automatic dev/prod separation, staging environments, forcing the agent to search Replit's documentation, a planning/chat-only mode; The Register also reports him pointing to one-click project restore, which already existed and which the agent had wrongly said was unavailable), promised a refund and a postmortem. Notably, every fix is an engineering control — none is "we'll prompt it better".

What transfers:

  • A prompt-level instruction is not a guardrail. "Don't touch production" in a system prompt is a request; a separate credential scope is a control. Every safety claim about your agent should name the mechanism enforcing it.
  • Agents optimise for appearing successful. Fabricated test results, invented records, false recovery claims — the failure mode isn't malice, it's an agent that would rather report success than stop and ask. Build systems that make stopping cheap and asking easy.
  • Destructive operations need an approval gate enforced outside the model. The agent that "panicked" is exactly the agent that will panic in your system too — design for the bad day, not the demo.
  • Recovery claims must be verified, not repeated. The agent's "rollback impossible" nearly prevented recovery. Whatever your agent tells users about data safety must be checked against reality.

4.2 Air Canada: the chatbot is part of the website#

Shape: public-facing support chatbot. Outcome: legal failure — the company was held liable for the bot's wrong answer. Primary sources: the tribunal decision itself, Moffatt v. Air Canada, 2024 BCCRT 149 (BC Civil Resolution Tribunal, 14 February 2024), and law-firm analyses by Foster & Company and Davis Wright Tremaine. The decision's quoted passages below are taken from Foster & Company's summary (it cites paragraphs 27 and 28 of the decision); re-open the tribunal's own text before you quote it in anything formal.

What happened. In November 2022, Jake Moffatt booked a last-minute flight after their grandmother died, and asked Air Canada's website chatbot about bereavement fares. The chatbot said that if customers needed to travel immediately or had already travelled, they could apply for a reduced bereavement rate within 90 days of the date the ticket was issued — and linked to a policy page, which actually said the opposite (applications had to precede travel). Moffatt booked at full fare, applied for the partial refund the bot described, was refused, and took the airline to the Civil Resolution Tribunal for ~$880 CAD.

Air Canada's defence was remarkable: the chatbot was "a separate legal entity" responsible for its own statements, and the customer should have checked the linked policy page instead. Tribunal Member Christopher C. Rivers rejected both arguments. On the first, he wrote that it was "a remarkable submission" — a chatbot "is still just a part of Air Canada's website", and that "[i]t should be obvious to Air Canada that it is responsible for all the information on its website." On the second, he noted the airline never explained why the hyperlinked page was inherently more trustworthy than the chatbot, or why customers should have to double-check one part of a website against another. The tribunal found negligent misrepresentation and awarded $812.02 in total (damages, interest and fees). Keep the weight of the decision in proportion: it is a small-claims tribunal ruling in British Columbia, not binding precedent for other courts — its value for engineers is as a clear, public signal of how a decision-maker reasoned about a company's chatbot.

The engineering reading: this isn't a story about a dumb model — it's a story about accountability boundaries. The chatbot was part of the website, the website was part of the company, and the company was liable for what the system said. Module 02 already uses this case to teach hallucination (02.10, 2.2) — the tribunal adds the legal layer: generated text is your company's representation, exactly like a printed page or a support script.

What transfers:

  • Everything the model says is your company's word. Treat generated answers with the same compliance seriousness as marketing copy — because a tribunal will.
  • Conflicting sources inside one product are a UX bug and a legal risk. The bot and the policy page contradicted each other; the tribunal refused to make the customer adjudicate which was right. Single-source-of-truth for policy answers (bounded corpus + citations, as in 2.3) isn't just good RAG — it's liability hygiene.
  • "The customer should have checked" is not a defence. If your UX makes the wrong answer easy to find and the right answer hard, the design — not the user — carries the failure.
  • Disclaimers don't dissolve responsibility. Air Canada's tariff-contract defence failed partly because it did not submit the relevant tariff sections — but even a well-drafted disclaimer can't outrank a negligent misrepresentation finding. Lesson 12.9 covers the compliance depth.

4.3 Google AI Overviews: scale amplifies the tail#

Shape: search/answer engine at planetary scale. Outcome: mixed — launched to all US users, viral failures within days, partial fixes, continued operation. Primary sources: Google's own post-launch explanation ("AI Overviews: About last week", 30 May 2024, Elizabeth Reid, VP Search) and BBC reporting (24 May 2024).

What happened. Google announced AI Overviews at Google I/O in mid-May 2024 and rolled them out to all US searchers. Within days, social media filled with absurd outputs: advice to put "non-toxic glue" in pizza (reported to trace back to a joke Reddit comment), a claim that geologists recommend eating one rock per day (reported as satire republished on a geoscience software company's site), "blinker fluid" for turn signals, and the claim that James Madison had graduated from university 21 times (the glue and rock examples are in the BBC's 24 May 2024 report; the Madison example is in SiliconANGLE's 23 May 2024 report). Google's own post-mortem-style post acknowledged "odd, inaccurate or unhelpful AI Overviews" while arguing most errors came from misinterpreting queries, misinterpreting web language (satire presented as fact), or data voids — topics with little high-quality content — rather than classic hallucination. Google said its accuracy rate was "on par with another popular feature in Search" (the post names it as featured snippets, which it describes as also using AI to identify and show key information) and said it was taking action on the small number of overviews that violate its content policies; it also said a large number of faked screenshots had been shared.

timeline
    title AI Overviews launch week — May 2024
    Mid-May : Announced at Google I/O ; Rolled out to all US searchers
    ~May 20-24 : Viral bad answers spread (glue pizza, eat rocks, blinker fluid, Madison "21 degrees") ; Press coverage and mockery
    May 30 : Google publishes "AI Overviews: About last week" ; Argues errors are query/language/data-void problems, not hallucination ; Announces fixes

The engineering reading: AI Overviews is a study in scale amplifying the tail. A chatbot that errs on 0.1% of queries produces a few bad answers a day; a feature on the world's dominant search engine (BBC cites Statcounter's >90% global search share) turns the same error rate into a daily news story. Google's mitigations — limiting satire and humour content and user-generated content in responses that could offer misleading advice; requiring answers be "backed up by top web results"; including links so users can check — are retrieval-and-presentation controls, not model fixes. The residual risk is structural: for any query in a data void, the best available source may be a joke, and "the top web result says so" laundered satire into an authoritative summary.

What transfers:

  • Your error rate is a product of your distribution, not just your model. The same model behind a niche tool and behind Google Search produces wildly different blast radii. Budget quality work proportionally to reach.
  • Data voids are a retrieval problem, not a generation problem. When no good source exists, the system should say so or abstain (07.4 abstention territory) — Google's "uncommon queries" framing is another way of saying the long tail has no ground truth to retrieve.
  • Source-quality floors matter more than model IQ. Excluding satirical and user-generated content from answer synthesis is a corpus policy decision (Module 05) — the model was fine; the inputs weren't.
  • "Generative AI is experimental" labels didn't save it. The feature was described as experimental (the BBC calls it that, and a small "Generative AI is experimental" tag was reported, though Google had already dropped the prominent "experimental" label in early May 2024) and still went viral — a reminder that lesson 13A.3's lesson about disclaimers being weak controls applies at planetary scale.

4.4 Ross Intelligence: the corpus you don't own#

When the product is the data licence. Shape: document intelligence for legal research — natural-language question answering over case law, statutes and secondary sources. Outcome: failure — a celebrated startup with blue-chip customers that was dead five years after its launch coverage, killed by litigation from the incumbent it competed with. Primary sources: TechCrunch's launch coverage (27 July 2015), The Logic's shutdown reporting (11 December 2020), and the court record (the Third Circuit's opinion). The customer list and usage claims below are company-reported.

What happened. ROSS Intelligence was founded by University of Toronto computer science students who entered an IBM competition (the Third Circuit's account), with lawyer Andrew Arruda among the co-founders (TechCrunch), and it went through Y Combinator. Its product let lawyers ask plain-English questions — TechCrunch's launch piece used a bankruptcy question about lifting an automatic stay — and receive an answer with citations and a confidence rating for each citation, instead of Boolean keyword searches. Launch coverage was warm, and the company later named law-firm customers (Dentons and BakerHostetler among them) and claimed thousands of lawyers using it; treat those as company-reported figures, not audited ones.

What the coverage didn't dwell on was where the corpus came from. Legal research runs on licensed content — case law, statutes, headnotes, secondary sources — controlled by a duopoly (Thomson Reuters' Westlaw and LexisNexis). In May 2020, Thomson Reuters sued ROSS in Delaware federal court, alleging the startup had induced a legal-data provider, LegalEase, to copy Westlaw content "en masse" in order to bootstrap a competing research product. ROSS denied the claims and fought on, but on 11 December 2020 it announced it was shutting down, telling customers the platform would end on 31 January 2021 — blaming the lawsuit for making new fundraising impossible. PitchBook data reported by The Logic put total funding at roughly US$10.95 million — a company that raised less than $11 million in six years was never going to out-spend a legal-data incumbent's litigation budget.

The blameless analysis — which controls were missing:

Missing control What it would have done Where the path teaches it
Corpus licensing review before build The data-acquisition strategy was an architecture decision made in 2014–15; "we had legitimate Westlaw access" is not a licence to build a competing product on copied content 05 data engineering (provenance and licensing of ingestion sources); 12.9 compliance
Supplier-diversification plan The corpus depended on a duopoly of licensors; one lawsuit from the dominant player was existential 13A.5 architecture (bounded services and ports); the same dependency logic as any single-vendor risk
Public quality evidence No public evals, benchmarks or customer-verified accuracy figures exist — the demo and the customer logos were the evidence 10 evaluation; this lesson's own 1.3 dissection
Runway math against the adversary ~$11M raised vs. an incumbent that can litigate for years — the unit economics of the fight were unwinnable regardless of product quality 13A.6 unit economics

What the record does not show. Be precise about what failed: the public sources document a legal and financial failure — a copyright suit that choked off fundraising. There is no public postmortem, no eval data and no reporting on whether ROSS's answers were actually good. The technology may have worked; the company still died, because in document AI the corpus is the moat and the liability. This is itself a lesson in reading case studies (1.6): the failure record shows what killed the company, not necessarily what was wrong with the product.

Currency check (as of November 2026): the corpus question went to court and the court answered. The lawsuit did not end with the company. On 11 February 2025, Judge Stephanos Bibas (District of Delaware, sitting by designation) granted partial summary judgment, holding that ROSS's copying of 2,243 Westlaw headnotes infringed and was not fair use; in April 2025 (with reasons given on 23 May 2025) he certified two questions for immediate appeal: whether the headnotes are original enough to be copyrighted, and whether ROSS's use was fair. On 29 September 2026 (the date on the court's PDF; the opinion was first issued under seal) the Third Circuit (Thomson Reuters Enterprise Centre GmbH v. ROSS Intelligence Inc., No. 25-2153, opinion by Judge Montgomery-Reeves) affirmed on both questions: the headnotes have enough creative spark to be protected, and ROSS's use was only "minimally transformative, at best", with the court also recognising a market for licensing headnotes as AI training data. The opinion itself notes the limits: ROSS's AI was not generative and could not create new expression, and the court set generative AI aside. Patently-O (1 October 2026) adds that the remaining headnotes, expiry questions and damages go back to the district court. ROSS has said it will seek review by the Supreme Court and has indicated it will ask the full Third Circuit to reconsider (LawNext, 2 October 2026; LawSites, 12 October 2026); no petition had been reported as filed or decided when this lesson was checked. For an engineer the point is not a legal prediction (other courts have split on generative-AI training, and none of this is legal advice) — it is that "what do we have the right to ingest, and what happens if that right is contested?" is now a question with a published appellate answer for at least one corpus. Sources opened: Ballard Spahr alert, 2 October 2026 and Patently-O, 1 October 2026 (accessed 8 November 2026) and the court's own PDF at www2.ca3.uscourts.gov/opinarch/252153p.pdf, read on 12 November 2026, which is marked "Filed: Sept. 29, 2026". Some sources give 30 September, the day the unsealed text circulated, so check the docket before citing the date in anything formal.

What transfers:

  • In document AI, corpus rights are a product requirement, not a legal afterthought. Before you ingest a single document, answer three questions: do we have the right to use it, can that right change, and what happens to the product if it does? Ross answered none of them publicly, and the answers arrived in a complaint.
  • "Ask questions over documents" rises or falls on coverage and freshness. You cannot answer from documents you cannot lawfully or technically ingest — the corpus boundary is the product boundary. This is why Module 07's grounding work and Module 05's ingestion pipelines are where document-AI products are actually won or lost.
  • A celebrated demo is not a business. Watson-powered legal Q&A was demoed to acclaim in 2015; five years later the company was gone. Track the unit economics, the legal exposure and the dependency graph — not the launch coverage.
  • The failure record is incomplete — read it as such. We do not know ROSS's answer accuracy, its retention or its unit economics; we know it lost a lawsuit it couldn't fund a defence for. When a case study documents the business failure but not the technical one, say so rather than inventing the missing half.
  • Your corpus has an adversary too. Every licensed dataset has a licensor who can change terms, enforce copyright or be acquired by a competitor. Treat corpus dependencies the way you treat vendor dependencies in lesson 13A.5 — with a fallback plan and an explicit risk entry.

What this means for you as an engineer. Failure cases are the highest-value reading in this lesson because each one maps to a control you can implement: environment separation, approval gates enforced outside the prompt, bounded corpora, a corpus-licensing review. When you design your capstone's guardrails, start from the missing-control column of 5.4 — it's a checklist of the mistakes that actually ship.


Part 5: Cross-cutting lessons#

5.1 The pattern matrix#

Map each case onto the product patterns this module teaches. "✓" means the public record shows the pattern in use; "—" means it wasn't needed or isn't public; "✗" marks an absence that mattered.

Columns map to the module's own pattern vocabulary: streaming/progress UX → 13A.2; citations/evidence (show your work), approval/HITL (the autonomy dial) → 13A.3; graceful fallback and failure handling → 13A.4; evals & experiments and cost controls → 13A.6, with eval methodology owned by Module 10A.

Case Streaming/progress UX Citations/evidence Approval/HITL Graceful fallback Evals before launch Cost controls Failure handling
GitHub Copilot inline, instant (not chat) — — — randomised experiment + survey (2.1) not covered by the cited study suggestion rejection
Shopify Sidekick agent loop w/ status — tool actions gated — GTX + LLM judges + simulations prompt-cache-friendly JIT instructions reward-hack detection
Morgan Stanley Q&A + summaries source links required advisor approves Debrief output bounded corpus pre-deploy evals + daily regression zero-retention terms compliance review
Intercom Fin chat + Procedures help-content grounding escalation to human human handoff A/B tests at scale per-outcome pricing Procedures + Simulations
Anthropic Research progress + citations CitationAgent — plan-in-memory internal research eval 15× token cost acknowledged delegation prompt fixes
Klarna chat — not public human agents retained CSAT tracking cost-per-chat obsession reversal to humans
Duolingo lessons + voice call — — — content QA gaps AI content at scale backlash management
Google Duplex real-time voice turn-taking — user-initiated calls; business opt-out human operators in early tests not public — scripted disclosure + opt-out; web sibling shut down
Replit agent agent actions visible — none — the failure rollback existed, denied fake tests passed — postmortem + controls added
Air Canada static Q&A bot linked policy page — — — — tribunal liability
AI Overviews instant answer + links top-results backing — links to check pre-launch testing claimed planetary scale satire/UGC restrictions
Ross Intelligence Q&A over legal corpus answer citations + confidence — — none public — the gap ~$11M raised vs incumbent litigation copyright suit → shutdown

5.2 What the successes share#

Five things appear in every durable success and are absent or weak in every failure:

  1. Evals before launch, and continuously. Shopify's GTX, Morgan Stanley's pre-deploy evals + daily regression, Intercom's A/B testing — all treat evaluation as infrastructure, not a launch gate. The failures had none (Replit's "tests" were fabricated; Ross published no quality evidence at all).
  2. A bounded problem and a bounded corpus. Morgan Stanley's 100k documents, Fin's help content, Copilot's inline suggestions — each constrains what the system can say. Open-ended "ask me anything" correlates with every failure.
  3. A real human fallback. Escalation to a person is designed-in (Fin), structural (Morgan Stanley's advisors review Debrief output), or eventually restored (Klarna). Its absence — or its being theoretical — is what turned errors into incidents.
  4. Honest metrics with stated denominators. Intercom publishes its caveats; GitHub publishes confidence intervals; Anthropic publishes the 15× token cost. Companies that only publish headlines (the AI Overviews launch, vendors selling unguarded widgets) tend to be the ones that get surprised.
  5. Controls outside the prompt. Approval gates, dev/prod separation, credential scoping, corpus policy — the successes enforce limits mechanically; the failures relied on instructions.

5.3 What the failures share#

The failures are more uniform than the successes:

  • Missing controls, not missing intelligence. Replit's agent wasn't a uniquely bad model — it was an agent with production write access and no approval gate. Ross wasn't uniquely bad technology — it was a product whose corpus access was legally contested and whose funding couldn't survive the lawsuit. Air Canada's bot wasn't uniquely hallucination-prone — it was an ungrounded bot answering policy questions with no source-of-truth check.
  • The gap between demo and production. Every failure happened when a system built for the happy path met the tail: a freeze declared in chat, a bereavement question at midnight, a copyright complaint from an incumbent, a satire article in a data void.
  • Accountability diffusion. Chatbot vs website, startup vs incumbent licensor, product vs the party that supplied it — in each failure, responsibility was argued away until a court or the public assigned it anyway. You cannot outsource accountability for generated text — or for the corpus it was built on.
  • Metric theatre. "700 agents' work", "66% resolution", "AI-first" — impressive numbers that measured activity, not outcomes. The failures all had metrics; none had the right metrics.

5.4 Failure → the control that would have caught it#

Failure Root cause (as documented) The control that prevents/limits it Path lesson
Replit DB deletion No dev/prod separation; freeze was prompt-only; no approval gate Separate credentials per environment; destructive-action approvals enforced by the system; planning-only mode 08A.14 approvals, 12.10 incident response
Air Canada wrong policy Unbounded answers; no source-of-truth check; conflicting pages Bounded corpus + citations; single source of truth; legal review of generated claims 07 RAG, 12.9 compliance
AI Overviews bad answers Data voids + satire in corpus; planetary reach Source-quality floors; abstention on low-confidence; staged rollout 07.4 abstention, 11C.1 canary rollouts
Ross Intelligence shutdown Corpus built on licensed content accessed via a licensor's channel; litigation killed fundraising Corpus licensing review before build; supplier diversification; legal review of data provenance 05 data engineering, 12.9 compliance
Klarna quality drop Cost-only optimisation; no quality metric Multi-dimensional metrics incl. satisfaction; human-option commitment 13A.6 metrics, 13A.3 trust
Duolingo content errors Generation at scale > review capacity Editorial QA pipeline; staged content release; user feedback loops 05 data quality, 10 evals

5.5 A checklist for reading the next case study#

Before you cite or copy any AI product claim, run this checklist:

  • Date: When was this measured? Is the product or model still the same?
  • Source tier: T1 (builder's own account) / T2 (official record) / T3 (reputable press) / T4 (community)? Have I opened it myself?
  • Denominator: Percentage of what? All users? Handled conversations? Attempted tasks?
  • Baseline: Compared to what — humans, nothing, last quarter, a competitor?
  • Incentive: Who benefits if I believe this number?
  • Independent verification: Did anyone outside the company confirm it?
  • What's missing: What failures, costs or reversals does the source not mention?
  • Transferability: Does the lesson depend on their scale, domain, data or team — or does it generalise?
  • Currency: Has the vendor or company since walked it back, reversed it, or been contradicted?

5.6 Three more cases to card yourself (as of November 2026)#

The twelve cases above are analysed in full. Three more public cases, from 2024 to 2026, fit the same method and are worth carding as practice — each is deliberately given as a starting point (what the sources say, what to look for), not a finished analysis, so you do the source-opening yourself:

Case Shape and outcome What the public sources say (pages opened 8 and 12 November 2026) Control to look for, and the question to ask
NYC "MyCity" business chatbot Government support chatbot; failure — shut down In 2024 The Markup and THE CITY tested the city's business-advice chatbot and reported answers such as landlords being able to refuse tenants with housing vouchers, employers being able to take workers' tips and businesses being able to refuse cash (contrary to a 2020 city law). In the week of 28 January 2026 the new mayor, Zohran Mamdani, called it "functionally unusable" and said it cost around half a million dollars (the article notes building its foundations reportedly cost nearly $600,000); by a 4 February 2026 update the city had taken it down, and the page says the "beta test has ended". Source: The Markup, 30 January 2026 Same family as Air Canada: a bot answering legal-policy questions without a bounded, verified source of truth. Ask: what was the abstention behaviour, and who was accountable for wrong answers during the "beta"?
McDonald's and IBM voice ordering Voice agent in a drive-thru; pilot ended McDonald's confirmed in June 2024 that it was ending its automated-order-taking test with IBM, run at more than 100 restaurants, with the technology to be switched off at test sites by 26 July 2024. McDonald's said the work gave it confidence that voice ordering would be part of its restaurants' future and declined to comment on accuracy; CNBC's unnamed sources said the system struggled with accents and dialects, and an analyst (BTIG's Peter Saleh, relaying what he was hearing) put its accuracy in the low-to-mid 80% range against at least 95% needed — second-hand, single-source claims that neither McDonald's nor IBM confirmed. Source: CNBC, 17 June 2024 The pilot-with-exit-criteria pattern: McDonald's published no postmortem, so card the cause as "not public" and mark the accent and accuracy claims as single-source. Ask: what error rate would have justified scaling, and where would a human take over? The voice capstone (13B.5) builds exactly those hand-off rules
Deloitte Australia government report Document drafting with an LLM toolchain; partial refund A report Deloitte's Australian member firm produced for Australia's Department of Employment and Workplace Relations (Fortune gives the cost as $290,000 without naming the currency; the AI Incident Database gives $439,000) was found to cite non-existent academic papers and a book, and to include a fabricated quote attributed to a federal court judge; a university researcher flagged the errors and the Australian Financial Review reported them in late August 2025. The revised version, dated 26 September 2025, disclosed that Azure OpenAI had been used; Deloitte agreed to refund its last payment instalment and said the corrections did not affect the report's substantive content, findings and recommendations. Source: Fortune, 7 October 2025; the AI Incident Database also lists it (incident 1193) A citation-verification gap: generated references were not checked against real sources before delivery. Ask: which check in Module 07's citation lesson would have caught a non-existent reference, and was AI use disclosed to the client up front?

What this means for you as an engineer. The pattern matrix and checklist compress fifteen cases into decisions you can apply this week: when scoping a feature, which patterns does your product shape need; when reading a claim, which of the nine checklist items does it fail. The cases are the evidence; the checklist is the tool.


Part 6: Build your own case study card#

The case study card from 1.5 becomes code. ai_product/case_card.py validates that every claim carries a source before it will render — because the single most common way case-study notes rot is losing track of where a number came from.

6.1 ai_product/case_card.py#

The complete file (save as ai_product/case_card.py):

python
"""ai_product/case_card.py — the case study card as code.

Layer: pure-local — Python 3.11+ standard library plus pydantic only.
No network, no API keys. Part of the ``ai_product`` package introduced in
lesson 13A.1 and extended by this module.

A ``CaseCard`` records one real AI product or incident the way lesson 13A.7
teaches: problem, users, system as publicly described, metrics as reported,
what went wrong, what transfers, and dated sources. The validator refuses a
card whose claims lack a source URL and an access date — a claim you cannot
trace is a rumour.
"""

from __future__ import annotations

import re
from datetime import date
from enum import Enum

from pydantic import BaseModel, Field, field_validator


class Source(BaseModel):
    """One dated, opened source behind a claim."""

    url: str = Field(min_length=1, pattern=r"^https?://")
    accessed: date = Field(description="Date the source was opened and read")
    note: str = Field(default="", description="What the source supports, e.g. '51% resolution claim'")


class Outcome(str, Enum):
    SUCCESS = "success"
    MIXED = "mixed"
    FAILURE = "failure"
    ONGOING = "ongoing"


class Shape(str, Enum):
    COPILOT = "copilot"
    ASSISTANT = "assistant"
    SUPPORT_AGENT = "support agent"
    AGENT = "agent"
    CONSUMER_AI = "consumer AI"
    SEARCH_ANSWER = "search/answer"
    VOICE = "voice"
    DOCUMENT_PROCESSING = "document processing"
    INTERNAL_TOOL = "internal tool"


class Claim(BaseModel):
    """A single factual claim; every claim must trace to a source."""

    text: str = Field(min_length=1)
    sources: list[Source] = Field(min_length=1, description="At least one source required")

    @field_validator("text")
    @classmethod
    def not_just_a_number(cls, v: str) -> str:
        # Reject bare assertions: a claim that is only a figure ("66%") or a
        # bare verdict ("yes") says nothing about what was measured or by whom.
        # Whether a described claim's numbers are trustworthy is what the
        # required ``sources`` field enforces.
        if v.strip() in {"yes", "no", "true", "false"} or not re.search(r"[A-Za-z]", v):
            raise ValueError("claim text must describe the claim, not just assert it")
        return v


class CaseCard(BaseModel):
    """One real AI product or incident, carded for critical reading."""

    title: str = Field(min_length=1)
    product: str = Field(min_length=1)
    shape: Shape
    outcome: Outcome
    as_of: date = Field(description="Date the events/claims are from")
    problem: str = Field(min_length=1)
    system_description: str = Field(
        min_length=1,
        description="Only what public sources say; write 'not public' where they don't",
    )
    metrics_reported: list[Claim] = Field(default_factory=list)
    what_went_wrong: list[Claim] = Field(default_factory=list)
    lessons: list[str] = Field(default_factory=list, description="What transfers to a different product")
    sources: list[Source] = Field(min_length=1)

    def check(self) -> list[str]:
        """Warnings a critical reader should see before citing this card."""
        issues = []
        if not self.metrics_reported:
            issues.append("no metrics recorded — did the source report none, or did you miss them?")
        if self.outcome in (Outcome.SUCCESS, Outcome.MIXED) and not self.what_went_wrong:
            issues.append("success/mixed card with no recorded failure modes — suspiciously clean")
        if self.outcome == Outcome.FAILURE and not self.what_went_wrong:
            issues.append("failure card that doesn't say what went wrong")
        if len({s.url for s in self.sources}) == 1:
            issues.append("only one source — single-source claims need extra scepticism")
        return issues

    def render(self) -> str:
        """Render the card as Markdown, with the source ledger appended."""
        lines = [
            f"# Case card: {self.title}",
            "",
            f"- **Product:** {self.product}",
            f"- **Shape:** {self.shape.value} | **Outcome:** {self.outcome.value} | **As of:** {self.as_of.isoformat()}",
            f"- **Problem:** {self.problem}",
            f"- **System (public record):** {self.system_description}",
            "",
            "## Metrics as reported",
        ]
        lines += [f"- {c.text} " + _src(c.sources) for c in self.metrics_reported] or ["- (none recorded)"]
        lines += ["", "## What went wrong"]
        lines += [f"- {c.text} " + _src(c.sources) for c in self.what_went_wrong] or ["- (none recorded)"]
        if self.lessons:
            lines += ["", "## What transfers"] + [f"- {lesson}" for lesson in self.lessons]
        lines += ["", "## Sources"]
        lines += [f"- [{s.note or s.url}]({s.url}) — accessed {s.accessed.isoformat()}" for s in self.sources]
        issues = self.check()
        if issues:
            lines += ["", "## Reader warnings"] + [f"- ⚠️ {i}" for i in issues]
        return "\n".join(lines) + "\n"


def _src(sources: list[Source]) -> str:
    return " · ".join(f"[{s.note or 'src'}]({s.url})" for s in sources)


def main() -> None:
    # Two real cards from this lesson, kept short — the full versions live in Parts 2–4.
    air_canada = CaseCard(
        title="Moffatt v. Air Canada — the chatbot is part of the website",
        product="Air Canada website chatbot",
        shape=Shape.SUPPORT_AGENT,
        outcome=Outcome.FAILURE,
        as_of=date(2024, 2, 14),
        problem="Customers needed accurate bereavement-fare policy answers on the website.",
        system_description=(
            "Website chatbot answering policy questions; not grounded to a single "
            "source of truth — it contradicted the linked policy page."
        ),
        metrics_reported=[],
        what_went_wrong=[
            Claim(
                text="Chatbot told a bereavement-fare customer they could apply within 90 days of the ticket's issue date; the policy page said the opposite",
                sources=[Source(url="https://fosterandcompany.com/air-canada-found-liable-for-negligent-misrepresentation-by-chatbot/", accessed=date(2026, 11, 7), note="tribunal facts")],
            ),
            Claim(
                text="Tribunal found negligent misrepresentation; company liable for chatbot statements; $812.02 awarded",
                sources=[Source(url="https://decisions.civilresolutionbc.ca/crt/crtd/en/525448/1/document.do", accessed=date(2026, 11, 7), note="2024 BCCRT 149")],
            ),
        ],
        lessons=["Generated text is the company's representation", "Conflicting sources in one product are a legal risk"],
        sources=[
            Source(url="https://decisions.civilresolutionbc.ca/crt/crtd/en/525448/1/document.do", accessed=date(2026, 11, 7), note="primary decision"),
            Source(url="https://fosterandcompany.com/air-canada-found-liable-for-negligent-misrepresentation-by-chatbot/", accessed=date(2026, 11, 7), note="law-firm analysis"),
            Source(url="https://www.dww.com/articles/bc-tribunal-finds-air-canada-liable-for-inaccurate-advice-given-by-website-chatbot", accessed=date(2026, 11, 7), note="E-TIPS summary"),
        ],
    )

    klarna = CaseCard(
        title="Klarna AI assistant — the reversal",
        product="Klarna AI customer-service assistant",
        shape=Shape.SUPPORT_AGENT,
        outcome=Outcome.MIXED,
        as_of=date(2025, 5, 8),
        problem="Handle two-thirds of customer-service chats at consumer-fintech scale.",
        system_description="OpenAI-powered chat assistant handling refunds, returns and payment questions; scaled to most chat volume.",
        metrics_reported=[
            Claim(
                text="Feb 2024 self-report: 2.3M conversations, two-thirds of chats, 'work of 700 FTE', <2min vs 11min resolution",
                sources=[Source(url="https://www.customerexperiencedive.com/news/klarna-reinvests-human-talent-customer-service-AI-chatbot/747586/", accessed=date(2026, 11, 7), note="corroborating report")],
            ),
        ],
        what_went_wrong=[
            Claim(
                text="May 2025: CEO announced hiring humans again; 'cost... too predominant evaluation factor... lower quality'",
                sources=[Source(url="https://www.customerexperiencedive.com/news/klarna-reinvests-human-talent-customer-service-AI-chatbot/747586/", accessed=date(2026, 11, 7), note="Bloomberg interview report")],
            ),
        ],
        lessons=["Cost-per-task isn't cost-per-satisfying-task", "Human escape hatch is a feature"],
        sources=[
            Source(url="https://www.customerexperiencedive.com/news/klarna-reinvests-human-talent-customer-service-AI-chatbot/747586/", accessed=date(2026, 11, 7), note="CX Dive"),
            Source(url="https://www.pymnts.com/bnpl/2025/klarna-focuses-on-human-powered-customer-service/", accessed=date(2026, 11, 7), note="PYMNTS"),
        ],
    )

    for card in (air_canada, klarna):
        print(card.render())
        print("=" * 72)


if __name__ == "__main__":
    main()

6.2 What the code enforces#

  • Every Claim needs ≥1 Source with a URL and an access date. A claim about "66% resolution" cannot exist in the model without somewhere it came from — the validator makes the Part 1.3 discipline structural.
  • check() surfaces the sceptic's questions as warnings: a success card with no failure modes is suspiciously clean; a single-source card deserves extra scrutiny; a card with no metrics asks whether you looked.
  • render() produces the Markdown card — copy it into your notes, a wiki or a capstone appendix. The source ledger is appended automatically, so the card stays auditable.
  • It is deliberately small: it validates provenance, not truth. Whether a source is any good is still your job — that's what 5.5 is for.

Run it:

bash
mkdir -p ai_product && touch ai_product/__init__.py
# save the file above as ai_product/case_card.py, then run it from the project root
# (the folder that contains ai_product/):
uv run python -m ai_product.case_card       # or: python3 -m ai_product.case_card inside your activated venv
Output49 lines
# Case card: Moffatt v. Air Canada — the chatbot is part of the website

- **Product:** Air Canada website chatbot
- **Shape:** support agent | **Outcome:** failure | **As of:** 2024-02-14
- **Problem:** Customers needed accurate bereavement-fare policy answers on the website.
- **System (public record):** Website chatbot answering policy questions; not grounded to a single source of truth — it contradicted the linked policy page.

## Metrics as reported
- (none recorded)

## What went wrong
- Chatbot told a bereavement-fare customer they could apply within 90 days of the ticket's issue date; the policy page said the opposite [tribunal facts](https://fosterandcompany.com/air-canada-found-liable-for-negligent-misrepresentation-by-chatbot/)
- Tribunal found negligent misrepresentation; company liable for chatbot statements; $812.02 awarded [2024 BCCRT 149](https://decisions.civilresolutionbc.ca/crt/crtd/en/525448/1/document.do)

## What transfers
- Generated text is the company's representation
- Conflicting sources in one product are a legal risk

## Sources
- [primary decision](https://decisions.civilresolutionbc.ca/crt/crtd/en/525448/1/document.do) — accessed 2026-11-07
- [law-firm analysis](https://fosterandcompany.com/air-canada-found-liable-for-negligent-misrepresentation-by-chatbot/) — accessed 2026-11-07
- [E-TIPS summary](https://www.dww.com/articles/bc-tribunal-finds-air-canada-liable-for-inaccurate-advice-given-by-website-chatbot) — accessed 2026-11-07

## Reader warnings
- ⚠️ no metrics recorded — did the source report none, or did you miss them?

========================================================================
# Case card: Klarna AI assistant — the reversal

- **Product:** Klarna AI customer-service assistant
- **Shape:** support agent | **Outcome:** mixed | **As of:** 2025-05-08
- **Problem:** Handle two-thirds of customer-service chats at consumer-fintech scale.
- **System (public record):** OpenAI-powered chat assistant handling refunds, returns and payment questions; scaled to most chat volume.

## Metrics as reported
- Feb 2024 self-report: 2.3M conversations, two-thirds of chats, 'work of 700 FTE', <2min vs 11min resolution [corroborating report](https://www.customerexperiencedive.com/news/klarna-reinvests-human-talent-customer-service-AI-chatbot/747586/)

## What went wrong
- May 2025: CEO announced hiring humans again; 'cost... too predominant evaluation factor... lower quality' [Bloomberg interview report](https://www.customerexperiencedive.com/news/klarna-reinvests-human-talent-customer-service-AI-chatbot/747586/)

## What transfers
- Cost-per-task isn't cost-per-satisfying-task
- Human escape hatch is a feature

## Sources
- [CX Dive](https://www.customerexperiencedive.com/news/klarna-reinvests-human-talent-customer-service-AI-chatbot/747586/) — accessed 2026-11-07
- [PYMNTS](https://www.pymnts.com/bnpl/2025/klarna-focuses-on-human-powered-customer-service/) — accessed 2026-11-07

========================================================================

6.3 Fill a card for your own product#

Before your capstone ships, write a case card for the product you built — even if it's "ongoing". It forces the same questions the public cases answered: what was the problem, what did the system actually do (as you know it, not as the pitch says), what did you measure, what broke, and what you'd tell the next engineer. If your card's "what went wrong" is empty, that's the most important thing to fix before launch.

What this means for you as an engineer. The card is a forcing function: you cannot fill metrics_reported or what_went_wrong honestly without opening sources, and check() flags the gaps. Carding your own product before launch is the cheapest pre-mortem available — an empty "what went wrong" section is the most important thing to fix before you ship.


Where you'll use this#

You will use case-study reading constantly: evaluating vendors before you buy their AI features, deciding whether a new model or architecture is worth adopting, writing your own postmortems, defending technical choices in reviews, and — most importantly — avoiding the confident wrongness that comes from copying a headline number without its denominator. Every engineering blog post, launch announcement, conference talk and court decision about AI products is an input to this skill.


Common misconceptions#

Misconception Reality
"A high resolution/accuracy/adoption rate means the product works." It means the metric moved, on the measured population, by the measurer's definition. Intercom's 66% and Klarna's reversal are the same lesson from opposite directions.
"Vendor-published numbers are lies." They're claims — real numbers measuring real things, selected and framed by interested parties. The skill is reading them precisely, not dismissing them.
"Failures mean the model was bad." Every failure in Part 4 was a control failure: missing approval gate, missing source-of-truth, missing dev/prod separation, missing topic fence. Better models make bad controls more dangerous, not less.
"More agents = more capability." Anthropic's 15× token figure is the price; multi-agent only pays on breadth-first, high-value tasks. Architecture should follow the task's parallelism.
"A disclaimer makes it safe." "Generative AI is experimental" labels didn't save AI Overviews; "the customer should have checked" didn't save Air Canada. Disclaimers are UX, not controls.
"Case studies teach you what to build." They teach you what others built, what broke, and how to read evidence. Your product's constraints — users, data, risk, cost — determine what transfers.

Key takeaways#

  • Read claims, not stories. Every AI product number has a measurer, a denominator, a baseline, a date and a beneficiary — write them down before believing any.
  • The source ladder matters. Builder's own account (T1) for what happened; official records (T2) and reputable press (T3) for what it means; community (T4) for ground truth nobody published. Open sources yourself.
  • Successes share patterns: evals before launch, bounded corpus, real human fallback, honest metrics, controls outside the prompt.
  • Failures share patterns: missing controls (not missing intelligence), demo-to-production gaps, accountability diffusion, metric theatre.
  • Resolution ≠ automation ≠ satisfaction. Define what "working" costs in human effort, or you'll optimise for the cheap version of the metric.
  • The AI Incident Database and public postmortems are your graveyard. Survivorship bias is the default; seek the failures deliberately.
  • A case card forces rigour. ai_product/case_card.py refuses claims without sources — make provenance structural in your own notes.

Terms introduced in this lesson#

Term One-line definition
Case study card The fixed template for capturing a product/incident: problem, system-as-described, metrics-as-reported, failures, transfers, dated sources
Source-quality ladder T1 builder's account → T4 community; ordered by proximity to the event
Denominator The population a percentage is measured against; "66% of what?"
Survivorship bias Studying only survivors of a selection process; the AI graveyard problem
Resolution rate vs automation rate Intercom's distinction: share of conversations resolved vs share of total workload handled end-to-end
Ground truth set (GTX) Shopify's production-sampled, expert-labelled eval sets replacing curated golden datasets
JIT instructions Shopify's variant of just-in-time context: relevant operating instructions returned with tool data, not front-loaded
Reward hacking The model optimising the metric instead of the goal (Shopify's opt-out/tag/schema hacks)
Corpus licensing risk Dependence on licensed content whose access can be disputed, revoked or litigated — the corpus is the moat and the liability
Blameless postmortem analysis Failure analysis asking "which control was missing" rather than "who was at fault"; the case-study form of the blameless postmortem
Data void A query topic with little high-quality source content; retrieval can't ground what doesn't exist

Exercises#

  1. Dissect a claim. Find one AI product claim in the news this week (a launch, a funding announcement, a "X% faster" headline). Write the five-part dissection from 1.3: who measured, denominator, baseline, date, beneficiary. Then find the primary source and check whether the claim survives.

  2. Card a case — including one of your own. Pick one case from Parts 2–4 and fill the full card template from 1.5 — including parts the lesson didn't cover (e.g., the exact architecture "not public" fields, the UX details). Then pick one product of your own choosing that this lesson didn't cover — a tool you use, a startup in the news, your capstone's nearest competitor — and card it using only public sources you open yourself. The second card is the real exercise: it forces the source-discovery skill, not just the summarising skill. Run case_card.py's check() logic mentally on both: what warnings would it raise?

  3. Find the graveyard. Browse the AI Incident Database (incidentdatabase.ai) and pick one incident in a domain you care about (customer service, education, transport). Write a 200-word case card: what happened, what control was missing, what the incident report says the fix was.

  4. Failure-mode mapping. Take your capstone project's architecture and run the 5.4 table backwards: for each control column, ask "what's our version of this?" Where the answer is "a prompt instruction", flag it — prompts are not controls.

  5. Metric audit. Write down your product's current north-star metric. Apply the 5.5 checklist to your own metric: what's the denominator? What's the baseline? Who benefits if it's good? What failure would this metric not see?

  6. Compare two cases on a rubric. Score two cases from different outcome classes — one success and one failure — on this five-point rubric: sourcing rigour (are claims dated and sourced?), metric honesty (denominators and baselines stated?), control maturity (are limits enforced mechanically, outside the prompt?), reversibility (could the key decision be undone?), and evidence of iteration (does the record show learning?). Defend every score with a citation from the case — a score without evidence is itself a metric-theatre move.

  7. Pre-mortem your capstone. Assume your capstone failed publicly six months after launch. Write the blameless postmortem: what broke, who was affected, what the headline would say. Then map each imagined failure to the control that would have caught it — the 5.4 table is your checklist, and lesson 13A.5's architecture plus Module 12's safety checklist are where the fixes live. If your pre-mortem produces only "we'll prompt it better", you haven't found anything yet.

Hints for the exercises
  1. Work in a table with one row per part (measurer, denominator, baseline, date, beneficiary). If you cannot fill a row from the article alone, that gap is your finding. A good outcome is "the claim survives, but only as a narrower statement" — write that narrower statement.
  2. The check() warnings to expect on a hurried card are the four in 6.2: no metrics, a success card with no failures, a failure card with no cause and a single source URL. If your own-product card has one source, it will trigger the last one — find a second, independent one.
  3. A strong incident card names the missing control in a sentence of the form "no X enforced outside the model", not "the AI made a mistake". If the incident report gives no fix, write "not public" rather than inventing one.
  4. Mark each answer with one of three labels: enforced in code (a permission, a quota, a schema), enforced by process (a review, a checklist) or requested in a prompt. Only the first two count as controls.
  5. A north-star metric is usually safe if you can name a paired guardrail metric that would fall when it is gamed (for example, resolution rate beside re-contact rate). If you cannot, you have found your Klarna.
  6. Score 0 to 2 per dimension and write the evidence next to each score. Expect the failure case to score lowest on control maturity and reversibility, and expect some surprises on sourcing rigour: a well-documented failure can out-score a vendor success story.
  7. Write the headline first, then work backwards. Group the imagined failures by the 5.4 columns (separation, approval, bounded corpus, verification, rollout) and mark any that have no mechanism yet as capstone work items.

Check yourself#

  1. A vendor claims "our AI resolves 80% of support tickets." What's the first question you ask?
  2. Why did the Air Canada tribunal reject the argument that the customer should have checked the policy page?
  3. What made Replit's "code freeze" ineffective as a safety mechanism?
  4. What's the difference between resolution rate and automation rate, and why did Intercom argue the latter matters more?
  5. Name two controls that appear in the successes but are absent in the failures.
  6. Which source tier is a court or tribunal decision, and what can it tell you that a vendor blog post can't?
  7. Why isn't Intercom's "66% resolution rate" comparable across vendors even when every vendor is honest?
  8. What does CaseCard.check() warn about, and why are those warnings the point of the tool?
  9. Name one control that would have limited the Replit incident and one that would have changed Ross Intelligence's outcome.
  10. Google Duplex's 2018 launch drew ethics criticism. What product change addressed it — and why is that a UX lesson rather than just a PR fix?
  11. The Ross case documents a business failure, not a technical one. Why does the lesson still treat it as a failure case — and what should you not conclude from it?
  12. Apply the 5.5 checklist to your own capstone's launch metric: what's the denominator, and what failure would the metric not see?

Further resources#

  • Modules 13A and 13B siblings: 13A.1 product thinking (the decision framework), 13A.3 trust & control (disclosure, approvals, show-your-work), 13A.5 architecture patterns, 13A.6 metrics & unit economics, 13B.1 capstone planning
  • Earlier modules that own the detail: Module 10A evaluation (evals methodology), Modules 11A to 11C production (observability, rollout, postmortems), Module 12 safety (threat model, jailbreaks, incident response, responsible AI)
  • Added for currency (opened 8 November 2026): Ballard Spahr alert on the Third Circuit's Thomson Reuters v. ROSS decision (2 October 2026); Patently-O on the same; The Markup on the end of NYC's MyCity chatbot (30 January 2026); CNBC on McDonald's and IBM (17 June 2024); Fortune on the Deloitte Australia refund (7 October 2025); Fortune (28 August 2024) and CNBC (14 May 2025) on Klarna headcount
  • Primary sources cited: all URLs in the cases above — GitHub blog (Sep 2022; Accenture RCT, May 2024), METR (Jul 2025), Shopify Engineering (Aug 2025), OpenAI/Morgan Stanley customer story + Morgan Stanley press release (Mar 2023), Intercom blog (Oct 2024 ×2, Oct 2025), Anthropic Engineering (Jun 2025), Klarna via CX Dive/PYMNTS (May 2025), The Verge/Polygon (Apr–Jun 2025), Business Insider + heise (Jul 2025), BC CRT decision 2024 BCCRT 149 (Feb 2024), Google blog + BBC (May 2024), The Verge/VentureBeat/TechCrunch/9to5Google (Duplex 2018–2025), WIRED/TechCrunch/Forbes/Reuters/Law.com/The Logic (Ross 2015–2020)
  • The graveyard: AI Incident Database — real-world AI harms and near-harms
  • This lesson's package: ai_product/case_card.py — extend with your own cards

The ai_product package so far#

Files introduced across the capstone to date (this lesson adds case_card.py; the consolidated tree lands in 13B.1):

text
ai_product/
  __init__.py
  feature_brief.py      # 13A.1 — product discovery artefact
  events.py             # 13A.2 — the stream event contract
  smoother.py           # 13A.2 — perceived-speed token pacing
  progress.py           # 13A.2 — stage/progress states
  approval.py           # 13A.3 — human-in-the-loop approval gate
  review_queue.py       # 13A.3 — reviewer inbox
  feedback.py           # 13A.3 — feedback capture -> eval pipeline
  failure_ui.py         # 13A.4 — signal -> typed UserMessage
  copy_catalog.py       # 13A.4 — i18n copy catalogue
  markdown_safety.py    # 13A.4 — rendering-safety sketch
  a11y_lint.py          # 13A.4 — WCAG checklist linter
  ports.py              # 13A.5 — ModelPort, RetrieverPort, ToolsPort, store ports
  jobs.py               # 13A.5 — in-process job runner
  app.py                # 13A.5 — FastAPI app factory over the ports
  metrics.py            # 13A.6 — product-metric aggregator
  experiment.py         # 13A.6 — experiment statistics
  unit_economics.py     # 13A.6 — unit-economics calculator
  case_card.py          # 13A.7 — THIS LESSON: case study card model + renderer

13B.1 adds scope_check.py and scaffold.py next.


← 13A.6 — Product Metrics, Experiments and Unit Economics | Module 13A overview | 13A.8 — Decision Frameworks: Eight Decisions Plus One →

Esc
02.2Tokens and TokenizationHow LLMs Work · 21k wordsLesson
02.3EmbeddingsHow LLMs Work · 18k wordsLesson
07Retrieval-Augmented Generation (RAG)11 lessons · Everyone who will build LLM features that must answer from knowledge the model doesn't have in its weights: internal handbooks and help centres, contracts, ticket histories, product docs, or any corpus that changes faster than a training run. The module covers the full RAG stack — architecture, retrieval strategy, query understanding, grounded generation, citations, conversation, managed services, advanced patterns, evaluation, debugging and production operation — and shows where each major provider's managed retrieval and citation features fit (OpenAI, Anthropic, Google Gemini and OpenRouter). All code is Python.Overview
08E.1The Model Context Protocol (MCP)Protocols and Extensibility · 12k wordsLesson
↑ ↓ navigate↵ openesc close