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,7 +2,7 @@
**Base Policy Version:** 1.13 **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 **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. | | 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. | | 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. | | 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. | | 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. | | 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. | | 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. |

View File

@@ -2,7 +2,7 @@
**Base Policy Version:** 1.9 **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 **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 These conventions do not by themselves require separate downloadable license
assets, source bundles, or a different binary package format. assets, source bundles, or a different binary package format.
For Notarius, the [release runbook](../release.md) owns the concrete source-only For Notarius, the [release runbook](../release.md) owns the concrete publication
publication process and release navigation. and delivery process and release navigation.
## Maintenance And Exceptions ## Maintenance And Exceptions

View File

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

View File

@@ -1,110 +1,84 @@
# Source Releases # Releases
This is the executable runbook for [Release Policy](policy/release.md). This runbook implements the [release policy](policy/release.md). Source
Notarius publishes an immutable lightweight tag and its checked-in release note, publication and hosted delivery are separate outcomes. The primary branch is
not binaries or Gitea release objects. Linux is supported; macOS is best-effort `main`; `origin` is authoritative.
for development, and Windows is unsupported. `main` on `origin` is authoritative.
## Prepare ## Prepare
Use Git, a POSIX shell, and a Go installation supporting toolchain selection. Use Git, a POSIX shell, Go 1.27.0, Git access to `origin`, and ordinary access
The selected release toolchain is Go 1.27.0. Select it for candidate validation to private modules. The consumer minimum remains in [go.mod](../go.mod). Prepare
and release builds, including any CI performing those tasks: the selected toolchain and dependencies separately from offline validation:
```sh ```sh
export GOTOOLCHAIN=go1.27.0 export GOTOOLCHAIN=go1.27.0
go version go version
``` GOWORK=off go mod download
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
``` ```
Choose an unused stable version under the policy's compatibility rules. Add Choose an unused stable version under the policy's compatibility rules. Add
`docs/releases/<version>.md`, starting with `# Notarius <version>`, with a concise `docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
summary and relevant compatibility/upgrade information. No fixed section list is summary, and any compatibility or upgrade guidance. Update current documentation
required. Update current documentation with behavior changes; retire only and review the candidate normally. End the note with the following footer,
completed roadmaps and preserve planned/deferred work. Commit the candidate on replacing `<version>` with the selected tag. Check the three paths in the
`main` after ordinary change review. There is no separate release sign-off. candidate; the future tag need not resolve yet.
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.
```markdown ```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 Commit the candidate on `main`, then publish the branch before invoking
ReleaseKit:
Run one command from the repository with the actual selected version:
```sh ```sh
./scripts/release.sh vMAJOR.MINOR.PATCH git push origin main
``` ```
Both release scripts inherit the `GOTOOLCHAIN` selected during preparation. ## Publish and deliver
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.
A successful tag push completes the source release. The command does not wait From the clean candidate on `main`, run:
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:
```sh ```sh
git ls-remote origin refs/heads/main refs/tags/vMAJOR.MINOR.PATCH ./scripts/releasekit publish vMAJOR.MINOR.PATCH
git rev-parse vMAJOR.MINOR.PATCH
``` ```
If the intended tag exists remotely, leave it immutable. If it is absent and ReleaseKit validates the candidate once, checks the selected Linux/amd64 build
you have confirmed that the local tag was never published or used by a release and native version, and publishes the annotated tag. A confirmed tag publication
channel, remove only that unpublished local tag, then rerun the command. A completes the source release; it does not wait for delivery. The optional
failed remote query is not proof of absence. Network/authentication failures `./scripts/releasekit check VERSION` is a diagnostic, not a mandatory
alone do not require a new version. A defect requiring changes to published preliminary repetition.
source requires a new semantically appropriate version and matching note.
## 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. ```sh
It is useful for diagnosis, but is not a required preliminary step that must ./scripts/releasekit deliver vMAJOR.MINOR.PATCH
repeat the publication command's checks. ```
Race tests, vet, module hygiene, formatting, example checks, and cross-builds may Use one delivery route as appropriate, not both routinely. Local delivery uses
be run when relevant to a change; they are not additional release gates. The the ignored `.releasekit/gitea-token` file or a nonblank
development guide and testing policy govern change-specific verification. `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 ## Recovery
consumer availability after release. Such checks are optional and do not delay
or reverse release completion. `notarius version` is diagnostic; subprocess Report source publication and hosted delivery separately. Correct and commit a
compatibility is defined by the [CLI report](cli.md#completion-report) and failed candidate before retrying publication. For failed or ambiguous source
[domain artifact contracts](integrations/json-output.md). The publication, use ReleaseKit's saved-record discovery and reconciliation guidance
[native migration guide](consumers/native-migration.md) describes the command in the [publication guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md)
and configuration cutover; it does not prepare or authorize a release. 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.

View File

@@ -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 ## 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. **Goal:** Make the canonical release contract and practical workflow agree.
Read the release and documentation policies, then update `docs/policy/release.md` Read the release and documentation policies, then update `docs/policy/release.md`