Citation and Source Provenance in Web-Grounded Agent Responses
Fetch, compression, and corpus choices each decide whether a citation can be trusted.

A citation in a web-grounded agent's response is proof only that a URL was fetched. Building a reliable scraping and extraction pipeline means treating that gap as an engineering problem to close at every stage, from fetch to compression to the protocol that requests the data in the first place, not a formatting detail to patch at the end.
Citations in web-grounded agents are an infrastructure problem
Two different things get collapsed into one metric when teams measure "citation quality." Attribution asks whether the answer cites a URL at all. Faithfulness asks whether that URL actually supports the claim it's attached to. Those are separate questions, and most evaluation setups only check the first one.
That gap produces a specific kind of failure that's worse than a model simply making things up. A system that cites real, reachable URLs next to fabricated claims is harder to catch than a model that cites nothing, because the presence of a legitimate-looking source short-circuits the reader's skepticism. A hallucination with a footnote looks like research.
That's why citation fidelity can't be added after the pipeline is already built. It has to be designed into each stage: how content gets fetched, how it gets chunked, how it gets compressed before it reaches the model, how the model synthesizes an answer from it, and how that answer gets surfaced to the reader. Every one of those stages is a place where the link between a claim and its source can quietly break. The rest of this piece works through each of them in order, starting with the earliest point in the pipeline where provenance is won or lost: the fetch itself.
Provenance Risk in Live Web Fetching
Source metadata either survives into the context window or it doesn't, and that decision gets made at the fetch layer, long before the model does anything. Raw HTML is the most common place where it disappears.
A live web page is mostly noise from a citation standpoint. Navigation bars, ads, boilerplate footers, and deeply nested div structures eat up tokens without contributing a single fact the model will cite, and they make it harder for any downstream process to tell which chunk of text actually corresponds to which part of the source. Converting that HTML into clean Markdown at fetch time solves both problems at once: it strips the token-wasting structure while preserving the semantic shape of the content, and if it's built correctly, it keeps the URL, title, and publication metadata traveling with the text rather than discarding them during parsing.
The traditional way to do this, CSS selectors and XPath rules, has a structural weakness: it breaks the moment a site redesigns its layout. Dynamic class names and deeply nested DOM trees mean selector maintenance never really ends, and a selector that breaks doesn't throw an error that gets noticed. It silently drops a source from the pipeline. A citation disappears without anyone knowing it happened.
LLM-powered extraction sidesteps that brittleness. There's no selector to update when the layout changes, as long as the semantic content, the actual facts on the page, stays present.
This is why fetching deserves to be treated as a distinct design decision rather than a commodity API call. An API that converts URLs into clean, structured, LLM-ready content, with metadata intact, removes an entire category of provenance failure before retrieval even starts. Context.dev is built around exactly this problem: it converts any URL into LLM-ready Markdown while preserving source metadata, functioning as a data infrastructure layer that keeps provenance signals available to every stage that comes after it. Citation fidelity has to be designed in at each stage, and that design starts with the layer responsible for turning raw web content into a format that keeps both the source signal and the semantic content the model will eventually cite intact.
How prompt compression silently degrades citation grounding after retrieval
Once content has been fetched cleanly, the next place provenance tends to break is between retrieval and the model's context window, at the compression step most teams add purely to save tokens and cost.
A ACL paper by Li, Peng, and Chen, testing Self-RAG and LLMLingua-2 on the ASQA benchmark, found a sharp mismatch between two things that should move together. The explanation is mechanical rather than mysterious: compression tends to cut the exact evidence-bearing spans a citation would need to point back to, while leaving behind just enough surrounding context for the model to still produce an answer that sounds right. The answer survives, but the proof behind it doesn't.
The same paper points to a partial fix: a citation-aware hierarchical compression strategy that prioritizes keeping evidence-bearing spans intact, which recovers most of the lost grounding while still keeping answer quality competitive. The broader implication for anyone building this kind of pipeline is that compression shouldn't be applied as a flat, uniform cost-saving measure. It needs to be calibrated to what the downstream verification step actually requires. A pipeline that has to produce auditable citations needs a different compression budget than one whose only job is to produce a correct-sounding answer.
The Curated-Corpus Versus Open-Web Choice as a Trust Decision
Before fetch or compression ever happen, a more basic decision shapes what kind of trust claim an agent's citations can even make: whether the system draws from a curated corpus or the open web.
The clearest empirical picture of this trade-off comes from the Evrópuvefur evaluation, a government-funded AI service built to answer questions about the EU ahead of Iceland's August 2026 referendum, evaluated in July 2026. Its curated corpus produced answers that were trustworthy but limited in what they could cover. Its open-web search mode answered a wider range of questions, but it surfaced untrustworthy or simply irrelevant sources often enough to matter.
One finding from that evaluation makes the gap between coverage and quality concrete. Across every web-search answer the system produced, it never once cited RÚV, Iceland's most widely used news source, despite RÚV being the highest-authority source available for many of the questions asked. Breadth of retrieval and quality of sourcing are not the same property, and optimizing for one doesn't guarantee the other.
The Evrópuvefur evaluation found that approach raised the share of citations drawn from listed domains only modestly. Prompt-level steering is a weak substitute for actually curating the corpus the system retrieves from.
None of this resolves into a clean answer, because the trade-off is real on both sides. Open-web sources can cover nearly anything, but they inherit the web's uneven quality wholesale, and that unevenness appears directly in the citations the system produces. The right response for anyone building this kind of pipeline is to make the coverage-versus-trust trade-off an explicit, documented design decision rather than a default that gets inherited from whatever retrieval path happened to be easiest to wire up first.
Structured Source Standards and Machine-Readable Provenance Signals
Everything so far has been about what a pipeline does with content after it's published. There's a parallel problem on the publishing side: content on the web mostly isn't structured in a way that makes it easy for an AI system to retrieve and cite correctly, and standards are starting to emerge that address that directly.
The Grounding Page Standard, active as of May 2026, defines a framework for stable, machine-readable facts explicitly designed for AI retrieval systems, combining readable information with machine-readable metadata so that AI systems can recognize, classify, and cite entities more reliably.
The standard addresses four concrete failure modes that degrade citation quality: hallucination, where a model fills in a missing fact with something plausible but wrong; entity confusion, where similar names or competing products get mixed up; non-mention, where an entity simply doesn't get retrieved because its signals online are too weak; and English-dominated retrieval bias, where local or non-English entities are systematically disadvantaged.
This reflects a broader shift Microsoft described in May 2026: classic search indexing asks which page a user should visit, while grounding indexing asks which facts can responsibly support an answer. Those are different questions with different quality bars, and content built for the first doesn't automatically satisfy the second.
None of this requires new infrastructure. The standard is meant to be implemented on pages that already exist, an About page, a product page, a dedicated knowledge page, using Schema.org markup, JSON-LD, and consistent semantic signals. A forward-looking extension of the same idea is WebMCP, which applies the MCP model to the browser itself: a website becomes something closer to an MCP server, explicitly defining what it offers to visiting agents. That turns the relationship from scraping by force into access by consent, and it gives site owners a direct hand in how their content gets cited, which sets up a protocol-level question the next section addresses directly.
MCP's Interface Between Agents and Live Web Data at Citation Time
Everything discussed so far assumes a pipeline that fetches, stores, and later retrieves content. MCP replaces that assumption with an on-demand request made inside the agent's own reasoning loop, which changes when source metadata gets captured.
A spec revision on July 28, 2026 moved MCP to a stateless architecture, dropping the initialize/initialized handshake and protocol-level sessions entirely.
Across Tier 1 SDKs, both the TypeScript and Python versions have crossed the billion total downloads threshold, and MCP now has native support from OpenAI, Google, and a growing ecosystem of developer tools.
For citation provenance specifically, what matters is architectural. Source metadata arrives at the exact moment the data gets used, not stale from whenever the index happened to be built.
The same protocol layer is starting to carry structured change detection. Tools are exposing change detection as an API endpoint instead of a dashboard built for a human to check manually. A RAG pipeline can receive a machine-readable diff the moment a cited source changes, addressing the problem of a URL's content shifting after a citation has already been generated. ChangeTower, rebuilt in September 2026, is a working example of the direction this is heading: AI monitors driven by plain-language criteria that can watch entire domains, generate summaries, save timestamped snapshots, and route alerts through email, Slack, webhooks, or MCP, with direct connections into ChatGPT, Claude, and Gemini.
Building a Pipeline That Takes Citation Fidelity Seriously

Citation fidelity is an emergent property of the whole pipeline, where a failure at one stage will undo good decisions made at every other stage.
The Provenance project, built by Jeremy Gracey, shows what this looks like when it's assembled correctly. It's a citation-grounded RAG system built over the OpenStax Anatomy & Physiology 2e textbook, and it works by retrieving the pages most likely to answer a given question, drafting an answer as a set of discrete, individually checkable claims, then verifying each claim against the specific page it cites and repairing any claim it can't actually support. Page images get rendered right next to the generated answer, so the grounding can be checked by eye rather than taken on faith. As of May 2026, the system scored 1.000 on well-formedness and 0.985 on faithfulness.
Treat every claim in an answer as its own verifiable unit, attach a specific page reference to each one, and build a repair loop for any claim the system can't back up, rather than letting unsupported claims pass through silently.
Pulling the whole argument together, five decisions govern whether a pipeline's citations hold up under scrutiny. The fetch layer needs to deliver clean, structured content with metadata, source URL, title, and timestamp, attached to every passage it produces. Corpus selection needs an explicit, documented rationale for choosing curated sources over the open web, or vice versa, with the trust implications of that choice understood up front rather than discovered later. Compression needs a citation-aware strategy that protects evidence-bearing spans instead of applying a flat, uniform reduction across all content. Source structure benefits from machine-readable entity definitions, whether through the Grounding Page Standard or an equivalent, applied to the content the pipeline is retrieving from. And the protocol layer needs MCP or something equivalent, so that source metadata stays current at the moment of inference rather than going stale from an index built earlier.
What the Provenance project also demonstrates is that none of this requires exotic infrastructure. The barrier to building something this auditable is a set of architectural choices, not infrastructure cost. For teams building on a service like Context.dev, the fetch and structure layer, clean Markdown with provenance metadata attached, is already handled by the API. The actual engineering investment can go toward compression strategy, verification logic, and source selection instead of scraping infrastructure.
Citation Validity and Ongoing Source Monitoring
A citation points to a document, and documents change. They get updated, retracted, or taken down entirely, and most pipelines have no way of detecting when the thing they cited no longer says what it said at generation time.
This is a structural problem in any regulated or high-stakes context. The content behind a cited URL can change after the citation gets generated, and that makes the citation unfalsifiable at the moment someone actually reads it. A source that's been quietly updated or retracted since the citation was generated looks, to a reader, exactly like a source that still fully supports the claim.
Structured change detection is the practical answer to this. Rather than flagging every cosmetic change on a monitored page, AI-driven monitors can evaluate whether a specific update actually matches the conditions relevant to a given claim, and then route an alert through whatever protocol layer the pipeline already uses, MCP, webhooks, or Slack.
The design implication runs through the whole argument this piece has made. Freshness scoring in a RAG system shouldn't just record when a document was retrieved. It needs to track whether the version currently sitting behind that citation still matches the claim it was originally used to support. A pipeline that fetches cleanly, compresses carefully, selects sources deliberately, and structures its data well still depends on knowing whether the ground it stood on at generation time is still there when a reader goes looking for it.
Sources
- Curated retrieval versus open web search in public AI information services: a coverage-trust trade-off
- Does Prompt Compression Preserve Citation Grounding?
- Grounding Page Standard (v1.6)
- Cited but Not Verified: Parsing and Evaluating Source Attribution in LLM Deep Research Agents
- Efficiency vs. Verifiability in Evidence-Aware RAG: Does Prompt Compression Preserve Citation Grounding? - ACL Anthology


