Skip to content

D45 — A scope is a population with written rules

  • Status: Accepted — amended by D47l (a shared scope's definition is a dataset file)
  • Date: 2026-09-22
  • Origin: slice 18, from checking one developer's projects against an outside list
  • Area: reading

Decision

A scope extends the watchlist (D23b). It has:

  • a type;
  • a membership rule: --where clauses, fixed ids, and an anchor. A member holds a current edge of the named kinds to the anchor, in either direction: --anchor Crusoe --anchor-edges developer,operator,owner,tenant, or --anchor "Harbour Party" --anchor-edges member_of;
  • criteria: who belongs, in words, applied by whoever judges a new candidate;
  • exclusions, each named. A clause such as country!=US is checked by machine: members it catches are held out and listed with the rule, and candidates it catches are excluded by it. Any other text is a judgement rule that a person or agent must cite.

A watchlist is a scope with no anchor, criteria or exclusions. kg watch and kg brief --set work on both. The columns are added to watchlists additively (D24).

Why

Checking one developer's projects against an outside list found ten of eighteen missing. Three had been left out on purpose: the search was "US only", but nothing recorded that. So a site excluded by a decision looked exactly like a site nobody had found, and the decision could not be revisited because it had never been written down.

An anchor answers "all of X's sites" without re-deriving a query per pack. Because it reads current edges, a developer that withdrew (a retracted edge) or an MP whose membership ended (valid_to) drops out without anyone editing the scope.

Consequences

  • Membership is computed on read, from the anchor's own view: one entity read, whatever the size of the set.
  • A scope that should include cancelled projects, or exclude them, says so in --where or --exclude. There is no hidden default.