diff --git a/docs/roadmap/next-release.md b/docs/roadmap/next-release.md index 9468376..6b10f7f 100644 --- a/docs/roadmap/next-release.md +++ b/docs/roadmap/next-release.md @@ -6,9 +6,11 @@ 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; -implementation is pending. -This document adds no implementation or release gates. +end-to-end Woodpecker delivery rehearsal are adopted as the planned direction. +The release-purpose distinction, calendar formats, caller-selected identifiers, +and application tag conventions in item 4 are also adopted. Implementation is +pending; support for repositories without Go modules remains open. 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, @@ -272,44 +274,90 @@ 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 additional versioning schemes +## 4. Support application and Go module release identities -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). +Separate release purpose from version format. Preserve today's Go module +release behavior for profiles that omit the new selection. Application +releases can use SemVer or the selected calendar formats. -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. +### Release purpose and Go distribution -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 +A Go module release retains semantic version validation, module-path major +compatibility, and Go-specific tag derivation. These constraints also matter +for executables distributed through versioned Go installation commands. +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). -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. +An application release uses an application identifier while retaining a selected +Go module for builds and validation when releasing a Go application. Its +application tag makes no claim to publish a Go module version. One source +revision can have separate, explicitly identified application and Go module +releases. Coordinated publication of both identities requires a separate +consumer need. -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. +Support for repositories without Go modules remains an open scope decision. +The Go application model described here establishes the agreed module-backed +behavior; further discussion will determine the additional source, validation, +build, and tool-selection conventions needed for other repositories. + +### 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. + +### Application tags and module scope + +Retain module-scoped builds and validation for Go applications. Default the +application tag prefix to the selected module's repository-relative directory, +with an explicit override for product naming: + +| Selection | Application tag | +| --- | --- | +| Repository-root module | `2026-12-05` | +| Module in `apps/editor` | `apps/editor/2026-12-05` | +| Explicit product prefix `editor` | `editor/2026-12-05` | + +Application tag derivation uses the selected physical directory by default, +including a physical `/vN` directory when present. Go module releases retain +Go's major-version directory and tag-prefix rules. The application version +does not determine the selected module's import-path major version. + +Resolve release purpose, version format, selected identifier, module selection, +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. + +### Implementation and adoption + +Extend identity handling across all supported operations, including the +Woodpecker rehearsal, CI tag dispatch, selected-tool bootstrap, note matching, +and stored evidence. Keep existing SemVer integrations simple and document +migration where public or stored contracts change. Record the release-purpose +and module-identity decision in an ADR; finalize exact format grammars and +configuration fields through the implementation design. + +ReleaseKit's own release policy continues to select SemVer. Consumer support +for application formats leaves that policy unchanged. ## Work outline and regression coverage @@ -345,9 +393,11 @@ 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 and identity consistency across operations and stored -formats. Use temporary Git remotes and local HTTP fixtures for Woodpecker and -forge behavior in the default suite. Live rehearsals stay explicitly opt-in. +version/date boundaries, revision and leading-prefix conventions, application +versus module tag derivation, physical major-version directories, and explicit +application prefix overrides. 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 @@ -380,18 +430,15 @@ 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. -### Version formats and Go module identity +### Versioning interfaces and repositories without Go modules -**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. +Item 4 settles the release-purpose distinction, supported calendar formats, +caller-supplied identifiers, and application tag-prefix defaults and overrides. +Finalize configuration fields and exact format grammars, including padding +and numeric revision rules, while preserving those selected conventions. -**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. +Support for repositories without Go modules remains undecided. Discuss whether +this release includes source-only or externally built non-Go applications and, +if so, their source selection, validation, build ownership, and ReleaseKit tool +bootstrap. Keeping this release focused on Go applications and modules remains +an alternative for discussion, rather than an adopted scope limit.