← Back to Pull requests

platform: share extensible hardware classification across consumers #26

Closed
unknown closed this pull request without merging on Oct 02, 2026 06:36 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 20:42 UTC
Author

NVRC and kata-device-provisioner need the same hardware facts to choose fabric services and assign PCI functions. Share platform discovery without OEM names or fixed device counts; keep pure classification allocation-free and no_std.

PCI identities must remain useful across vendors and device kinds. Assuming NVIDIA can alias unrelated devices and prevents users from adding NICs or switches. The root catalog API matches explicit vendor, device, subsystem-vendor and subsystem-device IDs; data/pci-devices.catalog includes GPU, Mellanox NIC and Quantum switch records. Filenames never select a vendor, and new descriptive profiles need no compiled registration.

New identities should not force consumer rebuilds. Users can bundle every data/*.catalog on the next build or load an application-configured directory at runtime. Both paths validate and merge records, reject conflicts and accept identical built-in mappings so updates preserve deployed extensions. The catalog comments and README explain the columns and extension workflows.

General discovery keeps unknown devices visible. NVIDIA platform classification and CC access require supported GPU profiles, with unsupported catalog mappings rejected before BAR access. CC capability remains separate from coherent attachment. PCI identity does not infer an NVLink management role or discover remote InfiniBand switches; management detection still uses VPD and port capabilities.

Missing device-specific VFIO mappings fail because a generic catch-all cannot establish compatibility.

Validation: 402 all-feature tests, 39 no-default-feature tests, 3 doctests, ARM64 and x86_64 bare-metal builds, clippy and rustdoc with warnings denied, and 98.85% line coverage with every file above 90%. Build smoke checks cover arbitrary-vendor catalog add/edit/remove and conflicting data. All Rust and catalog files changed by the PR carry NVIDIA attribution without copyright years.

Diff: 242 lines (+181 / -61) across 3 files Reviewer: zvonkok Review duration: 2034m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 242 lines diff across 3 files
0.39
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.329
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #26"
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: 38.8% (MEDIUM) · Higher = larger blast radius
38.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: 15.3% · Safe to merge
15.3%