A number in a forecast is worth nothing unless it can be opened to reveal the query that produced it. That property is architectural, not a prompting technique: citations are generated deterministically by the backend from the tool-call record, never by the language model, and any marker the model invents is stripped before the text is rendered.
This is the teardown of that mechanism: where the citation comes from, what rejects a bad one, and why the rendering step is a security boundary rather than a presentation detail.
From the standard
“Manipulating LLMs via crafted inputs can lead to unauthorized access, data breaches, and compromised decision-making.”
The record is written before the model speaks
Every tool call is recorded with its arguments, result set, timestamp and trace id, independently of the narrative that will describe it.The model composes, without citing
It is free to reason over what came back. It is not asked for sources: the thing that can hallucinate does not certify itself.Markers come from the record
The backend attaches citations from the execution record and reconciles them with the narrative. A marker with no matching record is stripped before anything renders.A grounding critic catches the rest
Output confidently about an entity that is not in the index at all — a signal nobody defined, a table absent from the catalog — is rejected.Rendering is a security boundary
Citation links are checked against an allowlist before they render, because a link is an egress channel. The reader opens [1] and lands on the exact query and result set.
Why model-generated citations fail
Asking a language model to cite its sources asks it to produce a token sequence that looks like a citation. It is very good at that. The resulting marker is generated by the same process that generated the claim, which means it inherits exactly the same failure mode: a fluent, plausible, confidently formatted reference to something that does not exist.
Verifying such a citation requires the reader to do the work the citation was supposed to save them. At that point the feature is worse than absent, because it manufactures confidence.
Where the citation actually comes from
- tool call dispatched
-
args, result set, timestamp, trace id
EXECUTION RECORD Written before the model speaks The record of what actually ran exists independently of the narrative that describes it.
-
THE MODEL COMPOSES A NARRATIVE Free to reason, not free to assert
-
1 · GROUNDING CRITIC Does it reference an entity absent from the index? If so, the answer is rejected before any human sees it.
-
passes
2 · MARKER RESOLUTION Invented markers stripped, real ones linked A marker matching an execution record is bound to it. A marker matching nothing is removed rather than shown.
- every marker in the rendered answer resolves to a real call
The ordering is the design. The execution record exists before the narrative does, so a citation is a pointer into something that already happened rather than an assertion made alongside the prose. The model's job is to write; the backend's job is to say what the writing is allowed to point at.
The grounding critic
Stripping invented markers handles the citation. It does not handle output that is confidently about an entity which is not in the index at all — a signal that does not exist, a requirement nobody wrote, a table absent from the catalog. A grounding critic runs first and rejects that output before a reviewer ever sees it.
Why it runs before the human, not after
A reviewer who is shown mostly-correct output learns to skim. Every ungrounded item that reaches the queue trains the reviewer to trust the queue slightly more than it deserves, and review quality degrades across everything else in it. Filtering before the queue protects the reviewer's attention, which is the scarce resource in the whole system.
The index is built from the system's own source rather than from anything a model remembers. A generated answer that cites an entity absent from that index is rejected before it reaches a reviewer, rather than queued for a person to catch.
Separate citation planes
Not every source is the same kind of thing, and collapsing them loses the distinction that makes a citation useful. Conversational questions over the corpus carry three separate citation planes — signals, requirements, and code — with repository-scoped filtering across multi-turn context.
An engineer reading an answer can then tell whether a claim rests on a requirement document, on the implementation, or on a measured signal, which are three different kinds of evidence with three different failure modes.
Rendering is a security boundary
A citation that renders as a clickable link is an egress channel if the URL is attacker-controlled. This is the subtlest of the tool-abuse failure modes: an attacker who can influence a URL the model emits gets data out encoded in the request itself, with no tool call involved and nothing in the logs that resembles exfiltration.
Deterministic citations close this by construction. A marker that does not resolve to a recorded tool call is removed rather than rendered, so there is no path by which model-authored text becomes a live outbound request.
What it changes in practice
In the revenue deployment, this single property is what moved the conversation from whether the system could be trusted to which systems to connect next. A number in a forecast could be opened to reveal the exact query behind it, so the question of trust became a question of scope.
The cost is that the system says less. An answer that cannot be grounded is not produced, and a user asking a question the corpus does not cover gets told so rather than getting a fluent paragraph. Whether that trade is right depends entirely on what the answer is used for — and in a forecast, a report, or a change to a system of record, it is not close.
Questions this answers
How can a citation be trusted if the model generated it?
It cannot, which is why the model does not generate it. Citations are produced deterministically by the backend from the tool-call record, and markers the model invents are stripped before rendering. A citation is a pointer into an execution log rather than a claim the model is making about its own sources.
What is a grounding critic?
A check that runs before a human sees the output. It rejects any generated text referencing an entity absent from the index — a signal, a table, a requirement that does not exist. It catches the failure mode where the answer is well-formed, confident, and about something that is not there.
Why does a rendered citation link count as a security boundary?
Because a link the model produced is an outbound request the interface will make on the user's behalf. If the URL is attacker-controlled, data leaves encoded in the request itself, with no tool call involved and nothing in the network logs that looks like exfiltration.
Axionalytics
Production agentic AI for enterprise engineering, data, and revenue teams.