gunk-dev/the-valley
the-valley:oc-c0ba95boutcomedone

pending says when the worker's build of a check failed

State
done
Created
2026-11-13 by contributor
Changes
  • valley:the-valley/pqsysotyotmszkxmnovntuqzqquuznsr

Body

A check's state in `valley pending --checks` comes only from signed notes (`status/versionchecks.go`). `attest run` publishes nothing when any check of a batch fails (`attest/run.go`), so a check the worker built and that failed reads as pending, for a ready change and for a draft alike. An author waiting on the worker cannot tell a failed build from one not started. The worker's telemetry holds each check's result and log, and `pending` already reads it for build costs (`status/checkcost.go`).

Outcome: for each required check, `valley pending --checks` and its `--json` say when the worker's newest build of that check for the version's tree failed, when it failed, and the run to read its log from; the text names the failed check as it names one a note records as failed, and says the source is the worker's report. A client reading `--json` can wait for a draft and learn of a failure without reading telemetry itself.

Boundaries:
- This is diagnostic. The state the integrator judges still comes from notes alone, and the JSON keeps the two apart.
- When the telemetry cannot be read, nothing is claimed.

This is a first slice of oc-3d9f593, and what the draft flow of oc-0f74615 needs before authors can rely on the worker for failures.

Comments

  1. contributor2026-11-13 03:12 UTC
    Built at cafb709, reviewed and marked ready. Compared with main's build on real projects with no failed worker build among the records: `pending --drafts --checks` text is identical; in `--json` the only difference is that a draft's checks now carry the cost fields a ready change's do (`new: true` where no build is among the records read). The failed-build and failed-batch cases are covered by the build's own test; no real failure was at hand to read.
  2. contributor2026-11-13 20:47 UTC
    Change valley:the-valley/pqsysotyotmszkxmnovntuqzqquuznsr landed: v1 as ca98fdc29fbfa0c60846c2b0713f5ba369331024.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.