← Back to Pull requests

Ladder findings: retry enrollment and admission, size the router as a hub, 502 for an unreachable provider, no CPU limits #638

Closed
unknown closed this pull request without merging on Oct 10, 2026 08:40 UTC
View on GitHub
unknown unknown commented on Oct 10, 2026 08:06 UTC
Author

Follow-up to #615 from the second ladder run on bananas (500 → 1000 → 2500 → 5000 planned; 1432 members resident at the end). Three bottlenecks, each visible in the data, one commit each, plus the deploy change and a ladder accounting fix.

node, control plane: retry an enrollment the limiter turned away


The control plane admits 10 enrollments/s for the whole mesh (burst 20) and answered the rest 429 with nothing more; the node took that as final and exited. Five minions ramping 20/s each made 1572 × 429 in one step, 245 of 500 exits on one minion. The 429 now carries Retry-After, and the node waits for it, or backs off with jitter when none is named, for about a minute. cpclient.DoWithChallengeRetry lives in the control-plane client so router and bench can share it. (The SDKs do not retry yet; follow-up.)

node: retry the routers that did not admit it in time


Routers at their CPU limit missed the handshake deadline; the node took the first miss as final and a member that had just enrolled exited with failed to authenticate with any router (180 of 500 on one minion). Start and the post-enrollment handshake now dial every router at once and retry at 2 s, 4 s, 8 s (RouterAuthAttempts, default 4). A refusal still ends it at once; "all connection attempts failed" is still reported when no router answers (the e2e that pins it is unchanged).

router: size libp2p's stream limits from the connection budget


libp2p sizes its resource limits from host memory, for a leaf peer. The GCE router on a 1 GB VM got 1024 inbound streams in all, 64 for identify and 64 relayed connections per peer, and reset handshakes with StreamResourceLimitExceeded; libp2p_rcmgr_blocked_resources counted 170k blocked inbound streams on a GKE router in step 4. hubLimits() now sizes the system, transient, identify, auth-handshake and relay scopes from --high-watermark / --conns-per-source-ip, and the per-peer relay scopes from --relay-max-circuits.

node: 502, not 403, for a provider that never answered


500 callers of a service on two pods got 403 Forbidden: destination is not an enrolled peer 14,723 times in step 1 — the label gate reporting a dial failure as a denial, so nothing in the answer said to retry. A failure before any credential was read is now ErrProviderUnreachable → 502 Bad Gateway (Proxy-Status: destination_unavailable on the tunnel path); a verdict on a credential that was read stays 403.

deploy, chart: requests without limits; router VM with a core


Router pods under a 500m CPU limit were CFS-throttled 480–745 s each during the joins. Every mesh component in the testnet manifests and the chart now sets a request and no CPU/memory limit (the vLLM TPU limit stays: extended resources require request = limit). The GCE router moves from e2-micro to e2-small and serves /metrics on loopback.

scale: count the members that stayed


The ladder reported 5000 resident by adding planned counts; it now counts members that became ready and whose process is still there.

Validation


golangci-lint 0 issues, verify-generated.sh OK, go test for internal/... api/... cmd/... and tests/integration green, helm lint OK, every commit builds and vets alone.

Diff: 406 lines (+304 / -102) across 5 files Reviewer: aojea Review duration: 34m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 406 lines diff across 5 files
0.50
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.359
Shallow Review Depth shallow_review_depth
0.289
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #638"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 49.8% (MEDIUM) · Higher = larger blast radius
49.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19.7% · Safe to merge
19.7%