Align release policy and maintainer workflow with ReleaseKit
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
**Base Policy Version:** 1.13
|
||||
|
||||
**Last Updated**: 2026-11-22
|
||||
**Last Updated**: 2026-11-23
|
||||
|
||||
**Upstream Source**: https://gitea.maximumdirect.net/eric/policy/src/commit/5b9088601290564647a9e20c13f95c0da9f4cb15/docs/policy/documentation.md
|
||||
|
||||
@@ -78,7 +78,7 @@ secret values.
|
||||
| Project license texts | `LICENSE` | Complete project and incorporated companion license texts, with required project-specific fields. | General licensing policy and upstream component attribution. |
|
||||
| Upstream component attribution | `docs/oss/attribution.md` | House Format component entries: identity, material scope and modifications where applicable, copyright, license, required notices, and license, notice, and source links. | General attribution policy, exception reasoning, research narratives, compliance commentary, and complete standard license texts. |
|
||||
| Standard dependency license texts | `docs/oss/licenses/` | Complete, verbatim standard license texts shared by applicable entries. | Project-specific upstream notices, attribution prose, and policy interpretation. |
|
||||
| Repository-specific release procedure | `docs/release.md` | Maintainer prerequisites, candidate preparation, validation and source-only publication commands and automated guards, optional consumer verification, and recovery. | General release requirements, product installation guidance, historical release summaries, and current compatibility contracts. |
|
||||
| Repository-specific release procedure | `docs/release.md` | Maintainer prerequisites, candidate preparation, publication and delivery commands, optional consumer verification, and recovery. | General release requirements, product installation guidance, historical release summaries, and current compatibility contracts. |
|
||||
| CLI contract (if applicable) | `docs/cli.md` | Commands, arguments, flags, invocation semantics, and exit codes. | End-to-end operating procedures, configuration field definitions, runtime filesystem layout, module implementation details. |
|
||||
| Configuration contract (if applicable) | `docs/config.md` | Discovery, precedence, schema, fields, defaults, environment overrides, validation, and selectable module and validator keys. | Complete example files, CLI syntax, runtime state lifecycle, module implementation details. |
|
||||
| Operations (if applicable) | `docs/operations.md` | Runtime workflows, physical filesystem and state layout, output, cache and debug handling, resume, cleanup, permissions, recovery, and limits. | CLI flag syntax, configuration field definitions, logical output schemas, implementation mechanics. |
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
**Base Policy Version:** 1.9
|
||||
|
||||
**Last Updated**: 2026-11-17
|
||||
**Last Updated**: 2026-11-23
|
||||
|
||||
**Upstream Source**: https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/oss.md
|
||||
|
||||
@@ -187,8 +187,8 @@ the links through the selected channel. Do not maintain duplicate notice lists.
|
||||
These conventions do not by themselves require separate downloadable license
|
||||
assets, source bundles, or a different binary package format.
|
||||
|
||||
For Notarius, the [release runbook](../release.md) owns the concrete source-only
|
||||
publication process and release navigation.
|
||||
For Notarius, the [release runbook](../release.md) owns the concrete publication
|
||||
and delivery process and release navigation.
|
||||
|
||||
## Maintenance And Exceptions
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
138
docs/release.md
138
docs/release.md
@@ -1,110 +1,84 @@
|
||||
# Source Releases
|
||||
# Releases
|
||||
|
||||
This is the executable runbook for [Release Policy](policy/release.md).
|
||||
Notarius publishes an immutable lightweight tag and its checked-in release note,
|
||||
not binaries or Gitea release objects. Linux is supported; macOS is best-effort
|
||||
for development, and Windows is unsupported. `main` on `origin` is authoritative.
|
||||
This runbook implements the [release policy](policy/release.md). Source
|
||||
publication and hosted delivery are separate outcomes. The primary branch is
|
||||
`main`; `origin` is authoritative.
|
||||
|
||||
## Prepare
|
||||
|
||||
Use Git, a POSIX shell, and a Go installation supporting toolchain selection.
|
||||
The selected release toolchain is Go 1.27.0. Select it for candidate validation
|
||||
and release builds, including any CI performing those tasks:
|
||||
Use Git, a POSIX shell, Go 1.27.0, Git access to `origin`, and ordinary access
|
||||
to private modules. The consumer minimum remains in [go.mod](../go.mod). Prepare
|
||||
the selected toolchain and dependencies separately from offline validation:
|
||||
|
||||
```sh
|
||||
export GOTOOLCHAIN=go1.27.0
|
||||
go version
|
||||
```
|
||||
|
||||
The consumer minimum is declared in [`go.mod`](../go.mod). Its patch-level
|
||||
minimum is required by the selected ConfigKit dependency. Selecting a newer
|
||||
release toolchain is a separate runbook update and leaves that minimum unchanged.
|
||||
|
||||
Configure ordinary Git credentials for `origin` and private-module access
|
||||
without putting secrets in the repository. Prepare the selected toolchain and
|
||||
dependencies before offline validation where necessary:
|
||||
|
||||
```sh
|
||||
GOWORK=off GOPRIVATE=gitea.maximumdirect.net,go.maximumdirect.net go mod download
|
||||
GOWORK=off go mod download
|
||||
```
|
||||
|
||||
Choose an unused stable version under the policy's compatibility rules. Add
|
||||
`docs/releases/<version>.md`, starting with `# Notarius <version>`, with a concise
|
||||
summary and relevant compatibility/upgrade information. No fixed section list is
|
||||
required. Update current documentation with behavior changes; retire only
|
||||
completed roadmaps and preserve planned/deferred work. Commit the candidate on
|
||||
`main` after ordinary change review. There is no separate release sign-off.
|
||||
|
||||
End each new release note with this footer, replacing `<version>` with the
|
||||
selected tag. Check that `COPYRIGHT`, `LICENSE`, and `docs/oss/attribution.md`
|
||||
exist in the candidate source before publication; the future tag need not
|
||||
resolve remotely during preparation.
|
||||
`docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
|
||||
summary, and any compatibility or upgrade guidance. Update current documentation
|
||||
and review the candidate normally. End the note with the following footer,
|
||||
replacing `<version>` with the selected tag. Check the three paths in the
|
||||
candidate; the future tag need not resolve yet.
|
||||
|
||||
```markdown
|
||||
[COPYRIGHT](https://gitea.maximumdirect.net/eric/notarius/src/tag/<version>/COPYRIGHT) | [LICENSE](https://gitea.maximumdirect.net/eric/notarius/src/tag/<version>/LICENSE) | [ATTRIBUTION](https://gitea.maximumdirect.net/eric/notarius/src/tag/<version>/docs/oss/attribution.md)
|
||||
[COPYRIGHT](https://forge.maximumdirect.net/eric/notarius/src/tag/<version>/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/notarius/src/tag/<version>/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/notarius/src/tag/<version>/docs/oss/attribution.md)
|
||||
```
|
||||
|
||||
## Publish
|
||||
|
||||
Run one command from the repository with the actual selected version:
|
||||
Commit the candidate on `main`, then publish the branch before invoking
|
||||
ReleaseKit:
|
||||
|
||||
```sh
|
||||
./scripts/release.sh vMAJOR.MINOR.PATCH
|
||||
git push origin main
|
||||
```
|
||||
|
||||
Both release scripts inherit the `GOTOOLCHAIN` selected during preparation.
|
||||
The publication command checks version availability on `origin`, branch and
|
||||
worktree state, and the matching note. It runs the complete offline default test
|
||||
suite once and a native CLI build/version check with `GOWORK=off`. The
|
||||
[gate rationale](policy/release.md#notarius-gate-selection) explains the selected
|
||||
checks. It then rechecks candidate and publication state, pushes the exact
|
||||
candidate to `main` without force, creates a lightweight tag, and pushes only
|
||||
that tag. It neither rewrites history nor publishes other local tags.
|
||||
## Publish and deliver
|
||||
|
||||
A successful tag push completes the source release. The command does not wait
|
||||
for CI or verify consumer installation/module availability. Tag CI is advisory
|
||||
validation only; there are no asynchronous deliverables to await.
|
||||
|
||||
## Failure And Recovery
|
||||
|
||||
Before publication, correct failed checks, commit any changes, and rerun the
|
||||
command. If the candidate changes during validation, validation must run again
|
||||
on the new candidate. A failed branch push publishes no tag.
|
||||
|
||||
On a failed or ambiguous push, the command queries the affected remote ref. If
|
||||
a tag push reports failure but the intended lightweight tag is confirmed on the
|
||||
remote, publication succeeded. Otherwise it stops and reports failure or unknown
|
||||
status, leaving any local tag intact for inspection. Do not blindly rerun, force
|
||||
push, or delete a possibly published tag.
|
||||
|
||||
Inspect authoritative state before retrying:
|
||||
From the clean candidate on `main`, run:
|
||||
|
||||
```sh
|
||||
git ls-remote origin refs/heads/main refs/tags/vMAJOR.MINOR.PATCH
|
||||
git rev-parse vMAJOR.MINOR.PATCH
|
||||
./scripts/releasekit publish vMAJOR.MINOR.PATCH
|
||||
```
|
||||
|
||||
If the intended tag exists remotely, leave it immutable. If it is absent and
|
||||
you have confirmed that the local tag was never published or used by a release
|
||||
channel, remove only that unpublished local tag, then rerun the command. A
|
||||
failed remote query is not proof of absence. Network/authentication failures
|
||||
alone do not require a new version. A defect requiring changes to published
|
||||
source requires a new semantically appropriate version and matching note.
|
||||
ReleaseKit validates the candidate once, checks the selected Linux/amd64 build
|
||||
and native version, and publishes the annotated tag. A confirmed tag publication
|
||||
completes the source release; it does not wait for delivery. The optional
|
||||
`./scripts/releasekit check VERSION` is a diagnostic, not a mandatory
|
||||
preliminary repetition.
|
||||
|
||||
## Optional Diagnostics
|
||||
Tag CI uses the committed profile to deliver the note and binary/checksum assets.
|
||||
Provision Woodpecker secret `releasekit_gitea_token` and its Git/module access
|
||||
before relying on this route. Alternatively, from a clean checkout of the
|
||||
matching tag with dependencies prepared, run:
|
||||
|
||||
`./scripts/check-release-source.sh <version>` runs validation without publication.
|
||||
It is useful for diagnosis, but is not a required preliminary step that must
|
||||
repeat the publication command's checks.
|
||||
```sh
|
||||
./scripts/releasekit deliver vMAJOR.MINOR.PATCH
|
||||
```
|
||||
|
||||
Race tests, vet, module hygiene, formatting, example checks, and cross-builds may
|
||||
be run when relevant to a change; they are not additional release gates. The
|
||||
development guide and testing policy govern change-specific verification.
|
||||
Use one delivery route as appropriate, not both routinely. Local delivery uses
|
||||
the ignored `.releasekit/gitea-token` file or a nonblank
|
||||
`RELEASEKIT_GITEA_TOKEN` environment override. Keep the file owner-only and
|
||||
never display its contents. Git publication uses Git credentials, not this token.
|
||||
See the [delivery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md)
|
||||
for credential setup and delivery details.
|
||||
|
||||
A fresh source install or exact-tag checkout/build may be used to investigate
|
||||
consumer availability after release. Such checks are optional and do not delay
|
||||
or reverse release completion. `notarius version` is diagnostic; subprocess
|
||||
compatibility is defined by the [CLI report](cli.md#completion-report) and
|
||||
[domain artifact contracts](integrations/json-output.md). The
|
||||
[native migration guide](consumers/native-migration.md) describes the command
|
||||
and configuration cutover; it does not prepare or authorize a release.
|
||||
## Recovery
|
||||
|
||||
Report source publication and hosted delivery separately. Correct and commit a
|
||||
failed candidate before retrying publication. For failed or ambiguous source
|
||||
publication, use ReleaseKit's saved-record discovery and reconciliation guidance
|
||||
in the [publication guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md)
|
||||
before retrying; do not move a possibly published tag.
|
||||
|
||||
Delivery failure does not undo source publication. Investigate uncertainty or
|
||||
conflicts before retrying against the same immutable tag. When retrying must
|
||||
preserve the original asset bytes, retain native build output and its receipt and
|
||||
follow the [delivery retry guidance](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md).
|
||||
Do not overwrite published content or republish source to repair delivery.
|
||||
|
||||
The selected upstream [CLI](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/cli.md)
|
||||
and [profile reference](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/config.md)
|
||||
own command and configuration details. Change-specific vet, race, link, or
|
||||
other checks are not additional publication gates.
|
||||
|
||||
@@ -201,6 +201,9 @@ setup as pending operator setup when it cannot be verified locally.
|
||||
|
||||
## Stage 5: Align Release Policy And Rewrite The Maintainer Runbook
|
||||
|
||||
**Status: Complete.** Policy and runbook now describe native publication and
|
||||
separate delivery, with selected upstream recovery links and verified local paths.
|
||||
|
||||
**Goal:** Make the canonical release contract and practical workflow agree.
|
||||
|
||||
Read the release and documentation policies, then update `docs/policy/release.md`
|
||||
|
||||
Reference in New Issue
Block a user