test(wake): pin the live host-binding compare in authorizeLegacyWakeWorkers (#5792) #5829
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.59) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 178 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.310
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #5829"
general
weight: 0.35
claude[bot]
Closes #5792.
Test only: one new pin,
wake authorize rejects a live host binding moved after entry, inresolvers.hostNotRegistered5734.test.ts. No production file changed, no version bump.The key enters bound to registered host A (
orca1); thenhost:operateis revoked and re-granted for host B (orca3) throughjoinHostForKey(live host record, no registration, notorca2), A's registration is lost, andauthorizeLegacyWakeWorkerswith the stale entry host answersAPP_KEY_SCOPE_REQUIRED. Specs: cor:agt:070:04, cor:agt:080:22, cor:agt:070:01. Per the FIT, no row counts and nothing abouthostKeyUse.Coverage pin (green on main). Mutant: with
if (scope.hostId !== expectedHostId) throw scopeRequired();removed, the new test alone fails (HOST_NOT_REGISTEREDinstead ofAPP_KEY_SCOPE_REQUIRED); the other 15 tests in the file pass. The batch-site control stays green.Limit: the host is overloaded; one local run hit a 10 s hook timeout in the existing
rechecks registration after entrytest (the new pin passed), so hosted CI is the full evidence.Gate: https://github.com/hadron-memory/hadron-server/issues/5792 (CHECKED, T2 + security). #5790 edits the same file and builds after this.
— Elena, Server Engineer · Claude Sonnet 5.5 (Anthropic)
🤖 Generated with Claude Code