2026-12-05 22:03:34 +00:00
|
|
|
# Readiness validation
|
|
|
|
|
|
|
|
|
|
`releasekit validate` inspects the working profile and source inputs before a
|
|
|
|
|
release candidate is ready. It does not run product checks, build, download
|
|
|
|
|
dependencies, change the checkout, or write to a remote. It does not require a
|
|
|
|
|
version or release note. Its results are optional setup evidence, not a release
|
|
|
|
|
gate or proof of later write permission.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
releasekit validate
|
|
|
|
|
releasekit validate --context ci --operation delivery --json
|
|
|
|
|
releasekit validate --offline --operation publication
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
By default, the command selects publication, configured Go and build work, and
|
|
|
|
|
delivery when declared. Repeated `--operation` flags select only the named
|
|
|
|
|
operations: `publication`, `go`, `build`, `delivery`, and `rehearsal`.
|
|
|
|
|
Rehearsal is explicit. The selected `local` or `ci` context controls credential
|
|
|
|
|
loading independently of network scope. Online validation reads authoritative
|
|
|
|
|
Git `main` from the effective push endpoint and performs hosted delivery
|
|
|
|
|
preflight. Offline mode omits those remote reads and identifies the omitted
|
|
|
|
|
checks. Local publication readiness also checks Git's configured tagger
|
|
|
|
|
identity. Native Git and SSH authentication remain in use; no conventional
|
|
|
|
|
private-key filename is required.
|
|
|
|
|
|
2026-12-05 22:52:46 +00:00
|
|
|
Rehearsal readiness also checks read access to the configured Woodpecker
|
|
|
|
|
repository using the separate local Woodpecker token file. Offline validation
|
|
|
|
|
checks the local settings but leaves that remote observation unchecked; it
|
|
|
|
|
does not read or register CI job secrets.
|
|
|
|
|
|
2026-12-05 22:03:34 +00:00
|
|
|
To require a specific local input, list it in `readiness.required_files` in the
|
|
|
|
|
profile. Paths are literal repository-root-relative or absolute filenames. This
|
|
|
|
|
checks readability, not Git authentication. `--assets DIR` selects an existing
|
|
|
|
|
build receipt and artifacts for identity and digest checks; delivery must be
|
|
|
|
|
selected. Build outputs are otherwise not required to exist. Dependency-cache
|
|
|
|
|
completeness and actual build execution remain unchecked.
|
2026-12-06 03:26:00 +00:00
|
|
|
Go package patterns and external package inputs report resolution as unchecked;
|
|
|
|
|
literal local package directories retain their input checks.
|
2026-12-05 22:03:34 +00:00
|
|
|
|
|
|
|
|
JSON output is one document with `schema_version: 1`, `command: "validate"`,
|
|
|
|
|
the working-input scope, selected operations, context, safe credential sources,
|
|
|
|
|
destinations, and ordered check results. Check statuses are `passed`, `failed`,
|
|
|
|
|
`skipped`, and `unchecked`; reasons distinguish configuration, input, remote,
|
|
|
|
|
dependency, offline, and unexecuted evidence. A selected failed or incomplete
|
|
|
|
|
check makes the command unsuccessful; an offline omission alone does not. Status
|
|
|
|
|
2 reports usage, configuration, or required-input errors; status 1 reports
|
|
|
|
|
other failures, cancellation, or output failure. Actual CI secret injection
|
|
|
|
|
requires a job or rehearsal result and is not established by local readiness.
|
2026-12-05 23:48:37 +00:00
|
|
|
See the [rehearsal guide](rehearsal.md) for that separate live diagnostic.
|
2026-12-05 22:03:34 +00:00
|
|
|
|
|
|
|
|
The Go facade's `Validate` accepts explicit selections and tokens and returns a
|
|
|
|
|
`ValidationReport` with a `ReadinessError` when selected checks fail. The CLI
|
|
|
|
|
loads its own credentials; the library does not load ambient tokens.
|