| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-8f069dd |
| 4 | status: decided |
| 5 | title: A valley groups projects under shared policy |
| 6 | created: 2026-08-22 |
| 7 | source: design conversation, 2026-08-22 |
| 8 | supersedes: [dcr-0e9278a] |
| 9 | --- |
| 10 | |
| 11 | # A valley groups projects under shared policy |
| 12 | |
| 13 | A valley is a named set of people, agents, and projects governed by shared policy. It owns the |
| 14 | repository that records its governing state. Its identity registry declares who may act, and its |
| 15 | integrator principal is the identity under which its integration controllers sign their decisions. |
| 16 | |
| 17 | The common requirements a valley sets for its projects are called its **floor**. These requirements, |
| 18 | the identity registry, and the integrator belong to the valley and govern the projects it owns. |
| 19 | |
| 20 | ## The substrate defines what a valley is |
| 21 | |
| 22 | **The substrate** is the software this repository builds, named **the-valley**. It supplies the |
| 23 | schemas, hosting module, policy definitions, and tools used to operate valleys. Each valley uses |
| 24 | that software with its own governing state. The rules for adopting supplied policy are defined in |
| 25 | [[dcr-9c75283]](dcr-9c75283-substrate-adoption-and-the-core.md). |
| 26 | |
| 27 | ## Keep domain names distinct from operating-system terms |
| 28 | |
| 29 | Use **valley** for the collection governed by shared policy. Reserve **group** for Unix groups and |
| 30 | **instance** for systemd template instances. Unix groups are also the mechanism used to isolate |
| 31 | valleys, so using the same term for both would make configuration and access rules ambiguous. |
| 32 | |
| 33 | The naming rule applies throughout the design: a domain concept must have a name distinct from the |
| 34 | kernel objects, service-manager constructs, and filesystem permissions used to implement it. |
| 35 | |
| 36 | ## Names for a particular valley and for the shared software |
| 37 | |
| 38 | A bare `valley` in a name refers to a particular valley. Use `the-valley`, or **the substrate** in |
| 39 | prose, when referring to the software shared by all valleys. |
| 40 | |
| 41 | For example, `valley-integrator@…` names an integrator serving a valley. `VALLEY_PRINCIPAL` names a |
| 42 | principal in that valley's registry. `valley review` operates in the context of the valley that owns |
| 43 | the project being reviewed. |
| 44 | |
| 45 | The `.the-valley/` knowledge-graph directory and the `refs/the-valley/` ref namespace use the |
| 46 | software's full name to identify its storage conventions. |
| 47 | |
| 48 | ## Existing code names require an explicit migration |
| 49 | |
| 50 | Applying this naming rule to existing code requires a separate, explicit change. The audit covers |
| 51 | module options, `schema/valley.cue`, and artifacts under `identity/`, `nix/`, `integrator/`, and |
| 52 | `attest/`. A rename must account for deployments that use the current names, including any required |
| 53 | compatibility or migration steps. |
| 54 | |
| 55 | ## Related |
| 56 | |
| 57 | - [[dcr-9b5da04]](dcr-9b5da04-hosts-serve-isolated-valleys.md) — what a valley is to a host, and |
| 58 | what separates two valleys sharing one. |
| 59 | - [[dcr-b87f6e8]](dcr-b87f6e8-identity-is-a-governed-registry.md) — the registry a valley declares. |
| 60 | - [[dcr-5da1f36]](dcr-5da1f36-project-is-repo.md) — the unit below: a project is one git repository. |
| 61 | - [[ida-8482624]](../ideas/ida-8482624-federation-groups.md) — the federation layer above, which |
| 62 | governs what crosses between valleys. |