On this page

0201. Registry namespaces and ownership

Context

The compiler identifies dependencies by manifest/import name, with one provider per name. ADR-0071 forbids dependency-key aliases and separates package names from module paths. Registry namespaces must not silently change those semantics. The existing plugin kit checks reserved/near names, not registry ownership. Hosting needs accountable humans and agents without depending on M14 accounts.

Decision

Recommended default, not adopted: registry identity comprises registry ID, namespace, package name and version. Namespaces use lowercase ASCII import-shaped segments and are operator-assigned to an account/team; names are never reassigned automatically after deletion. Reserve the harness namespace for curated releases. Team membership and publisher/reviewer grants are explicit versioned records.

Keep package names and import spelling unchanged. A graph can contain util from acme or another namespace, but not both: reject conflicting providers with E0939. An unqualified CLI name requires a configured default namespace; do not probe multiple registries or guess based on download counts. Published dependency metadata names immutable registry identity; endpoints come from trusted root config.

Namespace ownership does not grant VC review, signing or process capability. Repository push/land/approve grants are separate scoped operations. Bind human approvals to exact source commits through existing protected OWNERS semantics. No caller-supplied reviewer/owner field is accepted as authenticated identity. Transfers of namespace ownership require operator authorization and retain history.

Keep existing reserved/near-name checks; add scoped collision checks for publishing. Edition membership is review, not an automatic consequence of owning a name. The curated namespace cannot replace the existing embedded edition source silently.

Alternatives considered

Consequences

No compiler mangling or item-key migration is required. Some otherwise valid graphs remain unrepresentable, with a clear conflicting-provider diagnostic. Registry plan owns source syntax; hosting plan owns account/grant enforcement. Maintainer chooses namespace provisioning and the unchanged-import restriction.