Repository navigation
Add human-readable immutable Docker build aliases - #524
Merged
Merged
Conversation
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.
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 OSS-366 human-readable immutable UTC build aliases for Docker Hub
atharvnaphade/carbonpanel, using the completed read-only inventory.build-YYYY-MM-DD-HHMMSS— purely readable, no SHA or commitfragment. Timestamp is observed Hub
tag_last_pushed(fallbacklast_updated), truncated to whole UTC seconds. It is tag publicationtime, 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.publication time, tag-name tie-break, others retained). Distinct digests
sharing a readable base get stable
-2,-3, ... suffixes ordered by digesthex; the rank is recorded in the mapping. No collisions exist today (19
distinct timestamps).
scripts/docker_readable_aliases.pyrecomputes the checked-indocs/docker-readable-aliases.jsonexactly fromoriginal_sha_tags; bothhistorical backfill and future verified builds use the same mapper.
docker-readable-aliases.ymlis dispatch-only, requires trustedmain ref +
confirm=true+ read-only exact-commit CI verification, strictlyobserves 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 19sha images expose linux/amd64 + linux/arm64.
last_updated == tag_last_pushedfor 24/24; commit ids came from tag names, not git checkout verification; the
Hub
countfield was stale so enumeration used results; the OCI attestationdescriptor is not a listed platform.
The 19 aliases run from
build-2026-11-14-023420tobuild-2026-11-18-072553.Verification
python3 -B -m unittest scripts.test_docker_readable_aliases scripts.test_release -q— 78 tests OK (10 new)validateCLI: 19 aliases, exact recomputation;gatedry run returnspublish=falsewith exit 0--push/rebuildknowledge-lint -fixthen final: OK, 38/38 queriesHard 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.