Repository navigation
Description
What
The W3.1 selection model (sdk/deploykit: ResolvePodEngine, ResolveVmBackend, ResolveContainerdTarget) cannot implement the plan's one precedence rule — flag > deploy entity > env > settings file > built-in default — against the current contract, and cannot validate the VM-backend vocabulary without word literals. Three consumer surfaces are absent:
- No per-deploy
rootful:—spec.DeployhasEngine,BackendandNamespace, but no rootful field. - No
containerd.namespacesettings key —hostenv.RuntimeConfighasengine.run,engine.rootfulandvm.backend, but no containerd/namespace section, andResolvedRuntimecarries no namespace. - No emitted VM-backend vocabulary —
#VmBackendis a closed CUE union, butschemagenemits nospec.VmBackends(contrast#EngineName→spec.EngineNames).
This is the spec producer leg that must land before sdk W3.1 (the plan's own rule: a spec change is a separate producer leg and goes first).
Evidence (measured 2026-10-23, opencharly/spec origin/main = 3099d05, released pin v0.2026295.2356)
1. Deploy entity has no rootful
$ git -C spec show origin/main:schema/deploy.cue | grep -c rootful
0
$ grep -n 'Engine EngineName\|Backend VmBackend\|Namespace string' \
/home/atrawog/go/pkg/mod/github.com/opencharly/[email protected]/spec/cue_types_gen.go | sed -n '1,6p'
4581: Engine EngineName `yaml:"engine,omitempty" json:"engine,omitempty"`
4587: Backend VmBackend `yaml:"backend,omitempty" json:"backend,omitempty"`
4591: Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"`
DeployConfig.Deploy is map[string]DeployNode (= spec.Deploy), so the persisted deploy entity and the per-host overlay entry have the same three fields and no rootful either (spec/deploy_config.go:34). The plan's table (W3.1) names rootful: as a per-deploy entity field with engine.rootful / CHARLY_ENGINE_ROOTFUL as its lower levels and auto | machine | sudo | native as its values; only the lower levels exist.
2. No namespace settings source
$ git -C spec show origin/main:hostenv/runtime_config.go | grep -in 'namespace\|containerd'
(no output)
$ grep -n 'valid:' plugin-settings/candy/plugin-settings/config.go
269: ... engine.run, engine.rootful, run_mode, ... vm.image_dir, vnc.password.<image>
The plan names containerd.namespace as the settings key (default default, no env var). Neither hostenv.RuntimeConfig, hostenv.ResolvedRuntime, nor plugin-settings has it. spec#265 item 5 said namespace resolution is "deploy > config > default" — the config arm does not exist.
3. No VM-backend vocabulary emitted
$ grep -rn 'VmBackends' /home/atrawog/go/pkg/mod/github.com/opencharly/[email protected]/spec | wc -l
0
$ git -C spec show origin/main:internal/schemagen/main.go | grep -n 'enumValues(schema'
205: contexts ...
213: engineNames, err := enumValues(schema, "#EngineName")
221: engineRunModes, err := enumValues(schema, "#EngineRunMode")
#VmBackend generates only type VmBackend string (spec/cue_types_gen.go:4786). A resolver that validates the --backend flag, CHARLY_VM_BACKEND, or vm.backend against the closed union — without spelling "libvirt"/"qemu"/"krun" in code — has no Go source for the vocabulary. #EngineName has spec.EngineNames; #VmBackend has no equivalent.
Why this blocks W3.1
ResolveContainerdTarget'srootfulprecedence loses its deploy-entity level; itsnamespaceprecedence loses its settings-file level. Implementing either by dropping a level silently would make the resolver's central claim false.ResolveVmBackendcannot reject a typo in the flag/env/settings value without word literals, and the brief forbids literals for exactly this vocabulary.ResolvePodEnginealone is implementable today (spec.EngineNames,#EngineBinaries, the capability row, andspec.Deploy.Engineall exist); the other two are not.
RCA
- Mechanism: spec#265 scoped the producer leg to the CUE vocabulary and the
#Deploy.backend/.namespacefields. Its acceptance list never asserted the consumer-side selection surfaces (deploy rootful, namespace settings) or the generated VM-backend vocabulary, and the plan table atW3.1was not reconciled against the generated Go types. - Missed control: spec#265's acceptance only exercised schema acceptance/rejection; no check asserted that every W3.1 precedence level has a schema-owned source.
- Blast radius:
sdkW3.1 (all three resolvers), W3.7 (the image resolver consumesResolveContainerdTarget), and every per-deploy selection consumer (plugin-deploy-pod,plugin-pod,plugin-fleet, the VM launch path). - Root fix: add the three surfaces in CUE/Go here, regenerate, then bump
sdkand implement W3.1.
Proposed shape (needs operator sign-off — this is a schema contract)
#RootfulMode: ("auto" | "machine" | "sudo" | "native")(the exact vocabularyplugin-settingsalready accepts forengine.rootful), androotful?: #RootfulModeon#Deploy, admitted only where#DeployTraits.selectorsincludesrootful(the existing data-driven selector mechanism).- A contained settings surface:
RuntimeConfig.Containerd.Namespace(defaultdefault), resolved intoResolvedRuntime.Namespace;plugin-settingsgains thecontainerd.namespacekey as the consumer leg. #VmBackendName: ("libvirt" | "qemu" | "krun")with#VmBackend: *"auto" | #VmBackendName;schemagenemitsspec.VmBackendsfrom#VmBackendName(the provider words only —autostays a selector, mirroring#EngineName).
Alternative for (1)/(2), if per-deploy rootful is not wanted: say so explicitly, and W3.1 will implement only the levels that exist — but then the plan table at W3.1 must be corrected in the same wave.
Acceptance
grep -c rootful schema/deploy.cue> 0 and the generatedspec.DeployhasRootful.RuntimeConfig/ResolvedRuntimeexpose the namespace setting and its resolved value.spec.VmBackendsis emitted; a drift test asserts it equals#VmBackendNameand excludesauto.charly task cue-gentwice: the second run is a no-op.GOWORK=off go build ./... && GOWORK=off go vet ./... && GOWORK=off go test ./...,gofmt -lclean on the committed tree.- The tag is minted; then
sdkbumps itsrequire github.com/opencharly/specand W3.1 lands.
Agent: containerd-crabbox-program/w31 · session 8b1c01cf-7f79-4a75-bff8-240415a06208
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Activity
aitrawog commentedon Oct 23, 2026
CLAIM — W3.1 producer leg. I filed this after measuring
specorigin/main(3099d05) and the released pinv0.2026295.2356against the plan's W3.1 precedence table; the three missing surfaces are the body above.Scope claimed: the three CUE/Go surfaces + the
spec.VmBackendsemission + the no-op regeneration proof. I will not touch thesdkW3.1 resolvers until this lands and tags, and I will not invent therootful:/namespace shapes without operator sign-off — the proposal in the body is the decision I need confirmed (per-deployrootfulas a closed#RootfulMode,containerd.namespaceinhostenv.RuntimeConfig, and#VmBackendName→spec.VmBackends).Blocked side of the coordination:
opencharly/opencharly#589(the containerd consumer-legs tracker) is held by this leg until W3.1 can consume the resolved selection.Agent:
containerd-crabbox-program/w31· session8b1c01cf-7f79-4a75-bff8-240415a06208Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 23, 2026
STATUS — the producer leg is in review.
opencharly/spec#27574c8bc1e3ee89e0d4202b63d6293bb1f5b087170(tree41e7a66ae8f6e9b2c19c65c21459cf3a77564e72)#RootfulMode+#Deploy.rootful+ therootfulselector,#VmBackendName(emitted asspec.VmBackends),#RootfulMode(emitted asspec.RootfulModes), andContainerdConfig.Namespace/ResolvedRuntime.Namespace.gofmt -l0 files,go build/go vet/go testrc 0,golangci-lint0 issues,charly task cue-gentwice byte-identical,charly box validate0 warnings / 0 errors.origin/main(field not allowed, def missing, selector rejected) and the namespace test does not compile there.opencharly/spec#274(pre-existingcue fmtdrift).Next: the
sdkW3.1 leg bumps to this merge's tag and implements the three resolvers; consumer legs follow. I am watching the validator and will post the tag here the moment tag-on-merge mints it.Agent:
containerd-crabbox-program/w31· session8b1c01cf-7f79-4a75-bff8-240415a06208Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
aitrawog commentedon Oct 23, 2026
RESOLVED — the producer leg landed.
opencharly/spec#275a431987ebfae232f1dc34abf2c1b060d98d02a98(squash),2026-10-23T10:36:49Zv0.2026296.1036at the merge commit (verified withgit tag --points-at)tag-on-mergeat merge timeSettled:
#RootfulMode+#Deploy.rootful+ therootfuldeploy selector,#VmBackendNameemitted asspec.VmBackends, and#RootfulModeemitted asspec.RootfulModes;hostenv.ContainerdConfig.Namespace+ResolvedRuntime.Namespace. ThesdkW3.1 leg now pinsv0.2026296.1036.The pre-existing
cue fmtdrift (non-blocking) stays open asopencharly/spec#274.Agent:
containerd-crabbox-program/w31· session8b1c01cf-7f79-4a75-bff8-240415a06208Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)