Plan Linux binary releases and prepare credential storage

This commit is contained in:
2026-11-23 18:03:03 +00:00
parent f74b58f41a
commit 2a45f6d3ae
2 changed files with 69 additions and 80 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@ notarius
notarius-output
workspace/
.codebase-memory/
/.releasekit/
# ---> Go
# If you prefer the allow list template instead of the deny list, see community template:

View File

@@ -9,8 +9,8 @@ validation, publication, build, and recovery mechanics. Notarius supplies produc
facts, compatibility decisions, and any justified product-specific checks.
This is a feature roadmap, not an implementation sequence. It authorizes no
release publication. Resolve the decisions below before preparing the staged
implementation plan.
release publication. The approved distribution scope is source tags, hosted
release notes, and Linux/amd64 binaries, using native ReleaseKit delivery.
## Reviewed Baseline
@@ -60,8 +60,8 @@ 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. Build and delivery fields depend on the
decisions below. Do not add a separate Notarius configuration schema for releases.
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,
@@ -74,6 +74,40 @@ 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
@@ -90,10 +124,12 @@ compatibility wrappers:
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 any
optional hosted delivery. 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.
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
@@ -102,9 +138,13 @@ checks. Remove the duplicated suite command from Notarius-owned release code.
Prepare dependencies and the selected toolchain separately from offline
validation, following upstream conventions.
Preserve the rationale for exercising the built CLI and injected version, subject
to Open Decision 2. Use ReleaseKit's native build machinery rather than retaining
custom linker flags or a shell build/version checker.
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
@@ -130,11 +170,13 @@ 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.
If hosted delivery is selected, 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. Do not copy delivery automation or introduce forge credentials when
delivery is not selected.
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
@@ -144,16 +186,16 @@ delivery is not selected.
Keep only any genuinely useful, thin native launcher.
- Replace runtime version wiring and remove `internal/buildinfo`; adjust the
affected CommandKit CLI tests.
- Remove the redundant advisory release CI job, or replace it with native
delivery only if that distribution option is approved.
- 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 any approved delivery
change. Preserve versioning, immutability, and compatibility decisions not
changed by this roadmap. Avoid restating upstream implementation mechanics as
additional local guarantees.
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
@@ -181,6 +223,10 @@ The adoption is complete when:
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
@@ -192,61 +238,3 @@ The adoption is complete when:
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`.
## Open Decisions
### 1. Which release deliverables should Notarius publish?
**Recommendation: retain source-only delivery for the initial adoption.**
Publish the annotated source tag and committed release note, without hosted
release objects or downloadable binaries. Notarius's current audience already
builds from source, and its deployment workflow has not established a need for
binary distribution. This is the smallest operational surface and requires no
forge API credential or delivery job. ReleaseKit-native adoption remains complete
with this choice; delivery is a separately selectable capability.
**Alternative: source tags plus a hosted release-note page, without binaries.**
ReleaseKit can publish the complete committed note through native page-only
delivery. This improves release discoverability with little application code,
but adds forge credentials, profile destination settings, and an independently
recoverable delivery operation. If selected, omit build targets from the
page-delivery profile; use a separate small native validation profile if the
build gate below is retained. This prevents validation-only builds from becoming
downloadable assets by virtue of shared profile settings.
**Alternative: source tags, a hosted page, and native binary assets.**
This makes installation easier where Go/private-module build access is
inconvenient. ReleaseKit can build, name, hash, deliver, and reconcile the assets
without custom packaging code. It nevertheless introduces target selection and
ongoing distribution/support work. If chosen, agree on a small explicit Linux
target set; macOS binaries are a separate convenience choice. Windows support,
OS packages, containers, signatures, and custom archives do not follow
automatically from selecting binaries. Keep delivery completion distinct from
successful source publication under every option.
### 2. How should the executable/version validation gate map to native builds?
**Recommendation: retain the protection through one native Linux/amd64 build
target.** Declare `./cmd/notarius`, binary name `notarius`, and that target in
the validation profile. ReleaseKit's candidate path builds into temporary
storage and checks a native executable's injected version; these temporary
products are not published. This replaces the current custom gate with native
machinery and avoids a broad build matrix.
This is a small deliberate change from a strictly host-only build: on another
host ReleaseKit also performs its native version check, while still compiling
the selected Linux target. The current profile has no host-only target keyword;
do not implement custom target interpolation to conceal that difference.
**Alternative: use the native source-only baseline without a build selection.**
This has the smallest profile and retains the default test suite, but deliberately
drops the release gate exercising linker injection and the actual executable.
Ordinary CLI tests are useful but do not provide the same end-to-end evidence.
Choose this only as an explicit revision of the current gate rationale.
**Alternative: request upstream host-only build/version validation.**
This would preserve the exact current scope with no target selection or local
build implementation. It is a useful possible upstream enhancement, but the
reviewed release does not provide it, so making it a prerequisite would delay
adoption. Prefer the existing native option unless exact host-only scope is
important enough to justify that dependency.