gunk-dev/the-valley

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

source91b9472e8c54main's published tip history
3.1 KiB · Rendered
1---
2type: decision
3id: dcr-8f069dd
4status: decided
5title: A valley groups projects under shared policy
6created: 2026-08-22
7source: design conversation, 2026-08-22
8supersedes: [dcr-0e9278a]
9---
10
11# A valley groups projects under shared policy
12
13A valley is a named set of people, agents, and projects governed by shared policy. It owns the
14repository that records its governing state. Its identity registry declares who may act, and its
15integrator principal is the identity under which its integration controllers sign their decisions.
16
17The common requirements a valley sets for its projects are called its **floor**. These requirements,
18the 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
23schemas, hosting module, policy definitions, and tools used to operate valleys. Each valley uses
24that 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
29Use **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
31valleys, so using the same term for both would make configuration and access rules ambiguous.
32
33The naming rule applies throughout the design: a domain concept must have a name distinct from the
34kernel objects, service-manager constructs, and filesystem permissions used to implement it.
35
36## Names for a particular valley and for the shared software
37
38A bare `valley` in a name refers to a particular valley. Use `the-valley`, or **the substrate** in
39prose, when referring to the software shared by all valleys.
40
41For example, `valley-integrator@…` names an integrator serving a valley. `VALLEY_PRINCIPAL` names a
42principal in that valley's registry. `valley review` operates in the context of the valley that owns
43the project being reviewed.
44
45The `.the-valley/` knowledge-graph directory and the `refs/the-valley/` ref namespace use the
46software's full name to identify its storage conventions.
47
48## Existing code names require an explicit migration
49
50Applying this naming rule to existing code requires a separate, explicit change. The audit covers
51module 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
53compatibility 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.