0201. Registry namespaces and ownership
- Status: Superseded by ADR-0237 (accepted 2026-11-15)
- Date: 2026-11-08
- Plan: M15.5; R1, R6, R7, H3, H6
- Review: Making Tenon plugin-first
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
- Globally unique package names — simplest compiler match, but creates one global squatting market and weak organizational ownership.
- Namespace-qualified source imports — permits multiple util providers but changes language identity, hashing and coherence beyond distribution v0.
- Open self-service namespace registration — convenient, but needs abuse, recovery and account-verification policy; defer rather than add an identity SaaS.
- Personal namespaces only — smaller administration, but makes team key rotation/ownership transfer awkward; viable as a stricter launch policy.
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.