Repository navigation
Release/tag policy: single auditable publication boundary - #508
Merged
Merged
Conversation
A v* or mod-* tag now stages, builds and verifies only. Publication requires an explicit workflow_dispatch opt-in, an absent/conflict-classified preflight, an immutable version tag verified for digest and both architectures in both registries, then serialized monotonic alias promotion from that verified digest. RESUME additionally requires exact commit/version/digest provenance. Add ADR 0033 and deterministic fixture-only publication tests.
Ordinary main merges now only build and verify: Docker edge/sha publication and Pages deployment require a trusted main dispatch with an explicit opt-in and confirmed CI. The durable release record completes before alias movement; alias moves re-check each registry digest against durable version evidence and refuse on uncertainty. Add interruption/lag/retry and trusted-ref fixtures.
module-version now dispatches to the CLI info handler, with end-to-end CLI and workflow-arg fixtures. cd.yml and landing.yml gain read-only permissions and replace the operator CI checkbox with a read-only exact-commit ancestry and push-CI verification shared with the release guard. IndexNow deferral is exercised by a dispatch dry-run fixture.
The IndexNow URL selection moved to the shared release helper; assert its homepage/docs mappings and unrelated-path refusal directly instead of the removed shell case patterns.
…rency Manual dispatch now checks out the event SHA and workflow_run checks out the CI run's head SHA; full history is fetched and HEAD is asserted before any side-effecting step. Tags, labels and provenance use the pinned SHA. Opted-in publication uses a separate non-cancellable concurrency group from routine verification builds.
cd.yml publication uses the channel-wide cd-publish-edge group and landing.yml uses pages-deploy, both without a SHA and non-cancellable, while verification stays per-SHA and cancellable. Different commits can no longer race on the moving edge/Pages destinations or cancel an in-flight write.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the release/tag strategy in the existing
scripts/release.pytool andworkflows (no second release framework).
v*ormod-*tag only stages, builds and verifies. Publication is anexplicit
workflow_dispatchwithpublish=true, gated bypublication_allowed().absent / present / unknown; conflicts, unknown errors and partial states refuse.
Only the immutable full-version tag is pushed first, then tag→digest and both
Linux architectures are verified in Docker Hub and GHCR.
MAJOR.MINOR,latest, modulelatest) move only in separate,serialized, re-verified steps from the verified digest, monotonically against
published stable SemVer. Prereleases promote nothing; undeterminable channels
are omitted with a recorded reason.
and a release manifest whose version, commit, revision and digest all match.
Equal tag digests and platform counts alone are refused.
mod-vMAJOR.MINOR.PATCHref andgit show-ref --verify, never a glob existence check. Canonical Docker Hub andGHCR names are normalized without credentials.
Verification
python3 -m unittest scripts.test_release scripts.test_go_mod_download— 44 tests OK.image(staging) →publish-immutable→
promote-aliases→publish.go run ./cmd/knowledge-lint -root . -fixthen without-fix: OK, 38/38 queries.provenance (wrong commit/version/revision/digest), multi-arch verification,
monotonic alias and old-version promotion.
Publication safety
dispatches, no registry or repository setting changes.
cd.ymlandlanding.ymlare unchanged. Verified-main:edgeand Pagesside effects remain in view; a scoped publish-boundary opt-in is not in this
diff and needs release-auditor review before held product merges are unblocked.
Do not merge until independently reviewed and release-free CI is green.