| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-8f069dd |
| 4 | status: decided |
| 5 | title: The valley is the unit |
| 6 | created: 2026-08-22 |
| 7 | source: design conversation, 2026-08-22 |
| 8 | supersedes: [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 | |
| 16 | A valley is the named unit of the system. A valley owns a repository, mandates a floor, declares an |
| 17 | identity registry, and has an integrator principal. Everything that is not a project hangs off it: |
| 18 | the repository is the valley's sovereign home, the floor is what the valley mandates over the |
| 19 | projects it governs, the registry says who may act in the valley, and the integrator principal is |
| 20 | who the valley's controllers sign as. |
| 21 | |
| 22 | ## The substrate defines what a valley is |
| 23 | |
| 24 | The substrate is the thing this repository builds — its proper name is the-valley, and its common |
| 25 | noun is the substrate. The substrate defines what a valley is: the schema, the module, the floor, |
| 26 | and the machinery a valley runs. A valley is one of them — a set of people, agents, and projects |
| 27 | under shared law, with its own floor, its own registry, and its own integrator. |
| 28 | |
| 29 | The general and the particular are told apart by the article, as English normally does it: the |
| 30 | substrate, against a valley. No second word is minted for the particular case, because the article |
| 31 | already 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 |
| 36 | collided with a subsystem of the layer the substrate is built on: "instance" collided with systemd |
| 37 | template instances, and "group" collided with unix groups — which is the exact mechanism per-valley |
| 38 | isolation uses, so the concept term and the enforcement primitive would have been one word. |
| 39 | |
| 40 | That collision is the rule, stated generally: a concept term must mean nothing in the systems layer |
| 41 | below. A word that already names a kernel object, a service-manager construct, or a filesystem |
| 42 | permission cannot also name a unit of governance, because every sentence about the unit then reads |
| 43 | twice. |
| 44 | |
| 45 | ## Bare `valley` names a valley; the substrate is always named in full |
| 46 | |
| 47 | The namespacing principle follows from the article rule. A bare `valley` in a name refers to a |
| 48 | valley — one of them — and never to the substrate. Where a name genuinely means the substrate, it |
| 49 | says the-valley, or says "the substrate" in prose. |
| 50 | |
| 51 | The 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 |
| 53 | valley's registry. `valley review` runs against the valley whose repository is in hand. Each was |
| 54 | already named a particular valley; the principle says so out loud. |
| 55 | |
| 56 | Two 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/` |
| 58 | namespace the machinery writes under. |
| 59 | |
| 60 | ## Renaming what is already minted is deliberate work |
| 61 | |
| 62 | Names in the tree that do need correcting — module option names, `schema/valley.cue`, the code |
| 63 | artifacts under `identity/`, `nix/`, `integrator/` and `attest/` — are corrected by a change that |
| 64 | lands as itself. That work is an audit of a public module surface and a rename with its own |
| 65 | compatibility question for the deployments that set those options. It is never done implicitly, as a |
| 66 | side 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. |