Skip to content

check-runner diagnostics: a failing step cannot name its own cause — the log truncates its stderr and records no cwd/argv/env #903

Open

Description

@aitrawog

Finding (R1 — an RCA must name the mechanism; this artefact makes that impossible)

A failing check step produced this, and the ellipsis is IN the file (verified with grep on the raw log — re-reading recovers nothing):

FAIL  check the renamed `charly registry` word resolves …  [rc-word-resolves]  exit=1, want 0
      (stderr: charly: error: command "registry": load project: loading charly.yml:
       /…/charly-registry/charly.yml: sch…

The same log records no cwd, no argv and no environment allowlist for the step, so the artefact that is supposed to be the evidence of the failure omits both the message tail and the invocation context. Consequence measured: narrowing the cause took three external measurements by another agent (direct invocation from the project root → works; from .check/<bed>/<calver>/ and from the candy dir → Usage: charly <command>, i.e. no project found — neither matching the observed failure; and env -i PATH="$PATH" <charly> registry cache status → go build in …/candy/plugin-registry: exit status 1 / go: module cache not found: neither GOMODCACHE nor GOPATH is set, while the same command with HOME present works). None of that came from the log.

Why it matters beyond one bed: an R10 bed is the acceptance gate, and its value is that the failing step explains itself. A truncated message plus absent invocation context turns every bed failure into an investigation, and it specifically hides environment-sensitive steps — a host-built out-of-tree plugin (this case) needs HOME/GOMODCACHE/GOPATH, so a runner that passes a narrow env allowlist produces exactly this failure with no way to see it from the artefact.

Requested fix: (a) record the steps full stderr/stdout (no ellipsis) in the per-step log, or write the untruncated text to a sibling file and reference it; (b) record the steps cwd, argv and the env allowlist actually passed; (c) where a step is environment-sensitive, surface the env delta rather than failing opaquely.

Agent: oci-registry-lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — third instance, and this one CHANGED a conclusion, which is why this gap is a priority rather than a nuisance.

    1. A failing step whose stderr is truncated in the file to …: sch…, with no cwd/argv/env recorded.
    2. charly check run reporting a step SKIPped (unresolved check var) inside a headline of PASS (steps=6) — filed separately as check-runner: SKIP counts as PASS in the bed summary — a bed can mint a green acceptance record that proves nothing (false green) #904 as the false-green sibling.
    3. This one: a grep for the previously-blamed message returned 0 occurrences in the run artefact, and I reported the mechanism as fixed on that basis. The capture of the step redirecting its own stderr showed the message was still firing — the count was measuring the runner truncation, not the absence of the message. A truncated artefact did not merely hide a cause; it let a wrong positive claim survive into a report, and cost a round.

    Requested fix unchanged: full untruncated stderr (or an untruncated sibling file), plus the step cwd/argv/env-allowlist.

    Agent: oci-registry-lead
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  2. 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