Document the native ReleaseKit workflow

This commit is contained in:
2026-11-23 18:16:15 +00:00
parent b031d35af7
commit c2c3232d8f
8 changed files with 76 additions and 141 deletions

View File

@@ -383,9 +383,10 @@ narratio completion fish | source
``` ```
Version text is `NAME VERSION` with an optional revision; structured identity Version text is `NAME VERSION` with an optional revision; structured identity
contains `name`, `version`, and `revision`. Development builds without an embedded contains `name`, `version`, and `revision`. ReleaseKit supplies the version:
version report `dev`. Bash requires bash-completion initialized; Zsh requires it uses an injected release identifier, then the main-module version when
its completion system initialized. Native completion offers command/flag names, available, and otherwise reports `dev`. Bash requires bash-completion
initialized; Zsh requires its completion system initialized. Native completion offers command/flag names,
static stage/scope values, and applicable file/directory hints. Dynamic campaign static stage/scope values, and applicable file/directory hints. Dynamic campaign
and artifact completion is deferred. and artifact completion is deferred.

View File

@@ -14,7 +14,7 @@ Agents must read [Agent Policy](policy/agents.md) before recommending, planning,
or implementing changes. It owns implementation discipline and the default or implementing changes. It owns implementation discipline and the default
commit-after-completed-work rule; it does not authorize pushing or releasing. commit-after-completed-work rule; it does not authorize pushing or releasing.
Narratio integrates [ConfigKit v1.4.0](https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/docs/consumers/README.md) and [CommandKit v0.8.0](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/consumers/guide.md); their guides own upstream APIs and behavior. Narratio integrates [ConfigKit v1.4.0](https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/docs/consumers/README.md), [CommandKit v0.8.0](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/consumers/guide.md), and [ReleaseKit v0.10.0](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/adoption.md); their guides own upstream APIs and behavior.
## Go Prerequisite ## Go Prerequisite
@@ -82,9 +82,8 @@ The full suite includes documentation-link and Woodpecker dependency checks
and loads maintained pipeline and session examples. For focused diagnosis, and loads maintained pipeline and session examples. For focused diagnosis,
run `go test ./internal/doccheck` or run `go test ./internal/doccheck` or
`go test ./internal/config -run '^TestExamplesLoadAndValidate$'` directly; `go test ./internal/config -run '^TestExamplesLoadAndValidate$'` directly;
these are available developer tools, not additional CI steps. Tag CI these are available developer tools, not additional CI steps. Tag CI delivers assets asynchronously from the tagged source; it does not
independently revalidates the tagged source before asynchronous asset delivery; repeat candidate validation. The normal maintainer
it is not a second synchronous release prerequisite. The normal maintainer
entry point is the single publication command in the entry point is the single publication command in the
[Release Procedure](release.md). [Release Procedure](release.md).

View File

@@ -68,7 +68,7 @@ License and notices: [LGPL 3.0](licenses/LGPL-3.0.txt) |
## ReleaseKit ## ReleaseKit
Selected module: `go.maximumdirect.net/releasekit` at `v0.10.0`. Selected module: `go.maximumdirect.net/releasekit` at `v0.10.0`; adapted launcher and Woodpecker delivery workflow.
Copyright (C) 2026 Eric Rakestraw Copyright (C) 2026 Eric Rakestraw

View File

@@ -2,7 +2,7 @@
**Base Policy Version:** 1.7 **Base Policy Version:** 1.7
**Last Updated**: 2026-11-17 **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
@@ -174,23 +174,12 @@ Do not add routine confirmations for checks the command can perform itself.
## Narratio Candidate Checks ## Narratio Candidate Checks
Narratio's candidate checker adds the following checks to the one full, Narratio selects one race-enabled offline suite, full `go vet`, Go formatting,
race-enabled offline suite: and local module-replacement checks through ReleaseKit. The selected builds
verify Linux amd64, Linux arm64, and best-effort macOS arm64 binaries and the
- `go mod tidy -diff` detects an incomplete checked-in module graph without embedded version on a host executable. Versioned module replacements remain
changing source. allowed; filesystem replacements are not release inputs. Workspace and vendor
- Tracked Go formatting and diff whitespace checks catch inexpensive source files are not prohibited solely by their presence.
hygiene defects before publication.
- Race instrumentation adds distinct coverage for concurrent I/O,
cancellation, and shared state.
- `go vet ./...` detects static issues not established by runtime tests.
- The asset builder verifies the declared Linux amd64, Linux arm64, and
best-effort macOS arm64 binaries and checks the embedded version on the host.
The checker uses `GOWORK=off` and readonly module mode for tests, vet, and
builds. Versioned module replacements are allowed; filesystem replacements
are not release inputs. Workspace and vendor files are not prohibited solely
by their presence.
## Publication Guards ## Publication Guards

View File

@@ -1,137 +1,82 @@
# Releasing Narratio # Releasing Narratio
This is the maintainer runbook for the [Release Policy](policy/release.md). This is the maintainer runbook for the [release policy](policy/release.md).
The source release completes when the intended tag is successfully pushed to The authoritative source destination is `origin` at
`origin`; binary delivery is a separate asynchronous status. `ssh://git@forge.maximumdirect.net:22222/eric/narratio.git`; use `main`.
The hosted destination is [Narratio on Gitea](https://forge.maximumdirect.net/eric/narratio).
## Prepare the candidate Install Git, a POSIX shell, and the native compiler and tools needed for Go race
builds. Git access must permit fetching and pushing tags.
Use `main` and the authoritative Git remote `origin`. Install Git, a POSIX
shell, standard Unix build tools, and the [release toolchain](#release-toolchain).
Have the selected Go modules available before offline validation. Git access
must permit fetch and tag push.
Application-provider credentials are not required; Gitea delivery credentials
belong to CI.
Choose an unused stable `vMAJOR.MINOR.PATCH` under the
[compatibility rules](policy/release.md#versioning-and-compatibility). Narratio
is past v1.0.0; apply the policy's effective-configuration compatibility
definition and Go consumer-minimum exception. Update affected canonical
documentation with the change. Write the matching
`docs/releases/vMAJOR.MINOR.PATCH.md` with a short summary and any
relevant compatibility impact or upgrade action; choose sections to suit the
release.
End that checked-in note with these three links, replacing the version in
each URL with the intended tag. The tag need not exist remotely yet. Check that
`COPYRIGHT`, `LICENSE`, and `docs/oss/attribution.md` are present in the
candidate. The tag CI reuses the checked-in note as the hosted release body.
```markdown
[COPYRIGHT](https://gitea.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/COPYRIGHT) | [LICENSE](https://gitea.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/LICENSE) | [ATTRIBUTION](https://gitea.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/docs/oss/attribution.md)
```
Retire completed roadmaps included in the release while preserving planned or
deferred work and repairing affected links. Review the change through the
ordinary development workflow for unintended files, credentials, private data,
and documentation accuracy. Commit and push the candidate to `origin/main`
before tagging; record its exact commit if needed:
```sh
git rev-parse HEAD
```
## Release toolchain ## Release toolchain
The selected release toolchain is Go 1.27.4, matching the validation and build Use the official Go 1.27.4 toolchain for validation and builds. The consumer
jobs in `.woodpecker/release.yml`. With an official Go installation available, minimum remains Go 1.27.0. Prepare the selected toolchain, application modules,
select it before candidate validation and publication: and the module-selected ReleaseKit tool before offline validation:
```sh ```sh
export GOTOOLCHAIN=go1.27.4 export GOTOOLCHAIN=go1.27.4
go version go version
go mod download
./releasekit version
``` ```
Go downloads the selected toolchain if needed. Complete that setup and module The launcher runs the ReleaseKit version selected in `go.mod`. The CI image
preparation before offline candidate validation. Keep this selection and the uses the same Go patch. See [upstream adoption guidance](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/adoption.md).
release CI images aligned when deliberately updating the release toolchain.
The consumer minimum is Go 1.27.0 as declared in `go.mod`. ## Prepare and publish
Successful release validation on the selected patch establishes presumed
support across that series, subject to the declared minimum and concrete
evidence of incompatibility, under the
[release policy](policy/release.md#consumer-minimum-and-release-toolchain).
## Publish Choose an unused stable version under the [versioning and compatibility
rules](policy/release.md#versioning-and-compatibility). Update affected current
documentation and prepare `docs/releases/vMAJOR.MINOR.PATCH.md` with a title
containing Narratio and the version, a summary, and any compatibility impact
or upgrade instructions. End the note with this footer, replacing the version
in each URL with the intended tag:
From a clean `main` checkout at the pushed candidate, run one command: ```markdown
[COPYRIGHT](https://forge.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/docs/oss/attribution.md)
```
Retire completed roadmaps as appropriate, preserve pending work, and review the
candidate through the ordinary development workflow. Commit the candidate and
push it to `origin/main`, then publish from the clean `main` checkout:
```sh ```sh
scripts/release.sh vMAJOR.MINOR.PATCH git add <candidate-files>
git commit -m "Prepare Narratio release"
git push origin main
./releasekit publish vMAJOR.MINOR.PATCH
``` ```
It fetches `origin/main` and tags; requires local `HEAD` to equal ReleaseKit validates the committed candidate with the selected race-enabled
`origin/main`; checks the committed note and unused version; runs the suite, full vet, Go formatting and local-replacement checks, and builds the
candidate checker **once**; then repeats cheap mutable-state guards before three selected binaries with an injected-version smoke check. It creates an
creating an unsigned lightweight tag at the recorded commit. It verifies the annotated tag and pushes it. Confirmed source-tag publication completes the
tag target and pushes only release; CI and hosted delivery are separate observations. For optional
`refs/tags/vMAJOR.MINOR.PATCH:refs/tags/vMAJOR.MINOR.PATCH`. It does not diagnosis, use `./releasekit check vMAJOR.MINOR.PATCH`; publication runs its
commit, push `main`, force updates, or publish all tags. own validation, so this is not a prerequisite. See the upstream
[check](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/check.md)
and [publish](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md)
guides for native behavior and diagnostics.
The checker runs `go mod tidy -diff`, tracked Go formatting and diff whitespace ## Delivery and recovery
checks, one `go test -mod=readonly -race -count=1 ./...` full suite, and
`go vet -mod=readonly ./...`. Its asset builder cross-builds Linux amd64,
Linux arm64, and best-effort macOS arm64, then checks the embedded version
on a host binary. The macOS cross-build proves compilation, not native
runtime behavior. Owned Go commands run with `GOWORK=off`; tests, vet, and
builds use readonly module mode. The deterministic suite includes documentation
and maintained-example checks. The command does not contact application
services or Gitea and does not wait for CI.
A successful tag push is the source-release completion point. The command Tag-triggered Woodpecker CI uses the tagged module's ReleaseKit selection to
prints the tag and commit and exits without a separate network read-back. build and deliver the checked-in note and these assets asynchronously:
For optional diagnosis before publication, run
`scripts/check-release-candidate.sh vMAJOR.MINOR.PATCH`; publication will
validate the candidate again, so this is not a required preparation step.
## Artifact delivery
Tag-triggered `.woodpecker/release.yml` independently validates the tagged
source, builds the same three targets, and publishes these Gitea downloads:
- `narratio-vMAJOR.MINOR.PATCH-linux-amd64` - `narratio-vMAJOR.MINOR.PATCH-linux-amd64`
- `narratio-vMAJOR.MINOR.PATCH-linux-arm64` - `narratio-vMAJOR.MINOR.PATCH-linux-arm64`
- `narratio-vMAJOR.MINOR.PATCH-darwin-arm64` (best effort) - `narratio-vMAJOR.MINOR.PATCH-darwin-arm64` (best effort)
- `SHA256SUMS` - `SHA256SUMS`
The builder embeds the tag version and checks host `version` output. CI A cross-build establishes compilation, not native macOS runtime coverage.
generates checksums and uses non-overwriting publication settings. It does CI maps its existing `GITEA_RELEASE_TOKEN` secret to
not select versions, change the source, or move tags. No image or package `RELEASEKIT_GITEA_TOKEN`. Delivery does not determine source-release completion.
registry output is declared. Tag publication is not proof that these
asynchronous downloads are available.
## Failure and recovery If publication is uncertain, use the recovery entry point printed by ReleaseKit
and its saved private publication record to reconcile the outcome before
If validation fails before tagging, correct and commit the candidate, push retrying. Follow the [publication recovery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md#retain-and-reconcile-publication-evidence).
it to `main`, and rerun the publication command. If the tag push reports For failed or partial delivery, retry from the same immutable tag using the
failure, its outcome may be ambiguous: keep the local tag and inspect the [delivery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md).
exact `refs/tags/vMAJOR.MINOR.PATCH` at `origin` before declaring success Investigate conflicts or uncertain outcomes according to that guide; do not
or retrying. A reachable matching remote tag at the recorded commit establishes replace published content. For older tags, use the tooling and workflow selected
publication; a confirmed absent tag permits investigation of the transport by those tags.
failure. If `origin` cannot be inspected, publication status is unknown.
Do not move, overwrite, or automatically retry the tag. Remove a local tag
only after confirming it was never published or used by a release channel.
A transient CI or delivery failure can be retried from the same immutable
tag. Missing assets may be added later if they match the tagged source and
any published checksum manifest; do not overwrite existing binaries,
checksums, or release-note contents. A source/content defect, or delivery
that cannot be corrected without replacement, requires a new suitable
version and matching note. Leave the original release intact.
Optional consumer inspection may compare the tag's remote commit with the
recorded candidate, check the Woodpecker delivery job and hosted Gitea note,
download the assets into an empty directory, run `sha256sum --check
SHA256SUMS` (or `shasum -a 256 --check SHA256SUMS` on macOS), and run
the matching host binary's `version` command. This is separate delivery
observation, never a source-release gate.

View File

@@ -1,6 +1,6 @@
# Adopt ConfigKit v1.4 and native secrets startup # Adopt ConfigKit v1.4 and native secrets startup
Status: implemented; the [implementation plan](implementation.md) is complete. Status: implemented; the staged implementation is complete.
## Purpose ## Purpose
@@ -12,8 +12,7 @@ ConfigKit owns configuration resolution through the final handoff; Narratio owns
startup ordering, domain interpretation, and execution, as defined by startup ordering, domain interpretation, and execution, as defined by
[ADR 0003](../adr/0003-assign-configuration-ownership.md). [ADR 0003](../adr/0003-assign-configuration-ownership.md).
This roadmap defines the target and required changes. The This roadmap records the target and completed changes. Audita adoption
[implementation plan](implementation.md) defines the staged work. Audita adoption
and session layout remain in the separate [Audita](audita.md) and and session layout remain in the separate [Audita](audita.md) and
[workspace](workspace.md) roadmaps. [workspace](workspace.md) roadmaps.

View File

@@ -263,7 +263,9 @@ algorithms and their dedicated test harness.
## Stage 6 — Align the policy, runbook, and notices with native adoption ## Stage 6 — Align the policy, runbook, and notices with native adoption
Status: pending. Status: completed. Updated the release runbook, local policy and developer/CLI
guidance, attribution, and superseded roadmap links. Verified doccheck and
reviewed the profile, launcher, upstream workflow, and pinned notices.
Read `docs/release.md`, `docs/policy/release.md`, `docs/development.md`, Read `docs/release.md`, `docs/policy/release.md`, `docs/development.md`,
`docs/oss/attribution.md`, and the documentation/OSS policies. Use the roadmap's `docs/oss/attribution.md`, and the documentation/OSS policies. Use the roadmap's

View File

@@ -1,6 +1,6 @@
# Adopt ReleaseKit's native release workflow # Adopt ReleaseKit's native release workflow
Status: accepted; implementation pending. Status: implementation complete; final integration verification pending.
## Goal ## Goal