Repository navigation
fix(deploykit): point a registry-image ref at the verb that works - #528
Conversation
`RejectImageRefAsDeployName` refuses a tagged registry image ref used as a
deploy name, and its remediation said:
charly deploy add <name> ghcr.io/org/name:tag
which cannot work: `deploy add` takes a PROJECT box or candy ref, so a registry
ref fails there with "not found as a box or candy" -- measured on
opencharly/plugin-fleet#51. The operator therefore hit a second failure by
following the first error's advice.
The route that exists is `charly deploy from-box <ref> [<name>]`, whose own help
says "Full image ref (local or registry)". 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 for the required WEBUI_ADMIN_EMAIL it asked for)
So the fix is the SENTENCE: name `deploy from-box`, and say why `deploy add`
does not apply. The refusal itself is unchanged.
The remediation is asserted by its own test -- a user-visible sentence is an
artifact, and this one had been sending people to a dead end.
Refs opencharly/plugin-fleet#51
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — message-only change plus a test; no scope mismatch, no secrets/egress, no guardrail weakening, no new deps. Non-blocking note (rulebook gap, not a block): the checklist's "How tested" wording assumes a bed/disposable target for every code change; for an SDK library whose gate is Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
RejectImageRefAsDeployNamecorrectly refuses a tagged registry image ref used as a deploy name, and itsremediation then sent the operator to a verb that cannot work:
deploy addtakes a project box or candy ref, so a registry image ref fails there withnot found as a box or candy— measured on opencharly/plugin-fleet#51. The operator's first error therefore costthem a second one.
The route that exists is
charly deploy from-box <ref> [<name>], whose own help reads "Full image ref (local orregistry)". Measured on this host:
So the defect is the SENTENCE, and this PR fixes the sentence — the refusal itself is unchanged, and the message
now names
deploy from-boxwhile saying whydeploy adddoes not apply.How tested
Head
f933a79(fix/image-ref-remediationoff freshorigin/main).The remediation is asserted by its own test, because a user-visible sentence is an artifact and this one had been
sending people to a dead end:
TestRejectImageRefAsDeployName_NamesTheWorkingVerb— the message containscharly deploy from-box <the ref>anddoes NOT contain
charly deploy add;TestRejectImageRefAsDeployName_LeavesNamesAlone— a plain name, a bare name with a tag (fedora:43) and agithub repo ref (which pins with
@version) are still NOT rejected.The live
deploy from-boxmeasurement above is the finding that made this a one-line fix instead of a new refform: I had started implementing a fifth
RefSourceImagein plugin-fleet, reverted it when thefrom-boxhelpline showed the capability already exists (R2 — one implementation per behaviour, and mine would have been a
duplicate), and confirmed it by running the verb.
Rulebook compliance
git-workflow,root-cause-analyzer,deploy/local-deploycontext loaded before acting.RefSourceImage+ a resolver form) was REVERTED rather thanshipped beside
from-box.the
charlybinary.origin/main, one appended commit, message via-F, no force-push.from-boxmeasurement is a real invocation, not a mock.go test ./deploykit/green on the committed tree; this is a message, so no bedapplies and none is claimed.
Change classification
Error-text only. No API, schema or behaviour change: the same inputs are refused, the refusal now names the verb
that works. Consumers see a better sentence and nothing else. Rollback is the single commit.
Filed issues
to "the route exists and the message points elsewhere".
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)