Align release policy and maintainer workflow with ReleaseKit

This commit is contained in:
2026-11-23 19:21:22 +00:00
parent 5a3db96588
commit dc9f429bb8
5 changed files with 91 additions and 108 deletions

View File

@@ -2,10 +2,13 @@
**Base Policy Version:** 1.7
**Last Updated**: 2026-11-22
**Last Updated**: 2026-11-23
**Upstream Source**: https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/release.md
Native ReleaseKit publication and binary delivery below are local adaptations,
not a new upstream policy adoption.
## Purpose
This policy defines a proportionate workflow for validating and publishing an
@@ -24,7 +27,7 @@ policy and link to it rather than introduce additional release requirements.
A source release identifies one exact committed source revision through an
immutable version tag and a version-matched, checked-in release note. The
primary release branch is `main` and the authoritative remote is `origin`.
Tags are lightweight. Publish the candidate to `main` before pushing its tag.
Tags are annotated. Publish the candidate to `main` before native publication.
A successful push of the intended tag, with its source commit available on the
authoritative primary branch, completes the release. Notarius uses
@@ -37,9 +40,10 @@ A failed or ambiguous push requires resolving the authoritative remote state
before declaring success or retrying; successful pushes do not require a
separate remote read-back gate.
Notarius publishes source only: no binaries, archives, images, packages,
checksums, signatures, or Gitea release objects. Tag CI may provide advisory
validation but publishes no deliverables and is not a completion gate.
Deliver the checked-in note as a hosted release page with the selected
Linux/amd64 binary and native checksum assets. Delivery is required but has a
separate outcome from source publication; it may run asynchronously in tag CI
or locally from the matching tagged source. Do not add signing or packaging.
## Versioning And Compatibility
@@ -118,8 +122,8 @@ where useful.
Include the release footer defined by the [OSS policy](oss.md#discoverability)
in each new release document. The [release procedure](../release.md) defines
its concrete immutable-tag URLs. Notarius has no hosted download page; preparing
these links with the note does not add a network check or approval gate.
its concrete immutable-tag URLs. Preparing these links with the note does not
add a network check or approval gate.
Do not create retrospective notes for the pre-procedure v0.1.0, v0.2.0, or
v0.3.0 tags.
@@ -168,17 +172,18 @@ Do not add routine confirmations for checks the command can perform itself.
### Notarius Gate Selection
Run the default offline Go suite once and build the native `cmd/notarius` with
release version injection, checking its native `version` command output. The
command check protects the actual executable entry point and linker-supplied version, which
package tests alone do not verify. Build products are temporary, not published.
Run the native default offline Go suite once, build `cmd/notarius` for the
selected Linux/amd64 distribution target, and verify the native executable's
injected version. ReleaseKit performs the version check on a host executable,
building a temporary native executable when the distribution target differs.
Candidate build products are temporary; delivery builds from tagged source.
Use `GOWORK=off` so a sibling checkout cannot substitute for declared dependencies.
Race tests, standalone vet, formatting/whitespace checks, module tidy audits,
standalone example validation, and Linux/Darwin cross-builds remain useful
change-specific development checks, not mandatory release gates. Default tests
already cover maintained examples. Source-only publication does not require a
binary distribution matrix. No new platform or hardware prerequisites are added.
already cover maintained examples. No broader binary distribution matrix or
platform hardware prerequisites are added.
## Publication Guards
@@ -189,8 +194,8 @@ Automate the checks needed to publish the intended source under a fresh version:
- the worktree and index are clean on the primary release branch;
- the source being published is the exact candidate that passed validation,
including its matching release note;
- the branch push advances authoritative `main` to the candidate without
discarding remote history, before the tag is published; and
- authoritative `main` already points to the exact candidate before native
publication; and
- the tag identifies the validated candidate and only the intended refs are
published.
@@ -214,9 +219,10 @@ An unavailable remote leaves publication status unknown; do not overwrite a tag
to resolve uncertainty.
Transient network, authentication, CI, or consumer-availability failures do not
by themselves require a new version. Advisory CI or optional installation checks
may be retried against the same immutable tag. Notarius has no asynchronous
artifact delivery to recover.
by themselves require a new version. Recover delivery against the same immutable
tag and retain original build output when retrying requires the same bytes.
Resolve uncertain publication or delivery outcomes before retrying; never blindly
overwrite published content. Optional installation checks do not gate release.
A defect requiring changes to published source or contents requires a corrected
commit, a new semantically appropriate version, a matching release note, and
@@ -233,9 +239,9 @@ identify:
remote;
2. version and release-note preparation;
3. one publication command with its selected local checks and automated guards;
4. source-only delivery, required build targets, and automation responsibilities;
5. the successful-push completion point; and
6. failure handling and ambiguous-push recovery.
4. hosted delivery, required build target, and automation responsibilities;
5. separate source-publication and delivery outcomes; and
6. publication and delivery failure recovery.
Use copyable commands where practical. Keep optional diagnostics and consumer
verification clearly optional. The procedure must not turn preparation work,