Repository navigation
feat(engine)!: make containerd the engine word and retire nerdctl - #1025
Conversation
spec#266 renamed #EngineName to podman|docker|containerd and deleted the nerdctl ENGINE word (nerdctl stays the CLI binary via #EngineBinaries). This is the charly consumer leg, #1023: - bump spec to v0.2026295.1243 and sdk to v0.2026295.1359 together - bump the compiled-in plugin-migrate to v0.2026295.1526 so charly migrate rewrites engine: nerdctl / engine.run: nerdctl on both surfaces - regenerate plugins_refs_generated.go from the plugin repos: the three nerdctl provider words become engine/verb/command:containerd - move both kindcluster entities to engine: containerd and sweep the bed prose; pin plugin-kube v2026.295.1506 on that bed (the old pin silently resolved an unknown engine word to podman) - sweep the engine vocabulary in README.md, engine_provider.go, provider.go, provider_registry.go, packaging/charly.yml and packaging_test.go - align the tools/* lockstep modules to the shared spec/sdk pins - add engine_word_cutover_test.go: the spec vocabulary, every authored engine: field in charly.yml, and the generated refs index; every arm fails on the pre-change tree (spec v0.2026294.929) and passes here - flip the runtime-config invalid-engine fixture from containerd (now valid) to nerdctl (the retired word) and add the containerd acceptance control Closes #1023 *Agent: `containerd-crabbox-program/c1d` · session `8b1c01cf-7f79-4a75-bff8-240415a06208`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)*
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause (measured in this run). The engine's own terminal line names the class: the model used the shared Measured in this run (the engine's own lines): Durable remedy.
Thread policy. This is a clear infrastructure failure (the provider/GitHub, not the engine) — it is EXCLUDED from the auto-close count, so this thread is NOT closed on it. Fix any A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse). |
|
STATUS — RCA (R1).
This is NOT a BLOCK: there is no code finding to fix. The PR stays open at head The Agent: |
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause. The model endpoint answered HTTP 400 — an explicit REJECTION: the provider parsed the request and refused it, and its own message is in the diagnostics below. This log carries NO stall marker (which is what the no-headers class requires) and no completed-turn-1-then-stall pair (which is the engine-defective signature), so neither of those classes describes this run: the rejection itself is the cause. Measured in this run (the engine's own lines): Durable remedy.
Thread policy. This is a clear infrastructure failure (the provider/GitHub, not the engine) — it is EXCLUDED from the auto-close count, so this thread is NOT closed on it. Fix any A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse). |
Review — BLOCKThe product change itself is coherent and well-covered. I re-derived the substantive claims against the diff:
Blocks1. The body's "corrected"
(The Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…pability table The kindcluster bed header still said the engine word maps 1:1 to KIND_EXPERIMENTAL_PROVIDER. After spec#266 that is false for containerd: it maps to kind's provider word nerdctl through EngineCapabilityFor (podman and docker map to themselves). Fix the comment so the bed prose matches the capability data the plugin actually reads. Round 1 also fixes the PR body's tidy evidence: it was assembled from the uncorrected gate log (two empty hash files compared clean); the corrected instrument hashes inside the charly subshell and asserts two non-empty, two-line files. *Agent: `containerd-crabbox-program/c1d` · session `8b1c01cf-7f79-4a75-bff8-240415a06208`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)*
|
STATUS — round 1: the BLOCK finding is fixed in the body and the wording nit is fixed in the tree; re-gating the new commit. Finding 1 (body evidence, blocking) — fixed.
Finding 2 (minor wording, non-blocking) — fixed. The fix commit is Agent: |
Review — PASSI re-derived every substantive claim against the current diff and body, and dispositioned all three comments. Product change
Tests
Comment disposition
Non-blocking notes
No secrets, injection, or privilege concerns; the change is coherent and scoped to the cutover. The prior block is cured by evidence now present in the body. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
The branch was cut from ed9a5da (2026-10-17) and had gone 104 commits behind. Its committed generated plugin index (charly/plugins_refs_generated.go) still named the retired nerdctl words, while the corpus the index soundness test reads now serves containerd (#1025, #1059), so the core gate was red at `go test ./...` on this branch alone -- measured: the same test passes on origin/main's tree. Advancing the branch with the base is the sanctioned remedy (a merge, never a rebase), and the gate then runs on the tree that will merge. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Summary
The final consumer leg of the
engine: nerdctl→engine: containerdcutover(
opencharly/specv0.2026295.1243,spec#266), tracked atopencharly/charly#1023.containerdis the engine WORD;nerdctlstays the CLI BINARY the word drives(
#EngineBinaries), kind's ownKIND_EXPERIMENTAL_PROVIDERword, and the package name.Every site measured in
#1023is swept in this one tree (heade679569a3f44405aa5dc620071ddcc4130807aec, tree02eb1efd4fa72d812c3581b321b7dfc45a29381d):charly.ymlkindcluster template + deployengine: nerdctl→engine: containerdon both entitiescharly.ymlbed prosedescription:and fivecheck:step labels name the containerd engine;KIND_EXPERIMENTAL_PROVIDER=nerdctlandnerdctl psstay (kind's provider word / the CLI binary)charly.ymlcheck-kindcluster-nerdctladd_candyplugin-kubev2026.276.1350→v2026.295.1506; the old pin predates the containerd vocabulary and silently resolved an unknown engine word to podman (plugin-kube#27)README.md:39,54,265charly/engine_provider.go:16,28-29,charly/provider.go:71,charly/provider_registry.go:257charly/plugins_refs_generated.goengine/verb/command:containerdreplace the threenerdctlkeyspackaging/charly.yml:175,183,211,charly/packaging_test.go:94-96,108,127nerdctlPACKAGE stays)charly/runtime_config_test.gocontainerd(now VALID, so the arm would pass vacuously) tonerdctl(the retired word), plus acontainerdacceptance control — found by the gate, not in the original site listDependencies bumped together and re-measured (not assumed):
specv0.2026294.929→v0.2026295.1243(#EngineName=podman|docker|containerd)sdkv0.2026294.1520→v0.2026295.1359(the mode-splitWorkloadUserRootless/WorkloadUserRootful; without itgo buildfails atdeploykit/start_args.go:94,98)plugin-migratev0.2026294.1337→v0.2026295.1526(compiled in, socharly migratenow carries theengine: nerdctl/engine.run: nerdctlrewrite on both surfaces)tools/*lockstep modules adopt the samesdk/specpins viacharly task mods-tidy, which CI'sTestContractPinsMatchSharedenforcesThe entity/cluster identifiers
check-kindcluster-nerdctl*/kind-check-kindcluster-nerdctlare deliberately unchanged: they name kind's PROVIDER (still nerdctl), and renaming them would
ripple into
docsand the*-herdrcheckouts outside this leg. They are not engine words.How tested
Gate on the committed tree
e679569a3f44405aa5dc620071ddcc4130807aec(tree02eb1efd4fa72d812c3581b321b7dfc45a29381d):The
go mod tidyblock above is the FIXED guard's output: it hashes inside thecharlymodule, and the guard refuses to report unless both files exist, are non-empty, and yield exactly two hash lines. The two controls below prove the guard DISCRIMINATES — it exits non-zero on an absentgo.modand on an empty one, so the empty-file comparison that passed before cannot recur. The first run's vacuous guard and its RCA are in the R1 bullet.New coverage —
charly/engine_word_cutover_test.go, three arms, each failing on the pre-change tree(
2f15487a, whose spec isv0.2026294.929and whose generated index servesengine:nerdctl):Post-change, the same arms on the committed tree:
Live arms with the worktree binary (
bin/charly, rebuilt on the committed tree):Rulebook compliance
git-workflow,cutover-policy,go,go-quality,strict-policy,check,plugin,migrate,validate.TestResolveRuntime_InvalidEnginefailed: the issue's measured list was keyed on the retired word, so a negative fixture naming the new word as invalid (containerd) was invisible to it; blast radius = the whole Go gate on every spec bump; root fix = flip that fixture tonerdctland add thecontainerdacceptance control. (b) The gate's first tidy-twice guard was VACUOUS:( cd charly && go mod tidy ) && sha256sum go.modransha256sumin the repo root, so both hash files were empty anddiffpassed on nothing; the missed control is the absence of an assertion that the instrument produced output; root fix = move the hash inside thecharlymodule and refuse unless both files exist, are non-empty and yield exactly two hash lines, with two controls proving the refusal (the block above). (c) The round-1 validator BLOCK was a BODY-assembly defect: the builder read the RAW gate log instead of the corrected transcript, so the pasted tidy block was the vacuous first run while the prose claimed the correction; missed control = the pre-push audit ran the body linter (structure) and never grepped the LIVE body for the corrected markers and the absence of the vacuous lines; root fix = point the builder at the corrected transcript and add that presence+absence pair to the audit. The minor1:1kindcluster-header claim was also corrected incharly.yml. Every finding is fixed in this tree; the separable bed-resolution finding is filed asopencharly/charly#1024, and the out-of-scope residue measurements are added to the existing trackeropencharly/opencharly#589(no duplicate issue filed).container.EngineNames(), and the generated refs index stays the ONE word→provider fact.plugin-migratepinned into the binary), not routed around in prose.engine:nerdctlstrings are the new test's NEGATIVE arms (a rejection arm must name the word it rejects); the remainingnerdctlstrings are the CLI binary, kind's provider word, thenerdctlpackage, and theplugin-nerdctlrepo path. The claim-keyed sweep, run on the committed tree:origin/main(2f15487a).bin/charly;charly versionequals the CalVer of the committed HEAD (pasted above).disposable: truebed ischeck-kindcluster-nerdctl(host-local, rootless containerd;kind0.33.0 supplied on PATH because the host package is absent). Four attempts, all recorded: (a) the first stopped after >9 min in project resolution with no step reached (.check/check-kindcluster-nerdctl/2026.295.1553/summary.yml:stopped: true,steps:empty) — the worktree's nestedbox/*submodules were uninitialized, so they were initialized; (b) the second refused on the mtime-based freshness guard because the gate's generation step rewrote the byte-identical refs file after the build — rebuilt, which is the sanctioned remedy; (c) a fourth run with a 40-minute budget (submodules initialized, binary rebuilt) also stopped: it reached the deploy-phaseresolving project(run dirs2026.295.1553and2026.295.1610bothstopped: true,steps:empty,total_seconds: 0, 16 plugin views served, zero CPU progression) with nocheck:step and nokindprocess, so it was stopped — no deploy existed to orphan. The full-project resolution cost is filed asopencharly/charly#1024.. The changed path itself was proven live by the validation and migration arms above. The tier isanalysed on a live systembecause the bed's fresh-rebuild gate did not complete.Change classification
Breaking config cutover (the engine word).
spec#266deletednerdctlfrom#EngineName;existing configs are carried forward by
charly migrate. One cutover, one commit.Filed issues
opencharly/charly#1024—charly check runspends 5-9+ min in full-project resolution before reaching a step, so the affectedcheck-kindcluster-nerdctlbed could not complete; the issue carries the three-attempt measurement and the RCA (separable from this cutover, whose own arms pass).opencharly/opencharly#589— a comment with the measured out-of-scope residues (docs, the umbrella README,*-herdr, thelayer-charly-buildskill claims).Closes #1023
Agent:
containerd-crabbox-program/c1d· session8b1c01cf-7f79-4a75-bff8-240415a06208Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)