gunk-dev/the-valley

dcr-e544f20-access-is-verbs-on-projects.md

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