2026-12-03 01:46:08 +00:00
|
|
|
|
# Next release proposals
|
|
|
|
|
|
|
|
|
|
|
|
## Status and purpose
|
|
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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
|
2026-12-05 19:13:45 +00:00
|
|
|
|
implementation or release gates.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
|
|
|
|
|
The objectives are to make local hosted delivery straightforward, expose useful
|
2026-12-05 17:12:12 +00:00
|
|
|
|
readiness diagnostics, rehearse the actual Woodpecker delivery workflow on demand,
|
2026-12-05 17:07:44 +00:00
|
|
|
|
and support release identifiers beyond stable Semantic Versioning. Keep routine
|
|
|
|
|
|
consumer configuration small and put reusable work behind ReleaseKit's existing
|
|
|
|
|
|
facades.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
|
|
|
|
|
## 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.
|
|
|
|
|
|
|
2026-12-05 17:07:44 +00:00
|
|
|
|
## 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:
|
|
|
|
|
|
|
|
|
|
|
|
```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.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
|
|
|
|
|
Keep loading in the CLI and pass the resolved token explicitly through
|
|
|
|
|
|
`DeliveryDestination`. The library remains independent of ambient credentials.
|
2026-12-05 17:07:44 +00:00
|
|
|
|
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.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
|
|
|
|
|
|
2026-12-03 01:46:08 +00:00
|
|
|
|
## 2. Add configuration and input readiness validation
|
|
|
|
|
|
|
2026-12-05 18:59:51 +00:00
|
|
|
|
Provide an optional setup-readiness diagnostic, provisionally named
|
|
|
|
|
|
`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.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 18:59:51 +00:00
|
|
|
|
### Operation and context selection
|
2026-12-05 17:07:44 +00:00
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 18:59:51 +00:00
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 18:59:51 +00:00
|
|
|
|
|
|
|
|
|
|
### Readiness scope
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
- 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.
|
2026-12-05 18:59:51 +00:00
|
|
|
|
- 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.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
It performs no publication, remote writes, or candidate checkout changes.
|
|
|
|
|
|
|
2026-12-05 18:59:51 +00:00
|
|
|
|
### 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. Exact command
|
2026-12-05 19:19:33 +00:00
|
|
|
|
syntax, configuration-field mapping for the selected operation defaults, and
|
|
|
|
|
|
report representation remain details for the implementation plan.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 17:12:12 +00:00
|
|
|
|
## 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 exact
|
|
|
|
|
|
command name and flags remain to be selected.
|
|
|
|
|
|
|
|
|
|
|
|
### Rehearsal flow
|
|
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
1. Select an exact committed source revision, source scope, and profile,
|
|
|
|
|
|
including the Go module when applicable. Check required local inputs and
|
2026-12-05 19:19:33 +00:00
|
|
|
|
record the intended diagnostic resources before the first write. Preserve
|
|
|
|
|
|
the workstation's branch, index, and worktree.
|
2026-12-05 17:12:12 +00:00
|
|
|
|
2. Create and push a uniquely named diagnostic tag, such as
|
|
|
|
|
|
`releasekit-test/<unique-id>`, 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
|
2026-12-05 19:13:45 +00:00
|
|
|
|
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.
|
2026-12-05 17:12:12 +00:00
|
|
|
|
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.
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 17:12:12 +00:00
|
|
|
|
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
|
2026-12-05 19:13:45 +00:00
|
|
|
|
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.
|
2026-12-05 17:12:12 +00:00
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
|
|
|
|
|
|
2026-12-05 17:12:12 +00:00
|
|
|
|
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.
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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
|
2026-12-05 17:12:12 +00:00
|
|
|
|
uncertain, retain recovery evidence and report cleanup as pending or unknown.
|
|
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 17:12:12 +00:00
|
|
|
|
|
|
|
|
|
|
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.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
## 4. Support general source-release identity and Go module publication
|
2026-12-05 19:06:57 +00:00
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 19:06:57 +00:00
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
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.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 19:13:45 +00:00
|
|
|
|
|
|
|
|
|
|
### 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
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 19:13:45 +00:00
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
2026-12-05 19:15:39 +00:00
|
|
|
|
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.
|
|
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
Go module publication retains semantic version validation, module-path major
|
2026-12-05 19:15:39 +00:00
|
|
|
|
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`.
|
2026-12-05 19:06:57 +00:00
|
|
|
|
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).
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
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.
|
2026-12-05 19:06:57 +00:00
|
|
|
|
|
|
|
|
|
|
### 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.
|
|
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
### Source tags and module scope
|
2026-12-05 19:06:57 +00:00
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
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.
|
2026-12-05 19:06:57 +00:00
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
| Selection | Source tag |
|
2026-12-05 19:06:57 +00:00
|
|
|
|
| --- | --- |
|
2026-12-05 19:13:45 +00:00
|
|
|
|
| Repository-root configuration source or Go application | `2026-12-05` |
|
|
|
|
|
|
| Go application module in `apps/editor` | `apps/editor/2026-12-05` |
|
2026-12-05 19:06:57 +00:00
|
|
|
|
| Explicit product prefix `editor` | `editor/2026-12-05` |
|
|
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
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.
|
2026-12-05 19:06:57 +00:00
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
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
|
2026-12-05 19:06:57 +00:00
|
|
|
|
saved evidence. Validate complete refs with Git's rules and review consumers
|
|
|
|
|
|
of the identity for filename and numeric-triple assumptions.
|
|
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
### Tool selection and complete workflow support
|
|
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-05 19:13:45 +00:00
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
2026-12-05 19:06:57 +00:00
|
|
|
|
### Implementation and adoption
|
|
|
|
|
|
|
2026-12-05 19:13:45 +00:00
|
|
|
|
Extend identity and source selection across all supported CLI and API operations,
|
|
|
|
|
|
including candidate checks, publication, hosted delivery, recovery, readiness,
|
|
|
|
|
|
and the Woodpecker rehearsal. Update CI tag dispatch, tool bootstrap, note
|
|
|
|
|
|
matching, and stored evidence for both module-backed and source-only profiles.
|
|
|
|
|
|
Keep existing SemVer integrations simple and document migration where public
|
|
|
|
|
|
or stored contracts change. Record the general source-release and Go module
|
|
|
|
|
|
identity decision in an ADR; finalize format grammars and configuration fields
|
|
|
|
|
|
through the implementation design.
|
2026-12-05 19:06:57 +00:00
|
|
|
|
|
|
|
|
|
|
ReleaseKit's own release policy continues to select SemVer. Consumer support
|
2026-12-05 19:13:45 +00:00
|
|
|
|
for other source-product formats leaves that policy unchanged.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
|
|
|
|
|
## Work outline and regression coverage
|
|
|
|
|
|
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
2026-12-03 01:46:08 +00:00
|
|
|
|
|
2026-12-05 17:07:44 +00:00
|
|
|
|
Regression coverage should address local file loading with workstation token
|
|
|
|
|
|
variables absent or set to conflicting values; CI variable loading with the
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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
|
2026-12-05 18:59:51 +00:00
|
|
|
|
independent failures, skipped dependent checks, and unsuccessful outcomes for
|
|
|
|
|
|
selected checks that cannot complete. Cover agent-based Git authentication;
|
2026-12-05 17:07:44 +00:00
|
|
|
|
diagnostic collisions, partial creation, lost acknowledgments, cancellation,
|
2026-12-05 17:12:12 +00:00
|
|
|
|
and cleanup failures. Exercise exact pipeline correlation, missing or skipped
|
|
|
|
|
|
delivery jobs, build failures, missing or mismatched artifacts, and cleanup
|
2026-12-05 19:19:33 +00:00
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
## Details to finalize in the implementation plan
|
|
|
|
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
- **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.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|