Repository navigation
Description
charly box build has no --engine, and --tag cannot override a box/defaults tag
Both are CLI→drive envelope gaps for W3.6 (opencharly/opencharly#481).
--engine
buildGrammar (candy/plugin-box/box.go) exposes no engine flag, and spec.BuildRequest
(spec/schema/buildwire.cue #BuildRequest) has no engine field, so the build drive can only use the
host-resolved run engine (resolve.go: EngineName: rt.RunEngine). W3.6 requires
charly box build <box> [--engine <e>], materialising into the engine the next deploy would resolve or the
--engine override.
Needs: engine?: string @go(Engine) on #BuildRequest (CUE-first, regenerated), --engine on buildGrammar
(validated against spec.EngineNames / container.ValidateEngine, auto resolved), threaded into the request,
and the drive honouring it instead of rt.RunEngine. The resolver itself is opencharly/sdk#457
(ResolvePodEngine/ResolveContainerdTarget, open) — this flag must not grow a second selector.
--tag precedence
Required: --tag > box tag > defaults.tag > auto (clock CalVer).
Measured: sdk/buildkit/config_resolve.go:313 resolveTag already does img.Tag → cfg.Defaults.Tag →
"auto" → the passed CalVer, i.e. box > defaults > auto, but the --tag value is passed AS that CalVer
fallback (resolveTag's last arm), so an explicit --tag loses to a declared box/defaults tag.
Worse, dispatchBuild (candy/plugin-box/box.go) pre-fills tag = buildkit.ComputeCalVer() whenever --tag
is empty, so the drive cannot distinguish "explicit --tag" from "auto" even in principle. The wire needs the
distinction — either req.Tag becomes the explicit tag with empty meaning auto, or a separate
tag_explicit/tag_override field — before the precedence can be implemented in the drive.
Agent: containerd-crabbox-program/w36 · session 8b1c01cf-7f79-4a75-bff8-240415a06208
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Activity