Use gocommon's queues.MsgsV2 for the outgoing message queue #1231
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 169 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.307
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1231"
general
weight: 0.35
claude[bot]
Summary
Replaces courier's own outgoing message queue package (
utils/queue) withqueues.MsgsV2from gocommon v1.99.0, so the queue's scripts live in one place shared by everything that pushes to or pops from it. Keys ({msgs}:...) and the item format are unchanged, so no migration is needed and pushers and poppers can be upgraded independently.Changes
github.com/nyaruka/gocommonto v1.99.0.models.MsgQueue = queues.NewMsgsV2("msgs").PopNextOutgoingMsgandOnSendCompleteuseMsgQueue.Pop/MsgQueue.Done.Popretries internally and returns an empty owner when there's nothing to pop, so the retry/empty token handling is gone; the sender still sleeps when nothing is popped.MsgOut.WorkerToken_becomesQueueOwner_.MsgQueue.Size.core/modelsandwebtests push withMsgQueue.Push.Behaviour changes
TIME.Test plan
go test -p=1 ./...passes in the devcontainergo build ./...,go vet,gofmtclean