fix(queue): route unclaimed reminders past terminal seats #4215
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 217 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.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4215"
general
weight: 0.35
openrig-review
A parked-owner escalation could leave its only notice with a terminal creator or parent. Delivery correctly types nothing into a terminal seat, so that notice could never be claimed there.
Skip known terminal candidates in this escalation's existing recipient check, resolving aliases through the current physical session. Selection continues through the existing creator, escalation owner, default receiver and person order. The shared topology resolver, terminal input guard and per-recipient notice ID stay in place.
Reported by Kayhusk in #4209.
Validation:
The tests exercise the four reported cases plus aliases, person fallback and unavailable person selection. They check the persisted notice, mock-transport destination and payload, owner claim, and repeat deduplication.
Cost: production +4/-2; tests +66/-1 across two files.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Escalations now skip known terminal seats and can route to an eligible acting owner across supported session types.
Repeated escalation checks create only one notice and send it once.
When both the parent and default recipient are terminal seats, escalation selects a human without attempting delivery. If no human is available, no notice is created.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->