D47l — A scope is shared by choice, as a file in the dataset¶
- Status: Accepted — implements D47 (part 4); amends D45 (a shared scope's definition is the dataset's)
- Date: 2026-09-24
- Origin: slice 24 build
- Area: foundations
Decision¶
kg scope share <scope>writesscopes/<scope>.yamlinto the dataset. The file holds:- the definition: type,
where,ids, anchor and anchor edges, props, criteria and exclusions; - every channel that is not local-only.
Sharing refuses:
- a scope whose file would mention a private_terms word;
- one whose anchor or listed members are kept local (D47f).
- Nothing is shared until someone says so. A scope built around a private
list may name that list in its criteria or its notes, and exporting every scope
by default would carry it out.
- Once shared, the file is the definition. This is the same stance as D47e
for computed settings.
- kg scope add, kg scope channel add|rm and channel from-pack on a shared
scope change the file as well as the graph. You commit it and open a pull
request, as with contributors.yaml.
- kg pull and kg rebuild read scopes/*.yaml into the graph:
- shared channels are replaced by name;
- a channel the file no longer lists is dropped;
- local-only channels are never touched.
- A scope file is not signed. Like contributors.yaml, it changes by pull
request, and the person who merges the request is the maintainer; that is the
host's gate. kg bundle verify checks every scope file:
- it parses;
- its type is in the pinned packs, and its where fields exist;
- its channels have valid kinds and roles;
- its anchor and members are entities the dataset holds.
Why¶
- Two researchers cannot cover one population if only one of them knows what it is. D45 made a scope the record of "who belongs, and where we look". Kept in one graph, that record is exactly the unwritten scope decision D45 was written to remove, and a rebuilt graph had no scopes at all (D47c).
- A scope is configuration, not a claim. It has no source to cite and no status
to decide, so it belongs beside
dataset.yamlandcontributors.yamlas a reviewed file, not in a bundle.
Alternatives¶
- Scopes as rows in bundles. They would be signed, but they are edited in place: every change would be a new row, a rule for which one wins, and a history nobody reads. A file in git has all of that already.
- Share every scope at export. Simpler, but it leaks by default. The first real scope in this project was built around a proprietary list (D47f).
Consequences¶
kg sweep plansurvives a round trip: every golden session, with its scopes shared, rebuilds with an identical plan.- Renaming a shared scope is a new file, and the old one is removed by pull request.
- A person's own, unshared scope with the same name as a shared one is replaced
on pull.
kg pullsays so ("the dataset's definition replaces yours").