gunk-dev/the-valley

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

source4be98c5582b6main's published tip history
3.5 KiB · Plain text
Contents

type: decision id: dcr-e544f20 status: decided title: "Declare access as permitted actions on projects" created: 2026-08-22 source: design conversation, 2026-08-22 #

Declare access as permitted actions on projects #

A valley declares which principals may perform which actions on its projects. The system compiles those grants into SSH access, hook rules, bus permissions, and policy checks.

The shared schema defines a closed set of action names, called verbs. A verb becomes available only when its enforcement mechanism exists. Compilation must fail if a deployment cannot enforce a declared grant.

Verbs #

VerbMeaningScope and enforcement
governSupply approval for changes to governing path classesValley-scoped; checked through approval policy
pushWrite topic branches and attestation refsProject-scoped; checked at repository access and receive hooks; includes fetch
fetchRead repositoriesValley-scoped until the forced-command dispatcher provides project scoping
observeSubscribe to project eventsProject-scoped from introduction; requires authenticated bus subjects
requestWrite integration requests for a project's streamProject-scoped; checked on writes to the request namespace

Governance can change other grants. It is rooted in the genesis principal, cannot be granted to an external principal, and must remain available to at least one unexpired governing key.

Revoking fetch access prevents future reads through that boundary. It cannot remove copies already obtained.

The combination of request permission and required approvals determines the level of supervision. An automated caller may be allowed to submit requests while policy still requires human approval before particular changes land.

Integrator authority #

Only the integrator writes protected refs. This is a property of the integration machinery, rather than a grant available to ordinary principals.

The integrator's registry entry makes its signatures verifiable. Its ability to land changes comes from its configured role in that machinery.

Governance changes pass through the governed policy path. The host owner's root access remains outside this model.

Enforcement #

A forced-command dispatcher on the SSH path provides project-level repository access. The registry compiler generates its grant table and authorized keys. This is the enforcement needed to provide finer access than the shared-user arrangement described in [dcr-0f5d9b1].

Request grants compile into receive-hook configuration. Observe grants compile into the bus permissions required by [bd-d853d9c], using the subject namespace in [dcr-62ecc36]. Govern grants determine whose approvals satisfy policy.

[dcr-b87f6e8] defines the registry and credential model. [dcr-f41f718] defines governing path classes and verification policy. [dcr-9b5da04] covers separation between valleys sharing a host.