Record readiness validation decisions

This commit is contained in:
2026-12-05 18:59:51 +00:00
parent eed068bd22
commit ba73721d51

View File

@@ -5,8 +5,9 @@
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 and an end-to-end Woodpecker delivery
rehearsal are adopted as the planned direction; implementation is pending.
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.
The objectives are to make local hosted delivery straightforward, expose useful
@@ -108,50 +109,72 @@ both declarations; consumers maintain their paths and secret references.
## 2. Add configuration and input readiness validation
Consider `releasekit validate` as a diagnostic command that loads the selected
profile, validates its semantics, and checks inputs needed for the selected
operations. It should distinguish malformed configuration, unavailable local
inputs, and remote verification failures. Its report should identify both what
was checked and the limits of that evidence.
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.
Use the same explicit local or CI context and credential resolver as delivery.
Default workstation diagnostics to local context and provide an explicit CI
context selection for invocation inside the delivery job. Keep execution
context separate from network use: local-context validation can contact the
forge, and CI-context validation can perform offline checks.
### Operation and context selection
Recommended scope:
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 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 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 module selection,
build settings, delivery destination, and publication endpoint expectations.
- For local delivery, check the selected file's availability, readability, and
nonblank content. For CI delivery, check the named variable in the running
job's environment. Credential requirements apply to the selected operation
and context; source publication retains its independent Git authentication.
- Report the context, selected credential source, destination, and checks
completed, with secret values omitted. A workstation check can inspect a CI
declaration, but verification of injected credentials requires execution
inside the CI job. Mark that evidence as unverified when it is unavailable.
- Check declared inputs for the requested preparation stage. Configuration
readiness can precede generated artifacts; delivery using existing artifacts
checks their availability. Report missing required inputs as errors.
- Use native Git and SSH configuration for Git authentication. SSH agents,
hardware-backed keys, custom commands, and HTTPS credentials are viable inputs;
the existence of a conventional private-key file is not universal evidence of
readiness. Check an explicitly selected key file when applicable and describe
other authentication checks in terms of the operation actually exercised.
- Separate local checks from optional network verification. Online verification
can reuse hosted preflight and native Git reads. A successful read establishes
read access; write access requires the live exercise described below.
- Keep this command independent of the candidate test suite. It can run while
preparing a release, before a version-matched note or final candidate exists.
- 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.
Share validation and credential resolution with execution paths so diagnostics
do not become a second implementation. Actual operations continue checking their
requirements when run. `validate` is an optional convenience and adds no required
pre-release invocation. Exact operation selection and network defaults remain
open below.
### 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
syntax, profile-to-operation mapping, and report representation remain design
details to finalize.
## 3. Rehearse the end-to-end Woodpecker delivery workflow
@@ -311,8 +334,12 @@ 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 offline
versus online validation in each context and agent-based Git authentication;
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
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
@@ -334,18 +361,15 @@ profile and provide actionable migration diagnostics. The illustrated
`RELEASEKIT_DELIVERY_TOKEN` name requires coordinated workflow and profile
updates if adopted.
### Readiness selection and network use
### Readiness interface and operation mapping
**Recommendation:** Default `validate` to offline checks for the operations
declared by the profile in the selected local or CI context, with explicit
operation selection and online verification available. This supports offline
preparation and narrower CI contexts. Report unchecked remote access and CI
credential injection that has not been verified inside a job.
**Alternative:** Verify configured remote access by default, with an offline
option. This gives stronger immediate readiness evidence but makes a routine
configuration check depend on service availability and credentials for every
selected remote operation.
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