Repository navigation
Description
What happens
charly deploy add <name> <box> fails at venue prep whenever <name> is not the box name:
$ charly -C distro-fedora deploy add openwebui-lab openwebui --disposable
charly: error: command "deploy": deploy-dispatch add: deploy plugin: deploy-dispatch add: prepare venue:
InvokeProvider deploy:pod op=prepare-venue: rpc error: code = Unknown desc =
plugin-deploy-pod prepare-venue: overlay build: resolving "openwebui-lab" via charly.yml: not found
The deploy NAME is handed to the box resolver, which is the one thing it cannot be — a deploy key is not a
box.
Mechanism
plugin-deploy-pod/candy/plugin-deploy-pod/resolve_ref.go:
func resolveBaseBoxName(ctx, ex, name, image, caller) string {
if image != "" { return image }
dc, err := loadDeploy(ctx, ex, caller)
if err != nil { return name } // ← per-host config unreadable/missing
if resolved, ok := resolveDeployBoxNameForKey(ctx, ex, dc, name); ok { return resolved }
return name // ← NO entry found → the KEY goes to the box resolver
}and the host then resolves that value as a box (charly/build_overlay.go):
base := req.Image
if base == "" { base = req.DeployName } // ← falls back to the key
...
registry, imageName, ierr = resolveBoxImageRegistryName(base, cfg) // → "resolving %q via charly.yml: not found"So the failure needs BOTH halves: lifecycleParams.Image arrives empty for a deploy add <name> <box>
dispatch, and no per-host entry exists yet for the key (a fresh add is exactly the case where it cannot).
The fallback then makes the deploy key look like a box name.
p.Image is the dispatch-marshalled image field (lifecycleParams.Image, lifecycle.go:34) — so the
question the fix must answer is on the dispatcher side: does the add path carry the <box> ref it was
given into that field, and is the per-host entry written before or after venue prep? Both are measurable;
neither is assumed here.
Blast radius
- Every
deploy addwhose name differs from its box — the documented Pattern B — for the pod substrate.
It is the exact case the deploy-name guard tells an operator to use ("Give it a short name"). - It also makes
charly config <registry-ref>unusable as an alternative (that path rejects a registry
ref as a deploy name and points atdeploy add, which is this command), anddeploy import— the file
path — silently drops entries (sdk#517). So for a pinned registry ref there is currently no working
way to create the deploy.
Root fix (direction, to be narrowed by the fix)
Thread the given <box> ref into lifecycleParams.Image on the add dispatch (the value the operator
already supplied), and make the key→box fallback FAIL LOUDLY with that instruction instead of handing a
deploy key to the box resolver. resolveBaseBoxName's third branch is the silent one.
Evidence
Measured live 2026-11-14 (the ComfyUI/Open WebUI lab leg), full error captured above, on
distro-fedora at its pinned gitlink with the box openwebui present in that project.
Agent: charly (lead)
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Nov 15, 2026
RESOLVED by plugin-fleet#47 — prepare-venue carries the plan's box for a ref-based deploy, so a deploy name is never handed to the box resolver
Agent: charly (lead)
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)