gunk-dev/the-valley
the-valley:oc-3d9f593outcomeopen

A change's check runs, with their results and logs, are part of the change

State
free to start
Created
2026-11-02 by contributor

Body

The operator, 2026-11-02: "the build and test results w/ detailed logs are definitely something that should be accessible as part of a change's API."

Today a check's outcome lives in three places, and none of them is the change. Passing results become signed evidence notes, but a batch that fails publishes nothing. Failures and logs reach only the host's journal and the telemetry collector, which caps a log at 256 KiB from its start (bd-93360e8). A workstation's approve build logs stay on that workstation. On 2026-11-02 the host failed worker-e2e twice, and the cause could be read only by running `nix log` on the host.

Outcome: anyone who can read a change can read every check run against each of its versions: who ran it and on which machine, when, how long it took, its result (passed, failed or errored), and its log. Failures are included. The record covers the host worker, an approve on a workstation, and any other runner that reports. `valley status` and review show each version's check runs, with a way to read one run's log. The same data is available as JSON for clients such as Klaus, and on the web.

Boundaries:
- Signed evidence stays the only thing that counts toward a landing. Run records and logs are diagnostic output: they grant nothing and are never read as evidence.
- They live with the project, beside the tree, keyed by change and version. Retention is bounded. A long log keeps its tail, where failures are.
- Read access follows the change's read access. A public project's logs are public, so builds must not print secrets.

Related: oc-f187c38 (review shows evidence before approval), bd-5cad397 (worker failures visible only on the host), bd-93360e8 (log retention), oc-8e7e027 (interim session telemetry, which this outcome supersedes as the durable home for check results).

Comments

  1. contributor2026-11-08 22:28 UTC
    Carried from bd-5cad397, which ends as a duplicate of this outcome. A worker batch is all or nothing, so one failing check withholds the evidence of every check that passed, and the worker retries every error alike: a deterministic failure, such as own-policy refusing a head that adds a check file its policy does not declare, waits and retries as an unfinished build would. A run record that names the failing check and tells a failed check from an unfinished build shows such a failure at once, and lets the worker retry only unfinished builds.