Skip to content

Release/tag policy: single auditable publication boundary - #508

Merged
athNdev merged 6 commits into
mainfrom
codex/release-tag-policy
Nov 18, 2026
Merged

athNdev merged 6 commits into
mainfrom
codex/release-tag-policy

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the release/tag strategy in the existing scripts/release.py tool and
workflows (no second release framework).

  • A pushed v* or mod-* tag only stages, builds and verifies. Publication is an
    explicit workflow_dispatch with publish=true, gated by publication_allowed().
  • Phased publication: read-only preflight classifies each registry reference as
    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.
  • Aliases (MAJOR.MINOR, latest, module latest) 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.
  • RESUME requires an operator-supplied verified digest, exact tag→commit identity
    and a release manifest whose version, commit, revision and digest all match.
    Equal tag digests and platform counts alone are refused.
  • Module images use the exact parsed mod-vMAJOR.MINOR.PATCH ref and
    git show-ref --verify, never a glob existence check. Canonical Docker Hub and
    GHCR names are normalized without credentials.
  • ADR 0033 (central allocation) plus docs/knowledge concepts.

Verification

  • python3 -m unittest scripts.test_release scripts.test_go_mod_download — 44 tests OK.
  • Both workflows parse as YAML; job graph: image (staging) → publish-immutable
    → promote-aliases → publish.
  • go run ./cmd/knowledge-lint -root . -fix then without -fix: OK, 38/38 queries.
  • Fixture-only cases cover conflict, unknown registry error, identical/resume
    provenance (wrong commit/version/revision/digest), multi-arch verification,
    monotonic alias and old-version promotion.

Publication safety

  • No images pushed, no Git tags created/moved/deleted, no releases, no workflow
    dispatches, no registry or repository setting changes.
  • cd.yml and landing.yml are unchanged. Verified-main :edge and Pages
    side 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.

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.
@athNdev
athNdev marked this pull request as ready for review November 18, 2026 03:13
@athNdev
athNdev merged commit abbe96f into main Nov 18, 2026
26 checks passed
@athNdev
athNdev deleted the codex/release-tag-policy branch November 18, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant