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