refactor(serving): add selectable deployment extension entry points #10754
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.80) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.80 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.080
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #10754"
general
weight: 0.35
paulovmr
Part 12 of https://redhat.atlassian.net/browse/RHAI-2007.
Problem
RHAII imports full serving extension manifests, bringing optional administration, runtime installation, and advanced integrations into production bundles even when their feature flags are disabled. Runtime imports of serving IDs from aggregate manifests also pull those declarations back into the dependency graph.
Solution
Add selectable deployment extension entry points for Model Serving and LLMD, excluding optional contributions before compilation. The LLMD deployment profile retains deployment creation, watching, deletion, gateway integration, tracking, and start/stop.
RHAII selects the LLMD entry point through its distribution manifest. Its Model Serving profile is also defined in
distribution.yaml, with Docker, Tilt, and the production runtime audit reading that selection through one shared helper. Missing selections and unsupported profiles fail explicitly.Preserve the existing
modelServing/extensionsfederation key. Other dashboard builds default to the full manifest with unchanged extension metadata, ordering, feature gates, and lazy callbacks.Preserve the full LLMD entry point’s named exports:
LLMD_SERVING_ID,topologyConfigsExtensions, andTopologyConfigsExtensionsType, including the original string-literal ID type. Deployment entry points remain independent of the optional manifests.Replace runtime imports of aggregate manifests for serving IDs with the existing shared area IDs. KServe registration and its current activation prerequisite remain for the later cutover. No application API-contract or RBAC changes are introduced.
The scoped extension-composition work is complete. The broader RHAII migration remains a work in progress: the KServe cutover, remaining runtime dependencies, strict boundary enforcement, and production xKS qualification are separate deliverables.
Evidence
Automated and build validation:
pnpm run audit:runtimereports 150 forbidden module instances, all in the host, and 300 lazy chunks. The selected remote has zero violations. No LLMD advanced-manifest or settings runtime modules are emitted. The strict runtime boundary remains failing.Live-cluster validation:
Cypress exercises the RHAII and Model Serving development builds and Go BFF against a real OpenShift cluster, with Kubernetes mocks and Tilt fixtures disabled. The selected deployment profiles are used throughout.
1. Open the deployment table for a disposable CPU-backed
LLMInferenceServiceand verify Ready status and the Stop action.2. Confirm Stop, verify the annotation PATCH returns HTTP 200, and wait for the UI to show Stopped with the Start action.
3. Select Start, verify the corresponding PATCH returns HTTP 200, and wait for the replacement workload to reach Ready.
4. Compare direct cluster snapshots: the model resource retains its UID, the stop annotation changes as expected, and the workload and scheduler pods receive new UIDs after restart.
The scenario passes without retries in 4 minutes 31.572 seconds. The disposable model is stopped after verification, leaving no test pods running.
Lazy compilation and automatic reload are disabled for stable recording. Development warnings about duplicate plugin/WebSocket registration and missing React list keys are observed; their baseline origin is not established by this run. This evidence validates the deployment lifecycle using development builds on OpenShift; model creation, frontend SSO, production-image validation, and xKS qualification remain outside this verification.
The videos below show the stop confirmation and resulting Stopped and Ready states. The short Start clip marks the omitted CPU startup wait.
https://github.com/user-attachments/assets/bd5d44d4-809c-44cf-b661-ee2f3c9b7207
https://github.com/user-attachments/assets/e5fe5806-fcbb-4b87-922c-1ab56ef7de70
<!-- OPTIONAL — uncomment when needed: -->
<!-- ## Justifications -->
<!-- Instructions
This description is the sole source of truth for review of this PR.
Review and lander gates read only this description — not chat or comment threads.
A linked Jira ticket may still be checked for product-ask alignment.
Source of truth — this PR description
so in this description and why.
(do not leave the durable claim only in a comment).
Fixes:line at the top; do not bury the ticketonly in Problem/Solution.
Hygiene
Problem (required)
Solution (required)
Evidence (required)
or impossible, and the alternative verification.
<details>
<summary>build log output</summary>
...
</details>
Justifications (optional)
that rationale changes; comment threads alone are not enough.
-->