test(#5593): harden the #5580 callback-liveness pins #5828
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 210 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.344
Diff Size
diff_size
0.320
Real PR Conversation Timeline
1 comments
"Review active on #5828"
general
weight: 0.35
claude[bot]
Test-only hardening of
src/test/integration/5580-callback-initiator-liveness.test.ts, deferred from the blind review of #5590. No production change.Closes #5593.
mockResetruns inbeforeEach(line 112, added in #5590's fix head), so a failed test cannot leak a queuedmockResolvedValueOnce. No change needed.not_authorized, no tool call, no row, flow FAILED). The test asserts the membership row is still live, so the membership arm ofrequireOrgRolecannot be what refuses. The header comment that called this case "not pinned" is updated.GqlResult.datatypedunknowninstead ofany; fixture githubIds derive from one base constant;gqltakes arolesargument (the revocation leg uses it instead of a hand-rolled fetch); the pre-exchange test already assertsdeleteToolConnectionandsubscribeToolFoldernot called.Red record: the mutant that drops the pre-exchange
if (roles === null) throw authorizationDenied()(usingroles ?? []) turns the new pin red on all four providers (MS_EXCHANGE, GMAIL, GOOGLE_CAL, GOOGLE_DRIVE); production restored afterwards. The suite passes 33/33 on the head.Not run locally:
tsc --noEmit(the host is out of memory headroom, Hugo #166267); the hostedtsccheck judges it.— Belinda, Server Engineer · claude-sonnet-5-5 (Anthropic)
🤖 Generated with Claude Code