Repository navigation
feat: raise scheduled review throughput - #940
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 11:23 AM ET / 15:23 UTC. ClawSweeper reviewWhat this changesRoutes scheduled hot-intake and normal-backfill selections through the durable exact-review queue, raises scheduled target plans to 20 candidates, and adds rate, backpressure, selection-age, and lane-attribution telemetry. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 5 items remain Keep this PR open for real after-fix queue evidence and a maintainer rollout decision. The supplied diff and focused tests present a coherent way to remove the scheduled-feed bottleneck, but the 200-review/hour target changes operational spend and runner demand and has no inspectable live proof yet. Priority: P2 Review scores
Verification
How this fits togetherScheduled fleet planners select due issues and pull requests, then offer them to the durable exact-review queue instead of launching one-item review matrices directly. The queue applies global/lane admission, backlog, deduplication, and lease controls before each accepted item launches an exact-review workflow and reports its result in operational telemetry. flowchart LR
A[Scheduled target planners] --> B[Due-item selection]
B --> C[Durable exact-review queue]
C --> D{Rate backlog and lease controls}
D --> E[Exact review workflow]
E --> F[Review record publication]
C --> G[Queue and lane telemetry]
Decision needed
Why: The patch changes an operational throughput and spend control rather than only correcting a local code path; the supplied material does not prove the requested production target is safe for the deployed Worker and runner environment. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Deploy Worker support first, capture redacted live evidence of scheduled enqueue-to-completion behavior at a conservative rate, then raise the admission target toward 200/hour while monitoring queue depth, claim counts, runner availability, and organic-work priority. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes internal review scheduling capacity rather than repairing a reported user-facing bug. Its central claim needs live operational validation, not a failing-bug reproduction. Is this the best way to solve the issue? Unclear: routing scheduled work through the existing durable queue is a focused design supported by the supplied tests, but production evidence is still needed to validate the target rate and Worker-first rollout boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e27b57429e48. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* feat: raise scheduled review throughput * fix: gate scheduled feed on worker support --------- Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary
Measured bottleneck
The six-hour window from 2026-07-29 08:45–14:45 UTC contained 121 completed broad scheduler cycles: 44 core cycles and 77 fleet target cycles. They planned only 51 items total (8.5/hour). Just 43 cycles selected anything; 78 cycles were empty. Fleet hot and normal cycles never selected more than one item because target fanout hard-coded both
batch_size=1andshard_count=1. Scheduled work then bypassed the Durable Object, so scheduled queue enqueues and claims were both zero even while the public queue showed 122 of 128 review slots available.This identifies the feed as the cap: not shard claim capacity, claim pacing, or the lease recycler. The post-#938 worker windows also demonstrated that exact-review execution can exceed 200 completions/hour while backlog is available.
Selection-age finding
The retained pre-selection artifacts covered 39 completed scheduled items from those 51 plans. The selected reference age was p50 223.3 hours (9.3 days), p90 493.9 hours (20.6 days), and max 759.8 hours (31.7 days):
Only one item was reselected across hot and normal lanes, and both selections were about 20.6 days old. The oldest-first coverage comparator from #937 is working; the problem was one-item feed capacity and overlapping planners. The queue now collapses such overlap without advancing a revision or revoking a lease.
Rate and spend math
The Worker target is 200 new reviews/hour. Organic work is never shed and debits the global token balance first; scheduled hot/normal work fills the remainder with a 35/65 lane split. At the conservative 30 calls/review estimate:
200 reviews/hour * 30 calls/review = 6,000 calls/hourThat is about 50% of the roughly 12,000-call or 400-review/hour App-token ceiling, leaving comparable headroom for planning, retries, publication, and variance. At 4.1 minutes/review, the target needs
200 * 4.1 / 60 = 13.7concurrent workers. Model use is still roughly five times a 40-review/hour baseline;EXACT_REVIEW_TARGET_RATE_PER_HOURis the spend dial.Backpressure and lease behavior
scheduled_feed, preventing a workflow-first rollout from bypassing pacingProof
pnpm run check:static: passpnpm run build:all: pass on Node 26.5.0pnpm run lint: passpnpm run check: only the five known macOS Linux-containment harness failures remain because Apple libc does not exportcapset; this branch does not touch that subsystem/Users/steipete/.claude/skills/autoreview/scripts/autoreview --mode local: clean for the full change, then clean again for the rollout-capability delta; no accepted/actionable findingsgit diff --checkRollout risks
This PR does not change review/close policy, protected-label handling, snapshot guards, or apply eligibility.