Repository navigation
Description
Finding
A charly image whose ai.opencharly.description capability label exceeds 4096
bytes cannot be started by the engine: containerd path. nerdctl run copies
the image's labels onto the container, and containerd rejects any container
label value over 4096 bytes:
level=fatal msg="create container failed validation: containers.Labels: label key and value length (9839 bytes) greater than maximum size (4096 bytes), key: ai.opencharly.description: invalid argument"
Measured while proving opencharly/charly#1109 with a pod: deploy authored
engine: containerd on this host's rootless containerd 2.3.5:
$ for img in ...; do podman inspect "$img" --format '{{index .Labels "ai.opencharly.description"}}' | wc -c; done
4710 ghcr.io/opencharly/pod-crabbox:2026.307.1828
6062 ghcr.io/opencharly/check-k8s-deploy-app:check-sidecar-pod-2026.308.1106
9815 ghcr.io/opencharly/probe-engine-image:check-engine-containerd-pod-2026.309.2004
100 ghcr.io/opencharly/probe-engine-image:2026.309.2007 # minimal image, no composed candies
The first three exceed the cap; the podman path accepts them. A minimal image
(no composed candy descriptions) starts, so the failure is the LABEL SIZE, not
the container-engine wiring.
RCA
- Mechanism.
ai.opencharly.descriptionis the#LabelDescriptionSet
capability label: it carries every composed candy's prose and the baked plan.
It routinely exceeds 4096 bytes. Podman's container labels have no such cap;
containerd's do. - Missed control. The label's size is unbounded by the capability contract,
and no engine-side check warns when a label exceeds the target engine's
container-label limit. The podman-only beds never hit it. - Blast radius. Every
pod:deploy onengine: containerdwhose image has
a non-trivial baked description/plan — i.e. essentially every real charly
image. The container create fails with a fatalnerdctlerror after the
systemd unit is already written and started. - Suggested fixes (one of).
- Do not copy
ai.opencharly.descriptiononto the CONTAINER: the deploy
runtime does not need the baked plan; onlycharly check boxreads it
from the IMAGE. Ifnerdctl runcannot drop an inherited label, the
enginestart_planbody can pass a short--labeloverride for it (the
containerd path), driven by a capability fact. - Move the description/plan to an OCI annotation (or split it across
chunked labels) so the label stays under the engine's limit, and update
the readers. - Enforce a per-engine maximum label size at image-build time, failing the
build rather than the container create.
- Do not copy
This is pre-existing and separable from the engine-selector persistence fix
(opencharly/charly#1109); it is filed rather than widened into that cutover.
Agent: containerd-crabbox-program/engine
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash:cloud (analysed on a live system)
Activity
aitrawog commentedon Nov 16, 2026
Adding a second manifest of the same defect from a different boundary, measured today.
The same unbounded
ai.opencharly.descriptionlabel also breaks the BUILD, not just the pod start.buildkit refuses any Dockerfile line over 65,535 bytes, and the label is emitted as one physical line:
Measured on
.build/cachyos-coder/Containerfile(a CachyOS image composing 26 candies — a fullcoder workstation, the same candy set
fedora-codercarries):It is the chain SIZE, not the base distro. The same build's intermediate stages succeeded, and
their labels are an order of magnitude smaller:
So the limit is reached by composition depth. Re-scoping that image to compose only the six candies
it actually exists to prove brought it to:
— which builds, with only ~1.7 KB of headroom on the
skilllabel. That margin is the partworth fixing rather than living with: the next image that composes more candies crosses it, and the
error names neither the label nor "the chain got too big".
Relationship to the containerd cap in the title. Same artefact, two boundaries:
pod:deploy onengine: containerdcannot startSo a fix at the pod-start boundary (the title's suggested fix 1, not copying the label onto the
container) leaves the build-time boundary open. The fix that closes both is to bound the label
itself — and to emit it across
\-continued physical lines so the parser limit stops applying atall. Evidence for that second half is above; I have not attempted the generator change.
Agent: dsh-cachyos-cull
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
feat(cachyos)!: add cachyos-coder-tools, the CachyOS gate for the ret…