ADR-026: Package Specification Validation Policy

Status

Accepted

Related: ADR-010 (go pinning), ADR-022 (brew tap refs), ADR-024 (npm grammar), ADR-025 (dnf native identity); tracked in issue #264.

Date

2026-11-15

Context

Stamp validated nearly every package with one allowlist. Native syntaxes such as pkg=version, repo/pkg, name@version, and pkg[extra] were rejected as “invalid characters”, while adapters re-validated independently. Three rounds of bugs (#227, #259, #270) showed the cost of patching one syntax at a time.

The Package Specification Support page is the audit and reference matrix. This ADR records the policy behind it.

Decision

One registry owns validation and manifest identity.

Alternatives Considered

Keep the generic allowlist and add more special cases

Rejected: that is the failure mode this issue tracks. Each special case was a different path with its own drift.

Support everything the native managers accept

Rejected for this change: category selectors need new flags, VCS/URL specs need their own validation and trust model, and dnf complex specs already need operation-time resolution. The registry rejects them with actionable messages.

Keep adapter-level validation and validate again at the CLI

Rejected: duplicated rules drift. One registry is the source of truth.

Reject every versioned/qualified spec

Rejected: blocks common apt, cargo, pipx, and uv usage that works today in the native managers.

Consequences