router: expire provider records 15 minutes after the last announcement #602
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 143 lines diff across 1 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.297
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #602"
general
weight: 0.35
aojea
The router keeps go-libp2p-kad-dht's default provider validity of 48 hours, so a service announcement outlives its node by two days. Every node that restarts with a new identity, or is re-enrolled, leaves a ghost provider in discovery, and callers that pick a provider from the list hit peers that no longer exist.
Nodes re-announce their services every 5 minutes (
ReprovideInterval), so the router can afford a much shorter lifetime. This setsDefaultDHTProviderAddrTTLto 15 minutes, three re-announcements: a node that is gone drops out of discovery within that window, and one late re-announcement does not make a live service flicker.sam-router --dht-provider-addr-ttldefaults to 15m;sam-one --router-dht-provider-addr-ttlkeeps0, which now means that default rather than the library's 48h.ProviderManager.AddProviderstores the time of the latest one), and expired records are dropped on lookup, not only by the hourly cleanup.1h) are unchanged.