0254. Release tags are create-once pushes of landed commits
- Status: Accepted (maintainer, 2026-11-16)
- Date: 2026-11-16
- Plan: M15.5; RG4.1c, RG4.1d
(
hosted registry plan) - Review: Security and authority
Context
0244
makes publishing "push a tag", but proposed 0204 allows pushing only one
writable branch: no tag push. Local hvc tags are already
create-once (refs.rs tag). Only the
queue advances a protected branch, after OWNERS approval and a
gate.
Decision
Amend 0204 for release tags only. A remote push may create a
tag named v<x.y.z> (semver core, no prerelease)
when: it does not exist, or already names the same commit
(idempotent); the commit is reachable from the repo's protected
tip; the tagged tree's root harness.toml has
[package].version = x.y.z, a non-reserved name, a
known edition and no path dependencies; its pack passes 0249
and host quotas; and the actor holds the release
scope. Admission, tag creation, index render and log append form
one recoverable transaction with a durable receipt. Tags are never
moved or deleted remotely. Other tag names are refused by remote
push in v0.
Alternatives considered
- Tags on any pushed commit — publishes code no owner approved and no gate ran.
- Server-side "create release" API instead of push — a second publish path beside tags, against 0244's "publish = push a tag".
- Release branches as well as the protected branch — useful for backports; deferred until a branch-policy decision.
Consequences
Every hosted release was approved and gated, so a stolen publish token alone cannot release. Backport releases wait for a later decision. VR6 grows a tag route (RG4.1d).