fix(workqueue): settle items after execution cancellation #659
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.36) × (1 − Review Confidence (0.48)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 78 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 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
Shallow Review Depth
shallow_review_depth
0.350
Diff Size
diff_size
0.261
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
2 items
Approved
Approved these changes.
yarolegovich
OUAO-FRANK
Problem
A pull-queue deployment can use BeforeExecutionCallback to give each execution a deadline or cancellation scope. When this context expires, the queue's default Complete/Return inherits the expired context, so a backend using context-aware I/O cannot settle the item. The reference SQL work queue uses ExecContext for this write and can later reclaim an unsettled row.
Change
Give default settlement its own bounded context, retaining callback context values. The execution and custom after-execution callback keep their existing context.
Verification
Prepared with OpenAI Codex.