← Back to Pull requests

vxpu/router: serve a fleet status page from a separate management port #825

Open
unknown opened this pull request with 321 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 23, 2026 16:31 UTC
Author

vxpu/proto: define RouterStatus for the management interface

Define the ModelStanding enum and RouterStatus, ModelStatus, and
ExecutorStatus protobuf messages in vxpu.proto to represent the router
fleet's state.

Every management page is a direct view of a protobuf message, avoiding
parallel hand-written structs or logic derived only in templates. The
message captures models known to the router, their verification standing,
refusal errors, active executors, probed machine kinds, and what models
are placed on each executor.

vxpu/router: serve fleet status from management port

Serve a read-only, unauthenticated management interface on a dedicated
management port (--mgmt-port, default 8080), apart from client inference
traffic (--port).

The management interface listens on its own HTTP port so operators can
inspect fleet status within the cluster (for example with kubectl
port-forward) under separate Kubernetes Service and NetworkPolicy rules.
The management port never serves inference, and the inference port never
serves management pages.

In NewServer, blobserver is moved from port 8080 to port 8081 so that the
management HTTP server can bind --mgmt-port (default 8080). In router.yaml,
containerPort 8081 is added alongside containerPort 8080 so that executor
pods can continue to reach blobserver if modelstore is not configured.

The root path (GET /) serves the fleet status page. Go templates render
the HTML from RouterStatus with embedded CSS and no external dependencies.
The same URL answers with JSON when requested with Accept: application/json.
Nothing secret appears on the page or in the JSON payload: tokens, prompt
text, and environment variables are omitted.

The state shown is read directly from where the router already records it
at the moment of the request, without calling the Kubernetes API server or
agents under the router's lock. Until the per-model loader (#801) lands,
the router reads model verification standing and refusal reasons from
s.models, external executor endpoints from s.modelEndpoint, in-cluster
executor endpoints from s.podEndpoint, expert helper and range assignments
from s.expertHolders, registered model names and tags from s.keyModel, and
hardware probes from s.executors and s.externalExecutors.

vxpu/tests/e2e: verify fleet status HTML and JSON in kind e2e

Port-forward the router pod's management port (8080) in the kind e2e test,
wait on the port-forward's own readiness signal, and assert that the
fleet status page and JSON report the loaded model in passed standing.

Fixes #816

Diff: 321 lines (+240 / -81) across 4 files Reviewer: codebot-robot Review duration: 10355m
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 321 lines diff across 4 files
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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.345
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #825"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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: 41.9% (MEDIUM) · Higher = larger blast radius
41.9%
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: 46.7% · Lower = rushed or shallow review
46.7%
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: 22.4% · Safe to merge
22.4%