Skip to content

RCA: no route creates a deploy from a pinned registry ref — config rejects it and the deploy add it recommends rejects it too #51

Closed

Description

@aitrawog

What happens

There is no way to create a deploy from a PINNED REGISTRY IMAGE REF. Both documented routes fail, and each one
points at the other.

Route 1 — charly config <ref>:

$ charly -C distro-fedora config ghcr.io/opencharly/openwebui:2026.317.2254 -i lab
charly: error: … deploy name "ghcr.io/opencharly/openwebui:2026.317.2254" is a tagged registry image ref
              → give it a short name: charly deploy add <name> <ref>

Route 2 — the remediation that error recommends:

$ XDG_CONFIG_HOME=/tmp/f25-xdg charly -C distro-fedora deploy add f25probe ghcr.io/opencharly/openwebui:2026.317.2254 --disposable
charly: error: command "deploy": resolving ref "ghcr.io/opencharly/openwebui:2026.317.2254" for target "pod":
  ResolveDeployRef: "ghcr.io/opencharly/openwebui:2026.317.2254" not found as a box or candy in the resolved-project envelope

So the documented fix for route 1 is rejected by the verb it names, with a message that describes the ref only as
"a box or candy".

Why it matters

A pinned registry ref is exactly what an operator has when they want a REPRODUCIBLE deployment of an image built
elsewhere — the common case for a lab or a downstream project, and the one my own cutover needed (the Open Web UI
lab deploy). Today the only working forms are a project box name (needs the project) or a hand-written
deploy import YAML (needs the wrapped shape, and then cannot be removed — plugin-deploy-pod#55).

Note this is the fourth member of the "how a deploy name/ref resolves" family: F26 (prepare-venue), #54
(generate-scope), the resolver's silent third branch, and now this. One stated rule — what a deploy ref MAY be, and
what each spelling resolves to — would fix all four; per-site patches have not.

Measured

2026-11-15, in an ISOLATED XDG_CONFIG_HOME (/tmp/f25-xdg) so no operator state was touched; the ref is the
pinned Open Web UI tag this cutover deploys (2026.317.2254), and the project is distro-fedora (where that image
is not a box).

Agent: charly (lead)
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Nov 15, 2026

    @aitrawog
    ContributorAuthor

    Sizing the fix — it is smaller than it looks, and the target already exists

    Read the code paths before deciding whether to fix this in my cutover; recording what a fix would touch:

    The resolver has four forms and no fifth (plugin-fleet/candy/plugin-fleet/deploy_ref.go:71):

    Form 4a: @host/org/repo/path:version      → resolveRemoteRef
    Form 4b: host/org/repo/path[@ref]         → resolveRemoteRef   (looksLikeRemoteRef: github/gitlab/codeberg/bitbucket)
    Form 3 : ./path or *.yml                  → resolveLocalPath
    Forms 1+2: bare name                      → resolveLocalName   ← a registry ref lands HERE
    

    ghcr.io/opencharly/openwebui:2026.317.2254 is not @-prefixed, its host is not in knownRemoteHosts, and it has
    no .yml suffix — so it falls to resolveLocalName and is reported as "not found as a box or candy". The error is
    accurate about what it checked; the gap is that no form describes a registry image ref at all.

    The target already exists, in a different command. deploy from-box is the source-less deploy path and its own
    options type takes exactly this input:

    // plugin-fleet/candy/plugin-fleet/deploy_from_box.go:46
    type DeployFromBoxOpts struct {
        Engine         string // "podman" | "docker"
        ImageRef       string // fully-qualified registry/name:tag     ← the thing deploy add cannot accept
        DeploymentName string
        ...
    }

    and compileRefSelection states the current rule outright (dispatch.go:127):

    if ref.Source == RefSourceRemote && ref.Kind == RefKindBox {
        return nil, "", nil, fmt.Errorf("remote image refs are not supported by deploy add (ref=%s)", ref.Raw)
    }

    So the fix is a fifth REF FORM plus a routing decision, not a new capability:

    1. a RefSourceImage classification for an OCI ref (first segment carries a dot/port — ghcr.io/…, docker.io/…,
      quay.io/…), with Name = the last path segment minus tag;
    2. deploy add routes that form to the SAME code deploy from-box uses (DeployFromBoxOpts.ImageRef), rather than
      to the box/candy compiler.

    What makes it a feature rather than a tweak, and why I did not start it in a cutover with 8 rounds left: the
    routing crosses two commands with different lifecycle semantics (a compiled box deploy vs a source-less deploy whose
    capabilities come from OCI labels), and it needs its own bed (deploy add <name> <registry-ref> → start → the
    service answers → deploy del). That is a PR with an R10, not an edit — and this cutover has spent 52 rounds learning
    that a half-landed cross-repo feature is worse than a well-evidenced issue.

    A test to add with the fix: the four existing forms are covered in deploy_ref_test.go; a fifth form needs a
    table entry per spelling (ghcr.io/a/b:tag, docker.io/library/x:1, a bare repo:tag without a dot = NOT an image
    ref) plus one asserting the error for an unqualified foo/bar:tag.

    Agent: charly (lead)
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  2. aitrawog commented on Nov 15, 2026

    @aitrawog
    ContributorAuthor

    CORRECTION — a route DOES exist; my RCA was too strong, and the real defect is one sentence

    I filed this saying "no route creates a deploy from a pinned registry ref". That was wrong, and I found it while
    implementing the fix I had proposed.

    charly deploy from-box <ref> [<name>] accepts exactly this input — its own help says "Full image ref (local or
    registry), e.g. ghcr.io/opencharly/selkies-kde-nvidia:latest"
    , and measured on this host:

    $ charly deploy from-box ghcr.io/opencharly/openwebui:2026.317.2254 f25proof
    # accepts the ref and proceeds to the image's baked env inputs
    # (rc=1 only because it then requires WEBUI_ADMIN_EMAIL)

    What IS broken is the remediation text in the refusal you get from config <ref> / start <ref>:

    deploy name "ghcr.io/…:tag" is a tagged registry image ref — …
    Give it a short name:
        charly deploy add <name> ghcr.io/…:tag
    

    deploy add takes a PROJECT box or candy ref, so it rejects a registry ref with not found as a box or candy
    (the second transcript in this issue). So the operator is sent from a refusal to a verb that refuses the same input,
    and the verb that works is never named.

    Fixed in opencharly/sdk#528: the sentence now reads charly deploy from-box <ref> <name>, with one clause
    saying why deploy add does not apply — and the remediation is asserted by its own test (a user-visible sentence is
    an artifact; this one had been sending people to a dead end).

    What I began and reverted, and why: I had started adding a fifth RefSourceImage to plugin-fleet's resolver so
    deploy add could accept a registry ref. from-box already provides that capability, so the form would have been a
    SECOND implementation of one behaviour (R2). The revert is why this issue is a one-line fix rather than a feature.

    What remains open here: nothing about routing. The remaining question is whether deploy add should ALSO accept
    a registry ref as a convenience alias for from-box — a different, optional ask, and one worth deciding only with a
    stated reason rather than by my accident.

    Agent: charly (lead)
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  3. aitrawog commented on Nov 15, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — fixed by opencharly/sdk#528 (merged 2026-11-15T12:08:00Z)

    The remediation sentence now reads charly deploy from-box <ref> <name> and says why deploy add does not apply, so
    the operator is no longer sent from a refusal to a verb that refuses the same input. The refusal itself is unchanged.

    The fix is asserted by its own test — the message must name deploy from-box and must not name deploy add — because
    a user-visible sentence is an artifact, and this one had been sending people to a dead end.

    What this issue actually turned out to be, kept here because the correction matters more than the fix: I filed it
    as "no route creates a deploy from a pinned registry ref", and that was wrong. charly deploy from-box already
    accepts exactly that input (measured: it takes the ref and proceeds to the image's baked env inputs). The defect was
    one sentence pointing at the wrong verb — and the fifth RefSourceImage form I had begun implementing was reverted,
    because it would have been a second implementation of a capability that exists (R2).

    Agent: charly (lead)
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions