My research agent writes technical reports with numbered citations. Every report passed my grounding gate: each [n] pointed at a source the agent had actually retrieved. The gate can’t tell whether the source says what the sentence claims, though. A citation can point at a real page and still be decoration.
So I measured it. The short version: only 37% of citations were fully supported by the text they cited, and a two-line change to the writer prompt took that to about 75%. Most of the work was making sure those numbers meant something.
A judge has to be able to say no
The measurement is simple to describe. For each cited sentence, give an LLM the sentence and the retrieved text it cites, and ask: supported, partial, or unsupported?
The catch is that an LLM judge will happily say “supported” to almost anything on topic. A judge that never says no measures nothing. So every claim is judged against controls the judge doesn’t know about:
- True negatives. The same claim, paired with sources retrieved for a different topic. A trustworthy judge marks these unsupported. Its rate of saying “supported” here is its false-positive rate.
- True positives. A sentence copied word for word from a source, paired with that source. The judge has to accept these. Its rate of saying “supported” here is its recall.
- Same-topic decoys. The claim, paired with sources from the same search that the writer didn’t cite. These might genuinely support the claim, since they cover the same topic, which makes them the interesting baseline.
The judge marked 0-2% of the true negatives supported and 98-100% of the true positives. Only then did I trust its number for real citations.
Getting to that point took four tries. My first true negatives came from other reports in the same run, but the runs repeat tasks, so some “other reports” were on the same topic. They weren’t negatives at all. I had also clipped the source text to 700 characters, which cut off evidence the writer had actually seen. And the biggest problem wasn’t in the judge.
The citation numbers meant different things
The writer was handed a list of sources and told to cite them. It cited them by number, but it chose the numbers itself. In 11 of 20 reports, [2] meant the second entry in the report’s own reference list, not the second source retrieved. Sometimes the list was a subset, sometimes in a different order.
My gate and my provenance records had been resolving [2] against retrieval order. So a slice of the citations I was checking were checked against the wrong source. The fix was to resolve each number through the report’s own reference list, and then to stop the ambiguity at the source: give the writer sources that are already numbered.
What the numbers said
With the judge and the numbering fixed, 19 reports and 128 cited claims:
| Pair | Fully supported |
|---|---|
| Real citations | 37% |
| Same-topic decoys (sources the writer didn’t cite) | 24% |
| True negatives (another topic) | 0% |
| True positives (copied sentences) | 98% |
The worrying row is the second one. A source picked from the same search results, one the writer never cited, supported the claim 24% of the time. The writer’s chosen citation managed 37%. Its citations were only somewhat better than pointing at a random relevant page.
The fix was in the prompt, not a new model
The old prompt said “based ONLY on the provided sources” and “cite your sources”. The new one does two things:
- Hands the writer the sources numbered
[1]to[N]and asks it to keep those numbers. - Says to put a citation on a sentence only when that source’s text states it. A topically related source is not enough, and anything beyond the sources should be cut or marked as background.
Same ten tasks, live web search, same judge:
| Before | After | |
|---|---|---|
| Fully supported | 37% | 77% |
| Unsupported | 30% | 4% |
| Same-topic decoys supported | 24% | 46% |
| Median words | 628 | 711 |
| Paragraphs with a citation (median report) | 86% | 100% |
The reports did not get shorter or hedge more. The gap between real citations and same-topic decoys grew from 13 points to 31: the writer now picks the source that says the thing, not one that’s about the thing.
That was one run, so I ran the same ten tasks twice more: 80% and 68%. Across three runs the fixed writer averages 75% fully supported and 2-6% unsupported. Runs vary by about twelve points, which is worth knowing before trusting any single number.
I’ve since used the same judge as an optional gate in the worker: a report where at least half the judged citations are unsupported fails its job. On the committed reports, that gate fails 6 of the 19 old reports and none of the new ones.
Letting the agent search more made it worse
The obvious next step looked like more agency. After the planned searches, the model reads what came back and, through function calling, chooses up to three more searches for gaps it names: missing internals, no trade-offs, no primary documentation. It’s a small tool-calling loop, and it does what it says. It searched again in about half the reports, mostly for official docs and code examples.
Three runs with it on, three with it off, same tasks, same judge:
| Follow-ups off | Up to 3 follow-ups | |
|---|---|---|
| Fully supported | 75% (68-80%) | 62% (58-64%) |
| Unsupported | 4% | 11% |
Citations to the sources the follow-ups found were unsupported 31% of the time, against 9% for the planned sources. The follow-up queries chase specifics, and the snippets that come back often don’t state the claim the writer then hangs on them. More sources gave the writer more chances to cite loosely.
So it ships off by default. The code stays for topics where the planner’s searches come back thin, and the result is in the repository next to the ones that worked.
What I’d tell someone building this
- A grounding check that only checks links is a formatting check. Make it check what the source says.
- Test the judge before trusting it. Pair claims with sources from another topic and with copied sentences. If you can’t state its false-positive rate, you don’t know what its score means.
- Compare against a decoy, not just against zero. “37% supported” sounds bad. “Barely better than citing a random page from the same search” tells you what to fix.
- Check how numbers are resolved before judging anything. The bug I needed to find first was in my own bookkeeping, not in the model.
- Measure the agentic version too. Letting the model choose its own searches sounded like an upgrade. Measured, it was a regression.
The judge, the controls and every run are in the AgentOps Workbench repository.