Skip to content

D66 — The data products publish nothing kept local, and a site tells what its scope holds

  • Status: Accepted
  • Date: 2026-10-01
  • Origin: slice 40, readying the three data products (UK data centres, UK politicians, US data centres) for launch
  • Area: surfaces

Decision

  • A value kept local never reaches a page, a download or the map.
  • A site's tables are read from the v_* views, which are built from current_values. A cell whose every claim is kept local (kg keep-local, D47f) is recomputed from the claims that remain, or left blank (views.visible). The same holds for office holders, votes and statements (D62), and for every dated reading on an application page.
  • A scope whose channels are all local-only is not published at all: its membership would say what those sources hold.
  • A council from the point. Where no quoted source names a site's planning authority, MapIt's council area (UTA) for its point is claimed as a derived planning_authority, method area_containing_point, citing the point claim. A quoted authority is never overridden. A point in a national park, where the park decides, is not handled: MapIt has no park areas (BACKLOG). A scope's councils are named once each, in the spelling its councillors are held under ("The City of Edinburgh Council", not MapIt's "City of Edinburgh Council"), so one council is never read twice.
  • The UK Parliament constituency. MapIt's WMC area becomes westminster_constituency ("Name (GSS)", valid range), named on a site's page with its ward, constituency and region. The pack's representatives query joins an MP by the code (S14, E14, W07) once MPs' seat codes are held.
  • person.house is a set (multi: true, D08), each member dated to its seat spell (D08b), so a councillor who is also an MSP holds both houses and nothing is contested. A move between houses ends the old one (D52 ended_by).
  • A surname is expected by house, not required of everyone: an MP, a peer or an MSP without one is flagged (required_when, where: house in [commons, lords, scottish_parliament]); a councillor, named by Democracy Club's display name (D35), is not. kg add entity warns at creation when the expectation's where holds on the fields given.
  • A council's own list ends a by-election's predecessor.
  • For a council on ModernGov, councillors reads its mgWebService.asmx/GetCouncillorsByWard (spec lists:). Only each ward's title and each councillor's name, party and term are read; the list's addresses, telephone numbers, emails and photographs never are.
  • A councillor held as sitting is ended only where all three hold: the ward has a by-election winner held since their election; the ward holds more sitting councillors than the list shows; and no listed name is theirs (a surname word in common and the same first initial: "Joanna Mowat" is "Jo Mowat"). Their status, ward, council, house and S13 seat end ended_by the latest such by-election, citing the ward's lines of the list.
  • A councillor missing from a list with no by-election since is left alone and stays reported: a vacancy is not a leaver.
  • A list is checked against councillors already held, so a first import ends nothing.
  • A site for a scope no planning record follows. When a scope's members hold no applications (the US product), the site:
  • leads each page with who is behind it (developer, operator, owner, tenant, power supplier), each quoted;
  • shows every reading of status, IT power, grid power, compute, investment and buildings, dated and quoted, so a change shows as one (Over time);
  • colours each pin by its own status;
  • writes no applications page, applications CSV, representatives page or companies page, and links none;
  • names its sources from the scope's country (NATIONS["US"]) and credits Epoch AI (CC BY 4.0).

Every site now also writes sites.csv, one row per site. - A server is asked again when it says, and a slow one after an hour. A refusal still holds a server for refresh_hours (20, D58), but: - a server that answers with Retry-After (PlanIt says its 429s carry one) is taken at its word: a wait of five minutes or less is waited out in the run and the page asked once more; a longer one holds the server until then; - a server that only did not answer in time is slow, not refusing, and is asked again after an hour. - A US street is no doctor. The last check before a page is written refuses a titled person (D57). "Dr" followed by a compass point ("Prosperity Dr NW") is read as a street.

Why

  • The survey of the graph before launch found a value kept local could still reach a public page: build_site hid kept-local entities, but its tables read views that ignore kept_local.
  • 13 of 42 Scottish sites had no council, so no ward or councillor could be named for them, and 15 councillor-MSPs showed house as contested because it held one value.
  • A by-election never ended the spell it replaced: Democracy Club records who won, not whose seat it filled. A council's own list says who sits now.
  • A first rehearsal against Edinburgh's list ended four councillors whose names the list writes otherwise ("Margaret Arma Graham", "Adam Nols-McVey") and missed the two real predecessors, because "Southside / Newington" did not match "Southside/Newington". Hence ward names compared without spacing or punctuation, and an ending only where a by-election has happened.
  • PlanIt answered 429 after about ten lookups, and kg held it for 20 hours though its API says a 429 carries Retry-After. Argyll and Bute's list, Leeds and Selby only timed out, and were held as long as a server that said no.
  • The US product has 88 sites and no planning record: a site built for UK planning rendered it as empty applications and councils.

Alternatives

  • Strip kept-local claims from the views themselves. Rejected: the views are the person's own reading surface, where a kept-local value belongs.
  • End anyone missing from a council's list. Rejected: the rehearsal showed name variants end sitting councillors, and a vacancy is not a by-election.
  • A separate site builder for the US. Rejected: the frame, the checks, the sources page and the downloads are the same; only the story of a site differs.