D67c — An outside list is imported from a file, matched, and compared¶
- Status: Accepted — extends D59
- Date: 2026-11-12
- Origin: end-to-end sweep: four outside lists compared with the UK graph
- Area: surfaces
Decision¶
kg sweep import-list <scope> --channel <name> --file <csv|tsv> --name <column>
records another organisation's list as candidates on a channel of its own:
- Channel: created if new (kind list, role discovery, --how saying
what the list is).
- Rows: each row becomes a candidate through the same path a sweep's
candidates take (sweep_record), so name matching, exclusion by rule and
"seen before" all apply, and kg sweep plan shows the list's recall.
- --field COLUMN=property: carries a column into the candidate, for the
scope's exclusions to read.
- Names still open: each is shown with what the resolver proposes (a
proposal or a near miss), for a person to decide with kg candidate resolve.
Nothing is matched on a proposal (hard rule 4).
- --compare COLUMN=property: for a matched row, checks the list's value
against what we hold. The pack's enum values and value_phrases normalise it
first ("Under construction" is construction). A value that differs is kept
as a lead on the member: "
Every column named by --name, --field or --compare must be in the file, or
nothing is recorded. The comparison covers every row that is a site we hold,
whether the list matched it or it was found through the list (added). A negated
value ("Not approved") is never read as its opposite. The leads are staged in the
import's own changeset, so the sweep is reviewed as one piece. From a local-only
channel they are kept local, as its candidates are. MCP has the same operation,
sweep_import_list, taking the rows as data.
Why¶
On 12 Nov 2026 a tracker's 141 non-operating sites were read in a browser and typed into a file. A one-off script matched them to the graph. A status the tracker disagreed with ("Refused" against our "announced", for Amlwch) was noticed only by eye. D59 counted how much of a list the scope holds once the names were candidates, but gave no way to make them candidates from a file, and no way to see where a list and the graph disagree.
On that list, run against the graph as it stood before the day's research: - 6 rows matched outright; - 22 more had a proposal and 31 a near miss, for a person to decide; - among the matched rows, the comparison raised 4 differences in status. One of them was a site we hold as permitted that the list says is under construction.