From 3b8dd87c4ba85cec611659da07384408ac038936 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 6 Dec 2026 03:48:03 +0000 Subject: [PATCH] Prepare v0.11.0 release notes and adoption guidance --- docs/consumers/adoption.md | 7 +- docs/releases/v0.11.0.md | 112 ++++++++++++++++++++++ docs/roadmap/next-release-migration.md | 58 ----------- examples/multi-module/.releasekit-version | 2 +- examples/multi-module/README.md | 7 +- examples/source-only/.releasekit-version | 2 +- examples/source-only/README.md | 8 +- 7 files changed, 123 insertions(+), 73 deletions(-) create mode 100644 docs/releases/v0.11.0.md delete mode 100644 docs/roadmap/next-release-migration.md diff --git a/docs/consumers/adoption.md b/docs/consumers/adoption.md index 05943e6..28e65bc 100644 --- a/docs/consumers/adoption.md +++ b/docs/consumers/adoption.md @@ -9,9 +9,8 @@ launcher described below. The [source-only example](../../examples/source-only/README.md) provides a profile, local launcher, and tag-verified Woodpecker workflow without requiring an application `go.mod`. Commit a root `.releasekit-version` containing one -stable ReleaseKit module version. Select a published version implementing the -profile and workflow; the example's current pin illustrates syntax and must be -updated when the next release is available. +stable ReleaseKit module version. The example selects v0.11.0, which supplies +the source-only profile and workflow interfaces. The maintained installer uses the same committed pin locally and in CI, installs the host executable in the ignored `.releasekit/tools` directory, @@ -30,7 +29,7 @@ go mod tidy ``` Select a release that implements the API, profile, and workflow you are adopting. -The [next-release migration draft](../roadmap/next-release-migration.md) covers +The [v0.11.0 release note](../releases/v0.11.0.md) covers the new source selections, credential contexts, and rehearsal workflow. The vanity module path starts with v0.5.0. Versions through v0.4.2 declare the original module path and use their corresponding historical instructions. diff --git a/docs/releases/v0.11.0.md b/docs/releases/v0.11.0.md new file mode 100644 index 0000000..0a40fbd --- /dev/null +++ b/docs/releases/v0.11.0.md @@ -0,0 +1,112 @@ +# ReleaseKit v0.11.0 + +ReleaseKit adds general source releases, calendar versions, configuration +readiness checks, and an optional rehearsal of the actual Woodpecker delivery +workflow. This release also separates local and CI delivery credentials and +extends saved evidence to carry the selected source and version identity. +The Go minimum remains 1.27.0; release builds and validation use Go 1.27.4. + +## New capabilities + +- Release repositories and source directories without an application `go.mod`, + including configuration-only products. Select Go validation and builds + independently from Go module publication. Go applications can publish source + releases whose product version is independent of their module path major. +- Choose stable SemVer, Gregorian date versions, or year-month versions. + Calendar identifiers, optional prefixes, and source tag prefixes flow through + candidate checks, publication, notes, version injection, artifact names, + hosted delivery, and recovery. Go module publication retains Go's prefixed + SemVer and module-major rules. ReleaseKit's own releases continue using SemVer. +- Run `releasekit validate` before selecting a release version or writing a + release note. It inspects selected configuration, source/build inputs, + credentials, and read-only remote access. Operation selection and offline + mode narrow its scope. It does not execute product checks, build binaries, + download dependencies, or establish actual CI secret injection. +- Run `releasekit test` to dispatch a temporary diagnostic tag through the + configured Woodpecker workflow. The actual job delivers and reads back the + page and any declared binary/checksum contents. Separate workflow, build, + verification, and cleanup outcomes retain safe job diagnostics. Private + attempt records support explicit `test-resume` and `test-cleanup` recovery. + Cleanup waits for observable CI quiescence and removes owned diagnostic + resources; CI history, notifications, and webhook effects remain. +- Source-only launchers and CI bootstrap share a committed `.releasekit-version` + pin and retain a host executable for later recovery. The root Go facade adds + `SourceSpec`, `Validate`, `Rehearse`, `ResumeRehearsal`, `CleanupRehearsal`, and + `DeliverRehearsal`, with facade-owned requests, results, and source evidence. + +Read the [configuration reference](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/config.md), +[readiness guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/consumers/readiness.md), +and [rehearsal guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/consumers/rehearsal.md) +for the supported settings, version grammars, and operational boundaries. + +## Correctness and efficiency + +Readiness shares operation-specific configuration checks with execution, +preserves local required files when inspecting captured source, and supports +Go's `gopkg.in` unstable-major paths. Go package patterns remain available to +the builder and are reported as unresolved during readiness rather than +treated as literal directories. Package-input inspection scopes committed +metadata to the selected directory and scans working entries in bounded batches. + +Rehearsal recovery distinguishes definite push rejection from uncertain writes, +permits cleanup of a known matching page after its tag is already absent, and +retains the explicit forge selection. Diagnostic CI delivery uses the public +orchestration facade and ordinary delivery error classifications. Production +tags sharing the diagnostic namespace prefix retain their production routing. +CI pagination tolerates consistent overlaps, pipeline membership uses an index, +and result parsing discards ordinary log fragments without retaining entire +long lines. + +## Compatibility and upgrade guidance + +1. Upgrade each consuming Go module to v0.11.0 with + `go get go.maximumdirect.net/releasekit@v0.11.0`, or register/upgrade its CLI + with `go get -tool go.maximumdirect.net/releasekit/cmd/releasekit@v0.11.0`. + Run `go mod tidy`, regenerate vendored dependencies when applicable, and + commit the module changes. A standalone CLI can use + `go install go.maximumdirect.net/releasekit/cmd/releasekit@v0.11.0`. +2. Move `delivery.token_file` to `delivery.credentials.local.token_file` and + `delivery.token_env` to + `delivery.credentials.ci.token_environment_variable`. The former flat + fields are rejected. Local delivery and rehearsal use the selected token + file; `ci-deliver` uses the selected job environment variable. An empty CI + declaration selects `RELEASEKIT_DELIVERY_TOKEN`. Keep existing secret and + variable names by configuring them explicitly. Neither context falls back + to the other; missing, unreadable, or blank selected credentials are errors. + Go API callers continue supplying tokens explicitly. +3. Existing profiles with all four selection objects (`source`, `go`, + `publication`, and `version`) omitted or null retain Go-module publication + and prefixed stable SemVer. Go API requests with `Source: nil` retain the + `ModuleDir` shorthand. Any non-null profile selection object chooses the + explicit model: declare `go: {}` for Go checks/builds and + `publication.mode: "go-module"` for Go module publication. An explicit + `source: {}` or zero `SourceSpec` selects a root source release with Go + disabled. Update callbacks that handle source-only candidates to use source + identity; their Go module identity is empty. +4. Update copied workflows together with the selected tool. Source-only + repositories can pin `v0.11.0` in `.releasekit-version`. Multi-product + selector maps now have four columns: selector, production tag pattern, tool + module directory, and profile path. The `-` tool-module value selects the + installed pinned tool. Align production tag filters with the selected + version format. To enable rehearsal, add diagnostic dispatch and matching + selector/profile routing, declare CI delivery credentials, and configure + the separate local Woodpecker token and exact repository/workflow/step. + Native Git credentials and the local forge token need diagnostic deletion + permissions. Rehearsal remains optional and does not change production + source-publication completion. +5. Rebuild retained artifacts before `deliver --assets`: build receipts now + use schema 2 and older schemas are rejected. Newly saved publication records + use format 3; versions 1 and 2 remain readable with their captured evidence. + Older tools cannot read the new format. Continue selecting exact records + for recovery; publication records and rehearsal records are separate. + +The [adoption guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/consumers/adoption.md) +and maintained examples cover tool registration, source-only installation, and +coordinated workflow upgrades. The +[receipt](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/integrations/build-receipts.md) +and [publication record](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/integrations/publication-records.md) +references describe the evidence formats. + +[COPYRIGHT](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/COPYRIGHT) | +[LICENSE](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/LICENSE) | +[ATTRIBUTION](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/oss/attribution.md) diff --git a/docs/roadmap/next-release-migration.md b/docs/roadmap/next-release-migration.md deleted file mode 100644 index abbfc00..0000000 --- a/docs/roadmap/next-release-migration.md +++ /dev/null @@ -1,58 +0,0 @@ -# Next release migration draft - -The next ReleaseKit release number is not yet assigned. This is migration -preparation for that release, not a published release note. Select and publish -a compatible ReleaseKit version before replacing the illustrative `v0.10.0` -pins in source-only examples. Until then, exercise the current source with the -local fixtures described in [development guidance](../development.md). - -## Credentials and readiness - -Move the former `delivery.token_file` to -`delivery.credentials.local.token_file`, and move `delivery.token_env` to -`delivery.credentials.ci.token_environment_variable`. Keep existing CI secret -names and job environment variable names where possible. A CI declaration with -no variable name defaults to `RELEASEKIT_DELIVERY_TOKEN`; it does not fall back -to the local token file. Local `deliver` and `test` use the local selection, -while `ci-deliver` uses the CI environment. `validate --context ci` explicitly -selects CI credentials for readiness. - -For a live rehearsal, configure a separate local Woodpecker API token, numeric -repository ID, exact workflow and step, and selector in `rehearsal`. Grant the -local forge and Git credentials the diagnostic deletion permissions they need; -the CI secret still needs delivery write access. The [rehearsal guide](../consumers/rehearsal.md) -describes the evidence boundary and retained CI history, notifications, and -webhook effects. - -## Source and version selection - -Profiles omitting all of `source`, `go`, `publication`, and `version` retain -legacy Go-module publication and prefixed stable SemVer. A non-null selection -object selects the explicit model: declare `go: {}` to retain Go checks or -builds, choose `publication.mode: "go-module"` only for module publication, -and otherwise use general `source` publication. A source-only profile can use -`source: {}` without an application `go.mod`. The [configuration reference](../config.md) -owns defaults, physical directories, tag prefixes, and identifier grammars. - -Source publication can select stable SemVer, Gregorian `date`, or `year-month` -identifiers. Source tags use the selected physical source prefix by default; -Go module publication retains declared path-major compatibility. Applications -can release a product major or calendar identifier independently of the Go -module path when using source publication. Update release-note paths and -workflow tag filters to match the chosen format. - -## Tools, workflows, and recovery - -Commit the installed-tool `.releasekit-version` pin for a source-only product, -or select a tool dependency in each Go module. Upgrade the tool and tagged CI -workflow together. The maintained multi-product selector uses four columns: -selector, production tag pattern, tool module directory, and profile path; `-` -selects the installed pinned tool. Add the diagnostic tag filter and ensure its -selector maps to the same committed profile as production delivery. - -Regenerate old build receipts with the current `build` command before using -`deliver --assets`; receipts bind source selection and artifact identity. -Existing publication records remain explicit inputs to `reconcile` and do not -become rehearsal records. Rehearsal recovery similarly requires the exact -attempt record and supports explicit credential-file overrides. Neither recovery -path selects an attempt automatically. diff --git a/examples/multi-module/.releasekit-version b/examples/multi-module/.releasekit-version index bf057db..fd2726c 100644 --- a/examples/multi-module/.releasekit-version +++ b/examples/multi-module/.releasekit-version @@ -1 +1 @@ -v0.10.0 +v0.11.0 diff --git a/examples/multi-module/README.md b/examples/multi-module/README.md index 80a8873..2722c25 100644 --- a/examples/multi-module/README.md +++ b/examples/multi-module/README.md @@ -17,10 +17,10 @@ minimum. The module files are setup skeletons. Set `RELEASEKIT_TOOL_VERSION` to a released ReleaseKit version that supports the selected source and rehearsal features, then register that tool in each consumer module before running the launcher or -workflow. The next compatible release has not yet been assigned a version: +workflow. Version v0.11.0 supplies these interfaces: ```sh -: "${RELEASEKIT_TOOL_VERSION:?Select a ReleaseKit release with module-release support}" +RELEASEKIT_TOOL_VERSION=v0.11.0 for module_dir in . integrations/ckconfig integrations/core/v2; do go -C "$module_dir" get -tool "go.maximumdirect.net/releasekit/cmd/releasekit@${RELEASEKIT_TOOL_VERSION}" go -C "$module_dir" mod tidy @@ -75,8 +75,7 @@ Then select a module and semantic version with the shared launcher: For a source-only row, the launcher installs the pinned tool with `scripts/releasekit-tool` and passes the selected profile without interpreting -`-` as a source directory. The checked-in `v0.10.0` pin illustrates syntax -only and must be replaced with the first compatible released version. +`-` as a source directory. The checked-in pin selects v0.11.0. For Go rows, the launcher copies the selected module's `go.mod` and `go.sum` to temporary alternate module files outside the checkout, resolves ReleaseKit from that diff --git a/examples/source-only/.releasekit-version b/examples/source-only/.releasekit-version index bf057db..fd2726c 100644 --- a/examples/source-only/.releasekit-version +++ b/examples/source-only/.releasekit-version @@ -1 +1 @@ -v0.10.0 +v0.11.0 diff --git a/examples/source-only/README.md b/examples/source-only/README.md index 4640532..a01e0a1 100644 --- a/examples/source-only/README.md +++ b/examples/source-only/README.md @@ -2,11 +2,9 @@ This example releases JSON configuration without a Go module. Copy its files into a repository, set the product and forge destination in `releasekit.json`, -and select a published ReleaseKit version that supports source-only calendar -releases in `.releasekit-version`. The committed `v0.10.0` value illustrates -the pin syntax only: it predates this feature and must be replaced before use. -The release that first supplies these interfaces has not yet been assigned a -version. +and select ReleaseKit v0.11.0 or a compatible later version in +`.releasekit-version`. The committed pin selects v0.11.0, which introduces +source-only calendar releases. Install a local Go toolchain and Git. `scripts/releasekit-tool` reads the single stable module version in the repository-root pin, installs the host executable