18 KiB
Next release proposals
Status and purpose
Initial planning document for the next release after v0.10.0. These proposals capture the requested direction and recommended design work. Recommendations remain proposals until adopted; the release number and exact API are unassigned. Explicit local and CI credential selection is adopted as the planned direction; implementation is pending. This document adds no implementation or release gates.
The objectives are to make local hosted delivery straightforward, expose useful readiness diagnostics, exercise configured delivery capabilities on demand, and support release identifiers beyond stable Semantic Versioning. Keep routine consumer configuration small and put reusable work behind ReleaseKit's existing facades.
Current baseline
- Hosted delivery already accepts
delivery.token_fileanddelivery.token_env. A nonblank environment value wins; the file is a fallback. The default environment variable isRELEASEKIT_GITEA_TOKEN. Missing credentials and unreadable or blank selected files produce errors. See configuration and delivery guidance. PreflightDeliveryverifies authenticated repository access through read-only requests.Deliverruns it automatically. It cannot establish that every subsequent write will succeed. ADR 0006 records that boundary.checkvalidates a committed candidate and runs the offline Go suite and selected checks. The CLI has novalidateor live workflow-test command. Source publication uses native Git authentication independently of the hosted API token. See the CLI contract.internal/versioncontract, CLI parsing, andinternal/releaseidentityrequire stablevMAJOR.MINOR.PATCHidentifiers. Identity derivation also enforces Go module-path major compatibility and determines full tags and note paths. Builds, delivery, receipts, recovery records, and CI launchers consume that identity. The package inventory describes ownership.
1. Select local and CI credentials explicitly
Recent releases completed the Git tag push but failed hosted delivery because the expected token environment variable was unavailable. Persistent local file credentials and automatic CI secret injection should make setup routine.
Adopt separate local and CI credential declarations in one shared profile.
Ordinary local delivery reads the configured local token file directly.
ci-deliver reads the configured environment variable inside the CI delivery
job. The invocation selects the context explicitly; ambient environment values
do not choose the context or override local file credentials. Each context
reports problems with its own selected source, without falling back to the other.
Illustrative profile fragment; exact field spelling remains to be finalized:
{
"delivery": {
"credentials": {
"local": {
"token_file": ".releasekit/gitea-token"
},
"ci": {
"token_environment_variable": "RELEASEKIT_DELIVERY_TOKEN"
}
}
}
}
Local setup consists of saving the token once and configuring its path. ReleaseKit reads it on each local invocation, including after workstation reboots. This workflow requires no manually exported workstation variable, shell startup configuration, or consumer-owned credential-loading script. Preserve repository-root-relative and absolute file paths and whitespace trimming. Missing, unreadable, or blank selected files are errors.
Woodpecker stores the CI token persistently and injects it into each delivery job. Maintain an explicitly commented mapping such as:
# Woodpecker supplies this variable inside the CI delivery job.
# Workstation environment setup is unnecessary.
environment:
RELEASEKIT_DELIVERY_TOKEN:
from_secret: GITEA_RELEASE_TOKEN
Here GITEA_RELEASE_TOKEN names a Woodpecker stored secret;
RELEASEKIT_DELIVERY_TOKEN names the variable available to ReleaseKit inside
that job. An unset or blank selected CI variable is an error. Consumers can
reference an existing suitable secret. The local token file stays on the
workstation; CI uses its stored secret. ReleaseKit owns the
maintained workflow integration. Secret-registration automation is outside
this work.
Keep loading in the CLI and pass the resolved token explicitly through
DeliveryDestination. The library remains independent of ambient credentials.
Errors identify the execution context and selected source without including
secret contents. The existing forbidden_files check remains available to
exclude the local token path from committed candidates; explain its use
alongside Git ignore rules.
Update local examples, CI templates, adoption guidance, and the maintainer
runbook together. Explain the migration from today's delivery.token_file,
delivery.token_env, and environment-over-file precedence to context-specific
selection. Use the terms “local token file,” “Woodpecker stored secret,” and
“CI delivery job environment variable” consistently. A shared profile carries
both declarations; consumers maintain their paths and secret references.
2. Add configuration and input readiness validation
Consider releasekit validate as a diagnostic command that loads the selected
profile, validates its semantics, and checks inputs needed for the selected
operations. It should distinguish malformed configuration, unavailable local
inputs, and remote verification failures. Its report should identify both what
was checked and the limits of that evidence.
Use the same explicit local or CI context and credential resolver as delivery. Default workstation diagnostics to local context and provide an explicit CI context selection for invocation inside the delivery job. Keep execution context separate from network use: local-context validation can contact the forge, and CI-context validation can perform offline checks.
Recommended scope:
- Reuse profile parsing and operation-specific validation for module selection, build settings, delivery destination, and publication endpoint expectations.
- For local delivery, check the selected file's availability, readability, and nonblank content. For CI delivery, check the named variable in the running job's environment. Credential requirements apply to the selected operation and context; source publication retains its independent Git authentication.
- Report the context, selected credential source, destination, and checks completed, with secret values omitted. A workstation check can inspect a CI declaration, but verification of injected credentials requires execution inside the CI job. Mark that evidence as unverified when it is unavailable.
- Check declared inputs for the requested preparation stage. Configuration readiness can precede generated artifacts; delivery using existing artifacts checks their availability. Report missing required inputs as errors.
- Use native Git and SSH configuration for Git authentication. SSH agents, hardware-backed keys, custom commands, and HTTPS credentials are viable inputs; the existence of a conventional private-key file is not universal evidence of readiness. Check an explicitly selected key file when applicable and describe other authentication checks in terms of the operation actually exercised.
- Separate local checks from optional network verification. Online verification can reuse hosted preflight and native Git reads. A successful read establishes read access; write access requires the live exercise described below.
- Keep this command independent of the candidate test suite. It can run while preparing a release, before a version-matched note or final candidate exists. It performs no publication, remote writes, or candidate checkout changes.
Share validation and credential resolution with execution paths so diagnostics
do not become a second implementation. Actual operations continue checking their
requirements when run. validate is an optional convenience and adds no required
pre-release invocation. Exact operation selection and network defaults remain
open below.
3. Exercise remote publication and hosted delivery
Consider an explicitly invoked releasekit test command that pushes a temporary
tag, creates a temporary hosted release, verifies the selected operations, and
removes the resources it created. This provides write evidence beyond read-only
preflight. It is a live operation using real credentials and remote resources.
Select local or CI context explicitly and reuse delivery's credential resolver and readiness checks. A local exercise reads the local token file directly. An exercise invoked inside Woodpecker reads the job's injected variable. Report the context and credential source alongside capability outcomes. Success on a workstation establishes evidence for local delivery; CI credential write verification uses an exercise in the CI job. Provide maintained examples for both contexts so consumers can repeat diagnostics without a production release version or credential-export scripts.
Recommend an isolated diagnostic tag namespace and a clearly marked hosted release, distinct from production version tags. Existing release immutability continues to apply to actual releases. The command should use the configured Git push endpoint and hosted destination, report mismatches, and avoid changing the current branch, index, or worktree. Before the first write, check local configuration and credentials and record the intended diagnostic resources.
The design must account for these concrete outcomes:
- Unique names and exact object/resource identity allow concurrent runs and prevent an existing release or tag from becoming a cleanup target.
- A lost acknowledgment may leave creation uncertain. Observe the exact remote resource before deciding whether creation or removal succeeded.
- Cleanup runs after successful and failed exercises, with a bounded attempt independent of an already canceled operation. A process crash or unavailable service can leave resources behind. Retain enough local evidence for a later cleanup attempt and report remaining or uncertain resources and exact recovery instructions. Report exercise and cleanup outcomes separately.
- Tag deletion and release deletion require permissions that ordinary release creation may not require. Explain this in setup and report the precise failing capability.
- Tag events can trigger CI, notifications, webhooks, and downstream automation. Deletion cannot retract those effects. Document trigger filtering and the scope of the diagnostic namespace.
Creating a tag and page proves only those operations and cleanup. If asset delivery is selected, recommend a small diagnostic attachment with read-back verification to exercise that path too. This does not certify an asynchronous CI workflow, every application build, or future availability. Report artifact generation separately from upload verification; a diagnostic attachment establishes upload evidence only. Evidence from the diagnostic tag namespace also has that scope; production tag rules may differ. Settle the command's advertised scope in Open Decisions.
Implement reusable coordination internally with a proportionate facade API; keep CLI parsing, credential loading, reporting, and process exits in the CLI. Introduce diagnostic deletion capabilities at the forge boundary as needed, leaving ordinary delivery's matching and retry semantics intact. This command remains opt-in and outside default tests and routine publication gates.
4. Support additional versioning schemes
Introduce an explicit versioning choice while retaining today's SemVer behavior for profiles that omit it. Support calendar/date-based release identifiers and leave room for additional concrete schemes. Define DateVer's exact grammar locally rather than assuming the name specifies one universal format. CalVer itself describes multiple calendar-based conventions. See CalVer's scheme guidance.
Resolve the selected version and complete release identity once, then pass that identity through validation, builds, publication, delivery, and recovery. Keep format validation and tag derivation consistent across CLI and API entry points. Preserve the selected identifier in notes, hosted pages, injected runtime versions, artifact names, receipts, and recovery records. Check those consumers for assumptions about numeric triples, slashes, and filename-safe characters. Validate complete Git refs with Git's rules.
Go distribution introduces a separate constraint. Go module releases use
semantic version tags and enforce major-version suffix rules. For example,
v2026.12.3 has major 2026 and is incompatible with an ordinary unsuffixed
module path; 2026-12-03 is not a canonical Go module release version. Supporting
these as application release labels requires an explicit identity design. See
the Go versions reference and
major-version suffix rules.
Evaluate a distinct application release identity that can select a Go module
for builds and tests without claiming its application tag is a Go module
release. Inventory the impact on module-directory tag prefixes, physical /vN
directories, CI tag dispatch, selected-tool bootstrap, note matching, receipts,
and saved publication evidence. Keep existing Go module publication constraints
for consumers publishing importable module versions.
Recommend validating caller-supplied identifiers first. Calendar support needs explicit padding, valid-date, optional prefix, and same-day revision rules. Automatic date selection, version incrementing, ordering, and custom public strategy interfaces require separate justification. ReleaseKit's own release policy continues to select SemVer; consumer support for other schemes does not change that policy.
Work outline and regression coverage
- Settle the open decisions and describe the selected CLI, configuration, and identity contracts. Keep unchanged SemVer integrations simple.
- Consolidate credential selection and operation-specific validation. Implement explicit local and CI credential declarations and context selection across delivery, readiness validation, and the delivery exercise. Align Woodpecker secret mappings and document migration from the existing fields.
- Add live diagnostic coordination, narrowly scoped backend operations, outcome reporting, and cleanup recovery.
- Extend version identity and carry it through publication, builds, delivery, stored formats, and launchers. Update affected schema versions when their interpretation changes and document consumer migration.
- Update canonical references, maintained examples, adoption guidance, and next release notes. Review the assembled implementation and run appropriate offline checks, including compiled facade and dependency-boundary checks.
Regression coverage should address local file loading with workstation token variables absent or set to conflicting values; CI variable loading with the local file absent; context-specific missing-input errors; and shared resolution across delivery, readiness, and exercises. Verify that diagnostics identify context and evidence limits without exposing token contents. Cover offline versus online validation in each context and agent-based Git authentication; diagnostic collisions, partial creation, lost acknowledgments, cancellation, and cleanup failures; and version/date boundaries and identity consistency across operations and stored formats. Use temporary Git remotes and local HTTP fixtures in the default suite. Real forge exercises stay explicitly opt-in. This outline has no pilot releases or intermediate external review gates.
Open Decisions
Credential schema and migration
Explicit local and CI selection is decided in item 1. Finalize the field names,
diagnostic context-selection syntax, and migration handling for existing flat
credential fields. Keep the common local-file and CI-secret workflow in one
profile and provide actionable migration diagnostics. The illustrated
RELEASEKIT_DELIVERY_TOKEN name requires coordinated workflow and profile
updates if adopted.
Readiness selection and network use
Recommendation: Default validate to offline checks for the operations
declared by the profile in the selected local or CI context, with explicit
operation selection and online verification available. This supports offline
preparation and narrower CI contexts. Report unchecked remote access and CI
credential injection that has not been verified inside a job.
Alternative: Verify configured remote access by default, with an offline option. This gives stronger immediate readiness evidence but makes a routine configuration check depend on service availability and credentials for every selected remote operation.
Live exercise scope
Recommendation: Exercise Git tag push, hosted-page creation, selected asset upload, and cleanup directly, with accurate capability reporting. This gives useful write evidence in one invocation using the selected context's credentials. Run the CI-context exercise inside the CI job to verify secret injection. It adds cleanup state and deletion permissions and cannot establish asynchronous CI success.
Alternative: Run the exercise in a dedicated sandbox repository through the actual CI workflow. This can cover automation while isolating production events, but needs additional setup and tests different repository permissions and configuration. It is useful integration evidence rather than equivalent proof of access to the production destination.
Version formats and Go module identity
Recommendation: Preserve Go-module SemVer publication and introduce an explicit application-release mode for non-SemVer tags. Begin with selected, documented calendar/date layouts and caller-supplied identifiers. This supports the requested labels while preserving Go distribution correctness, at the cost of another identity mode. Confirm the required layouts and whether non-Go repositories belong in this release's scope.
Alternative: Keep a single Go-module release identity and support calendar conventions only where their spelling satisfies SemVer and module-path rules. This reduces refactoring but excludes common date labels and can force year-based module-path changes. Supporting a separate application label and Go module version is another viable option, with two identifiers for consumers to maintain and an additional tag-mapping decision.