← Back to Pull requests

UpdateWorker rejects Workers marked for deletion #3403

Open
laoj2 opened this pull request with 72 lines diff across 5 files
View on GitHub
laoj2 laoj2 commented on Oct 28, 2026 20:20 UTC
Author

Fixes #3333

Today, this only prevents a label update succeeding on a Worker that is being deleted.

Diff: 72 lines (+72 / -0) across 5 files Reviewer: sfunkenhauser Review duration: 48201m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.42) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 72 lines diff across 5 files
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 3 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
87%
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
Diff Size diff_size
0.257
Real PR Conversation Timeline
5 items
sfunkenhauser sfunkenhauser approved these changes on Oct 28, 2026 20:46 UTC
Approved Reviewer

LGTM, but this probably needs to wait until after 1.0 code freeze?

laoj2 laoj2 commented on Oct 30, 2026 14:49 UTC
Author

LGTM, but this probably needs to wait until after 1.0 code freeze?

We've been fixing this class of bugs (UpdateXYZ accepts XYZ that has delete_time set when it shouldn't) for v1.0 in https://github.com/agent-substrate/substrate/issues/3333

cc @EItanya @BenTheElder @dberkov @thockin for merge approval

juli4n juli4n commented on Nov 03, 2026 17:57 UTC
Contributor

Can we update the PR description with a summary of the failure mode this is preventing? What's the worse that can happen if we don't handle this case? That would help prioritizing if it's critical or not.

laoj2 laoj2 commented on Nov 03, 2026 18:14 UTC
Author

@juli4n updated the description, this can wait until v1.1; and I closed https://github.com/agent-substrate/substrate/issues/3333

Reviewers
Assignees
laoj2 laoj2
Labels
risk: low confidence: 87.1% 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: 41.5% (MEDIUM) · Higher = larger blast radius
41.5%
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: 87.1% · Lower = rushed or shallow review
87.1%
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: 5.4% · Safe to merge
5.4%