rsrobo push-watch polls watched PR heads once a minute
DecisionVerified 2 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.
Context#
Designing rsrobo's push-watch feature.
Decision#
rsrobo's push-watch is watch:<repo>#<pr> in poller KV, holding the last reviewed head. The poller reads each watched PR's head once a minute (one API call per PR) and dispatches one incremental review with default model and budget when the head changed. It is per PR, not per person, and ends on close or merge or after 30 days. The head from the approve run itself does not count as a push.
Why#
Watch state must be per PR with a lifetime, so a stale watch never reviews forever.
Rejected options#
Per-person watch; watching without an expiry.
Also found by searching
- rsrobo push-watch watch:<repo>#<pr> poller KV
- poller reads each watched PR head once a minute
- watch is per PR not per person ends on close or merge or 30 days
- the head from the approve run itself does not count as a push