D56 — A report is checked before it is recorded, and every URL it cites is accounted for¶
- Status: Accepted — amends D55, D49, D16, D34 and D11b
- Date: 2026-09-25
- Origin: slice 31, from recording the first real research run by hand
- Area: surfaces
Decision¶
Turning a report into claims stays the recorder's work: kg never reads with a model (D16). The engine does the bookkeeping around it, so that nothing in a report is lost between the report and the graph.
kg check --report <file> --scope S [--out DIR](MCP:check op=report, with the report's text) prepares a report for recording and writes nothing to the graph.- It reads every page the report cites, once. It finds markdown links and
bare URLs, strips the prose's punctuation, and treats two citations of one
normalised URL as one page. Pages are fetched under
fetch: record(D55). A page that cannot be read is listed with the reason. -
It checks every quotation in the report against the pages cited beside it: its own line or bullet, else its paragraph. A quotation is at least 20 characters in straight or curly double quotes. The result is:
- found;
- not found on the cited page;
- no page read to check it against.
A quotation not on its page is not an error; it says how far the report can be trusted before anyone quotes from it. - It lists the scope's members each page names, by name and alias, so the recorder knows where a page's mentions belong. - With
--out, it saves each page read underDIR/pages/and writesDIR/results.json: - one document per page read, with itstext_fileand emptymentions; - one lead per page that could not be read; - the report file.Over MCP the pages come back as text.
--source,--typeand--mentionsare needed only without--report. -kg sweep recordaccounts for every URL a report cites. When the results carryreportorreport_file, each URL counts in the first place that holds it: - a document or a candidate; - a lead'surlor text; - a newskipped: [{url, why}](a pointer only, a duplicate, out of scope), whosewhyis required; - an outcome's or a checked channel's note.
A URL nothing holds is kept as a lead, with the report's line as its text,
and the record says how many there were. It is not dropped, and it does not
fail the record: the next prompt carries it, so the next run follows it.
- A document with no mentions is counted as read with nothing to record,
and writes nothing.
- How a report's quote is checked. Found on a real report:
- the pieces around an ellipsis must each be on the page;
- the closing punctuation is the report's;
- quotation marks pair in order, so a short quotation ("cancelled") never
opens the next;
- a page that comes back as a shell ("Loading…", a request for JavaScript) is
not read.
- Hard rule 6 no longer trips over stripped markup. A quote is matched
without the space a removed tag leaves before punctuation ("Construction ,
Southland"). Words that differ are still refused.
- A gap a run confirmed is held back like one it searched (amends D49):
confirmed joins nothing_newer and unreachable. A confirmed gap that
persists, a dispute or a single source, is a person's to decide, not another
run's to research.
- An exact name is an alias match even when stripping empties it. "[redacted — D65]", a name that is only its operator and its town, stripped to
nothing on both sides and fell through to a fuzzy proposal. So a document
about either [redacted — D65] staged nothing. A datacenter fixture now holds
it (amends D11b).
Why¶
Run 1 of a real sweep [redacted — D65] was recorded by hand. The recorder read the report, fetched each page with curl, grepped for each quote and wrote the results. - One of the report's quotes was not on the page it cited. The engine refused it only because the recorder happened to include that document. - Anything the recorder left out was simply not recorded, and the next run could not know it had ever been found. That was D55's open question.
Both are bookkeeping, and bookkeeping is what the engine is for.
Alternatives¶
- Extract the facts from the report in the engine. It needs a model, which D16 keeps out: no key, no cost, no randomness, the same result on every surface.
- Refuse a record that leaves a URL unaccounted for. One forgotten link would fail a whole run's work. A lead keeps the link, and the tally shows the recorder what was left.
- Treat every cited URL as a document. Reports cite trackers, homepages and
search pages; storing each as evidence would fill the graph with pointers.
skippedsays which were pointers, and why.
Open questions¶
- A fact the report states with no URL still cannot be accounted for. Only the recorder, reading the report, can see it.