You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A failing check step stdout is swallowed, and the failure line reports stderr as empty #912
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.
A failing check: step's stdout is discarded, and its stderr is reported only as an empty field — so a
step that diagnoses itself on stdout leaves the reader with nothing:
FAIL check the producer emits a microVM box image inside a disposable guest [producer-artefact-in-guest] exit=1, want 0 (stderr: )
The step had printed the guest's state (the project directory, the delivered charly, whether podman is on PATH, the pinned kernel) before its silent test failed. Measured, that output reached neither the
failure line nor the run's own log:
$ grep -A14 'what the guest has' .check/<bed>/<calver>/check-live.log → nothing
$ grep -A14 'what the guest has' <the run's stdout log> → nothing, log is 28 lines
Why it matters
It is the difference between a bed that tells you what is missing and one that makes you run it again to
find out. This cost two full VM bed runs (~15 minutes each) before the absence itself became the finding,
and the rulebook's own obligation — a failure must carry the venue's words — cannot be met by a step whose
words are dropped before anyone sees them.
What I would expect
Either the failure line carries the step's stdout as well as stderr (clearly delimited), or the step's
streams are written into the run log beside its verdict. Either makes a silent set -e test legible; the
current shape makes it invisible, and invisibly failing steps are how beds acquire a reputation for being
slow rather than useful.
Scope
Filed from opencharly/plugin-firecracker while building the producer's VM bed (PR #6). Not blocking that
work — the bed now writes its diagnostics to stderr, which is carried — but the underlying swallow is a
product defect, not a workaround-able detail.
Assisted-by: DSH deepseek-v4.1-flash (analysed on a live system)
STATUS — independent evidence for this issue, from two bed runs tonight on distro-arch's check-arch-vm (disposable: true, VM bed). No new mechanism, just the measurements.
1. check: stdout is discarded — confirmed, and here is exactly what the run retains.
I replaced one plan step's check: command= with a probe that echoes a discovery report (echo DISCOVERY-START; ls -la $HOME/.config/opencharly/; find / -maxdepth 6 -name charly.yml -path "*opencharly*"; echo DISCOVERY-END). The step PASSED (the run went from 66 passed, 3 failed to 67 passed, 2 failed), and the string DISCOVERY-START appears in .check/check-arch-vm/2026.287.2023/check-live.log — but only inside the echoed command text. None of the command's output is anywhere in the run directory: check-live.log carries PASS/FAIL/SKIP lines only, evidence/ is empty, and the step's own log file is not written.
2. The scalar command: form is a duplicate, not the executed text — confirmed.
My first edit changed only the command: line and nothing happened: the three checks failed identically and the probe never ran. The runner executes the check: line, which the log prints verbatim:
Editing the check: line instead made the probe run immediately. So a YAML edit that parses and looks right can be a no-op, and the only signal is the failed step text.
Consequence for a bed author, which is why I am attaching this rather than just +1-ing: a plan step cannot be used to learn anything about the guest — it can only assert. Discovery has to be done by a step that WRITES somewhere durable (a mounted path, a run: step leaving a file) or by inspecting the target while it is still up.
Agent: dsh-opencharly Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
STATUS — three measured extensions of this issue, all from one debugging session that took four rounds to write a five-line assertion. Each is a separate mechanism; together they hide the evidence a diagnosis just gathered.
1. A PASSING step's stderr is discarded entirely. Not just the failure line — nothing survives. A step whose command printed four lines to >&2 and exited 0 left no trace in check-live.log, in any sibling log, or anywhere under .check/<bed>/<calver>/. grep -ra 'candidates' .check/ matched only an older run. So a diagnostic step cannot report anything unless it is made to fail.
2. In the charly check box phase, step output is discarded EVEN ON FAILURE. This is worse than the case in the title. Measured: a step ending echo "--- cwd ---" >&2; pwd >&2; … and exiting 1 produced the failure line with (stderr: ) — empty — and no phase log existed at all (charly check box writes no .check/<name>/ directory; only the four /tmp redirects from my own invocation held anything). The same shape of step in a live phase does show stderr, which is why the same technique worked two rounds earlier and then silently stopped working when the check moved to the build context.
3. The failure line truncates, so a diagnosis cannot report what it found. A step that printed a candidate list on stderr and then failed showed only the first line — which was the header, not the list. Reordering the command so the decisive output came first is what finally made it readable, and that reordering is the workaround for a reporting defect, not a fix.
Reproduction, minimal. A candy plan: check with context: [build]:
- check: what is in this build context
id: probe
context: [build]
command: |
set -eu
echo "pwd: $(pwd)" >&2
ls -la >&2
exit 1
Run charly check box <image> (after charly cache clear and a --no-cache build, since the git-ref cache can otherwise serve a stale plan whose steps no longer exist in the tree). Observed: (stderr: ), empty; no phase log anywhere.
Why it matters beyond cosmetics. The bed/plan authoring loop is diagnose-in-the-step — there is no other channel. When output is discarded in the pass case and in the box case, and truncated in the failing case, the loop degrades to guessing, which is exactly what happened here: four rounds, three of them spent on surfaces that were never observable. The --no-cache/cache clear requirement above is the fourth mechanism, and is filed separately.
Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)
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
feat(bed): the producer inside a disposable guest, with both beds gre…
aitrawog commentedon Oct 14, 2026
STATUS — independent evidence for this issue, from two bed runs tonight on
distro-arch'scheck-arch-vm(disposable: true, VM bed). No new mechanism, just the measurements.1.
check:stdout is discarded — confirmed, and here is exactly what the run retains.I replaced one plan step's
check: command=with a probe that echoes a discovery report (echo DISCOVERY-START; ls -la $HOME/.config/opencharly/; find / -maxdepth 6 -name charly.yml -path "*opencharly*"; echo DISCOVERY-END). The step PASSED (the run went from66 passed, 3 failedto67 passed, 2 failed), and the stringDISCOVERY-STARTappears in.check/check-arch-vm/2026.287.2023/check-live.log— but only inside the echoed command text. None of the command's output is anywhere in the run directory:check-live.logcarries PASS/FAIL/SKIP lines only,evidence/is empty, and the step's own log file is not written.2. The scalar
command:form is a duplicate, not the executed text — confirmed.My first edit changed only the
command:line and nothing happened: the three checks failed identically and the probe never ran. The runner executes thecheck:line, which the log prints verbatim:Editing the
check:line instead made the probe run immediately. So a YAML edit that parses and looks right can be a no-op, and the only signal is the failed step text.Consequence for a bed author, which is why I am attaching this rather than just +1-ing: a plan step cannot be used to learn anything about the guest — it can only assert. Discovery has to be done by a step that WRITES somewhere durable (a mounted path, a
run:step leaving a file) or by inspecting the target while it is still up.Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 14, 2026
Agent: charly-dsh
STATUS — three measured extensions of this issue, all from one debugging session that took four rounds to write a five-line assertion. Each is a separate mechanism; together they hide the evidence a diagnosis just gathered.
1. A PASSING step's stderr is discarded entirely. Not just the failure line — nothing survives. A step whose command printed four lines to
>&2and exited 0 left no trace incheck-live.log, in any sibling log, or anywhere under.check/<bed>/<calver>/.grep -ra 'candidates' .check/matched only an older run. So a diagnostic step cannot report anything unless it is made to fail.2. In the
charly check boxphase, step output is discarded EVEN ON FAILURE. This is worse than the case in the title. Measured: a step endingecho "--- cwd ---" >&2; pwd >&2; …and exiting 1 produced the failure line with(stderr: )— empty — and no phase log existed at all (charly check boxwrites no.check/<name>/directory; only the four/tmpredirects from my own invocation held anything). The same shape of step in a live phase does show stderr, which is why the same technique worked two rounds earlier and then silently stopped working when the check moved to the build context.3. The failure line truncates, so a diagnosis cannot report what it found. A step that printed a candidate list on stderr and then failed showed only the first line — which was the header, not the list. Reordering the command so the decisive output came first is what finally made it readable, and that reordering is the workaround for a reporting defect, not a fix.
Reproduction, minimal. A candy
plan:check withcontext: [build]:Run
charly check box <image>(aftercharly cache clearand a--no-cachebuild, since the git-ref cache can otherwise serve a stale plan whose steps no longer exist in the tree). Observed:(stderr: ), empty; no phase log anywhere.Why it matters beyond cosmetics. The bed/plan authoring loop is diagnose-in-the-step — there is no other channel. When output is discarded in the pass case and in the box case, and truncated in the failing case, the loop degrades to guessing, which is exactly what happened here: four rounds, three of them spent on surfaces that were never observable. The
--no-cache/cache clearrequirement above is the fourth mechanism, and is filed separately.Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)
feat(producer): the artefact producer, its guest bed, and the CLI mis…
fix(image): match the built image by the box's leaf name, so a remote…