D57 — Scottish planning is read from the councils' own pages, never who wrote in, and a scope can be published as a public site¶
- Status: Accepted — amends D36c, D47 and D45c; amended by D58 (a page read recently is not read again; PlanIt places each application) and D59 (region is derived from the council by the pack's place list), and D62 (an elected representative is named for what they did in office; the site's titled-person check steps over the office holders it holds), and D64 (one planning importer reads every nation's portals and casework;
scottish-planningis its old name), and D57b (an application with no known status is open for comment while its deadline lasts) - Date: 2026-09-25
- Origin: slice 32, the first slice of the UK data centres scope (Scotland first), built to support the people scrutinising and resisting Scotland's hyperscale proposals
- Area: surfaces
Decision¶
- The pack models Scottish planning as it runs.
permit_typegains:pan, the Proposal of Application Notice and the earliest public signal;eia_screening,eia_scopingandppp;appeal,ministerial_recall,eia_directionandlocal_review.
statusgainsnotified,validated,appealed,recalledanddetermined.- A permit gains
validated_at,decided_atandcommittee_at. - It gains the deadlines
comments_until,neighbour_consultation_expires,advert_expiresanddetermination_deadline. Each is valid_range and dated by the day it was read, so a deadline that moves shows as a timeline (D52). - It gains the counts
representations,objectionsandsupporting. - It gains a
followsedge: a PPP follows its PAN, and an appeal follows the refusal it appeals. - A site gains
planning_authority. A GB site is expected to have one once it is announced. - A permit under review wants a source under a week old.
kg import scottish-planning <file>reads the councils' Idox portals and the DPEA.- The input is a list of application and case URLs, each with the site it is for, named as the graph holds it.
- Each page is its own cited
official_record: an application's summary, dates, comments and details tabs, and a DPEA case page. An importer may now load several pages; this is the first. - Pages are read politely, one every 3 s, and only under
fetch: recordoron. - Re-reading an application re-dates its deadlines. The newer reading supersedes the older one.
- The site must already be held, from research with its own sources. No portal page is evidence of a site's name, country or stage. A site given any other way is refused.
- The council is claimed only when the page names it, in the Idox logo
text,
og:titleor footer. It is never inferred from the address. - A DPEA case's link to the council application is a record of its own, so a case lands even before its application is held.
- Outcomes are what they are:
- a screening or scoping request is answered (
determined), and whether an EIA is needed is its own value,eia_required: yes | no, dated by the decision. A Ministerial direction'seia_requiredis later, and wins; - a PAN is
notified, never "granted"; - a DPEA case is
determinedonce its page gives "Date decision issued", andrecalledwhen DPEA's own case overview says so.
- a screening or scoping request is answered (
- Certificates are checked the way the operating system checks them
(
truststore). Five councils' portals send no intermediate certificate, or chain to a root newer than Python's bundle, and curl and browsers read them. Verification is never turned off: a bad certificate is still refused. - Never who wrote in. A council's comments pages list the names and addresses of the people who wrote in; its details page names agents and officers; a DPEA page names reporters, case owners and agents.
- The capture of every page is only the rows the importer reads, never the page.
- The comments tab is reduced to its four counts before anything is stored.
- Of the details tab, only an applicant that is an organisation is read.
- DPEA's main contact, who can be a private appellant, is not read.
- A named person reaches this graph only through a source that is about them, never by being a resident who objected.
- Tests plant invented people in the captures and prove none of them is stored.
- A scope's own rule selects its channels. A template whose
applies_whenmatches one of the scope'swhereclauses applies before the scope has any member (amends D45c). Without this, a new scope's first prompt had nowhere to look. - The Scottish channels:
aprs-tracker, discovery only;council-portalsanddpea, as evidence;energy-consents,statutory-noticesandplanit, for discovery.
{authorities} fills in the members' councils. The US county press channel
now applies only where country=US.
- Deadlines first.
- Pack queries: open_for_comment (soonest first), decisions_due and
recent_decisions.
- The research prompt opens WHAT TO FIND with what is open for representations
and how many days are left.
- SQL has today(), the graph's own clock (pinned when a session pins it),
because a replayed question must answer the same.
- kg views export <dir> --site --scope S writes a public, read-only static
site for one scope. It has:
- a front page with what is open for comment and what awaits a decision;
- a page per site and per application, each value with the one line of its
source that says it, and every dated reading of the deadlines;
- a sources page.
It is built only from what a dataset may carry (D47d/f): nothing kept local,
press quoted but never copied, and each page refused if it mentions a private
term. The licence is licence: in kg.yaml or dataset.yaml, CC-BY-4.0 by
default for the rows we write; quoted text remains its publisher's. That
closes D47's open question for a dataset that publishes.
- Region, derived. A site's region is not on any portal page, and no single
primary source places every proposal in Scotland. The recorder derives it: a
region: Scotland claim of kind derived, method council_in_scotland, whose
input is the quoted council claim. The reasoning is on the claim, and no page is
cited for words it does not say.
Why¶
About 24 hyperscale proposals are moving through Scottish planning. They are mostly SPVs of two developers, claiming several times Scotland's winter peak demand. The people contesting them say what they lack: - deadlines they can act on (21 days, and the deadlines move); - decisions and call-ins; - the developers' claims side by side; - who is behind each company.
D36c found no national feed covering Scotland: planning is devolved, and the councils' portals have no API. The councils' own pages are the primary record, so kg reads them. The people who wrote in are the movement this serves, so their names are the one thing it must never collect.
Alternatives¶
- Scrape APRS's tracker as the source. It is the most complete list, but it is secondary, and its dates and megawatts are sometimes a stage or a year out. It is a discovery channel, and the portal is the evidence.
- Capture the whole page. That is simpler, and every page after this one would carry objectors' names into a dataset whose official records travel whole (D47d).
- Let the importer create sites from the application. An address is not a name, and "announced" is not on the page. A value cited to a page that does not say it breaks hard rule 6.
- Publish Datasette openly. It needs a server; a static folder serves from anywhere, and shows only what was chosen.
Open questions¶
- Where the site is hosted is decided with the person when it is ready.
- A council whose portal is not Idox (a few are) needs its own reader.
- The developers' claims are in PDFs (slice 33); SPV ownership is slice 34; politics is slice 35.