D57b — An application with no known status is open while its deadline lasts¶
- Status: Accepted — amends D57
- Date: 2026-11-03
- Origin: a refresh of the Scottish scope, which found an undecided application at Chapelcross that the public site listed as open for comment and
open_for_commentleft out - Area: surfaces
Decision¶
The pack's open_for_comment query treats a permit with no status as undecided:
(status IS NULL OR status NOT IN ('granted', 'denied', 'withdrawn', 'determined')).
That is how the public site (src/kg/core/site.py) and the research prompt
(src/kg/core/research.py) already judged it in Python, so all three now agree.
The planning importer's STATUS map also reads Dumfries and Galloway's "Assessment
Stage" as under_review. Other unmapped words seen on Scottish portals
("Comments", "Consultation Approved") are still not guessed.
Why¶
A portal status the importer does not know leaves status empty, because "a
status not listed is not guessed". In SQL, NULL NOT IN (…) is not true, so the
query dropped every such application, even while its consultation was open.
Dumfries and Galloway's 26/1649/PIP, the planning permission in principle for the
Chapelcross campus, had a neighbour consultation running to 19 November 2026.
The site listed it, but kg query run open_for_comment and the MCP op did not.
A missing status means we don't know the application's stage, not that it has been
decided. The deadline is what decides whether people can still comment.
decisions_due still lists only the statuses it names, so an application with no
known status is not in it; that gap is in the backlog.