Skip to content

Bounded nightly channel policy with pre-write sha verification - #519

Merged
athNdev merged 1 commit into
mainfrom
codex/nightly-channel-policy
Nov 18, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/nightly-channel-policy

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a bounded, explicit nightly development channel reusing the existing
release/developer machinery in scripts/release.py and cd.yml. No second
release framework, no new immutable image identity, no stable release/Git tag.

  • nightly points to the most recent qualifying build of a pinned main commit
    with exact successful CI, reusing the verified sha-<full-commit> image
    (linux/amd64 + linux/arm64). No date alias, no new digest, no GHCR nightly.
  • Both edge and nightly writers now preflight the shared sha tag before any
    build or push: absent → build; present and verified against the expected
    digest with both platforms → reuse with no redundant push; conflict or
    unknown lookup → refuse with zero buildx pushes and zero alias moves.
  • Nightly ancestry is bound to the observed alias digest through a verified
    sha-<previous-commit> reference; an operator string alone is never trusted.
    Repeated promotions at the same digest are idempotent.
  • Nightly never moves latest, a stable minor tag, or edge. Publication uses
    the existing fixed, non-cancellable channel concurrency group; verification
    builds remain per-SHA and cancellable. No scheduled write is added.

Reconciliation (read-only, parent-verified 2026-11-18)

Live Docker Hub atharvnaphade/carbonpanel: 22 tags — latest, 1.0,
1.0.40 (all sha256:ead260ef33c9a9fa…), edge and 18 sha-* tags.
No nightly or nightly-* tag is live. edge points at
sha-c15b8d7d… / sha256:4c772558cbcf…, which predates current main; it is
not relabelled as a nightly. No in-repo consumer pins a nightly tag. Counts
match release-tag-strategy/registry-downstream-inventory.md and
git-tag-inventory.md.

Verification

  • python3 -B -m unittest scripts.test_release -q — 62 tests OK (8 new
    offline nightly fixtures: exact-CI/pinned source, missing opt-in, failed CI,
    sha reuse/conflict/unknown with zero writes, identity binding, bound stale/
    repeated promotion, stable-alias isolation, workflow wiring + verification-only).
  • Workflow YAML parses for cd.yml, release.yml, modules.yml, landing.yml.
  • go test ./cmd/knowledge-lint and go vet ./cmd/knowledge-lint pass; no Go
    source was changed.
  • knowledge-lint -root . -fix then final: OK, 38/38 queries.

Hard gates respected

No registry image or alias push, no publisher dispatch, no Git tag/release
creation or removal, no deployment, no registry setting change, no credential
output. All fixtures are offline with injected observers/runners.

Next action (separately authorized)

After review/CI: from a qualifying main commit with green exact-commit CI,
dispatch Docker Hub CD on refs/heads/main with nightly=true (and
expected_sha_digest if the sha tag already exists). This publishes the
verified sha-<commit> image and moves only nightly. The same-account Docker
Hub PAT already needs push access to atharvnaphade/carbonpanel (the CD
credential probe enforces this); no new registry surface or infrastructure
setting is requested. No edge/latest/stable alias is moved.

Do not merge until independent review and release-free CI are green.

Nightly reuses the verified sha-<commit> image and moves only the nightly alias
under an explicit trusted-main dispatch with exact CI. Both edge and nightly
writers preflight the shared sha tag before any build/push and reuse a verified
image; conflicts and unknown lookups refuse with zero writes. Nightly ancestry
is bound to the observed alias digest through a verified sha reference.
@athNdev
athNdev merged commit 3ad93e8 into main Nov 18, 2026
25 checks passed
@athNdev
athNdev deleted the codex/nightly-channel-policy branch November 18, 2026 06:26
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