Skip to content

bug(check): a failing step's output is truncated to a stderr tail, so a bed cannot show the evidence that decides its own assertion #1141

Open

Description

@aitrawog

What happens

charly check records a failing step's stderr only at its tail, so a bed cannot show the evidence that decides its own assertion — and when the decisive line is printed early, it is gone. A passing step's output is not recorded at all.

Measured

Night of 2026-11-13, on opencharly/plugin-deploy-firecracker's check-plugin-tree-vm bed. The bed's check step prints the delivered tree, the artefact's size and sha256, then runs five assertions. One run failed:

FAIL  check the delivered tree is present inside the guest, under the leaf name the loader searches
      [venue-delivery-in-guest]  exit=1, want 0
      (stderr: tree after the deliver step: plugin-firecracker delivered size: 32108517 bytes
       delivered sha256: b96f8c6f… the delivere…

The message is cut at the delivere…. Every assertion after that point begins with those same
bytes — "the delivered tree has no …providers manifest", "the delivered plugin is not an ELF
binary", "the delivered plugin is … bytes" — so the summary cannot say WHICH one fired. The full
stream is not kept in .check/<bed>/<calver>/ either (check-live.log carries the same truncated
line; runner.stderr.log does not have it).

Cost: the failure could not be root-caused from its own evidence. It recurred as neither
reproducible nor explained across five subsequent green runs on an identical assertion set, and two
review rounds were spent on the ambiguity before the assertion was re-ordered so the deciding
evidence prints FIRST.

Why it matters beyond this bed

R7 requires a gate to prove behaviour, and R1 requires every failure to be root-caused. Both depend
on the failing run's output being recoverable. A gate whose failure report is a 120-character tail
can only be diagnosed by re-running it — which is the rerun-and-see dodge the rulebook forbids,
made unavoidable by the tool.

What would fix it

  1. Keep the failing step's FULL stderr (and stdout) in .check/<bed>/<calver>/ — the runner already
    writes per-step logs, so this is a matter of what it captures, not a new mechanism.
  2. Record a PASSING step's output too, behind the existing run directory, so a witness can be
    inspected after the fact. A witness only visible on failure is half a witness.
  3. Keep the summary's reason tail as-is (it is a convenience), but make it explicitly a REFERENCE
    to the full log rather than the only copy.

Notes

Separable from any plugin work: this is the check runner's observation layer, not a
plugin-tree concern. Filed from the plugin-deploy-firecracker cutover that hit it
(#1131's consumer side).

Agent: charly-plugins
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

Activity

  1. added
    category:verification
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:verificationtype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions