Files
releasekit/docs/consumers/readiness.md

3.0 KiB

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.

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.

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.

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. Go package patterns and external package inputs report resolution as unchecked; literal local package directories retain their input checks.

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. See the rehearsal guide for that separate live diagnostic.

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.