# Next release proposals ## Status and purpose Roadmap for the next release after v0.10.0. The behavior described in items 1–4 is settled; implementation is pending. The [implementation plan](implementation.md) defines the staged work and finalizes interface and encoding details. The release number remains unassigned. This document adds no implementation or release gates. The objectives are to make local hosted delivery straightforward, expose useful readiness diagnostics, rehearse the actual Woodpecker delivery 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. 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. The planned credential structure is: ```json { "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: ```yaml # 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. Adopt the explicit credential structure in this release. Report legacy flat credential fields with actionable migration errors and provide coordinated profile and workflow examples. The new structure supports explicitly naming the existing CI environment variable, including `RELEASEKIT_GITEA_TOKEN`. Consumers can retain that name and their stored secret while migrating the profile. The illustrated `RELEASEKIT_DELIVERY_TOKEN` name does not require a simultaneous variable rename. ## 2. Add configuration and input readiness validation Provide the optional setup-readiness diagnostic `releasekit validate`. It loads the selected profile, checks required inputs, and verifies read-only remote access by default. This gives developers useful configuration and credential evidence before preparing a final release candidate. An explicit `--offline` option limits the run to offline checks. ### Operation and context selection Default to source-publication readiness, configured Go/build capabilities, and hosted delivery when declared in the selected profile. Provide an explicit operation selector for narrower investigations. Rehearsal readiness is an explicitly selected operation that includes Woodpecker access. Ordinary delivery readiness requires its own credentials, independently of Woodpecker credentials. Inspect the current working configuration and inputs so developers can diagnose changes before committing. Candidate validation and the rehearsal inspect their captured commits. Reports identify the input source and selected operations before presenting results. Each operation checks its own requirements: source publication uses native Git authentication, and hosted delivery checks hosted credentials. Page-only delivery needs no binary-build inputs. Default to local execution context and provide explicit CI context selection. The maintained Woodpecker workflow supplies the CI selection when invoking validation inside the job. Reuse delivery's context-specific credential resolver: local delivery reads its token file directly; CI delivery reads the variable injected into the running job. Keep execution context independent of network use. Both contexts support online verification and offline checks. A workstation invocation can inspect CI declarations and, when rehearsal readiness is selected, configured Woodpecker access. Verification of actual CI secret injection takes place inside the job or through the rehearsal. Report that evidence as unverified when unavailable. ### Readiness scope - Reuse profile parsing and operation-specific validation for source selection, applicable Go module and build settings, delivery destination, and publication endpoint expectations. Source-only profiles check their configured operations without requiring a Go module or generated binaries. - Check the selected local token file for availability, readability, and nonblank content, or check the selected CI variable inside the job. Identify the source and context without exposing secret contents. - Validate relevant source and build inputs at setup time. Permit outputs that the configured build will generate to be absent. When callers explicitly supply existing artifacts for delivery, validate those inputs too. - Use native Git and SSH configuration for Git authentication. Support SSH agents, hardware-backed keys, custom commands, and HTTPS credentials. Check an explicitly selected key file when applicable; describe other authentication evidence by the operation actually exercised. - Perform read-only remote verification by default, reusing hosted preflight and native Git reads. Successful reads establish authentication and access evidence for those requests. The rehearsal supplies write and workflow execution evidence. - Allow validation before a version-matched release note or final candidate exists. Keep it independent of the candidate test suite and artifact builds. It performs no publication, remote writes, or candidate checkout changes. ### Reporting and completion Collect independent failures in one run and mark dependent checks as skipped when their prerequisites fail. Distinguish malformed configuration, unavailable required inputs, rejected credentials, and remote verification failures. Identify the selected operations, context, credential source, destinations, checks completed, and evidence still missing. Return an unsuccessful result when a selected check fails or cannot complete. An explicitly offline run can succeed within its declared scope; mark remote access as unchecked. Distinguish checks omitted by scope from selected checks that could not complete, so partial verification remains visible. Share validation and credential resolution with execution paths. Actual operations continue checking their requirements when run. Validation remains an optional convenience with no required pre-release invocation. The [implementation plan](implementation.md#stage-7-implement-readiness-validation-and-its-cli) defines command syntax, operation mapping, reports, and exit statuses. ## 3. Rehearse the end-to-end Woodpecker delivery workflow Provide an explicitly invoked rehearsal that runs the actual tag-triggered Woodpecker delivery workflow, generates the application's configured artifacts, verifies hosted delivery, and cleans up temporary release resources. This addresses failures that appear after a successful production tag push, including missing CI credentials, failed builds, and missing uploads. The rehearsal uses real CI and forge services without consuming a production release version. ReleaseKit owns the reusable coordination and maintained workflow integration. Consumers adopt the updated workflow and supply their profile, destinations, and credential references. One local invocation should start the rehearsal, observe its outcome, and report verification and cleanup results. The [implementation plan](implementation.md#stage-14-wire-rehearsal-cli-and-maintained-workflows) defines commands and flags. ### Rehearsal flow 1. Select an exact committed source revision, source scope, and profile, including the Go module when applicable. Check required local inputs and record the intended diagnostic resources before the first write. Preserve the workstation's branch, index, and worktree. 2. Create and push a uniquely named diagnostic tag, such as `releasekit-test/`, to the configured publication endpoint. The maintained delivery workflow accepts that namespace alongside production tags. Verify the tag's commit and correlate the resulting Woodpecker run with the recorded attempt. 3. Run the ordinary tool bootstrap, checkout verification, dependency preparation, configured builds, and artifact generation inside Woodpecker. Use the same profile, build targets, job image, secret mapping, and shared delivery implementation as production releases. Source-only profiles use their maintained installed-tool path and page-only delivery; application dependency preparation and binary builds apply to profiles declaring them. 4. Create a clearly marked temporary hosted page in the configured forge repository and upload the actual declared artifacts. ReleaseKit supplies a diagnostic identity and temporary note; consumers need no version bump or production release note. 5. Verify uploaded contents inside the delivery job, where the generated artifacts are available for comparison. Emit a structured verification result associated with the exact rehearsal identity. Page-only profiles verify the page and report their declared scope. The local coordinator observes the exact CI run through completion and confirms both successful execution of the expected delivery workflow and its matching verification result. A successful pipeline status alone is insufficient evidence. 6. Remove the attempt's temporary hosted page, assets, and tag after verification or failure. Report workflow execution, artifact generation, hosted verification, and cleanup outcomes separately, with links to the CI run and actionable failure details. A successful rehearsal establishes evidence for the selected source, profile, CI environment, diagnostic namespace, and destination at that time. Production-tag-specific rules and future service availability remain separate considerations. CI history and any notifications or webhook effects persist after temporary release resources are removed. ### Credentials and execution contexts Reuse item 1's explicit credential selection and item 2's readiness checks. The local coordinator uses native Git authentication to push the diagnostic tag and reads the configured local forge token file for its forge operations. Woodpecker supplies its stored secret to the actual delivery job, which uses the CI credential declaration. Successful local authentication does not stand in for verifying the job's injected credential. Observing Woodpecker requires its server/repository identity and authorization to inspect the relevant pipeline and workflow results. Keep that authorization distinct from the Gitea delivery token. Local Woodpecker credentials follow the persistent-file model; ReleaseKit loads them directly. Consumers maintain no workstation environment exports or credential-loading scripts. ### Shared implementation and recovery Add explicit diagnostic identity support to CI preparation, builds, delivery, and relevant evidence formats. Today's `ci-deliver` requires a module-derived stable semantic tag. Diagnostic tags need a supported path through those operations, including source selection, applicable module selection, and workflow dispatch. Keep the normal build and delivery mechanics shared; diagnostic mode supplies the temporary identity, note, and resource lifecycle. Record one rehearsal identity containing the attempt identifier, exact commit, profile/source selection, diagnostic tag, and diagnostic version used by builds. ReleaseKit derives and transports these values through the maintained workflow and associates verification results and recovery with that identity. Use explicit diagnostic identity semantics throughout; the rehearsal consumes no synthetic production release version. The [implementation plan](implementation.md#stage-9-define-rehearsal-identity-transport-and-durable-attempts) defines identity, record, and transport encoding. Use unique attempt names and exact tag, commit, pipeline, and hosted-resource identities to scope verification and deletion. Observe uncertain remote writes before classifying their outcome. Cleanup follows successful and failed runs, with bounded attempts independent of an already canceled local invocation. Coordinate cleanup with CI execution so an active job cannot recreate resources after cleanup is reported complete. Wait for or establish completion of the relevant job before deleting resources. When CI or remote state remains uncertain, retain recovery evidence and report cleanup as pending or unknown. Interruption stops local observation and preserves the attempt record; the CI run continues independently. Provide explicit resume-observation and cleanup operations. Automatic CI cancellation is outside the selected behavior. Persist enough attempt information to resume after interruption, process failure, or service unavailability. Recovery targets only the recorded diagnostic resources and preserves existing releases. Document the deletion permissions required for cleanup and report remaining resources with exact recovery instructions. Implement reusable orchestration behind a proportionate facade API, with Woodpecker integration and diagnostic forge operations behind internal boundaries. The CLI owns argument parsing, credential loading, reporting, and exit status. Update maintained workflows and adoption guidance with the feature. The rehearsal remains opt-in and outside default offline tests and routine publication gates. Ordinary source publication still completes at the successful production tag push; the rehearsal waits for CI because verifying that workflow is its purpose. ## 4. Support general source-release identity and Go module publication Adopt a general source-release identity that supports configuration repositories, Go applications, and Go modules. A release identifies an exact committed source revision, selected source scope, version, full tag, and release note. Go module publication adds module-version and tag-derivation rules to that common model. Configuration independently expresses selected source scope, Go validation/build capabilities, and Go module publication. These choices share the common identity model while retaining their distinct requirements. Include source-only repositories, such as YAML or JSON configuration repositories, in this release. Support tagging, publication, hosted release pages, readiness validation, recovery, and the actual Woodpecker delivery rehearsal through the shared workflow. This lets consumers replace repeated release scripts with a profile, a release note, and maintained tooling. Preserve documented legacy module-publication defaults for existing profiles that omit the new selection. New examples make the publication choice explicit. Selecting Go capabilities in the new model alone does not select Go module publication. General source releases, including application and configuration releases, can use SemVer or the selected calendar formats. ### Source selection and validation Select source independently of a Go module. Source-only repositories default to the repository root; file-check inputs and release-note paths follow the selected source scope. Go applications retain a selected Go module for builds and validation, deriving their common source scope from that module so consumers maintain one directory setting. The [implementation plan](implementation.md#stage-1-normalize-source-go-and-publication-selection) defines fields and legacy mapping. Preserve common Git, committed-candidate, release-note, and publication checks. Run the standard Go suite for Go modules. Source-only repositories use applicable shared file checks, such as Markdown links, forbidden files, and file sizes, together with explicitly configured product checks. Their release workflow requires no placeholder `go.mod`. YAML/JSON syntax or schema validation can use existing custom-check support. Additional shared configuration validators require separate evaluation. Arbitrary non-Go build orchestration and packaging remain separate scope decisions. ### Release identity and Go distribution Apply Go module-path major-version compatibility constraints only when Go module publication is selected. Selecting Go builds and tests alone does not enable those constraints. General source releases validate their selected version format independently of the application's module-path major version. For example, an application declaring `module example.com/myapp` can retain that path while releasing binaries or checked-out source as `v2.0.0`, `v3.0.0`, or `2026-12-05`. Its release identifier requires no corresponding `/v2` or `/v3` suffix for those distribution methods. Go module publication retains semantic version validation, module-path major compatibility, and Go-specific tag derivation. Select that publication mode when distributing published versions through Go's module system, including executables installed with `go install …@VERSION`. For example, `v2026.12.3` denotes major version 2026, while `2026-12-05` is not a canonical Go module release version. See the [Go versions reference](https://go.dev/ref/mod#versions) and [major-version suffix rules](https://go.dev/ref/mod#major-version-suffixes). A general source-release tag identifies the source product without claiming to publish a Go module version. One source revision can have separate, explicitly identified source-product and Go module releases. Coordinated publication of both identities requires a separate consumer need. ### Version formats and selection Provide named, documented formats with these conventions: | Format | First release | Subsequent release in the period | | --- | --- | --- | | Full date | `2026-12-05` | `2026-12-05.1` | | Year/month with revision | `2026.12.0` | `2026.12.1` | Define valid dates, padding, and numeric revision rules precisely. Treat an optional leading `v` as a profile-level convention so spelling stays consistent. CalVer encompasses multiple conventions; ReleaseKit's documentation owns the exact supported grammars. See [CalVer's scheme guidance](https://calver.org/#scheme). Callers supply the identifier. ReleaseKit validates its format and checks the intended tag's availability. The selected date follows the consumer's release convention and need not equal the machine's current date. Preserve the selected identifier throughout an attempt and its recovery. Automatic date selection, incrementing, ordering, configurable layouts, and custom public strategy interfaces require separate justification. ### Source tags and module scope Retain module-scoped builds and validation for Go applications. General source tag prefixes follow the selected source directory relative to the repository, with an explicit override for product naming. Go applications use their selected module directory; source-only repositories default to the root. | Selection | Source tag | | --- | --- | | Repository-root configuration source or Go application | `2026-12-05` | | Go application module in `apps/editor` | `apps/editor/2026-12-05` | | Explicit product prefix `editor` | `editor/2026-12-05` | General source tag derivation uses the selected physical directory by default, including a physical `/vN` directory when present. Go module publication retains Go's major-version directory and tag-prefix rules. The source-product version does not determine a selected module's import-path major version. Resolve release purpose, version format, selected identifier, source selection, applicable module identity, and complete tag identity once. Carry that identity through CLI and API validation, builds, publication, hosted delivery, and recovery. Preserve the identifier in notes, injected runtime versions, artifact names, receipts, and saved evidence. Validate complete refs with Git's rules and review consumers of the identity for filename and numeric-triple assumptions. ### Tool selection and complete workflow support For repositories without `go.mod`, record the selected ReleaseKit version in one small committed file. The maintained local launcher and Woodpecker bootstrap both read that file. Build on the documented separately installed-tool path, with ReleaseKit owning reusable installation and invocation mechanics. The [implementation plan](implementation.md#stage-8-supply-one-tool-pin-for-source-only-repositories) defines the filename and format. Module-backed repositories continue using their module-selected dependency. Source-only profiles publish their committed configuration and release note under an immutable tag, then deliver the hosted page through the maintained Woodpecker workflow. Readiness checks cover their profile, source, credentials, and selected remote operations. The rehearsal exercises the actual tag event, CI tool invocation, credential injection, hosted-page content verification, and cleanup. Report that these profiles declare no generated artifacts. Use the same local-file and CI-secret selection as other consumers. ### Adoption All supported CLI and API operations share identity and source selection, including candidate checks, publication, hosted delivery, recovery, readiness, and the Woodpecker rehearsal. CI tag dispatch, tool bootstrap, note matching, and stored evidence support both module-backed and source-only profiles. Existing SemVer integrations stay simple, with migration guidance for changed public or stored contracts. [ADR 0007](../adr/0007-general-source-release-identity.md) records the general source-release and Go module identity decision. The implementation plan defines format grammars and configuration fields. ReleaseKit's own release policy continues to select SemVer. Consumer support for other source-product formats leaves that policy unchanged. ## Implementation ownership The [implementation plan](implementation.md) owns sequencing, concrete interfaces, transport and evidence formats, migration work, and regression coverage. [ADR 0007](../adr/0007-general-source-release-identity.md) and [ADR 0008](../adr/0008-woodpecker-rehearsal-lifecycle.md) record the architectural rationale. This roadmap owns the settled target behavior and product scope.