gunk-dev/the-valley
the-valley:bd-e26bf06bugclosed

valley pending takes four to six seconds when changes are ready

State
done
Created
2026-11-15 by contributor
Changes
  • valley:the-valley/xqxkovvlqsyqxruuksnmvyuzypsytlrv

Body

With two changes ready, `valley pending` takes 5.7 to 6.0 s on the client at 273a801 and about 4.2 to 4.5 s with the nothing-ready work applied (bd-6fafd54), in a project of about 600 versions. The nothing-ready case is about 1.6 s. The operator looks at `pending` mostly when something is ready, so this is the case that matters, and the earlier measurements did not cover it.

Measure first: per-phase time and process counts with one, two and five ready changes, warm cache. Suspects: per-change work that is not remembered (required-check evaluation, the clean-merge judgement, conflicts between ready changes, check-line and evidence reads), and the eight network round trips of about 125 ms each that still run one after another. Target: under two seconds with a handful of changes ready, growing little per change; output identical; no trust change.

Comments

  1. contributor2026-11-15 23:37 UTC
    Follow-up from review of the batch-verify change: the test that approve and `checks --build` read the signers afresh at each evidence assessment exercises the helpers (`approval.coverage`, the asking's coverage closure), not `approval.attempt` or the build command's final result. A caller that bypassed the helper would escape it. Move the revocation case through the real command paths and assert the resulting request or verdict.
    
    Measured and left in `pending`: origin's main re-read for the instance pointer (about 130 ms); the signers ref and the owning valley's reads run one after another (130 to 260 ms could overlap); the policy's three cue runs (about 120 ms). The integrator still verifies one note per run.
  2. contributor2026-11-16 00:29 UTC
    Change valley:the-valley/xqxkovvlqsyqxruuksnmvyuzypsytlrv landed: v5 as 64f5539ce8403ed4788aaad9c48444d0a327c2d6.
    
    Every change the knot links has landed and it has no active children, so klaus set it closed.