Non-FictionAI OperatorGap Analysis

Documentation Gap Analysis AI eBook

Craft prompts that identify missing documentation

by Alarcon Deedee

  • English
  • 141 pages
  • 2026
  • SamEnrico

Craft prompts that identify missing documentation sections compared to product features.

Formats

Free sample

Chapter 1: The $10M Typo--–- On a Tuesday afternoon in March 2024, a senior product manager at a publicly traded fintech company named "Pay Bridge" (a pseudonym, though the lawsuit is public) did something she had done a thousand times before. She merged a pull request that changed a single sentence in the developer documentation. The old sentence read: "Idempotency keys are strongly recommended for all payment creation requests." The new sentence read: "Idempotency keys are recommended for payment creation requests in high-volume scenarios."The change seemed harmless. The engineering team had removed the "strongly" qualifier because their new payment routing system handled duplicate detection differently. No customer-facing API contract had changed.

No version number incremented. No breaking change announced. The product manager approved the doc change, merged it, and went to a 2 p.m. standup meeting.By Friday of that same week, Pay Bridge's newly launched AI copilot—a chatbot embedded in their developer dashboard that answered API questions by retrieving documentation chunks—had answered 47,000 queries about idempotency. In 12,000 of those queries, the copilot had interpreted "recommended" as "optional." In 3,400 cases, that interpretation led developers to omit idempotency keys from their integration scripts.

In 47 specific cases, a network glitch caused a payment to be retried automatically by the developer's infrastructure. Without idempotency keys, those retries became duplicate charges.Forty-seven merchants were double-charged. Forty-seven angry emails became forty-seven support tickets. Forty-seven support tickets became a class action complaint filed in the Northern District of California. By the time Pay Bridge's legal team finished calculating the exposure—refunds, penalties, legal fees, and lost customer lifetime value—the single word removal had cost the company $10.2 million.The typo was not a typo.

It was a sentence that had passed every traditional documentation review. It was grammatically correct. It was factually accurate about the new system. And it had been consumed not by a careful human reader who might pause and think, "Wait, did 'strongly' used to be there?" but by an AI agent that treats every retrieved sentence with equal confidence, that does not notice when two sentences contradict each other across different chunks, and that never raises its hand to ask for clarification.This chapter is about why that happens, why it is getting worse, and why every organization that deploys an AI copilot on top of existing documentation is currently sitting on a similar time bomb.The Silent Crisis No One Is Measuring Most engineering leaders believe they have a documentation problem. They complain that their docs are outdated, incomplete, or hard to navigate.

They allocate sprint points to "documentation debt." They maybe even have a technical writer on staff. But these leaders are measuring the wrong thing. They are measuring how documentation feels—frustrating, slow, incomplete—rather than how documentation fails.The difference between a frustrating doc and a failing doc is the difference between a confused human and a confidently wrong AI. A confused human files a support ticket, asks a colleague, or experiments in a sandbox. The cost of a confused human is measured in minutes of lost productivity and maybe a slightly lower CSAT score.

A confidently wrong AI, by contrast, takes action. It executes code. It recommends configurations. It tells a developer that idempotency keys are optional, and that developer writes a script that does not protect against duplicates. The cost of a confidently wrong AI is measured in dollars lost, data corrupted, and customers churned.This book introduces two new metrics because the existing metrics are bankrupt.

The first is Confidence-Weighted Error Rate (CWER) . Traditional error rate counts how many answers are wrong. CWER multiplies each wrong answer by the confidence with which the AI delivered it. An AI that says "I'm not sure, but I think the answer might be X" and gets it wrong has a low CWER contribution. An AI that says "The answer is definitely X, here is the documentation link" and gets it wrong has a very high CWER contribution.

Pay Bridge's copilot had a traditional error rate of less than 2 percent on idempotency questions. Its CWER, however, was catastrophic—because every wrong answer was delivered with total confidence.The second metric is Propagation Distance. This measures how many user interactions a single documentation error infects before it is corrected. In the human-only era, a documentation error might propagate to a handful of readers before someone files a bug. In the AI era, a single error ingested into a vector database can propagate to thousands of users within hours.

The old sentence about "strongly recommended" had a Propagation Distance of exactly zero after it was removed—no humans read it after the change. But the new sentence about "recommended" had a Propagation Distance of 47,000 queries before Pay Bridge rolled back the change. The error propagated not because it was more wrong but because it was consumed by a different reader with a different relationship to certainty.If you are not measuring CWER and Propagation Distance, you are not measuring documentation quality in the AI era. You are measuring something else—probably page views or time on page—that correlates inversely with AI safety. (Short time on page means the AI answered quickly; that is not necessarily good if the answer is wrong.)Why Your Documentation Is Now an Attack Surface The shift from human readers to AI readers is not a minor change in audience.

It is a phase change in the nature of risk. Human readers bring skepticism, context awareness, and the ability to resolve contradictions. When a human reads two conflicting sentences in a documentation set—"the API returns a 200" on page one and "the API returns a 201 on success" on page twelve—they notice the conflict and seek resolution. They might test the API themselves, check the date stamps, or ask a colleague. The contradiction slows them down but rarely causes catastrophic action.An AI reader does none of these things.

It retrieves chunks based on semantic similarity to the user's query. If the query is "what status code does the payment API return?" the retriever might return both chunks. But the LLM does not "notice" the contradiction in the way a human does. It may average them, pick the more recent one if metadata is present, or—most dangerously—synthesize a third answer that combines elements of both. The AI does not file a bug about the contradiction.

It does not escalate to a human. It simply delivers an answer and moves on.This means that every contradiction in your documentation—every outdated sentence, every ambiguous qualifier, every missing permission boundary—is not a minor quality issue. It is an attack surface for a failure mode that your QA process was never designed to catch. Traditional documentation QA looks for: spelling errors, broken links, grammatical mistakes, and whether the docs match the product at a single point in time. None of these catch the failure mode that destroyed Pay Bridge.The failure mode is this: a sentence that is technically true but contextually dangerous when read by an AI that does not weight sentences by importance, does not recognize qualifiers like "strongly" as meaningful modifiers, and does not know that some recommendations are closer to requirements than others.Consider the difference…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

Craft prompts that identify missing documentation sections compared to product features.

Details

Author
Alarcon Deedee
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, AI Operator, Gap Analysis
Released
2026-05-30
Pages (approx.)
141
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Alarcon Deedee

See all

You may also like

See all