Skip to content

Add human-readable immutable Docker build aliases - #524

Merged
athNdev merged 3 commits into
mainfrom
codex/docker-readable-aliases
Nov 18, 2026
Merged

athNdev merged 3 commits into
mainfrom
codex/docker-readable-aliases

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

Implements OSS-366 human-readable immutable UTC build aliases for Docker Hub
atharvnaphade/carbonpanel, using the completed read-only inventory.

  • Naming: build-YYYY-MM-DD-HHMMSS — purely readable, no SHA or commit
    fragment. Timestamp is observed Hub tag_last_pushed (fallback
    last_updated), truncated to whole UTC seconds. It is tag publication
    time
    , not a verified build time; re-pushing a tag can change it. Full commit
    identity stays in the mapping and the retained original sha-<40hex> ref.
  • Collision handling: one alias per distinct digest (canonical = earliest
    publication time, tag-name tie-break, others retained). Distinct digests
    sharing a readable base get stable -2, -3, ... suffixes ordered by digest
    hex; the rank is recorded in the mapping. No collisions exist today (19
    distinct timestamps).
  • Mapper: scripts/docker_readable_aliases.py recomputes the checked-in
    docs/docker-readable-aliases.json exactly from original_sha_tags; both
    historical backfill and future verified builds use the same mapper.
  • Workflow: docker-readable-aliases.yml is dispatch-only, requires trusted
    main ref + confirm=true + read-only exact-commit CI verification, strictly
    observes source sha refs and target aliases, is idempotent on a matching
    alias, and refuses conflict/unknown observations with zero writes. It adds
    only missing aliases with imagetools create --tag <alias> <repo>@<digest> —
    no rebuild, platform change, channel/release move or GitHub release.

Reconciled inventory

24 tags: 19 sha-*, 5 channel/release (latest, edge, nightly, 1.0,
1.0.40). 19 distinct digests, zero collision groups today, 19 aliases. All 19
sha images expose linux/amd64 + linux/arm64. last_updated == tag_last_pushed
for 24/24; commit ids came from tag names, not git checkout verification; the
Hub count field was stale so enumeration used results; the OCI attestation
descriptor is not a listed platform.

The 19 aliases run from build-2026-11-14-023420 to
build-2026-11-18-072553.

Verification

  • python3 -B -m unittest scripts.test_docker_readable_aliases scripts.test_release -q — 78 tests OK (10 new)
  • validate CLI: 19 aliases, exact recomputation; gate dry run returns publish=false with exit 0
  • All 13 workflow YAML files parse; workflow contract test asserts dispatch-only, no --push/rebuild
  • knowledge-lint -fix then final: OK, 38/38 queries

Hard gates / next step

No registry write, image push, deletion, release, dispatch, credential output or
backfill execution. The external inventory JSON/MD were updated to the new
scheme. ADR 0034 was added; orchestrator owns the knowledge index row. The
actual backfill is a separate authorized dispatch after reviewed merge and
verified main CI.

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

Add a recomputable mapper for build-<UTC>-<short-commit> aliases at exact
existing digests, offline collision/idempotence/conflict fixtures, and a
dispatch-only trusted-main workflow that adds aliases with imagetools create
and no rebuild or channel alias moves. Publish the 19-alias mapping, provenance
limits and backfill evidence placeholder.
Replace the SHA-suffixed alias scheme with build-YYYY-MM-DD-HHMMSS, sourced from
tag_last_pushed (fallback last_updated) and documented as tag publication time,
not build time. Reserve stable -2/-3 suffixes for distinct digests sharing a
readable base; regenerate all 19 aliases and the external inventory.
MCP distribution owns ADR 0034 on main; this decision uses 0039. Fix
docs/releases.md to describe the pure build-YYYY-MM-DD-HHMMSS scheme with no
commit fragment, and update the knowledge reference.
@athNdev
athNdev merged commit 2120bff into main Nov 18, 2026
13 checks passed
@athNdev
athNdev deleted the codex/docker-readable-aliases branch November 18, 2026 08:50
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