D46c — A sweep result carries documents, and they go through check¶
- Status: Accepted — amended by D55 (a document may come without text, fetched under
fetch: record; a result also carries outcomes, leads, lessons and the report) - Date: 2026-09-22
- Origin: slice 19
- Area: writes
Decision¶
A sweep result may carry documents, beside checked and candidates:
{"url": ..., "source_type": ..., "published_at": ..., "text_file": ...,
"mentions": [{"entity_text", "type", "property", "value", "locator", "quote"}]}
kg sweep record runs each through check and stages the ops it returns, one batch per document, and reports per document what was staged, what was refused and why. Nothing is special-cased: the quote is checked against the text the researcher saved, the resolver runs, and the write policy decides what waits.
Why¶
The first real sweep's press researcher returned 44 updates on existing members — votes, approvals, capacities, a cancellation — and every one was dropped, because a result could only carry candidates. Discovery was wired up and the far more common case, the members you already have have changed, was not.
A batch per document means a single bad document (a missing file, a quote nobody can find) does not take the rest of the sweep down with it.
Why not let a sweep write directly¶
Because then a sweep would be a second way into the graph, with its own rules to keep in step. Going through check and run_ops means a sweep can only do what a person could do by hand, and refusals read the same either way.