Clarify release scope and remove completed ReleaseKit plans

This commit is contained in:
2026-11-24 13:35:29 +00:00
parent f73bb83803
commit 3887d89b76
4 changed files with 3 additions and 649 deletions

View File

@@ -2,7 +2,7 @@
**Base Policy Version:** 1.7
**Last Updated**: 2026-11-23
**Last Updated**: 2026-11-24
**Upstream Source**: https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/release.md
@@ -43,7 +43,8 @@ separate remote read-back 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.
or locally from the matching tagged source. Signing and additional packaging
are not part of the current release workflow.
## Versioning And Compatibility

View File

@@ -1,343 +0,0 @@
# ReleaseKit Implementation Plan
## Objective And Execution Rules
Implement [Native ReleaseKit Adoption](releasekit.md). That roadmap owns the
approved scope: ReleaseKit v0.10.0, annotated source tags, hosted release notes,
and native Linux/amd64 binary/checksum delivery. This document owns the ordered
implementation steps. Each numbered stage is one Luna coding-agent prompt.
Execute all seven stages in order as one sprint. Intermediate stages may leave
temporarily broken references or commands; do not add compatibility wrappers or
duplicate machinery merely to make every intermediate commit independently
usable. The final state must satisfy the whole roadmap.
Start with `docs/development.md` and `docs/policy/agents.md`. Apply the architecture,
testing, documentation, OSS, and release policies to their respective changes.
The existing release policy's lightweight-tag/source-only clauses are deliberately
replaced in Stage 5; preserve unrelated compatibility and versioning choices.
Follow the agent policy for committing completed units, without empty commits.
Throughout the sprint:
- Use `go.maximumdirect.net/releasekit` v0.10.0, reviewed commit
`82bac1a3ab935beddd4b8789d1e07f52135d4243`. Inspect that selected source rather
than silently adopting later `main` changes. Use the version-pinned upstream
links in the feature roadmap for canonical behavior.
- Keep the Go consumer minimum and selected release toolchain at Go 1.27.0.
ReleaseKit's own Go 1.27.4 maintainer choice does not change this decision.
- Do not read, print, copy, validate remotely, or commit the real
`.releasekit/gitea-token`. Its directory and ignore rule are already prepared.
Preserve the file and its permissions. Use synthetic credentials only if a
local integration test needs them.
- Do not publish to `origin`, push branches/tags, create hosted releases, upload
assets, or run production inference. Actual release publication is a later,
separately authorized task.
- Do not change pipelines, artifact contracts, model settings, cache behavior,
or runtime application configuration. Do not add extra release gates, targets,
signing, custom packaging, or application-owned release orchestration.
## Stage 1: Register ReleaseKit And Adopt Native Runtime Identity
**Status: Complete.** Native version wiring and the pinned tool were verified with
the focused CLI test and offline application and tool version commands.
**Goal:** Select the upstream tool and replace Notarius's runtime version logic.
Inspect `go.mod`, `go.sum`, `internal/buildinfo/`, `internal/cli/run.go`,
`internal/cli/command_contract_test.go`, and the selected upstream adoption and
runtime-version guides. Use graph discovery to locate other buildinfo callers.
1. Register the tool with
`go get -tool go.maximumdirect.net/releasekit/cmd/releasekit@v0.10.0` using
the selected Go toolchain and the repository's ordinary private-module access.
2. Import `go.maximumdirect.net/releasekit/buildinfo` in CLI composition and pass
`buildinfo.Version()` directly to `NewApplication`. Remove the obsolete error
path for Notarius's stable-version parser. Preserve other composition failures.
3. Remove `internal/buildinfo` and its tests after replacing all imports. Do not
retain the old linker variable, stable-version restriction, or a wrapper
translating native `dev` back to `development`.
4. Rewrite the affected CLI version test without mutable buildinfo globals.
Exercise normal CLI wiring against the native accessor; use the existing
`NewApplication` version argument to test an explicitly supplied release
identity through CommandKit. Delete the old invalid-linker-identity case,
which tests behavior intentionally removed by this migration.
5. Run `go mod tidy` with `GOWORK=off`. Review shared module selection and sums.
Keep the tool directive and do not add local replacements or import the
release facade into runtime orchestration.
**Acceptance:** The runtime uses the native accessor, no private buildinfo
package/import remains, and the registered tool is pinned to v0.10.0. No
application-owned release service was added.
**Validation:** With `GOTOOLCHAIN=go1.27.0` and `GOWORK=off`, run focused CLI version
tests and `go run ./cmd/notarius version`. Run the tool's `version` command by
full package path with `GOOS`/`GOARCH` selected from `go env GOHOSTOS/GOHOSTARCH`.
Use offline/readonly module settings after dependency preparation. Full-suite
verification belongs to Stage 7.
## Stage 2: Add The Native Profile And Thin Launcher
**Status: Complete.** The profile selects the requested destination and one
target; launcher syntax, version, usage failure, and credential ignore were checked.
**Goal:** Provide the complete native configuration and one small tool entry point.
Inspect the selected upstream `docs/config.md`, adoption guide, build guide,
and delivery guide before writing the profile. Create root `releasekit.json`
with these exact selections:
```json
{
"product": "Notarius",
"remote": "origin",
"build": {
"main_package": "./cmd/notarius",
"binary_name": "notarius",
"targets": ["linux/amd64"]
},
"delivery": {
"forge": "gitea",
"base_url": "https://forge.maximumdirect.net",
"owner": "eric",
"repository": "notarius",
"token_env": "RELEASEKIT_GITEA_TOKEN",
"token_file": ".releasekit/gitea-token"
}
}
```
Omit `module_dir`, extra `checks`, optional `validation` gates, and
`expected_push_url`. Native defaults and the chosen remote suffice; no exact-URL
restriction was selected. One profile supplies both candidate validation builds
and tagged-source delivery. It contains a token path, never a token value.
Create executable `scripts/releasekit` as a small POSIX launcher: change to the
repository root relative to the launcher, select host OS/architecture using the
upstream adoption example, and `exec go tool
go.maximumdirect.net/releasekit/cmd/releasekit "$@"`. Preserve ordinary workspace,
toolchain, credential, and cache settings; native operations own their Go child
environments. Do not validate versions, parse profiles, push `main`, create tags,
aggregate exit statuses, or retry operations in this launcher.
**Acceptance:** All eight native commands are available through direct forwarding;
the sole application build target is Linux/amd64. The existing ignored credential
file remains untouched. No custom release configuration loader exists.
**Validation:** Run `sh -n scripts/releasekit`, launcher `version`, and a benign
invalid invocation to verify the native usage failure is forwarded. Confirm
`git check-ignore .releasekit/gitea-token` without displaying the file. Actual
native profile/build verification is consolidated in Stage 7.
## Stage 3: Retire Duplicate Machinery And Maintain Notices
**Status: Complete.** The replaced scripts and fixtures were removed; the
runtime dependency and adapted launcher are attributed to the selected source.
**Goal:** Remove the replaced release implementation and account for adopted material.
Delete `scripts/release.sh`, `scripts/check-release-source.sh`, and
`scripts/release_test.go`. Do not port their Git publication fixtures or guard
assertions into a new local suite; ReleaseKit owns those behaviors. Retain
consumer-specific version tests from Stage 1.
Inspect ReleaseKit's selected `COPYRIGHT`, `LICENSE`, and attribution notices.
Update `docs/oss/attribution.md` for the runtime dependency and any copied launcher
material under the local OSS policy, using the reviewed commit. Add any missing
standard license text only when applicable; reuse existing texts. Distinguish
runtime-incorporated material from tool-only transitive dependencies rather than
automatically attributing the entire Go tool module graph. Include copied CI
material in that factual identification when Stage 4 lands.
**Acceptance:** The old publication/check implementation and its duplicate suite
are gone; notices match the actual runtime and copied material. The only retained
release script is the thin native launcher.
**Validation:** Search current code for the removed buildinfo import and linker
override. Review notice links against the selected source. Current-document and
CI references may remain temporarily until their owning stages below.
## Stage 4: Replace Advisory Tag CI With Native Delivery
**Status: Complete.** The YAML and secret mapping were checked locally; the
bootstrap matches the selected template except for the chosen Go image. CI
secret provisioning and remote access remain external operator setup.
**Goal:** Deliver the committed release note and Linux/amd64 assets through
ReleaseKit's maintained consumer bootstrap.
Inspect `.woodpecker/release.yml` and the selected upstream
`examples/woodpecker/tag-delivery.yml` plus its delivery guide. Replace the
existing job in `.woodpecker/release.yml` using that consumer template, not
ReleaseKit's self-building source-only workflow.
- Retain the upstream event-tag/peeled-commit verification, clean detached source
selection, temporary module-file bootstrap, host target selection, full tool
package invocation, and native `ci-deliver --prepared` handoff.
- Set the image selection to `golang:1.27.0`, matching Notarius's selected
toolchain. Keep the template's Woodpecker escaping and temporary-directory
lifecycle. Do not simplify away tagged-source tool-version selection.
- Map Woodpecker secret `releasekit_gitea_token` to `RELEASEKIT_GITEA_TOKEN` in
the delivery step. Preserve ordinary private-module access requirements;
deployment secret provisioning is a maintainer action, not a tracked token.
- Let the committed root profile select the sole build target and destination.
Do not add `check`, `publish`, `go test`, asset naming, hashing, or upload logic
to the delivery job. Source publication has already validated the candidate.
- Preserve native delivery status and failure handling. CI delivery failure does
not undo the source release, trigger a new source version by itself, or require
source publication to poll the job.
**Acceptance:** Tag CI performs native binary/page delivery, not repeated candidate
validation. Bootstrap code differs from the selected upstream template only for
Notarius's selected toolchain and necessary consumer wiring. Update the copied
material's attribution from Stage 3 if needed.
**Validation:** Parse YAML with an available local validator and compare the
bootstrap to the pinned template. Inspect secret mapping and native arguments.
Do not execute the job against the real remote or use the local API token.
Generic bootstrap/publication behavior remains upstream-owned; do not introduce
a large local shell-fixture suite to retest it. Report external CI secret/access
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`
and rewrite `docs/release.md`. Preserve the policy's upstream baseline metadata;
use the actual edit date for local maintenance and identify the relevant local
adaptation without claiming a new upstream policy adoption.
Policy changes must cover annotated tags; `main` already published at the
candidate before native publication; a single native offline suite plus selected
Linux/amd64 build/native version verification; hosted page/binary/checksum
delivery; and separately reported source-publication and delivery outcomes.
Remove contradictory source-only, lightweight-tag, temporary-products-only,
no-hosted-page, and no-asynchronous-delivery claims throughout the policy,
including its footer, guard, recovery, and runbook requirements.
Preserve stable-version selection, compatibility, immutability, proportionate
gates, no routine CI polling, and historical notes/tags. Extra native validation
features stay disabled. Vet or link checking used during this migration must
not become a new permanent publication gate.
The runbook should be short and executable, containing:
- Notarius's selected toolchain, Git/module access prerequisites, `main`/`origin`,
and separate dependency preparation before offline validation.
- Version/note preparation, actual immutable-tag license-footer URLs, committing
the candidate, and explicit `git push origin main` before native publication.
- `./scripts/releasekit publish VERSION` as the publication command. `check`
is optional diagnosis, not a required repeated validation step.
- Native tag CI delivery and the required Woodpecker secret name; local
`./scripts/releasekit deliver VERSION` as the alternative from matching clean
tagged source. Do not imply every release runs both delivery routes.
- The local token path, environment override, and upstream credential guidance;
never display a token. Explain that Git publication does not use this token.
- Separate publication and delivery results, native saved-record recovery links,
and native retained-output/receipt retry guidance when original asset bytes
must be retained. No blind overwrite, republishing source, or invented local
reconciliation machinery.
Link the selected upstream CLI, configuration, publication/recovery, and delivery
guides for detailed behavior. Do not reproduce their manuals, record formats,
credential internals, or full exit-status tables. No new ADR or actual release
note/tag is needed for this sprint.
**Acceptance:** A maintainer has one unambiguous native workflow and recovery
entry point, with separate source/delivery outcomes. Every release-policy clause
agrees with that workflow and the actual selected profile.
**Validation:** Read policy and runbook together; check commands against the
selected native CLI contract and local launcher. Verify local links and intended
footer file paths without requiring future tag URLs to resolve remotely.
## Stage 6: Refresh Installation And Contributor Guidance
**Status: Complete.** Current installation, version, contributor, and backlog
guidance was updated; local link paths and obsolete references were reviewed.
**Goal:** Document the delivered product without duplicating upstream features.
Update README installation guidance for the Linux/amd64 binary and native
checksum assets while retaining source installation. Derive the filename from
ReleaseKit's selected build contract (`notarius-<version>-linux-amd64`); link the
actual Notarius hosted release location. Do not claim the new binaries already
exist for historical releases. A generic pinned-version example is sufficient;
do not invent a published version or add packaging support.
Update `docs/cli.md` for the native `dev` fallback; keep CommandKit version/report
semantics unchanged. Update `docs/internal/overview.md` to remove the deleted
buildinfo package entry, and adjust `docs/internal/cli.md` and
`docs/development.md` where needed for version wiring and release navigation.
Only add a separate ReleaseKit integration document if there is substantive
Notarius-specific content that the runbook does not already own; normally the
runbook's pinned upstream links are sufficient.
Reconcile the packaged-release backlog bullet in `docs/roadmap/future.md`: remove
the now-implemented Linux/amd64 native-distribution scope, preserving broader
packaging or target ideas only as deferred ideas, not promised deliverables.
Do not retire this active feature roadmap/plan or rewrite historical release
notes during the sprint.
**Acceptance:** Current documentation describes the implemented native workflow
and chosen binary scope. There are no active links to deleted scripts/packages,
no contradictory source-only claim, and no copied upstream feature reference.
**Validation:** Check local links and search active documentation for
`release.sh`, `check-release-source.sh`, `internal/buildinfo`, `development`,
`lightweight`, and `source-only`. Review matches in context; historical records
and baseline descriptions in roadmaps are not current-contract errors.
## Stage 7: Verify The Assembled Migration
**Status: Complete.** With Go 1.27.0, `GOWORK=off`, and `GOPROXY=off`, the
readonly full test suite and vet passed. The launcher reported ReleaseKit
v0.10.0; an ordinary application run reported `dev`. A synthetic native build
produced the Linux/amd64 artifact and receipt outside the checkout, and the
artifact reported `notarius v0.0.0`. Profile, CI template, relevant local links,
attribution, module integrity, ignored credential path, and change scope were
reviewed. Woodpecker secret provisioning and remote access remain unverified
operator setup; no live publication or delivery was attempted.
**Goal:** Prove the final integration locally without publishing anything.
1. Prepare dependencies if necessary, then use `GOWORK=off`,
`GOTOOLCHAIN=go1.27.0`, and offline module access (`GOPROXY=off`) for checks.
Run `go test -mod=readonly ./...` and `go vet -mod=readonly ./...`.
Existing default tests cover maintained application examples.
2. Run launcher `version` and ordinary `go run -mod=readonly ./cmd/notarius
version`. Confirm ReleaseKit v0.10.0 and native application version fallback
for an unversioned checkout. Confirm no configuration/credential requirement
was added to the application version command.
3. Create an external temporary output directory with `mktemp -d`. Run native
`./scripts/releasekit build --output ABSOLUTE_TEMP_DIR v0.0.0` as a synthetic
local build, not a publication attempt. It needs no new release note/tag or
unused version on the remote. Check the selected Linux/amd64 artifact and
native receipt; on Linux/amd64 run its `version` command and confirm
`notarius v0.0.0`. On another host rely on ReleaseKit's built-in temporary
native version check; do not attempt to execute the foreign artifact.
4. Review CI/profile mapping against the selected upstream template and confirm
exactly one build target. A live hosted-delivery test is not necessary.
If supplementary consumer tests are justified, use local disposable inputs
and fake external transport, never the real token or Notarius remote.
5. Check relevant links, attribution, obsolete imports/paths, and
`git diff --check`. Verify that no generated build files, credential contents,
temporary profiles, Go workspace files, or local replacements entered the
tracked change set. Confirm the credential path is ignored without reading it.
6. Review the feature roadmap requirement by requirement against actual code,
profile, CI, and documentation. Fix any gaps. Record checks run and any
externally unverified CI setup; do not claim a live delivery occurred.
**Acceptance:** The complete roadmap is implemented, the native tool and real
version-injected CLI work, default tests and migration checks pass, current docs
agree, and no custom release machinery remains beyond the thin launcher and
consumer configuration. Only Linux/amd64 is selected for distribution. Report
any external CI secret/access setup required before the first actual delivery.
Commit the final nonempty unit under the agent policy and report the completed
sprint. Do not push, publish, upload, or delete these planning documents without
separate user direction.

View File

@@ -1,240 +0,0 @@
# Native ReleaseKit Adoption
## Purpose
Adopt ReleaseKit's native release workflow and runtime version accessor, replacing
Notarius-owned release machinery with a versioned tool, a small declarative
profile, and concise project-specific documentation. ReleaseKit owns common
validation, publication, build, and recovery mechanics. Notarius supplies product
facts, compatibility decisions, and any justified product-specific checks.
This is a feature roadmap, not an implementation sequence. It authorizes no
release publication. The approved distribution scope is source tags, hosted
release notes, and Linux/amd64 binaries, using native ReleaseKit delivery.
## Reviewed Baseline
The reviewed upstream release is **ReleaseKit v0.10.0**, module
`go.maximumdirect.net/releasekit`, at commit
`82bac1a3ab935beddd4b8789d1e07f52135d4243`. The local checkout at
`../ReleaseKit` matches that tag and upstream `main` at review time.
Canonical references for this selected version:
- [Adoption](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/adoption.md).
- [Profile configuration](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/config.md).
- [Candidate checking](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/check.md).
- [Source publication and recovery](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md).
- [Runtime version](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/runtime-version.md).
- [Builds](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/build.md)
and [delivery](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md).
Notarius currently has:
- `scripts/release.sh`, which guards a committed candidate, invokes validation,
pushes `main`, creates a lightweight tag, pushes that tag, and handles ambiguous
publication results.
- `scripts/check-release-source.sh`, which checks the release note, runs the
default Go suite, builds `cmd/notarius` with a private linker override, and
checks the executable's version output.
- `scripts/release_test.go`, with custom Git fixtures and publication tests.
These three files total 323 lines.
- `internal/buildinfo`, with custom stable-version parsing, linker override,
module-version fallback, and tests. `internal/cli.RunWithOptions` obtains this
version before constructing the CommandKit application.
- `.woodpecker/release.yml`, which repeats advisory validation on tag events.
- [Release Policy](../policy/release.md) and [Source Releases](../release.md),
defining source-only delivery, lightweight tags, and the custom commands.
Both modules declare Go 1.27.0. Adoption does not require a Go-series increase.
Notarius's selected release toolchain is currently Go 1.27.0; ReleaseKit's own
maintainer toolchain is not automatically a Notarius requirement.
## Target End State
### Native tool and small profile
Register `go.maximumdirect.net/releasekit/cmd/releasekit` at v0.10.0 as a Go tool
dependency. Also import `go.maximumdirect.net/releasekit/buildinfo` for runtime
identity. Both uses share the module-selected version.
Use a root `releasekit.json` with product `Notarius`, the root Go module, and
authoritative remote `origin`. Use native defaults where they express the selected
behavior; omit unnecessary settings. Declare the selected build and delivery
settings below. Do not add a separate Notarius configuration schema for releases.
Invoke the tool by its full package path. If a convenience launcher is useful,
keep it to the upstream host-target selection and direct argument forwarding,
with repository-directory selection if needed. It must not reimplement release
guards, validation orchestration, Git publication, or recovery. Do not add an
application release subcommand or a custom Go release executable.
Review `go.mod` and `go.sum` changes, including shared dependency version selection:
Go tool dependencies participate in the application's module graph. Update
applicable attribution for the runtime import and any copied material under the
[OSS policy](../policy/oss.md), using the selected upstream source revision.
### Release deliverables and credential supply
Publish an annotated source tag with its committed release note, then deliver a
hosted Gitea release page and the native Linux/amd64 binary assets. Use the
complete committed release note as the hosted body, including its license and
attribution footer. ReleaseKit owns binary naming, version injection, hashing,
its native checksum manifest, upload, and delivery reconciliation. Do not add
custom packaging or upload scripts.
The single native profile selects:
- Build main package `./cmd/notarius`, binary name `notarius`, and exactly one
target: `linux/amd64`.
- Delivery forge `gitea`, base URL `https://forge.maximumdirect.net`, owner
`eric`, and repository `notarius`.
- Credential environment variable `RELEASEKIT_GITEA_TOKEN` and fallback token
file `.releasekit/gitea-token`, relative to the repository root. Native
precedence applies: a nonblank environment value takes precedence over the
file. These credentials are for hosted delivery, not source-tag publication.
The local `.releasekit/` directory is git-ignored. Put only the plain personal
access token in `gitea-token`, without a variable assignment or JSON wrapper.
Use owner-only access for this credential, following upstream token-file
guidance. The token needs access to the Notarius repository and permission to
create releases and upload release assets. Do not copy it into the profile,
documentation, or tracked files. CI supplies its own secret through the native
environment variable rather than depending on the maintainer's local file.
This replaces the current source-only distribution decision. Retain source-build
installation guidance and add the selected binary installation path. macOS,
Linux/arm64, and Windows binaries, OS packages, containers, custom archives,
and signing are not selected in this work set. Future targets may be considered
when there is a concrete need; this selection is not a permanent prohibition.
### Native publication and recovery
Adopt these intentional changes rather than preserving the old workflow through
compatibility wrappers:
- Prepare and commit the version-matched release note, then push the candidate
to `origin/main` before invoking native `publish`.
- Let ReleaseKit check the clean candidate and authoritative branch, validate
it, create an **annotated** tag, and publish that exact tag object.
- Use native publication evidence, attempt discovery, and explicit-record
reconciliation for failed or ambiguous publication. Link upstream for record
storage, diagnostic sensitivity, exit statuses, and recovery semantics.
- Use native `check` only as an optional candidate diagnostic, not as a mandatory
preliminary invocation that duplicates `publish` validation.
Historical lightweight tags and published notes remain unchanged. Source
publication completes at confirmed tag publication, independently of CI or
hosted delivery. Delivering the release page and binary assets is required work
with a separate reported outcome; a delivery failure leaves the source release
intact and is recovered against the same immutable tag. Recovery must not become
a routine successful-push read-back gate. No new manual approval, signing,
consumer-installation, or provider-availability gate is part of this work.
### Proportionate native validation
ReleaseKit owns the single offline default test suite and its native candidate
checks. Remove the duplicated suite command from Notarius-owned release code.
Prepare dependencies and the selected toolchain separately from offline
validation, following upstream conventions.
Retain the executable/version gate through the same native Linux/amd64 build
selection used for delivery. Candidate validation uses temporary build output;
delivery builds from the published tagged source. On a different host,
ReleaseKit additionally builds a temporary native executable for its version
check. This is a deliberate move from a strictly host-only build to the selected
distribution target plus the native check, not a broader platform matrix.
Do not retain custom linker flags or a shell build/version checker.
Other native checks, including full vet, race testing, formatting, Markdown,
module-distribution checks, forbidden paths, and file-size limits, are optional
capabilities, not automatically new Notarius release requirements. Enable one
only for a selected, concrete need; otherwise keep it disabled. Full native
adoption means delegating mechanics, not enabling every available restriction.
### Native runtime identity
Read `buildinfo.Version()` from ReleaseKit and pass its result to the existing
CommandKit application. Remove Notarius's private override, version resolver,
associated package, and tests of those replaced internals. Do not wrap the native
accessor merely to retain stable-tag parsing or the old fallback spelling.
Accept ReleaseKit's native fallback `dev` instead of `development`. Keep
CommandKit's version command and report formats; this is an identity-source
change, not a new application presentation layer. Update relevant CLI tests to
exercise supported application behavior without mutable version globals.
### Minimal release automation
Remove `.woodpecker/release.yml`'s redundant post-publication check. Native
`check` requires a clean candidate on `main` with no existing release tag, so it
is not a drop-in command for that detached/tagged job.
Use the maintained ReleaseKit consumer tag-delivery workflow and native
`ci-deliver`, adapted only for Notarius's actual profile and CI environment.
Keep source publication and delivery outcomes
separate. Document native local delivery as the alternative when CI delivery is
unavailable; both routes use the same committed profile and tagged source.
Use native retained build output and receipts when retrying delivery requires
preserving previously produced bytes, rather than adding local artifact tracking.
## Required Repository Changes
- Add the module-selected tool and runtime dependency in `go.mod`/`go.sum`, plus
the small native `releasekit.json` profile.
- Remove both custom release scripts and their publication-test fixture suite.
Keep only any genuinely useful, thin native launcher.
- Replace runtime version wiring and remove `internal/buildinfo`; adjust the
affected CommandKit CLI tests.
- Replace the redundant advisory release CI job with native hosted-page and
Linux/amd64 asset delivery, including its separately supplied CI secret.
- Rewrite `docs/release.md` around Notarius's selected native workflow. Include
product-specific preparation, actual entry commands, selected toolchain,
release-note location/footer, delivery choice, and upstream recovery links.
- Update `docs/policy/release.md` for annotated tags, pre-pushed `main`, native
validation ownership, the selected build gate, and hosted/binary delivery
instead of source-only distribution. Preserve versioning, immutability, and
compatibility decisions not changed by this roadmap. Avoid restating upstream
implementation mechanics as additional local guarantees.
- Update `docs/cli.md` for native runtime identity, and relevant links or local
integration statements in README, `docs/development.md`, and internal docs.
Document upstream features through canonical upstream links, not a duplicated
ReleaseKit manual or a separate local field-by-field profile reference.
- Maintain `docs/oss/attribution.md` and license texts as applicable. Do not
rewrite published release notes or tags to retrofit adoption.
- Reconcile the packaged-artifact backlog item in `future.md` with the approved
distribution decision, retaining any portion that remains deferred.
No changes to pipeline behavior, extraction contracts, artifact schemas, cache
identity, or runtime configuration are part of this scope. A new ADR is not
required solely to record this tooling adoption; the release policy and runbook
own the selected release contract and procedure.
## Verification And Acceptance
The adoption is complete when:
- The selected registered tool runs with the intended version, including through
any retained launcher; no old release entry point remains in current guidance.
- Candidate validation and publication are native ReleaseKit operations, with no
duplicate application implementation or repeated mandatory suite invocation.
- The executable receives its identity through the native accessor. An ordinary
development build and a native version-injected build report the appropriate
identity through CommandKit.
- Product facts and any selected targets/delivery destination are accurate and
release policy, runbook, profile, and automation agree.
- The profile selects only Linux/amd64, the hosted body comes from the committed
note, and delivery uses native binary/checksum assets and native retry paths.
Local credential loading and CI secret mapping use the same native contract;
no secret is committed or required by the offline test suite.
- Maintained examples and the normal offline Go suite pass after dependency and
version-wiring changes; run vet/build checks appropriate to those changes.
- Focused consumer verification covers actual wiring, not a copied ReleaseKit
publication test suite. If an end-to-end publication check is warranted, use a
disposable checkout and local bare Git remote, never the live Notarius remote.
- Documentation links and relevant attribution have been checked. Existing
historical release records remain intact.
Do not publish a real release, create hosted pages, or upload assets merely to
verify adoption. Native integration must be verifiable without production API
keys or a new release tag on `origin`.

View File

@@ -1,64 +0,0 @@
# ReleaseKit Adoption Remediation
## Review Scope
Reviewed the seven stages of [implementation.md](implementation.md) against the
committed implementation at `be65c52be94cc2cb20fd1b23e4b6256c2fd208de`, using
`7e6cbd9` as the pre-sprint baseline and ReleaseKit v0.10.0 at
`82bac1a3ab935beddd4b8789d1e07f52135d4243` as the upstream reference.
The native runtime accessor, registered tool, profile, thin launcher, legacy
removal, attribution, CI handoff, and installation guidance match the intended
architecture. One policy-scope issue remains. No runtime correctness defect or
additional implementation gap was identified.
## Finding 1: Describe Unselected Deliverables Without Prohibiting Them
**Priority:** P2. **Affected stage:** Stage 5.
**Evidence:** `docs/policy/release.md:43-46` correctly selects Linux/amd64 binary
and checksum delivery, but ends with the unconditional instruction:
"Do not add signing or packaging."
The [feature roadmap](releasekit.md#release-deliverables-and-credential-supply)
instead describes signing and other packaging as outside this work set and
expressly states that the selection is not a permanent prohibition. The user
approved a particular initial distribution scope, not a general policy against
future signing or packaging. Moving the sprint's scope limit into an unqualified
policy instruction risks recreating the unwanted policy ossification this review
was specifically asked to detect.
**Required correction:** Replace that instruction with a factual description
of the current selected deliverables, or state that signing and additional
packaging are not part of the current release workflow. Preserve the approved
Linux/amd64-only profile. Future changes can follow the existing policy's
deliberate distribution-channel decisions; add no new approval process or
implementation restriction.
**Acceptance:** The policy accurately describes today's release scope without
establishing a blanket signing/packaging prohibition. No code, profile, CI,
credential, or release-artifact change is needed. Check the relevant policy
paragraph against the feature roadmap and run `git diff --check`.
## Verification Completed
- Default offline Go test suite and standalone vet passed with Go 1.27.0,
`GOWORK=off`, and `GOPROXY=off`; module verification passed.
- Launcher syntax, native usage exit status, and ReleaseKit v0.10.0 identity
passed. Invocation from outside the checkout with inherited cross-compilation
settings still selected the native host correctly.
- The ordinary executable reported `notarius dev`. A native synthetic build
outside the checkout produced one Linux/amd64 artifact and a native receipt;
the artifact reported `notarius v0.0.0`.
- Native profile JSON, CI YAML, and secret mapping were checked. The CI bootstrap
matches the pinned upstream template except for the selected Go image.
- Checked 171 rendered local Markdown links and five pinned upstream ReleaseKit
file destinations in changed documents, with no missing destinations/headings.
Attribution and the actual linked runtime dependencies were reviewed.
- Confirmed obsolete scripts/private buildinfo were removed and pipeline code,
domain assets, examples, historical notes, and ADRs were unchanged. The token
path is ignored and no credential file is tracked; token contents were not read.
No source publication, hosted delivery, or production API call was performed.
Woodpecker secret provisioning and real Git/module/forge access remain external
operator setup, as already disclosed by the implementation plan and runbook.