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
**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. |

View File

@@ -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

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,