gunk-dev/the-valley

dcr-2965320-valley-is-its-repository.md

source301e803586a4main's published tip history
3.2 KiB · Rendered
1---
2type: decision
3id: dcr-2965320
4status: decided
5title: "A valley's repository stores its governing state"
6created: 2026-08-22
7source: design conversation, 2026-08-22
8---
9
10# A valley's repository stores its governing state
11
12A valley stores all its governing state in its repository. This includes its shared policy, called
13the floor, and its identity registry. A valley that owns a host will also store that host's
14declaration. The integrated revision of the repository is the source for the rules the valley sets
15for its projects and the configuration compiled to enforce those rules. The shared core requirements
16in [[dcr-9c75283]](dcr-9c75283-substrate-adoption-and-the-core.md) also apply through deployment.
17
18## Policy changes take effect through integration
19
20Changing access requires integrating a change to the repository. The rules in the current integrated
21revision determine whether the next change may land. This also applies to changes to the rules
22themselves.
23
24The initial configuration establishes this process. The host that runs the enforcement services
25remains the underlying trust and recovery boundary. The bootstrap mechanism is described in
26[design/architecture.md](../../design/architecture.md).
27
28An integrated policy change takes effect when the enforcement configuration is next compiled and
29applied. A grant or revocation therefore affects subsequent access; it does not change which actions
30were permitted in the past.
31
32## The registry declares which keys are authorized
33
34The identity registry stores public keys. A caller must prove possession of the corresponding
35private key to act under that identity. Editing the registry cannot produce that proof.
36
37An attacker who gains control of the registry could authorize a new key. That grant would appear as
38a repository change and could be attributed through the integration record. It would not give the
39attacker another principal's private key or the ability to produce that principal's signatures.
40
41## Revocation limits future access
42
43Write permissions are declared in the repository. Each grant is recorded in a commit and can be
44revoked by a later change. Read permissions can also be revoked, but revocation only prevents future
45reads. It cannot remove copies a reader already obtained.
46
47Governing state should generally be public. In particular, outside readers need the public keys in
48the registry to verify the system's signatures.
49
50## The same rules cover other valleys and hosts
51
52A valley grants access to a principal from another valley by integrating a change that identifies
53that principal. Its floor constrains these grants in the same way it constrains other policy
54changes.
55
56The host that runs a valley's enforcement services has its own declaration. That declaration lives
57in the repository of the valley that owns the host.
58
59## Related
60
61- [[dcr-b87f6e8]](dcr-b87f6e8-identity-is-a-governed-registry.md) — the registry from which access
62 and verification configuration are compiled.
63- [[dcr-9b5da04]](dcr-9b5da04-hosts-serve-isolated-valleys.md) — the host a valley's gates run on,
64 whose declaration is itself governed state.
65- [[dcr-e544f20]](dcr-e544f20-access-is-verbs-on-projects.md) — the operations that access grants
66 authorize.