Quote the log, not the agent
Misha's iterate mind records every script its agents run, and the result of each, on the agent's own log.
Ask a model to quote a web page and it may tidy, shorten or paraphrase it, and nothing will tell you it did. So we stopped asking.
The news app has a research agent. It is given an item, reads the sources behind it with the mind's tools (a browser that returns a page as Markdown, a plain fetch, a PDF-to-text call), and publishes a structured record: claims, checks, and a list of sources with how much of each it could read.
That record said "Full text" next to a source, and linked to it. The trouble is that the link is not what the agent read. Automated access to a page can get a trimmed version, a cached one, or an alternate page. A reader who follows the link sees today's page as a person sees it; the checks rest on whatever the tool returned at the time. So each source now carries the exact text the agent was served, shown in a collapsed block under it, with a plain reader page of its own.
The interesting part is where that text comes from.
The agent never types it
The obvious design is a text field on the source that the agent fills in. That fails quietly in two ways. A model asked to reproduce a long page may shorten, tidy or paraphrase it, and nothing will tell you it did. And an agent asked for "the text you read" may simply fetch the page again, which is exactly the version problem we were trying to remove.
On iterate, every script an agent runs is recorded on its own log, and each run ends with a settled event holding the run's result. The tool's output is already there, byte for byte. So the agent does not hand over text; it hands over a reference to it: which run read it, and where in that run's result the string is.
// what the agent publishes for one source
captures: [{
scope: "Full",
tool: 'browser.markdown',
log: { run: 29, path: [2, "text"] }, // run 29's result, [2].text
}]
The service resolves it when the record is published:
async function resolveCapture(agent: string, input: CaptureInput) {
const settled = await findSettledRun(agent, input.log.run);
if (settled.status !== "succeeded") throw new Error("a failed run read nothing");
let value = settled.result;
for (const key of input.log.path) value = value[key];
if (typeof value !== "string" && input.scope === "Full")
throw new Error("not text: the script parsed it, call it Transformed");
const text = typeof value === "string" ? value : JSON.stringify(value, null, 2);
if (input.text !== undefined && input.text !== text)
throw new Error("the text given is not what the log holds");
return { ...input, text, chars: text.length, sha256: await sha256(text), capturedAt: settled.createdAt };
}
If the agent does pass text, it has to match the log exactly, or publishing refuses and says to leave it out. The stored capture gets a hash, a character count, and the time the run ended, all from the log rather than from the agent.
Labelling what was changed
Not every run returns the tool's text untouched. A script might strip HTML tags, parse JSON, or slice out the paragraph it needed. Those are still worth keeping, but they are not the served text, so a capture has a scope:
Full: the tool's text, whole and unaltered.Transformed: the whole response, altered by the agent's script before it was kept; a note says how.Excerpt: only part of it, either a slice the script cut or astart/endthe service applies.
The resolver enforces the cheap parts of this. A value at the path that is not a string cannot be Full. A slice applied by the service can only be an Excerpt. Anything over 400,000 characters has to be an excerpt.
Making it required, with a way out
A field that is optional gets skipped. So publishing now refuses a source marked "Full text" that has neither a Full capture nor a captureMissing reason:
const uncaptured = (item) => item.sources
.filter(s => s.access === "Full text" && !s.captureMissing
&& !s.captures?.some(c => c.scope === "Full"))
.map(s => s.id);
The reason field matters. Sometimes the agent did read the whole page but its script parsed it before returning, and there is no unaltered string in the log. Saying so is honest; inventing a capture is not.
This changed how the agent is told to work. Its instructions now say: return what the tool gave you whole, in the run that reads it, and cut excerpts in a later run. Never fetch a page again to stand in for what you read. A capture also helps for sources that were blocked: a paywall or error page shows what the agent was actually given.
Records published before the change were backfilled with a separate attachCaptures call. It resolves captures from the same agent's log and writes them into the stored record, without republishing: nobody is notified and the record's timestamps stay as they were.
Derived text stays outside the record
The same evening, sources in other languages got an English translation by a model. The temptation is to add a translation field next to the capture. We didn't, for two reasons.
A translation is not the captured text, and putting it in the same record blurs the one property the capture exists for. On the page it is a separate view, flagged as a machine translation; the readable, raw and plain-text views of the capture are unchanged, and the raw view stays as the provenance.
And the record has an owner. The research agent may be republishing it while a translation runs, and a second writer to the same file is a merge conflict at best. So each translation is its own file, keyed by the hash of the capture it translates:
{
"captureSha256": "9f2c…",
"language": "French",
"part": "article",
"model": "<model>",
"translatedAt": "2026-11-08T21:50:00Z"
}
If the capture changes, the hash no longer matches and the translation is redone; if it doesn't, the old one is served. Nothing about the record changes when a translation is written.
What we took from it
When an agent's output is meant to be evidence, don't ask the agent to reproduce it. The platform already logged what the tool returned; let the agent point at it and have code copy it, verify it and hash it. Label anything that isn't the untouched original, require the evidence with an explicit escape hatch for when it doesn't exist, and keep anything derived from it in files of its own, keyed to the exact version it came from.