vxpu/router: emit plan for the executor's machine on load by artifact #875
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 419 lines diff across 5 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.361
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #875"
general
weight: 0.35
codebot-robot
When a LoadModel request arrives by artifact with no plan, leave
PlanFileunset inInstanceDesiredwithout mutating desired state. Two such loads are equal desired state by construction, requiring noPlanEmittedflag and no special comparison indesiredEqual. A client-suppliedPlanFilestays inInstanceDesiredas given, and any change to desired state reloads on the executor.In
ModelReconciler.Reconcile, derive the plan once when loading the instance, after background manifest weight caching completes, so poll ticks during weight downloads never invoke the planner. Derive the executor's machine kind from its matched catalog machine throughkernelplan.MachineKind(the same functionvxpu plan emitcalls) or from its hardware probe throughkernelplan.MachineKindFromProbewhen the host is not in the catalog, and callkernelplan.PlanArtifactwith the original unrewritten manifest bytes. Trim whitespace on GPU names inkernelplan.MachineKindandkernelplan.MachineKindFromProbeso a probe with a whitespace-only GPU field and a valid CPU plans as CPU.Record the loaded plan's identity in
InstanceStatus.PlanHashacrossLoading,Checking, andPassedphases so callers and operators can read which plan an instance is serving.When the executor's machine is not known (
Describeunimplemented, empty or unreadable hardware probe, or probe with neither GPU nor CPU), record aFailedPreconditionrefusal inInstanceStatusand never load on the executor. Planner errors (corrupt decode graph or malformed binding) record anInvalidArgumentrefusal inInstanceStatuswith the planner's error message.Update
vxpu/docs/design.mdforInstanceStatus.PlanHashand artifact plan emission in the reconcile loop.Hero journey table from
ap-e2e-vxpurun45333700970(job138240809754, commitccc8d6c, treebe15f6bb0376, identical tree to this head):Fixes #874