Skip to content

Harden nightly sha reuse, pinned provenance and edge promotion - #520

Merged
athNdev merged 3 commits into
mainfrom
codex/nightly-policy-revision
Nov 18, 2026
Merged

athNdev merged 3 commits into
mainfrom
codex/nightly-policy-revision

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Focused follow-up to PR519 (merged as 3ad93e8)

No revert and no rewrite of the merged branch. Three correctness fixes only.

  1. Edge survives sha reuse. Buildx now writes ONLY the sha-<commit>
    reference; edge is moved by an explicitly gated, digest-based
    edge-promote step after immutable verification. Fixtures simulate both
    orders (nightly-then-edge and edge-then-nightly) at the same main commit and
    assert both aliases end at the verified digest, with repeat runs writing
    nothing.
  2. Provenance strengthened, not reworded. Sha reuse requires independent
    pinned-build evidence: exact successful CI for the pinned commit, the observed
    index digest matching the recorded digest, both linux/amd64 and
    linux/arm64 platform manifests, and a matching OCI revision on each. A bare
    expected digest is not evidence. Previous nightly identity is bound to the
    same evidence before the ancestry check.
  3. Fail-closed lookup classification. Only a definitive "manifest unknown"
    is absent; unauthorized/network/transient/generic 404 failures are unknown.
    An expected digest with a missing tag refuses, as stable releases do.

Verification

  • python3 -B -m unittest scripts.test_release -q — 64 tests OK
  • Workflow YAML parses for all four workflows; no schedule trigger, no implicit
    edge/nightly tag in buildx metadata.
  • go test ./cmd/knowledge-lint and go vet ./cmd/knowledge-lint pass.
  • knowledge-lint -root . -fix then final: OK, 38/38 queries. ADR 0033 already
    indexed; no new ADR introduced (orchestrator owns any future row).

Hard gates / scope

No registry image or alias push, workflow dispatch, Git tag/release, deployment,
infra setting or credential output. No change to latest, SemVer/minor/prerelease
or module semantics; amd64+arm64 preserved; defaults remain publication-free.

Actual live registry tags (parent re-verified 2026-11-18)

22 tags on atharvnaphade/carbonpanel: latest, 1.0, 1.0.40
(sha256:ead260ef33c9a9fa…), edge (sha256:4c772558cbcf…), and 18 sha-*
tags. Zero nightly/nightly-* tags.

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

Strict lookup classification refuses ambiguous registry errors. Sha reuse now
requires exact-commit CI, both platform manifests and matching OCI revisions;
a bare expected digest is not evidence. Edge is moved by an explicit digest-based
step so it survives sha reuse in either publication order.
Use real Buildx .Manifest index digests and digest-addressed .Image config labels
on both platforms; descriptor annotations are not evidence. Separate previous
edge binding avoids rejecting an existing edge. Resolve independent candidate and
previous evidence, accept definitive Buildx missing-tag output for first publish,
and add recorded real-shape and workflow CLI argument fixtures.
Evidence indexes and child configs are fetched by digest (repo@digest), never by
re-reading the mutable tag; the reported index digest must match the observed
digest. Strict not-found classification now matches the queried reference only.
@athNdev
athNdev merged commit d8597d4 into main Nov 18, 2026
25 checks passed
@athNdev
athNdev deleted the codex/nightly-policy-revision branch November 18, 2026 07:13
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