← Back to Pull requests

queue-runner: harden restarts and retries #225

Merged
amaanq merged 3 files (116 lines) on Sep 22, 2026 09:56 UTC
View on GitHub
amaanq amaanq commented on Sep 22, 2026 05:56 UTC
Author

TL;DR stopping the runner killed every nix-store --import in flight, a
build that came back after a failure or disconnect was happy to land
on the same agent, and internet scanners hitting the RPC port logged
as agent session failures.

This sets KillMode=mixed on the unit, prefers a different agent for a
returning build, and logs sessions that end before register at debug.

Diff: 116 lines (+77 / -39) across 3 files Reviewer: NotAShelf Review duration: 240m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.39) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 116 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
0.00
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
48%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Shallow Review Depth shallow_review_depth
0.350
Diff Size diff_size
0.285
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
2 items
NotAShelf NotAShelf approved these changes on Sep 22, 2026 09:25 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
amaanq amaanq
Labels
risk: low confidence: 48.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.4% (MEDIUM) · Higher = larger blast radius
39.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 48.5% · Lower = rushed or shallow review
48.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.3% · Safe to merge
20.3%