Outline proposals for the next release
This commit is contained in:
253
docs/roadmap/next-release.md
Normal file
253
docs/roadmap/next-release.md
Normal file
@@ -0,0 +1,253 @@
|
||||
# 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.
|
||||
This document adds no implementation or release gates.
|
||||
|
||||
The objectives are to make local hosted delivery straightforward, expose useful
|
||||
readiness diagnostics, exercise a configured workflow 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_file` and `delivery.token_env`.
|
||||
A nonblank environment value wins; the file is a fallback. The default
|
||||
environment variable is `RELEASEKIT_GITEA_TOKEN`. Missing credentials and
|
||||
unreadable or blank selected files produce errors. See
|
||||
[configuration](../config.md) and [delivery guidance](../consumers/delivery.md).
|
||||
- `PreflightDelivery` verifies authenticated repository access through read-only
|
||||
requests. `Deliver` runs it automatically. It cannot establish that every
|
||||
subsequent write will succeed. [ADR 0006](../adr/0006-neutral-forge-delivery-and-preflight.md)
|
||||
records that boundary.
|
||||
- `check` validates a committed candidate and runs the offline Go suite and
|
||||
selected checks. The CLI has no `validate` or live workflow-test command.
|
||||
Source publication uses native Git authentication independently of the hosted
|
||||
API token. See the [CLI contract](../cli.md).
|
||||
- `internal/versioncontract`, CLI parsing, and `internal/releaseidentity` require
|
||||
stable `vMAJOR.MINOR.PATCH` identifiers. 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](../internal/overview.md) describes ownership.
|
||||
|
||||
## 1. Make token files the primary hosted-delivery configuration
|
||||
|
||||
Present an explicitly configured file such as `.releasekit/gitea-token` as the
|
||||
standard local workflow. Retain configurable environment credentials for CI and
|
||||
other operators who prefer them. File support already exists; the work is to
|
||||
settle selection semantics and make examples, diagnostics, and guidance agree.
|
||||
|
||||
Recommended behavior is to use `token_file` when configured and report a missing,
|
||||
unreadable, or blank file as an error. Profiles selecting environment credentials
|
||||
continue to use `token_env`. Resolve the interaction of both fields in Open
|
||||
Decisions before changing today's precedence. Preserve repository-root-relative
|
||||
and absolute paths and whitespace trimming.
|
||||
|
||||
Keep loading in the CLI and pass the resolved token explicitly through
|
||||
`DeliveryDestination`. The library remains independent of ambient credentials.
|
||||
Errors identify the selected source without including secret contents. The
|
||||
existing `forbidden_files` check remains available to exclude the token path
|
||||
from committed candidates; explain its use alongside Git ignore rules.
|
||||
|
||||
Update local examples and the maintainer runbook to lead with file-based setup,
|
||||
while CI examples demonstrate the chosen environment selection. Document any
|
||||
precedence change and the configuration needed to preserve existing workflows.
|
||||
|
||||
## 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.
|
||||
|
||||
Recommended scope:
|
||||
|
||||
- Reuse profile parsing and operation-specific validation for module selection,
|
||||
build settings, delivery destination, and publication endpoint expectations.
|
||||
- Check selected token sources for availability, readability, and nonblank
|
||||
content. Check declared local inputs relevant to the requested operation.
|
||||
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.
|
||||
|
||||
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. 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](https://calver.org/#scheme).
|
||||
|
||||
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](https://go.dev/ref/mod#versions) and
|
||||
[major-version suffix rules](https://go.dev/ref/mod#major-version-suffixes).
|
||||
|
||||
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
|
||||
|
||||
1. Settle the open decisions and describe the selected CLI, configuration, and
|
||||
identity contracts. Keep unchanged SemVer integrations simple.
|
||||
2. Consolidate credential selection and operation-specific validation. Implement
|
||||
file-primary configuration and the readiness command using those paths.
|
||||
3. Add live diagnostic coordination, narrowly scoped backend operations, outcome
|
||||
reporting, and cleanup recovery.
|
||||
4. 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.
|
||||
5. 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 credential selection and missing inputs;
|
||||
local versus online validation 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 selection when both fields are present
|
||||
|
||||
**Recommendation:** An explicit `token_file` selects the file authoritatively;
|
||||
environment-only profiles select the environment. This makes the primary local
|
||||
configuration predictable and exposes a broken file immediately. Existing
|
||||
profiles using both fields need migration guidance and a separate CI profile
|
||||
or another deliberate source-selection mechanism.
|
||||
|
||||
**Alternative:** Keep environment-over-file precedence and change only the
|
||||
recommended workflow. This preserves today's CI overrides and avoids a
|
||||
compatibility change, while ambient environment state can still supersede the
|
||||
configured file. Confirm whether first-class file support requires a behavior
|
||||
change or primarily a documentation change.
|
||||
|
||||
### Readiness selection and network use
|
||||
|
||||
**Recommendation:** Default `validate` to local checks for the operations
|
||||
declared by the profile, with explicit operation selection and online
|
||||
verification available. This supports offline preparation and narrower CI
|
||||
contexts. The report must make unchecked remote access visible.
|
||||
|
||||
**Alternative:** Verify configured remote access by default, with a local-only
|
||||
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. 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.
|
||||
Reference in New Issue
Block a user