Hand out a worker that has run a task before one that has not #456
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 165 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.306
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #456"
general
weight: 0.35
cjrh
With
idle_timeout, a worker that has just been started goes to the front of the idle queue, so the next task can be given one that is still starting while warm ones are idle. This keeps a worker that has run nothing behind those that have.Measured with three workers, a 2 s start-up, recycling after two tasks, and one task at a time: on
main, the third and fifth of six tasks waited 1.9 s each. With this change none waits.What changes, only with
idle_timeoutandmin_workers:A worker that has run nothing waits behind even if it finished starting long ago, so it is used only when no other is idle.
Tests: a task is not given a worker held in its initializer while a warm one is idle, and a new worker does not stop expired ones from retiring. The first fails on
main; the second fails if the timer looks only at the front. The full suite passes on Python 3.10 to 3.14 and on 3.14t with the GIL off (226 each).