| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-e544f20 |
| 4 | status: decided |
| 5 | title: "Declare access as permitted actions on projects" |
| 6 | created: 2026-08-22 |
| 7 | source: design conversation, 2026-08-22 |
| 8 | --- |
| 9 | |
| 10 | # Declare access as permitted actions on projects |
| 11 | |
| 12 | A valley declares which principals may perform which actions on its projects. The system compiles |
| 13 | those grants into SSH access, hook rules, bus permissions, and policy checks. |
| 14 | |
| 15 | The shared schema defines a closed set of action names, called **verbs**. A verb becomes available |
| 16 | only when its enforcement mechanism exists. Compilation must fail if a deployment cannot enforce a |
| 17 | declared grant. |
| 18 | |
| 19 | ## Verbs |
| 20 | |
| 21 | | Verb | Meaning | Scope and enforcement | |
| 22 | | --------- | ----------------------------------------------------- | ------------------------------------------------------------------------------ | |
| 23 | | `govern` | Supply approval for changes to governing path classes | Valley-scoped; checked through approval policy | |
| 24 | | `push` | Write topic branches and attestation refs | Project-scoped; checked at repository access and receive hooks; includes fetch | |
| 25 | | `fetch` | Read repositories | Valley-scoped until the forced-command dispatcher provides project scoping | |
| 26 | | `observe` | Subscribe to project events | Project-scoped from introduction; requires authenticated bus subjects | |
| 27 | | `request` | Write integration requests for a project's stream | Project-scoped; checked on writes to the request namespace | |
| 28 | |
| 29 | Governance can change other grants. It is rooted in the genesis principal, cannot be granted to an |
| 30 | external principal, and must remain available to at least one unexpired governing key. |
| 31 | |
| 32 | Revoking fetch access prevents future reads through that boundary. It cannot remove copies already |
| 33 | obtained. |
| 34 | |
| 35 | The combination of request permission and required approvals determines the level of supervision. An |
| 36 | automated caller may be allowed to submit requests while policy still requires human approval before |
| 37 | particular changes land. |
| 38 | |
| 39 | ## Integrator authority |
| 40 | |
| 41 | Only the integrator writes protected refs. This is a property of the integration machinery, rather |
| 42 | than a grant available to ordinary principals. |
| 43 | |
| 44 | The integrator's registry entry makes its signatures verifiable. Its ability to land changes comes |
| 45 | from its configured role in that machinery. |
| 46 | |
| 47 | Governance changes pass through the governed policy path. The host owner's root access remains |
| 48 | outside this model. |
| 49 | |
| 50 | ## Enforcement |
| 51 | |
| 52 | A forced-command dispatcher on the SSH path provides project-level repository access. The registry |
| 53 | compiler generates its grant table and authorized keys. This is the enforcement needed to provide |
| 54 | finer access than the shared-user arrangement described in |
| 55 | [[dcr-0f5d9b1]](dcr-0f5d9b1-cue-config-host-module.md). |
| 56 | |
| 57 | Request grants compile into receive-hook configuration. Observe grants compile into the bus |
| 58 | permissions required by [[bd-d853d9c]](../bugs/bd-d853d9c-bus-unauthenticated.md), using the subject |
| 59 | namespace in [[dcr-62ecc36]](dcr-62ecc36-signal-contracts.md). Govern grants determine whose |
| 60 | approvals satisfy policy. |
| 61 | |
| 62 | [[dcr-b87f6e8]](dcr-b87f6e8-identity-is-a-governed-registry.md) defines the registry and credential |
| 63 | model. [[dcr-f41f718]](dcr-f41f718-declared-verification-policy.md) defines governing path classes |
| 64 | and verification policy. [[dcr-9b5da04]](dcr-9b5da04-hosts-serve-isolated-valleys.md) covers |
| 65 | separation between valleys sharing a host. |