Report progress function errors to an error callback #1260
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 152 lines diff across 1 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.301
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1260"
general
weight: 0.35
pentschev
An exception thrown by a
ProgressThreadfunction, e.g. a failed allocation or communication, escapes into the underlying thread loop, which makes it fatal. That is not recoverable, notably not from Python.ProgressThreadnow catches exceptions per function:add_function()takes an optionalErrorCallback. When a function throws, it is marked done, never called again, and the exception is passed to its callback on the progress thread. Other functions keep being progressed, andremove_function()no longer blocks on it.add_function()rethrows it, and the thread stays inactive.Not tested: a failure of the progress thread itself, outside of any function, which fails all registered functions, makes
add_function()rethrow and keepsresume()from reactivating the thread. It's hard to provoke deterministically without a test-only hook (e.g., makingcudaFree()fail on the progress thread).The shuffler and collectives start passing error callbacks in a follow-up.