D31c — A machine-readable source is snapshotted canonically, and a record quotes itself¶
- Status: Accepted
- Date: 2026-09-21
- Origin: slice 5 build
- Area: evidence
Decision¶
Hard rule 6 is not waived for imports. An importer supplies the source text, and every record's quote is checked against it exactly as a hand-written quote is.
The canonical form is the source as published where that is already text (CSV
rows verbatim, embedded newlines and all) and pretty-printed where it is not
(JSON at indent=2). A record's quote is that record's own text in the same
form. A dataset published as several files in one archive is one source, with the
file named in the locator.
Why¶
The quote check is the cheapest defence against a value no source supports, and an importer is the last place to drop it: it writes thousands of claims nobody reads one by one.
Pretty-printing is what makes it work for JSON. normalise_text folds every run
of whitespace to a single space, so an object serialised on its own matches the
same object nested inside the whole document, whatever its indentation. No offset
tracking, no substring arithmetic — the existing check just works.
For CSV, csv.reader pulls lines from its iterator only as it needs them, so the
lines drawn between two rows are exactly that row's text. That is what lets a row
quote itself verbatim.