gunk-dev/the-valley
the-valley:oc-1761c04outcomeopen

klaus wait blocks until a change's checks, approval or landing

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

Body

A coordinator waits for the same few things repeatedly: a ready change's checks passing or failing, its approval, its landing. In one session it wrote 43 polling loops over telemetry, and across three sessions it re-armed `klaus watch` 629 times because the harness's background monitor expires.

`klaus wait <run|handle> --for checks|approved|landed [--timeout D]`:
- exits 0 with one line naming the result: checks passed, checks failed and which, or landed as which commit;
- exits non-zero on a timeout or a state it was not waiting for (withdrawn, stale, a new version), named in its output;
- wakes on the valley's events where it can, not on a short timer.

Done when an end-to-end test against a real valley waits for a ready change's checks and for its landing.

Comments

No comments.