AI engineering

AI Hallucinated Citations: Check the Claim, Not the Link

A link that loads proves nothing about the sentence next to it. Five ways cited claims failed in my own AI-assisted drafts, and the check that caught them.

In this post
  1. What’s the difference between a citation that exists and one that’s supported?
  2. The five ways a cited claim failed
  3. Three verdicts, and why UNREACHABLE stays UNREACHABLE
  4. How to run the check
  5. What this check doesn’t do
  6. Where this applies beyond blog posts

A draft of mine cited a page for three figures: a 43% increase in bank branches, teller growth from 1980 to 2010, and 347,000 tellers. The page contains none of them.

The draft was my post on DHH’s Rails World 2026 keynote, and the page was an American Enterprise Institute piece on ATMs, bank tellers and jobs. The link was real, it loaded, and the page was about exactly that topic. It didn’t have those numbers.

The same draft also described my own Omarchy post as saying agent permissions were “opt-in”. That post says the opposite: Omarchy’s launcher starts most coding agents with a skip-approval flag by default. I wrote that up in the agent safety post.

Both mistakes got past the drafting agent’s own self-report. That was 2026-09-23, and I added a separate verifier agent the same day. The story is near the top of its instruction file.

What’s the difference between a citation that exists and one that’s supported?

A citation exists when the URL resolves or the DOI points at a real paper. A citation is supported when the page says what the sentence next to it claims. Those are different tests, and most of the tools and writeups I found when I searched for this run the first one. A hallucinated figure with a real link passes it.

A link next to a claim reads as sourced. When you skim a draft, the link makes the sentence look finished. The drafting model’s output has the same shape, a sentence with a link next to it, whether or not the page backs it.

So the failure I care about isn’t a made-up URL. Those get caught by anything that opens links. The expensive one is a real page attached to a sentence it doesn’t support, because nothing downstream flags it and a reader who clicks through won’t hunt for the number either.

The five ways a cited claim failed

I have five failure types, each from a real draft. The first two come from the keynote draft above. The next three come from two posts the verifier checked on 2026-11-21: a post on vetting Claude Code skills and plugins, and a plan-by-plan comparison of Claude Code and Codex admin controls.

1. The figure isn’t on the page

This is the AEI case. A sentence had three figures and one link. The page contains none of the three. What it does say is what the live post cites it for now: Bessen’s research that ATMs cut the tellers an average urban branch needed from about 21 to about 13. That number is on the page, in Bessen’s words.

The draft misreported the page, so the fix was to cite the page for what it says and cut the three figures it doesn’t have.

2. The claim points the wrong way

The “opt-in” error is a direction error. The linked post exists, it’s about agent permissions, and the sentence mentions the right subject. A check that asks whether the link goes to a relevant post passes it. The post says the reverse of what the sentence claims.

Direction is easy to get wrong because it’s one word: opt-in versus default, grew versus fell, is versus is not. The verifier records the direction of every claim as its own checkable item, next to the numbers and the names.

3. The quote is real, on a different page

The vetting post had 51 checkable claims. The verifier returned 47 SUPPORTED, 4 UNSUPPORTED and 0 UNREACHABLE. Two of the four were quotes that were real, but not on the page I linked.

The draft linked the Claude Code skills docs page for two sentences. Both sentences are verbatim on a different page, the settings reference. The skills page words them differently:

  • Draft: “Claude Code replaces each command with [shell command execution disabled by policy] instead of running it.” Skills page: “Each command is replaced with [shell command execution disabled by policy] instead of being run.”
  • Draft: “Bundled skills and skills deployed through managed settings are unaffected.” Skills page: “Bundled and managed skills are not affected.”

The meaning is the same. That’s what makes it easy to wave through. But quote marks claim exact words from the linked page, and those weren’t its words. The fix was to quote the linked page.

4. “Not stated” was wrong

The Claude half of the comparison post had five small items. The Codex half had one root cause behind most of its failures, and it was an absence claim.

OpenAI’s Codex pricing page has a feature availability table. Most cells are a check icon or a dash, with aria-label="Available" or aria-label="Not available". A few say “Limited” instead. The text extract used during research dropped the check icons and kept the dashes. Rows came through as a label and a few dashes, or a label and nothing, so the draft marked those cells “Not stated”.

“Not stated” is a claim about the page, and a link check passes it, because the URL loads. The verifier read the saved HTML of the page, found the labels, and re-read the page live with identical values.

The page has since moved, and the link above is its new address. A text fetch of it still shows the dashes without the check icons, and the raw HTML still carries the labels.

The first check on that post came back with 139 SUPPORTED and 51 UNSUPPORTED, counted by claim or table cell, with 0 UNREACHABLE. It checked 30 links, 25 of them external. After the fixes, the second check, on the revised draft, came back with 145 SUPPORTED and 5 UNSUPPORTED. Those five went into a second round of fixes.

5. The source was my own notes, and my notes were wrong

The other two items in the vetting post came from my own data. The draft said 3 of my installed plugins ship hooks, and that matched my own audit table. The table was wrong. The audit only looked for a hooks/hooks.json file, and two plugins declare their hooks in the plugin manifest instead. The real count was 5.

The draft also said the plugins came from 6 marketplaces. They come from 5. A sixth is registered with nothing installed from it.

A claim can match its source and still be false when the source is your own summary. The verifier went to the plugin files on disk instead of trusting the table, and for first-hand data that’s the check to run. One more finding cut the other way: on MCP servers, the draft was right and the audit table was wrong.

Three verdicts, and why UNREACHABLE stays UNREACHABLE

The verifier gives every claim one of three verdicts:

  • SUPPORTED: the figure or statement is on the page. The report quotes the passage.
  • UNSUPPORTED: the page loads but doesn’t contain it, or says something different. The report quotes what the page does say.
  • UNREACHABLE: the fetch failed, there’s a paywall, or it’s a PDF the tool can’t read.

UNREACHABLE is never upgraded to SUPPORTED on the basis of what the page “probably” says. A person reads the source, or the claim goes. A plausible page next to a plausible number is exactly what the AEI case looked like.

A YouTube link with a timestamp is UNREACHABLE unless I supply a transcript, because the verifier can’t watch the video. The overall verdict follows from the claims. VERIFIED means everything is SUPPORTED. FIX REQUIRED means at least one claim is UNSUPPORTED. NEEDS HUMAN CHECK means nothing is UNSUPPORTED but something is UNREACHABLE.

How to run the check

The agent is a prompt, so you can build the same thing. Here’s the procedure it follows, minus the tooling:

  1. For every link, write down the sentence it’s attached to and what’s checkable in it: numbers, dates, names, quoted phrases and the direction of the claim. A sentence with several figures is several claims.
  2. For each external link, fetch the page once and ask for the relevant passages verbatim, not a summary.
  3. Match the claim to the passage. Record SUPPORTED, UNSUPPORTED or UNREACHABLE. For the first two, quote what the page says.
  4. For internal links, open the linked post and check that the sentence gets its subject, its stance and any attributed figure right. A “see X” link only needs the subject to match. A link used as evidence needs the claim to match.
  5. List every number or reported event that has no link and no named source. Those go to the editorial review.
  6. For each UNSUPPORTED claim, write a replacement sentence that says only what the source supports, or cut the figure. Never propose a source you haven’t fetched.

The verifier is read-only. It reports findings with a replacement sentence and never edits the post.

The step that matters most is step 2, and the built-in web fetch tool gets it wrong. A summarizing fetch paraphrases, and a paraphrase can’t tell you whether a quote is exact. For the vetting post, the verifier downloaded the raw Markdown of every cited docs page with curl and matched each quote with a fixed-string grep. All 7 URLs returned 200.

curl -sL "$URL" -o page.md
grep -F "managed skills are not affected" page.md

If the grep finds nothing, try a shorter piece of the phrase, because a line break or inline markup can split it. If that finds nothing either, the quote isn’t on that page. When the page is HTML and a table looks empty, read the raw HTML before you write “not stated.”

The verifier runs on the top model tier I use, and it sits right before the editorial review. Whether a check belongs in an agent or in a script is its own question. I wrote about it in deterministic checks before the AI reviewer. The grep above is a script. Deciding whether a sentence’s meaning matches a paragraph is the part I give to an agent. The rest of the pipeline is in AI in a one-person content operation.

Checking each row against a primary source works on a data table too. I did that for 15 companies in the fact-check of a viral infographic on who runs Elixir in production, with a different set of verdicts.

I sell a packaged version of this check, a skill called Claim Gate in The Distribution Stack, and the product page’s wording for it is: “Opens your links and flags claims your sources don’t support, qualifiers that fell off, and guesses sitting next to citations.” You don’t need it to start. A list of links, the sentence each one is attached to, and a grep gets you most of the way for a single post.

What this check doesn’t do

It checks a claim against the page cited. It doesn’t check whether the page is right. If a source is wrong and your sentence copies it faithfully, the verdict is SUPPORTED. Case 5 was that failure with my own audit table as the source, and it only got caught because the verifier went past the table to the files.

The tool sitting between the page and the verifier can also drop content. A summarizing fetch paraphrases (case 3), and a text extract can lose a table’s icons (case 4).

The numbers above come from three runs on two posts. I’m not putting a catch rate on it.

Where this applies beyond blog posts

If you ship an AI feature that cites sources, you have this problem in production, with a user reading the output instead of me. A support check in front of the answer takes design work: fetch the source, match the claim, and decide what the product does with UNREACHABLE. That’s work I take on in fractional engagements with AI startups.