← Back to Pull requests

fix(queue): route parent backlog notices past terminal seats #4216

Closed
unknown closed this pull request without merging on Nov 30, 2026 13:31 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 10:25 UTC
Author

A delegation-parent backlog notice could be addressed to a terminal seat, leaving nobody to act on it. Reuse the unclaimed-reminder recipient resolver from #4215, without its creator override: try the parent, then the configured receiver, then the registered person. Unknown runtimes remain eligible. Topology ownership is unchanged.

A selection failure is reported for that notice while the sweep continues to later seats and phases. Existing standing notices are left untouched on failure. When a current parent's notice needs a replacement, it closes only after the replacement is written; notices already handed elsewhere keep that custody. The underlying work remains assigned and unclaimed.

Related: #4209. Thanks to Kayhusk for reporting this class of stranded escalation.

Merged main including #4215 with an ordinary merge; the diff against that main is only the sweep and its parent-backlog test.

Validation: 486 tests pass across eight focused files on the merged tree, with no failures, skips, or pending cases; daemon build and typecheck pass. This includes main's new conversation-answer-return tests. The two feature files are byte-identical to reviewed R1 head d6edf2fc; the diff against merged main is only those files. Earlier C1 proof remains recorded: eight regression variants failed on 2482ac09 because the later healthy seat got no notice, while six controls passed.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

<!-- coderabbit-ai-generated:v1 -->

Summary by CodeRabbit

Bug Fixes
Backlog notices are now directed to an eligible recipient, including an alternate recipient when the delegation parent cannot receive them.
Notices are deferred when no recipient is available. If recipient selection fails, existing notices remain unchanged, and processing can continue for other eligible recipients.
Existing notices are returned to the delegation parent when it is no longer eligible, unless they have already been transferred elsewhere.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 264 lines (+198 / -66) across 3 files Reviewer: openrig-review Review duration: 186m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 264 lines diff across 3 files
0.44
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
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.334
Shallow Review Depth shallow_review_depth
0.289
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4216"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 60.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: 44.3% (MEDIUM) · Higher = larger blast radius
44.3%
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: 60.5% · Lower = rushed or shallow review
60.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: 17.5% · Safe to merge
17.5%