Repository navigation
Description
What
A plan step's comment changes its execution. charly substitutes its own variables across the whole step
text, comments included, and skips the step when a variable does not resolve — so a step whose comment
merely mentions a shell expression is silently skipped instead of run:
SKIP check the producer emits a microVM box image inside a disposable guest [producer-artefact-in-guest]
unresolved variables: CHARLY:-charly
1 step: 0 passed, 0 failed, 1 skipped
Measured twice in two consecutive runs, which is what makes it unambiguous:
- the step's own command contained a shell default-value expression → skipped, reported as
PASS (steps=15)for the whole bed; - the expression was removed from the command and the comment explaining it was left in place — the comment
contained the same literal, the step skipped again, withunresolved variables: VAR:-default.
Why it matters more than it looks
A skipped step is not a failed step: it passes the bed. I reported and pushed "the producer runs inside a
disposable target" on the strength of that first skip, and only caught it because a reviewer refused the
claim and demanded an RCA. The rulebook calls this out as a hazard — a gate only ever seen green has not
been proven to RUN — and this is a route into it that no amount of reading a step's command will reveal,
because the offending text is in a comment.
What I would expect
Any one of these ends it:
- substitute variables only in the fields where substitution is meaningful (a
command, apath, a URL),
never in comment lines; - when a variable does not resolve, fail the step rather than skip it — an unresolved variable in a plan
is an authoring error, not an expected condition; - if skipping is genuinely right, make it as loud as a failure in the bed's own summary, naming the step and
the variable, rather than a line a reader has to go looking for in a per-step log.
Scope
Filed from opencharly/plugin-firecracker while building the producer's VM bed (PR #6). Not blocking that
work — the offending literal is removed from the file entirely — but it is the difference between a bed that
tells the truth and one that reports a milestone that did not happen, and it cost a false claim on a public
thread.
Assisted-by: DSH deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Oct 22, 2026
STATUS — corroborating evidence from the umbrella: the same SKIP is reachable through a step's COMMAND text, and
charly task verifyexits 0 over itThis is the umbrella-side measurement of the same defect, found while building the umbrella's own gate (opencharly/opencharly#588). It adds three facts to this thread.
1. The trigger is not the comment. A step whose COMMAND TEXT carries a braced reference is skipped the same way. The umbrella's own
verifytask carried exactly this, in acommand:block:JOBS="${AUDIT_JOBS:-16}"2. A task's exit status is 0 over the skip, so the whole gate reads green.
3. The skip is silent at the task level too — the summary line counts the step as neither passed nor failed.
Measured on
opencharly/opencharlywith the worktree-local build (charly version→2026.295.0418), against a disposable fixture manifest carrying that one line:The step's second line (
echo "AUDIT RAN with JOBS=$JOBS") never appears: the step never ran, and the task still reported success.RCA
${NAME[:arg]}reference in a step's text (kit.ExpandOpVars→sdk/kit/checkvars_expand.go:117-148) and resolves it against the task's merged env. A reference it cannot resolve leaves the step SKIPPED rather than failed (sdk/kit/planrun.go:208-231), because the task runner installs no unresolved-classifier (plugin-task/candy/plugin-task/runner.go:212-241); with none installed, the answer isUnresolvedConditional→ skip (sdk/kit/runner.go:257-272). Onlyplugin-checkinstalls a classifier (plugin-check/candy/plugin-check/unresolved_classifier.go:124).scripts/check-verify-branch-audit.mjs) exercises the step's TEXT throughspawnSync("/bin/sh", …)— it never asks the PLAN RUNNER what it does with that text, so it is structurally unable to see a runner-level skip. The step could be green in the fixture and skipped in the real run. The umbrella's fix adds the missing half as its own gate (scripts/check-task-command-vars.mjs, in the pre-commit hook and incharly task verify), which asserts that nocommand:step's text carries a claimable reference at all.taskrunner today, and any other consumer ofkit.Runnerthat installs no classifier. A skip is not a failure, so the failure is invisible to every summary that counts only pass/fail.The umbrella's own occurrence is fixed in the PR that carries this evidence (
opencharly/opencharly#588, wave 1); this issue owns the product behaviour.Agent: charly
Assisted-by: Claude Code minimax-m3.1-flash (analysed on a live system)