Repository navigation
feat(spec): engine provider class — single-homed resolution + a servable class (v3) - #144
Conversation
Make the container engine a first-class provider class instead of a bare
podman|docker string threaded through ~170 literal sites and ~30 switch
statements. This is the spec foundation for full nerdctl integration.
- schema/engine.cue: new #EngineName ("podman"|"docker"|"nerdctl"),
#EngineRunMode (quadlet|systemd-unit|direct), #EngineCapability (the
data-only facts table: pods/secrets/keep-id/rootless/run-mode/gpu style),
and the provider op envelopes (binary, gpu_args, start_plan, unit_emit,
network_ensure, describe).
- schema/candy.cue: register "engine" in #ProviderClassNames; route the
candy/deploy `engine:` field through #EngineName so the vocabulary has one
source.
- container/engine.go: EngineBinary handles nerdctl; add the
EngineCapabilityFor/EngineRunModeFor data table (nerdctl: rootless,
no pods primitive, no native secret store, no keep-id, workload uid 0,
systemd-unit persistence, --gpus passthrough) plus a drift test tying the
table to EngineBinary.
- hostenv: ValidateEngine accepts nerdctl; ValidateRunMode accepts
systemd-unit; DetectRunMode delegates the engine->mode mapping to the
spec/container table, so a new engine lands in one place.
…ability type
Address the pr-validator BLOCK on the engine provider class.
1. R3 single source of the engine vocabularies. The engine word list and
run-mode list were still hand-written in EngineBinary and
ValidateEngine/ValidateRunMode while claiming to be CUE-sourced. They now
derive from the generated spec.EngineNames / spec.EngineRunModes
(emitted by internal/schemagen from #EngineName / #EngineRunMode):
- container: IsEngineName/EngineNames/IsRunMode/RunModes read the generated
list; EngineBinary reads the capability table's Binary (no duplicate
switch arm); EngineValidationError derives its message from the list.
- hostenv: ValidateEngine/ValidateRunMode consult those; no literal list.
Adding a 4th engine is now one CUE edit + one table row.
2. B13(d)/SDD: the capability table now uses the generated
spec.EngineCapability type (container.EngineCapability is an alias), not a
hand-written mirror. DetectProbe/Name are emitted from the schema.
3. B5/R1: schema/engine.cue no longer references a non-existent #EngineBinary
def and no longer claims an already-true single-sourcing; the comment now
states what the code does.
4. Evidence: the body's test run is regenerated uncached below.
…t the prose Address the second pr-validator BLOCK. 1. R3: the unit-capable run-mode set is no longer a literal pair. New #EngineUnitRunModes (["quadlet","systemd-unit"]) emits as spec.EngineUnitRunModeWords; container.IsUnitRunMode reads it. DetectRunMode consults container.IsUnitRunMode / EngineRunModeFor instead of `mode != "quadlet" && mode != "systemd-unit"`; the non-unit fallback names hostenv.DirectRunMode. ResolveRuntime's two literal blocks collapse to ONE capability-driven warning (no literal "podman", no duplicate "systemd-unit" branch). 2. R1/B5: schema/engine.cue prose now matches the code. The header states the accurate rule (one CUE edit for a word + one table row for its facts), documents that the op-envelope engine fields are deliberately `string` (they carry the pre-resolution `auto`/resolved value, a superset of the authored vocabulary), and drops the false "EngineBinary derives from spec.EngineNames" claim. 3. R5: the unnecessary `type EngineCapability = spec.EngineCapability` alias is deleted from both container and kit; consumers name the generated spec.EngineCapability directly. 4. Coverage (A1/A3): new hostenv tests exercise the changed branches — DetectRunMode(nerdctl) == systemd-unit, DetectRunMode(podman) == quadlet, and the no-systemd-user fallback to direct.
The ResolveRuntime warning was inline and untestable; extract it as the pure runModeMismatchWarning(runEngine, runMode) and cover every branch: matching pairs are silent, a unit mode the engine cannot offer warns (nerdctl+quadlet, podman+systemd-unit, docker+systemd-unit, unknown engine), and `direct` never warns (it is the host-degraded fallback, not a mismatch).
The R5 vocabulary sweep this PR's own rulebook requires surfaced a surviving
engine switch: defaultLocalImageExists branched `switch engine { case "podman"
… }`. It now reads the engine capability table's image_exists_argv
(podman `image exists`; docker/nerdctl `image inspect`, since docker has no
`image exists`), so no engine-name switch remains in container/.
Adds #EngineCapability.image_exists_argv to the schema (generated
spec.EngineCapability.ImageExistsArgv) and one row value per engine.
The sweep also found a SECOND, pre-existing survivor —
container.ResolveShellImageRef hardcodes ResolveNewestLocalCalVer("podman") —
which needs an engine-parameter signature change across sdk/plugins/charly.
That is a separate cross-repo cutover and is NOT in this PR; it is recorded
here so the sweep is reported honestly rather than deleted from the claim.
Extract imageExistsProbeArgv(engine) from defaultLocalImageExists and test it: podman probes `image exists`, docker/nerdctl probe `image inspect`, and an unknown engine falls back to inspect. A second test asserts every engine row in the capability table supplies its own probe, so the mapping cannot drift.
…ot podman
The R5 vocabulary sweep surfaced one remaining pre-existing engine hardcode:
ResolveShellImageRef called ResolveNewestLocalCalVer("podman"), so a host whose
only engine is docker/nerdctl resolved its local CalVer from the wrong store.
It now passes "auto", which EngineBinary/DetectEngine resolves to the engine
actually installed. No signature change, no cross-repo cutover needed — the
last engine literal in container/ is gone.
…-ref resolution Addresses the spec#140 validator blocks 2 and 3: - GPURunArgs now documents that "auto" resolves via DetectEngine, and TestGPURunArgs asserts GPURunArgs(auto) == GPURunArgs(detected). - ResolveShellImageRef's "auto" probe is gated by TestResolveShellImageRefProbesInstalledEngine, which fails if it reverts to the hardcoded "podman". Both tests were proven to FAIL against the pre-change code. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
… package doc The generated EngineNames doc claimed EngineBinary/EngineCapabilityFor derive from spec.EngineNames (they read the capability table) and that adding an engine is one CUE edit (it is one CUE edit plus one table row, gated by TestEngineVocabularyIsSingleSource). Regenerated spec/vocab_gen.go follows. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…venance - schema/engine.cue header named spec.EngineUnitRunModes; the emitted symbol is spec.EngineUnitRunModeWords. - The EngineNames doc (schemagen -> spec/vocab_gen.go) and the package doc claimed IsRunMode/IsUnitRunMode derive from EngineNames; each predicate reads its own list (IsEngineName->EngineNames, IsRunMode->EngineRunModes, IsUnitRunMode->EngineUnitRunModeWords). Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…teral
The sweep's own output showed "direct" with two literal homes:
container.EngineRunModeFor's fallback and hostenv.DirectRunMode. Both now call
the derived container.DirectRunMode(), which returns the member of the CUE-owned
spec.EngineRunModes that is NOT in spec.EngineUnitRunModeWords — so the mode name
has no literal home at all. hostenv holds no mode literal (no
{"quadlet","systemd-unit"} pair, no "direct"). TestDirectRunModeDerived gates the
derivation and the exactly-one-non-unit-mode invariant.
…arms Fold the spec/exec engine-name switches onto the one engine vocabulary: a container-exec hop is now JumpContainerExec with NestedJump.Engine carrying the engine word (podman/docker/nerdctl). This fixes a real bug — a nerdctl deploy previously fell through to JumpPodmanExec and ran `podman exec`. No engine switch remains in spec/exec. - JumpKind is transport-only: JumpContainerExec / JumpSSH / JumpVirshConsole. JumpPodmanExec/JumpDockerExec stay as distinct legacy values (not aliases) so the two remaining out-of-module constructors keep their exact engine via engineBinary(); they are removed when those constructors set Engine (named batch: the engine-provider sweep). - NestedJump gains Engine; engineBinary() resolves Engine -> legacy kind -> podman. wrapWithJump/copyIntoJumpCommand/deploy_executor_process/ venue_descriptor/ContainerChainFromDescriptor all read it. - WaitForContainerReady probes the host's configured engine (CHARLY_RUN_ENGINE) instead of a hardcoded podman. - Tests: TestWrapWithJump_Nerdctl, TestCopyIntoJumpCommand_Nerdctl, TestJumpEngineBinary, and the descriptor forward/back tests now assert the engine round-trips as data (incl. nerdctl).
The engine-as-data cutover is complete in spec/exec: JumpContainerExec + NestedJump.Engine is the only container-exec form, and the pre-engine-data enum arms are DELETED (not aliased). Tests updated to the new form; nerdctl covered.
Two validator findings on the exec refactor:
- DescriptorFromExecutor now echoes Jump.Engine VERBATIM (including empty)
instead of normalizing to podman, so it is the pure inverse of
VenueFromDescriptor again (desc{Engine:""} -> "" not "podman"). The podman
default is applied only when BUILDING argv (engineBinary), never in the
round trip. Test updated to pin the empty-stays-empty property.
- WaitForContainerReady's engine resolution is extracted as the pure
readinessEngine() (CHARLY_RUN_ENGINE, else the default) with a unit test, and
its comment now states the real contract (the container-nesting / engine
layers export CHARLY_RUN_ENGINE; a bare host falls back to podman).
Fixes every finding from the current BLOCK (the PR auto-closed by the validator's
auto-close policy; this is the fresh branch it asks for):
1. Container/engine.go: the paragraph above EngineNames() named non-existent
lowercase engineNames/engineRunModes symbols; replaced with the real
EngineNames/RunModes provenance.
2. exec/deploy_executor_nested.go GetFile: the comment said 'only podman/docker/
ssh jumps' but the arm is now JumpContainerExec (nerdctl too); made
engine-generic ('container/ssh jumps').
3. R3: deleted the isContainerJump predicate that purely delegated to
isContainerKind; the one call site now uses isContainerKind.
4. R3: the empty-engine default had TWO homes with two values — EngineBinary(\"\")
returned \"docker\" while the exec hop used \"podman\". Added the ONE home
(spec.DefaultContainerEngine = podman) and pointed both consumers at it; the
test now asserts the shared value.
gofmt/vet/clean; full module suite green (18 packages).
The comment said the provider-consuming fields land 'as those land' — a parking phrase. Reword to: this change lands the capability-table consumers and the STABLE class/envelope contract; the providers bind to it.
BLOCK finding 1: the empty-engine default was still two-homed. EngineBinary("")
resolved to spec.DefaultContainerEngine (podman) but EngineRunModeFor("")
returned direct, because EngineCapabilityFor("") is not-found. An unspecified
engine now resolves its (binary, mode) from ONE engine — TestEngineRunModeFor
pins EngineRunModeFor("") == EngineRunModeFor(spec.DefaultContainerEngine).
Real bug the validator did not catch: spec/cue_types_gen.go was STALE — an
earlier schema-comment edit did not regenerate it, so TestGenReproducible FAILED
on this branch (passes on main). Regenerated via the cue:gen pipeline
(concat -> gengotypes -> retag -> vocab -> version). Full suite green (18 pkgs).
…lass
Addresses the two BLOCK findings on the engine-class cutover.
Block 1 — the empty engine was two-homed: EngineBinary("") resolved to the
default (podman) while GPURunArgs("") and imageExistsProbeArgv("") read the
capability table, got not-found, and fell back to docker/nerdctl's forms — so one
input split across two engines (a REGRESSION this cutover introduced when it
changed EngineBinary("")). EngineCapabilityFor now resolves "" to the ONE default
engine, so binary/mode/gpu-args/probe all agree. New
TestEmptyEngineResolutionIsSingleHome pins the invariant; the two tests that
codified the split are corrected.
Block 2 — the engine provider class and its whole wire contract shipped with no
in-tree servant. spec/container.InvokeEngineOp is now the PURE, placement-
agnostic servant for every op schema/engine.cue declares (describe/binary/
gpu_args/start_plan/unit_emit/network_ensure); the engine op selectors land in
spec/ops; and TestEveryDeclaredEngineOpIsServed proves each declared op is
answered for every engine word, so a newly-declared op cannot ship unserved. The
kernel-side compiled-in engine:podman/engine:docker provider (next commit in
charly) wraps this body, giving the class a real consumer.
…w round 2) Block 1: the pure servant InvokeEngineOp had no in-tree caller. EngineBinary and GPURunArgs are now the typed accessors of the binary/gpu_args ops — they dispatch through the class and decode the reply, so the declared class is genuinely CONSUMED in-tree (not a shipped-but-unconsumed contract). The op bodies call private capability-table LEAVES (engineBinaryRaw/engineGPUArgsRaw), so the accessor routes through the op without recursion. TestEnginePredicatesRouteThroughTheClassOp pins accessor == op reply for every engine word + the empty word. Also evidenced (block 2): the R5 removed-identifier sweep is executed (empty in spec) and the consumer liveness is stated — sdk re-exports the removed JumpPodmanExec/JumpDockerExec aliases and charly's deploy_add_cmd.go uses specexec.JumpPodmanExec, both migrated by their own producer->consumer legs.
The prior comment claimed 'the container-nesting / engine layers set it' without naming them. The actual producers are candy/plugin-settings (the charly settings engine.run reader) and the container-nesting layer (which sets CHARLY_RUN_ENGINE=podman for the nested-pod posture); hostenv.ResolveRuntime reads the same variable. Name them so the claim is verifiable, not asserted.
…mit contract Review round 3, both blocks: 1. An unknown NON-EMPTY word still split one input across two engines: EngineBinary(bogus)=podman (default) while GPURunArgs(bogus)/imageExistsProbeArgv(bogus)=docker/nerdctl's forms and EngineRunModeFor(bogus)=direct. EngineCapabilityFor now resolves ANY non-member word (empty or unknown) to the ONE default engine, so binary/mode/gpu-args/probe all agree; IsEngineName remains the typo gate. New TestUnknownEngineResolutionIsSingleHome pins f(x)==f(EngineBinary(x)) for every consumer; the tests that codified the split are corrected. 2. schema/engine.cue's #EngineUnitRequest doc claimed the op renders the quadlet form for podman, but the servant returns no files for a quadlet request (podman's OWN generator emits that form). Corrected the doc to state that explicitly, and regenerated spec/cue_types_gen.go (comment-only; TestGenReproducible passes).
Review — BLOCKHead SHA: Change class: schema/vocabulary + spec-library Go (contract module), cross-repo cutover. Security screen: PASS (no secrets/egress, no weakened guardrails, no supply-chain change; T1–T4 clean). Blocks
Minor (fix in the same commit)
Notes (non-blocking, investigated): the R10 Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Two doc comments still described the pre-fix behavior (an unknown word yielding a fallback / an error reply), contradicting the code, the inline comments, and the tests shipped in the same function: - EngineRunModeFor: now states an unknown non-empty word resolves to the DEFAULT engine's mode (same as empty), and DirectRunMode() is reached only for "auto" with no engine installed. - engineDescribe: now states an unknown word resolves to the default engine's capability (not an error); the Error reply is only for "auto" with no engine.
Review — BLOCKHead SHA: Change class: schema/vocabulary + spec-library Go (contract module), cross-repo cutover. Security screen: PASS (no secrets/egress, no weakened guardrails, no supply-chain change; T1–T4 clean — the PR touches no validator spec/rulebook/gate). Comment intake (prior
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…gree (review round 5) The schema doc says the decision input is the REQUEST's run_mode, but the servant keyed off the ENGINE's capability mode and never read req.RunMode — so a run_mode=quadlet request to the nerdctl provider rendered a .service, contradicting the doc. The servant now reads req.RunMode (defaulting to the engine's capability mode when empty), so quadlet (or any non-unit mode) yields no files from ANY provider. TestEngineUnitEmitHonorsRequestRunMode pins it.
Review — BLOCKHead SHA: Comment intake (re-derived against the CURRENT diff)
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ific (review round 6) - container/engine_test.go: split the merged doc comment so each comment precedes the test it names (TestUnknownEngineResolutionIsSingleHome / TestEmptyEngineResolutionIsSingleHome). - renderSystemdUnit now consumes the declared exec_start_pre field (one ExecStartPre= per entry); added TestEngineUnitEmitEmitsExecStartPre. - schema/engine.cue: engine_specific doc corrected to a declared CARRIER not read by the systemd-unit servant today (podman's quadlet is emitted by podman's own generator); regenerated spec/cue_types_gen.go (comment-only).
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no weakened guardrails, no supply-chain change; T1–T4 clean (the PR touches no validator spec/rulebook/gate; Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
… leaf (review round 7)
The file header claimed 'the argv builders reuse GPURunArgs so no second copy of
the GPU flag family exists', but nothing calls GPURunArgs there — the dependency
is the reverse (GPURunArgs -> InvokeEngineOp -> engineGPUArgsRaw), and GPURunArgs'
error fallback re-literalized {'--gpus','all'}. Reworded the header to state the
one home (engineGPUArgsRaw, with GPURunArgs its accessor) and made the fallback
delegate to that same leaf, so no second copy exists.
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no weakened guardrails, no supply-chain change; Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: schema/vocabulary (CUE-first) + spec-library Go (contract module), cross-repo cutover. Comment intake (each re-derived against the CURRENT diff/body):
Note (non-blocking): the branch carries ~40 commits including body re-freezes and two Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Body-only update (the class gate is now evidenced by the committed ci.yml run green on the head + the merged #143/#144/#145 precedent, and the no-disposable- target proof uses a real path). No source change — this empty commit moves the head so the fresh validator run keys to a head whose body is already final. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (documentation reviewed)
Body-only update (the class gate is now evidenced by the committed ci.yml run green on the head + the merged #143/#144/#145 precedent, and the no-disposable- target proof uses a real path). No source change — this empty commit moves the head so the fresh validator run keys to a head whose body is already final. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (documentation reviewed)
…stry-portable (#148) * feat(cache): OCI Image Layout ArtifactStore — content-addressed, registry-portable Replace the keyed one-JSON-file-per-key cache with ONE content-addressed artifact store whose on-disk form is a standard OCI Image Layout (oci-layout + index.json + blobs/<alg>/<digest>). Each cached artifact is a real OCI manifest: the config blob carries the validity metadata (resolved/components/validator), layers[0] the payload, and annotations the cache key + org.opencontainers.image.ref.name tag. A named cache is one OCI index, so a whole store can be pushed/pulled to a registry unchanged (the verb:oci cache-push/cache-pull transport lands next). The file backend uses stdlib + opencontainers/image-spec + go-digest ONLY; no go-containerregistry in the contract module. The legacy Store API (Open/OpenNamed/OpenLimited/Read/ReadTTL/WriteValue/ PutEntry/entryPath) is DELETED in the same cutover; consumers migrate in this change (refs submodule verdicts, container image list + labels) and in the sdk change (loaderkit materialized tree). repoCacheProvenanceVersion 2 hard-rejects the legacy bare-commit sidecar: a v1 export cannot certify its tree (the pre-cutover loader rewrote it in place — auto-migrating charly.yml to the consumer's schema CalVer), so it is treated as not-cached and re-fetched once pristine. IsRepoCached now enforces this, so immutable-tag caches self-heal too. This is the root-cause fix for the poisoned @main cache that failed check-substrate's deploy-add. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (syntax check only) * fix(cache): clear golangci-lint findings (staticcheck QF1008/SA4000, gocritic, unconvert) - cache.go: drop the redundant Versioned selector on the embedded field. - cache_test.go: derive the determinism check from fresh values (avoid SA4000). - container/engine_ops.go: if/else chain -> tagged switch (gocritic). - container/engine_ops_test.go: drop the unnecessary string() conversions. The two container findings pre-date this branch (they block the module gate, so they are fixed here per R2 rather than deferred). Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (syntax check only) * fix(cache): Fill must stamp Resolved (a zero-Resolved callback result was stored stale) The validator caught a real regression: the new Fill persisted via put(), which preserves the caller's Resolved, whereas the legacy Fill persisted via Put(), which stamped Resolved=now. A fill callback returning an Entry with a zero Resolved (a degrade/empty result) was therefore stored with Resolved=zero: instantly TTL-stale (defeating compute-once for any TTL caller) and sorted as the OLDEST entry for reclamation. Fill now stamps e.Resolved = time.Now() before persisting, matching Put and the legacy contract. The fill guard is also per-key again (locks/<tag>.fill.lock), matching the documented per-key flock rather than the interim store-wide lock. TestFillStampsResolved fails without the stamp: --- FAIL: TestFillStampsResolved (0.00s) Fill must stamp Resolved=now so the entry is TTL-fresh; got 0001-01-01... Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs(cache): correct Entry.Key doc — Get reconstructs it, put() no longer stamps it The validator found a doc/impl divergence: the Entry.Key comment still claimed "Set by the Store on Put", but the new keyed-by-tag layout reconstructs the key from the manifest annotation on Get and no longer stamps it on write. Fix the comment to match the implementation. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs: re-freeze the PR body against the final head Body-only update (the class gate is now evidenced by the committed ci.yml run green on the head + the merged #143/#144/#145 precedent, and the no-disposable- target proof uses a real path). No source change — this empty commit moves the head so the fresh validator run keys to a head whose body is already final. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs: re-freeze the PR body against the final head Body-only update (the class gate is now evidenced by the committed ci.yml run green on the head + the merged #143/#144/#145 precedent, and the no-disposable- target proof uses a real path). No source change — this empty commit moves the head so the fresh validator run keys to a head whose body is already final. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (documentation reviewed) --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
Land the
engineprovider class inspec— the container-engine contract that makes the engine a provider (podman/docker compiled-in, nerdctl out-of-process) instead of ~170 literal engine-string sites and ~30 switches. Fresh PR: the prior thread (#141) was auto-closed by the gate policy; this branch carries every fix.Every changed file/behavior
The engine class + vocabulary:
schema/engine.cue(new —#EngineName= podman|docker|nerdctl,#EngineRunMode= quadlet|systemd-unit|direct,#EngineUnitRunModes(the unit-supervised subset),#EngineCapability, five request/reply op-envelope pairs (#EngineBinary…/#EngineGPURunArgs…/#EngineStartPlan…/#EngineUnit…/#EngineNetworkEnsure…) plus the reply-only#EngineDescribeReply);schema/candy.cue("engine"in#ProviderClassNames);schema/deploy.cue(engine:typed#EngineName); the generatedspec/cue_types_gen.go/spec/vocab_gen.go(frominternal/schemagen, which also gained the vocab-list emission); and the HAND-WRITTENspec/engine_consts.go(theDefaultContainerEngineconst + its doc).The behavior (single-homed):
container/engine.go—EngineCapabilityForresolves ANY non-member word (empty OR unknown likebogus) to the ONE default engine, soEngineBinary/EngineRunModeFor/GPURunArgs/imageExistsProbeArgvall agree;EngineBinary/GPURunArgsare typed accessors of the class ops;container/local_image_coneb.go— read-side consumers behind the capability table;container/engine_ops.go(new) —InvokeEngineOp, the pure placement-agnostic servant;ops/ops.go— theOpEngine*selectors.unit_emitcontract aligned to its servant: the schema doc (schema/engine.cue+ the generated copy) now states the op renders the non-quadlet systemd-unit form only; podman's.container/.podquadlet is emitted by podman's OWN generator (a quadlet request returns no files).nerdctl reaches the runtime config:
hostenv/runtime_config.go—DetectRunModereturns the engine's CUE-owned mode (nerdctl →systemd-unit);ValidateEngine/ValidateRunModeacceptnerdctl/systemd-unit;runModeMismatchWarningwarns only on an explicit unit mode the engine cannot offer.engine-as-data in
exec(removes the per-engine jump enum arms):exec/deploy_executor_nested.go/deploy_chain.go/deploy_executor_process.go/venue_descriptor.go+spec/deploy_executor.go—JumpPodmanExec/JumpDockerExecreplaced byNestedJump.Kind = JumpContainerExec+NestedJump.Engine;exec/venue_wait.go—WaitForContainerReadyprobes with the deploy's own engine fromCHARLY_RUN_ENGINE(readinessEngine, fallbackdefaultContainerEngine), the producers named in the comment (candy/plugin-settings, the container-nesting layer);exec/builder_run.go— the shareddefaultContainerEngineconst.The two blocks closed this round
EngineBinary("bogus")= podman (default) whileGPURunArgs("bogus")/imageExistsProbeArgv("bogus")= docker/nerdctl's forms andEngineRunModeFor("bogus")=direct— the same split the""fix closed, surviving for unknown words.EngineCapabilityFornow resolves any non-member word to the default engine;TestUnknownEngineResolutionIsSingleHomepinsf(x) == f(EngineBinary(x))for every consumer; the tests that codified the split are corrected (TestEngineCapabilityFornow assertsbogusresolves to the default;TestImageExistsProbeArgv/TestEngineRunModeFor/TestRunModeMismatchWarningagree).unit_emitdoc and servant now agree on the decision input: the servant reads the REQUEST'srun_mode(defaulting to the engine's capability mode when empty), so arun_mode=quadletrequest to ANY provider — even nerdctl — returns no files (podman's quadlet generator owns that form).TestEngineUnitEmitHonorsRequestRunModepins it.EngineRunModeFor's doc now states an unknown non-empty word resolves to the default engine's mode (not aDirectRunMode()fallback, which is reached only for"auto"with no engine), andengineDescribe's doc states an unknown word resolves to the default engine's capability (theErrorreply is only for"auto"with no engine). Both now agree with the code, the inline comments, and the tests.How tested
The removed exported jump arms are the producer side of a cross-repo cutover:
sdk'skit/exec_aliases.go+deploykit/kit_aliases.gore-export aliases and itsNestedExecutortest migrate;charly'sdeploy_add_cmd.gomigratesspecexec.JumpPodmanExec→NestedJump.Engine. Those consumer legs land against thisspec(producer→consumer order).Rulebook compliance
/charly-internals:go+/charly-internals:pluginloaded.""fix left unknown words split; theunit_emitdoc contradicted its servant. Both root-caused and fixed.N/A — this change builds no artifact or binary, touches no packaging/OCI label, and performs no destructive action; it is spec-library Go + schema/doc.go build ./...+ full per-packagego test ./...+TestGenReproducibleat the head, pasted above.N/A — spec builds libraries + internal/schemagen; no main/deployable target, so the module suite is the class gate.Attribution
Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)