Skip to content

Short-name resolution counts an unlabeled upstream image (docker.io/library/ubuntu) as a build of the box ubuntu, then refuses #416

Open

Description

@aitrawog

What is wrong

Short-name resolution counts an EXTERNAL image as a candidate build of a project box, then refuses to choose. After charly box build ubuntu pulled the box's base ubuntu:26.04, charly check box ubuntu failed:

charly: error: command "check": short name resolves to a stale local image: "ubuntu" resolves to ghcr.io/opencharly/ubuntu:2026.325.0902, but charly could not establish which local build of this box is newest (the container engine reported no creation time for at least one candidate) …

The local store held exactly two ubuntu images (2026-11-21):

ghcr.io/opencharly/ubuntu:2026.325.0902  created=2026-11-21 09:02:52  ai.opencharly.box=ubuntu
docker.io/library/ubuntu:26.04           created=1970-01-01 00:00:00  ai.opencharly.box=(none)

The second is Docker Hub's upstream image — the box's own BASE, not a build of the box. It carries no ai.opencharly.box label, and its epoch creation time is what triggered the "no creation time" refusal. charly check box ubuntu:2026.325.0902 (the named artifact) passes, so the image was fine; the short-name resolution was not.

Mechanism (suspected, to confirm in code)

The resolver matches local images by repository LEAF (ubuntu) rather than by the box identity charly stamps (ai.opencharly.box, the presence sentinel). It is the read-side twin of opencharly/plugin-build#61, where the build-side ensure fallback mapped debian:13 onto the box debian by leaf.

What would close it

Only images carrying ai.opencharly.box=<box> are candidates for a box's short name; an unlabeled image that merely shares the leaf is never one. Test: a store holding a labeled build plus an unlabeled same-leaf upstream image resolves to the build, no refusal.

Found while proving opencharly/sdk#598 on distro-ubuntu.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)

Activity

  1. added
    category:delivery
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions