gunk-dev/the-valley

dcr-8f069dd-valley-is-the-unit.md

sourcecb8f4ca7054bmain's published tip history
4.1 KiB · Rendered
1---
2type: decision
3id: dcr-8f069dd
4status: decided
5title: The valley is the unit
6created: 2026-08-22
7source: design conversation, 2026-08-22
8supersedes: [dcr-0e9278a]
9---
10
11# The valley is the unit
12
13**Decided 2026-08-22.** Supersedes [[dcr-0e9278a]]
14([dcr-0e9278a-group-is-the-unit.md](./dcr-0e9278a-group-is-the-unit.md)).
15
16A valley is the named unit of the system. A valley owns a repository, mandates a floor, declares an
17identity registry, and has an integrator principal. Everything that is not a project hangs off it:
18the repository is the valley's sovereign home, the floor is what the valley mandates over the
19projects it governs, the registry says who may act in the valley, and the integrator principal is
20who the valley's controllers sign as.
21
22## The substrate defines what a valley is
23
24The substrate is the thing this repository builds — its proper name is the-valley, and its common
25noun is the substrate. The substrate defines what a valley is: the schema, the module, the floor,
26and the machinery a valley runs. A valley is one of them — a set of people, agents, and projects
27under shared law, with its own floor, its own registry, and its own integrator.
28
29The general and the particular are told apart by the article, as English normally does it: the
30substrate, against a valley. No second word is minted for the particular case, because the article
31already carries the distinction wherever the two are named together.
32
33## Two words are retired
34
35"Group" and "instance" are both out of the vocabulary. Each named the unit at some point, and each
36collided with a subsystem of the layer the substrate is built on: "instance" collided with systemd
37template instances, and "group" collided with unix groups — which is the exact mechanism per-valley
38isolation uses, so the concept term and the enforcement primitive would have been one word.
39
40That collision is the rule, stated generally: a concept term must mean nothing in the systems layer
41below. A word that already names a kernel object, a service-manager construct, or a filesystem
42permission cannot also name a unit of governance, because every sentence about the unit then reads
43twice.
44
45## Bare `valley` names a valley; the substrate is always named in full
46
47The namespacing principle follows from the article rule. A bare `valley` in a name refers to a
48valley — one of them — and never to the substrate. Where a name genuinely means the substrate, it
49says the-valley, or says "the substrate" in prose.
50
51The names already minted re-ground correctly under this reading rather than needing correction.
52`valley-integrator@…` is the integrator for that valley. `VALLEY_PRINCIPAL` is a principal in a
53valley's registry. `valley review` runs against the valley whose repository is in hand. Each was
54already named a particular valley; the principle says so out loud.
55
56Two spellings keep the full name as proper-noun branding, on the pattern `.git` set: the
57`.the-valley/` directory that holds a repository's knowledge graph, and the `refs/the-valley/`
58namespace the machinery writes under.
59
60## Renaming what is already minted is deliberate work
61
62Names in the tree that do need correcting — module option names, `schema/valley.cue`, the code
63artifacts under `identity/`, `nix/`, `integrator/` and `attest/` — are corrected by a change that
64lands as itself. That work is an audit of a public module surface and a rename with its own
65compatibility question for the deployments that set those options. It is never done implicitly, as a
66side effect of a change about something else.
67
68## Related
69
70- [[dcr-9b5da04]]
71 ([dcr-9b5da04-hosts-serve-isolated-valleys.md](./dcr-9b5da04-hosts-serve-isolated-valleys.md)) —
72 what a valley is to a host, and what separates two valleys sharing one.
73- [[dcr-b87f6e8]]
74 ([dcr-b87f6e8-identity-is-a-governed-registry.md](./dcr-b87f6e8-identity-is-a-governed-registry.md))
75 — the registry a valley declares.
76- [[dcr-5da1f36]] ([dcr-5da1f36-project-is-repo.md](./dcr-5da1f36-project-is-repo.md)) — the unit
77 below: a project is one git repository.
78- [[ida-8482624]] ([ida-8482624-federation-groups.md](../ideas/ida-8482624-federation-groups.md)) —
79 the federation layer above, which governs what crosses between valleys.