At Mont3 we build Know-Your-Client, a due-diligence tool for lawyers, fiduciaries and compliance teams in Switzerland. An analyst types a person's name, and an AI agent with web search writes a dossier about that person while our server queries sanctions lists, PEP lists, company registers and leak archives in parallel. The first version went into production in June 2026. This article is about one rule in it, which says that every statement in the dossier must link to the page it came from or it is not shown.
Part of the reason is legal, since Swiss anti-money-laundering law asks a firm to keep the records of its checks "in such a manner that other specially qualified persons are able to make a reliable assessment" of them (AMLA, Art. 7). Nobody can assess a sentence that a model wrote with nothing behind it, and that includes the analyst who has to sign the report.
Asking in the prompt was not enough
Our prompt tells the model, in capital letters, that every fact needs at least one source, and models still write sentences without one. When Liu, Zhang and Liang audited four generative search engines in 2023, only 51.5% of the generated sentences were fully supported by their citations, and only 74.5% of the citations supported the sentence they were attached to.
We kept the instruction in the prompt and moved the decision into code that runs after the model has answered. For each candidate identity the server does this, simplified from our code:
coerceDossierText(c); // a list or an object is read as plain text
const stripped = sanitizeDossierText(c);
enforceCitations(c, payload); // drop every statement that names no source
c.qaReport = runQaGate(c, stripped, payload); // look again; withhold the report if anything is still unlinkedWhat counts as a source
In our code a source is an entry in the dossier's source list with the http or https address of a public host. An entry without an address leaves the list, and so do "N/A", the name of a newspaper, a bare IP address and an address on a local network. The citations are then renumbered, and every statement that cited only a removed entry is dropped with it.
A citation is a bracketed number that closes a sentence, such as [2] or [2, 3]. Our parser once read a year in brackets, "[2019]", as citations 201 and 9, and the sentence went out with a link to source 9. Today a citation in the middle of a sentence supports only the words before it, and a line that starts with a citation is not published. Where the code can't tell for sure where a sentence ends, as with "Example Inc. Holdings", the text around that point is left out, so half a sentence never appears as a statement of its own.
The rule covers everything the model writes about the person, from key facts, red and green flags and each sentence of the profile to the line under the name, places, email addresses, phone numbers and social accounts. A sentence about the check itself, such as "No adverse media was found", gets no exemption. Lines that the server writes from a sanctions list or a register follow their own path and link to the register entry.
Why the server never picks a source itself
From version 1.110.0, when the model left a fact without a source, the server attached one itself, taking the page from the scan that shared the most words with the fact.
A page about someone else with the same name shares those words too, so a finding about a court case could be published with a link to a page about a different person, which is why version 1.141.4 removed that step.
A missing source can now come only from the model. The server sends the unsourced facts back, asks which entries of the source list support them, and accepts an answer only for numbers that exist in the list. Anything still without a source is left out.
Each removed statement is kept in the case record with the source it had named, counted by type and included in the JSON export, so an operator can compare what the model wrote with what the rule removed. If the rule itself throws an error, the narrative fields are emptied and the report is withheld.
After the rule, the QA gate looks once more for any statement without a link. If it finds one, the risk conclusion is withheld and the analyst cannot sign. The rule is tested on fixed dossiers, without a live model. One test runs it on a dossier full of broken citations, checks how many items of each kind were removed and that nothing unlinked is left, then runs the rule a second time to make sure it changes nothing.
What the analyst signs
The lists and registers that the server queries itself follow the same idea, so a source that did not answer is never read as a clean result. A category in which one source failed reads PARTIAL, a category that could not be checked at all reads NOT SCREENED, and if the sanctions or PEP lists were not fully screened, the risk indicator reads "Incomplete screening".
The risk level is only a suggestion, computed from the findings by plain rules without a model. Before signing, the analyst confirms or dismisses every hit and finding, a level other than the suggested one needs a written note, and a signed case is locked.
What a link does not prove
A link shows where a statement came from. It does not show that the page says what the statement says, and our code does not read the page to check. Every source carries a label saying whether the agent fetched the page, saw it only in search results, or never retrieved it, and the report marks the last kind as "Not retrieved". Since version 1.177.0 a check can also keep a copy of every cited page together with a manifest of their hashes, timestamped by an independent authority under RFC 3161, so a reviewer can later show which pages were cited and when. The copies are fetched right after the check, so a page that changed in between is stored in its new form.
With a link on every line, an analyst can open each page and check the statement in the time a compliance review allows. Our rule makes sure that every statement is linked, and whether the page supports it is still for the analyst to judge.