fix(queue): a dead seat's recovery reaches the operator agent before the person approvals use #2021
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 431 lines diff across 5 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.363
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2021"
general
weight: 0.35
openrig-review
What this changes
A dead seat's stuck-sweep finding goes to a live recovery seat when one is available. Otherwise it stays with the missing session and says so.
The recovery seats, in order:
1. the operator agent (
agents.operator_session), when one is configured;2. the operator seat (
workspace.operator_seat_name);3. the stuck row's creator.
A candidate is skipped if it's unset, if its own session is confirmed missing, or if it's the dead seat itself.
If none qualifies:
A finding that can't be created is reported by the sweep as a failed pass, as before.
Why
workspace.operator_seat_nameis the person approvals reach. The workflow human resolver uses it to select a registered human, and Mission Control reads it as the default my-queue identity, so it can't be repointed at an agent.As #2011 stands, a dead seat's finding therefore goes to that person:
agents.operator_sessionalready names the operator agent's canonical session. The UI's operator chat uses it, and nothing in the queue read it. Reading it first lets recovery reach an agent while approvals stay with the person.Unchanged, and what does change with the setting unset
workspace.operator_seat_name.- its prompt-blocked alert and its operator rung stay human by design;
- whether its no-orchestrator floor should also prefer the operator agent is a separate policy question.
@externaladdress or a human seat ref such ashuman@kernel.agents.operator_sessionunset, routing matches #2011 whenever #2011's fallback is eligible. This change also skips an operator seat or creator that is itself confirmed missing, or is the dead seat. #2011 would have used it.Tests
queue-stuck-sweep.test.ts:@external,human@kerneland malformed values don't.The suite's sweep helper injects "no operator agent", so tests don't read the machine's settings.
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Findings routed to a confirmed unavailable session can now be reassigned to an available recovery seat, using a consistent fallback order. Unavailable seats are skipped, and active routes are left unchanged.
* When no suitable recovery seat is available, the finding remains assigned to its original route and includes an explanation that no live recovery seat was found.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->