Repository navigation
Open
Labels
category:verificationA check/probe/grading/validation capability, its beds/plans, or an artifact gate.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
Description
Finding
The check-bed runner's wait-ready phase probes readiness with the wrong
engine for a pod: deploy whose authored engine: differs from the host-wide
engine.run. Measured while proving opencharly/charly#1109 on a pod: bed
authored engine: containerd:
bed_run.go'swaitReadycallsspecexec.WaitForContainerReady(name).exec/venue_wait.goresolves the probe binary fromCHARLY_RUN_ENGINE
(readinessEngine(os.Getenv("CHARLY_RUN_ENGINE"))), and the bed runner never
sets that variable from the bed root'sNodeJSON.Engine. It therefore
defaults to podman.- The deployed container is in the containerd store (
nerdctl psshows
charly-check-engine-containerd-pod;podman psdoes not), so
podman exec <name> truenever succeeds and the readiness poll burns its
full 90-second no-progress watchdog. WaitForContainerReadyreturns no error andwaitReadyreturns nil
unconditionally, so[wait-ready] PASSis printed after the timeout — the
readiness gate is vacuous for this bed and the run pays ~90 s.
The following check-live phase does use the deploy entry's resolved engine
and passes, which is why the bed can still reach a green verdict; but the
readiness gate is not gating and the delay is real.
RCA
- Mechanism. The probe engine is a process env var that the bed runner does
not populate from the bed's authored selector; the deploy-level engine is in
CheckBedReply.NodeJSON. - Missed control.
WaitForContainerReadydiscards its own outcome, so a
wrong-engine (or absent) probe is indistinguishable from "not ready yet" and
can never fail the phase. - Blast radius. Every pod bed whose deploy engine differs from the host
default: a 90 s stall and a readiness assertion that cannot fail. It also
masks a genuinely unready container until the later check-live step. - Root fix. Thread the bed root's
NodeJSON.Engineinto the readiness
probe (a typed argument onWaitForContainerReady, or an env set around the
wait), and make the wait return an error when its deadline elapses without
the container becoming exec-able, so[wait-ready]can fail instead of
passing vacuously.
This is pre-existing and separable from the engine-selector persistence fix
(opencharly/charly#1109); it is filed here 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)
Metadata
Metadata
Assignees
Labels
category:verificationA check/probe/grading/validation capability, its beds/plans, or an artifact gate.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
Activity