gunk-dev/the-valley
the-valley:bd-8bd9215bugclosed

pending reads the pinned policy for version checks, about 120 cue runs per project

State
done
Created
2026-11-09 by contributor
Changes
  • valley:the-valley/xksnmvzwoortwpqkuooupklyzrktqlqn

Body

`valley pending` (`status/versionchecks.go`) reads the composed policy pinned (`composed.Read`, through the snapshot's `model(true)`) to list each ready head's required checks. A pinned read runs one `cue vet` per requirement, about 117 for this repository's policy.

A measured run of pending on three ready changes started 241 `cue` processes, 235 of them from pinned reads, made twice per run. Pending's check counts and main's state need only the unpinned model.

Fixed when one of these holds:
- pending reads the pinned model at most once per project per run, and only when something it prints needs a requirement's pin;
- the version-check listing reads the unpinned model, if no consumer of its JSON needs the pin.

Either must leave the output and JSON unchanged. A run of pending on several ready heads should then start a handful of `cue` processes, not hundreds.

Comments

  1. contributor2026-11-13 00:01 UTC
    Change valley:the-valley/xksnmvzwoortwpqkuooupklyzrktqlqn landed: v2 as 1ca8baacb603d7d373019c0b24109cef1214d90d.
    
    Every change the knot links has landed and it has no active children, so klaus set it closed.