diff --git a/docs/roadmap/next-release.md b/docs/roadmap/next-release.md index 69e2ebe..89b39e3 100644 --- a/docs/roadmap/next-release.md +++ b/docs/roadmap/next-release.md @@ -2,14 +2,10 @@ ## 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, setup-readiness validation, and an -end-to-end Woodpecker delivery rehearsal are adopted as the planned direction. -The general source-release identity model, source-only repository support, -calendar formats, caller-selected identifiers, and tag conventions in item 4 -are also adopted. Implementation is pending. This document adds no +Roadmap for the next release after v0.10.0. The behavior described in items +1–4 is settled; implementation is pending. The final section identifies +interface and encoding details to finalize in the implementation plan. 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 @@ -109,6 +105,14 @@ selection. Use the terms “local token file,” “Woodpecker stored secret,” “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 an optional setup-readiness diagnostic, provisionally named @@ -119,12 +123,21 @@ candidate. An explicit `--offline` option limits the run to offline checks. ### Operation and context selection -Default to the operations configured in the selected profile, with an explicit -operation selector for narrower investigations. Define and document the mapping -from profile declarations to operations. List the selected operations before -their 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 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 @@ -133,9 +146,10 @@ 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 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. +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 @@ -177,8 +191,8 @@ 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. Exact command -syntax, profile-to-operation mapping, and report representation remain design -details to finalize. +syntax, configuration-field mapping for the selected operation defaults, and +report representation remain details for the implementation plan. ## 3. Rehearse the end-to-end Woodpecker delivery workflow @@ -199,8 +213,8 @@ command name and flags remain to be selected. 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. + 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 @@ -216,11 +230,13 @@ command name and flags remain to be selected. 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. Observe the exact CI run through completion. Verify that the expected - delivery workflow executed, the configured artifacts were generated, and - the declared uploads are complete. Read back hosted artifact contents and - compare them with build evidence from that run. Page-only profiles verify - the page and report their declared scope. +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 @@ -256,19 +272,31 @@ 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. Finalize the identity contract before +choosing its 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. When the job or remote state remains +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. -Persist enough attempt information to resume observation and cleanup 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. +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 @@ -281,11 +309,14 @@ 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. -Build capabilities are selected separately. +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 @@ -293,17 +324,20 @@ 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 today's Go module release behavior for existing profiles that omit the -new selection. General source releases, including application and configuration -releases, can use SemVer or the selected calendar formats. +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. Define source-selection fields and their relationship to -existing module selection in the implementation design. +and validation, deriving their common source scope from that module so +consumers maintain one directory setting. Finalize the field representation +and legacy mapping in the implementation plan. Preserve common Git, committed-candidate, release-note, and publication checks. Run the standard Go suite for Go modules. Source-only repositories use @@ -390,11 +424,13 @@ of the identity for filename and numeric-triple assumptions. ### Tool selection and complete workflow support -Provide an explicit ReleaseKit version selection and maintained installed-tool -examples for local and Woodpecker use in repositories without `go.mod`. Build -on the documented separately installed-tool path. Consumers supply the version -selection; ReleaseKit owns reusable installation and invocation guidance. -Module-backed consumers retain the module-selected tool workflow. +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. Finalize the filename and format in the implementation +plan. 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 @@ -420,95 +456,92 @@ for other source-product formats leaves that policy unchanged. ## 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 - 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. -3. Add diagnostic identity support and Woodpecker tag dispatch to the shared - CI build and delivery path. Implement rehearsal coordination, exact-run - observation, generated-artifact verification, diagnostic deletion, and - recovery. Provide maintained workflow and persistent-credential examples. -4. Implement general source selection and release identity, with Go module - publication rules and optional build capabilities. Carry them through - validation, publication, delivery, recovery, readiness, rehearsals, stored - formats, and launchers. Provide versioned installed-tool examples for - source-only repositories. 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. +1. Record the general source/Go-module identity model and rehearsal-resource + lifecycle in ADRs. Finalize CLI, configuration, identity, and evidence + contracts in the implementation plan. +2. Establish general source selection and release identity first, with separate + Go capabilities and Go module publication rules. Carry the model through + existing operations, stored formats, and launchers. Add source-only tooling + using the committed version-selection file. +3. Implement explicit credential selection and migration, then readiness + validation using shared execution paths and the settled operation defaults. +4. Build the complete Woodpecker rehearsal on that foundation: diagnostic + identity transport, tag dispatch, shared builds and delivery, in-job content + verification, structured results, local observation, cleanup, and recovery. +5. Update canonical references, maintained examples, adoption guidance, schema + versions where interpretation changes, and release notes. Review the + assembled implementation and run appropriate offline checks, including + compiled facade and dependency-boundary checks. + +These are implementation dependencies. They require no intermediate +consumer-facing releases. 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 default -online verification and explicit offline scope in each context, profile-driven -operation selection and narrowing, setup checks before generated outputs exist, -and validation of explicitly supplied artifacts. Verify aggregation of +local file absent; context-specific missing-input errors; and shared +resolution across delivery, readiness, and exercises. Cover actionable +legacy-credential errors and migration retaining an existing CI variable name. +Verify that diagnostics identify context and evidence limits without exposing +token contents. Cover default online verification and explicit offline scope +in each context, profile-driven operation selection and narrowing, +working-input readiness versus committed-candidate checks, setup checks before +generated outputs exist, and validation of explicitly supplied artifacts. +Verify that ordinary delivery readiness works without Woodpecker credentials +and rehearsal readiness checks Woodpecker access. Verify aggregation of independent failures, skipped dependent checks, and unsuccessful outcomes for selected checks that cannot complete. Cover agent-based Git authentication; diagnostic collisions, partial creation, lost acknowledgments, cancellation, and cleanup failures. Exercise exact pipeline correlation, missing or skipped delivery jobs, build failures, missing or mismatched artifacts, and cleanup -while CI is active or its status is unknown. Verify that rehearsal and -production paths share configured builds and delivery mechanics. Cover -version/date boundaries, revision and leading-prefix conventions, general source -versus Go module tag derivation, physical major-version directories, and explicit -product prefix overrides. Verify Go application builds and tests with an -unsuffixed module path and source-release identifiers such as `v2.0.0` and -`2026-12-05`; selecting Go module publication must retain module-path major -compatibility checks. Cover a YAML/JSON-only repository with no `go.mod` -through candidate validation, publication, hosted-page delivery, readiness, -recovery, and the rehearsal. Verify source-scoped file checks, installed-tool -version selection, and page-only behavior without Go tests or binary builds. -Verify identity consistency across operations and stored formats, including -the rehearsal. Use temporary Git remotes and local HTTP fixtures for Woodpecker and forge behavior in the default suite. -Live rehearsals stay explicitly opt-in. -This outline has no pilot releases or intermediate external review gates. +while CI is active or its status is unknown. Cover matching structured +verification evidence, missing or mismatched results despite a successful +pipeline, and interruption/resume without automatic CI cancellation. Verify +that rehearsal and production paths share configured builds and delivery +mechanics. Cover version/date boundaries, revision and leading-prefix +conventions, general source versus Go module tag derivation, physical +major-version directories, and explicit product prefix overrides. Verify Go +application builds and tests with an unsuffixed module path and source-release +identifiers such as `v2.0.0` and `2026-12-05`; selecting Go module publication +must retain module-path major compatibility checks. Cover a YAML/JSON-only +repository with no `go.mod` through candidate validation, publication, +hosted-page delivery, readiness, recovery, and the rehearsal. Verify +source-scoped file checks, installed-tool version selection shared by local +and CI launchers, and page-only behavior without Go tests or binary builds. +Verify independent source, Go capability, and module-publication selections +alongside documented legacy defaults. Verify identity consistency across +operations and stored formats, including the rehearsal. Use temporary Git +remotes and local HTTP fixtures for Woodpecker and forge behavior in the +default suite. Live rehearsals stay explicitly opt-in. This outline has no +pilot releases or intermediate external review gates. -## Open Decisions +## Details to finalize in the implementation plan -### Credential schema and migration +The product scope and behavior in items 1–4 are settled. The implementation +plan should specify the following interfaces and representations while +preserving those decisions: -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. +- **Configuration and migration:** exact credential, source-selection, Go + capability, and publication fields; legacy-default mapping; actionable + credential migration diagnostics; and coordinated profile/workflow examples. +- **Readiness:** command and context-selection syntax, mapping of profile fields + to the settled operation defaults, explicit-artifact inputs, report types and + presentation, and numeric exit codes. +- **Rehearsal identity:** the recorded identity contract, diagnostic tag and + version spelling, profile/source dispatch, and transport through CI. +- **Verification evidence:** structured result schema, association with the + exact rehearsal, and the channel through which the local coordinator obtains + the job's result. Content verification runs inside the job. +- **Observation and recovery:** Woodpecker connection and credential-file + settings, attempt-record format and storage, resume/cleanup interfaces, and + observation timeout reporting. Interruption preserves the independently + running CI job; cleanup requires its completion to be established. +- **Tool selection:** the committed version-selection filename and format for + source-only repositories, consumed by both maintained launchers. +- **Version formats:** precise padding, date-validity, revision, and leading + prefix grammars for the selected formats, and their representation in CLI, + API, and stored evidence. -### Readiness interface and operation mapping - -Item 2 settles online verification by default with an offline option, selection -of profile-configured operations with explicit narrowing, local context by -default with explicit CI selection, setup-readiness scope, and reporting -behavior. Finalize command syntax, the profile-to-operation mapping, handling -of explicitly supplied artifacts, report representation, and exit-code mapping. -Keep the selected defaults and evidence boundaries consistent across these -interfaces. - -### Rehearsal interface and recovery - -The end-to-end Woodpecker scope in item 3 is decided. Finalize the command -syntax, diagnostic tag/source mapping and applicable module selection, -Woodpecker connection and credential-file settings, and attempt-record format. -Define how callers resume observation and cleanup, how interruption and observation timeouts are reported, and how the -coordinator obtains build evidence for remote artifact verification. Keep these -mechanics in ReleaseKit and its maintained workflow. - -### Source selection and versioning interfaces - -Item 4 settles the general source-release identity, source-only repository -support, Go module publication rules, supported calendar formats, caller-supplied -identifiers, and tag-prefix defaults and overrides. Finalize source-selection -and release-purpose fields, their relationship to existing module configuration, -installed-tool version selection, and exact format grammars, including padding -and numeric revision rules. Preserve the selected conventions across CLI, API, -and stored evidence. - -Source-only tagging, publication, hosted pages, readiness, recovery, and the -Woodpecker rehearsal are included in this release. Arbitrary non-Go builds, -packaging, and additional YAML/JSON validators remain separate scope decisions. +Prepare ADRs for general source identity with Go module publication and for +the lifecycle of diagnostic rehearsal resources before implementation. +Arbitrary non-Go builds, packaging, additional YAML/JSON validators, and +automatic CI cancellation remain outside this roadmap's selected scope.