← Back to Pull requests

docs(design): ADR-028 add fabric selection in recipes #3506

Closed
unknown closed this pull request without merging on Oct 30, 2026 19:14 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 16:59 UTC
Author

Summary

Adds ADR-028, which records the scale-out fabric (efa | ib | roce | tcpxo) as a recipe-time fact by extending the existing gpuStack profile with a reserved fabric marker. Design only; no code or overlay changes.

Motivation / Context

The same accelerator ships behind different fabrics (GB300 is EFA on AWS, InfiniBand on Azure, RoCE on GKE and Spectrum-X racks). NVCRE needs AICR to say which fabric a recipe targets so it can render the NCCL certification workload correctly (cluster-readiness-engine#576). The recipe is a design-time artifact, so the answer cannot come from runtime detection. The ADR compares a new criteria dimension, a second profile, extending gpuStack, and detection, and picks extending gpuStack as the cheapest option. It keeps every ADR-015 invariant but one: the declaration-uniqueness rule gains a narrow case where a leaf declaration shadows an inherited one, needed so OKE can add a fabric-marked GB300 leaf without touching oke-ol.yaml.

The bottom line the ADR is built around: no existing recipe changes a byte. Fabric enters a recipe only when an overlay family gains its second fabric value, as a versioned change with refreshed evidence.

Fixes: N/A
Related: #3503

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

  • New feature (non-breaking change that adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to change)

  • Documentation update

  • Refactoring (no functional changes)

  • Build/CI/tooling
  • Component(s) Affected

  • Docs/examples (docs/, examples/)
  • Implementation Notes

  • Amends ADR-015 by widening what a gpuStack value may encode and by letting a leaf declaration shadow an inherited one, defined by ancestry over maximal-leaf chains on every resolver path (pre-filter, post-filter, and direct overlay load). ADR-015 itself is not edited in this PR; it receives its "Amended by ADR-028" banner at acceptance.

  • The NicClusterPolicy switch uses the ADR-015 values-gated manifest pattern (as gcp-driver-installer does), with the per-fabric policy manifests kept on the existing network-operator ref so the live CR stays in the network-operator-post release and no deployer migrates ownership. The RoCE side's IPPool and network objects ride in a gated manifest-only companion component ordered after network-operator behind the existing readiness gate, as NVKE's sriov-ib-networks does, because the IPPool CRD does not exist until the policy is reconciled. The bundler emits that gate unconditionally for compositions whose companion renders objects, from the CLI and the API, since the flag is opt-in today and the API cannot request it; the API gate image is pinned to the release tag, overridable and mirrorable, with the CLI reference updated in the same step. Helmfile, Flux and Fleet take no readiness hooks and use a staged install documented in the bundling guide for the converted family. Where the RoCE shape uses the SR-IOV Network Operator, the value also enables the chart's subchart and the companion path carries the sriov marker the resource reader keys on; live switches between fabric values are a stated non-goal because subchart CRDs install only on a fresh release. The split-component placement is the single costed fallback, including the Helm re-label and Argo CD finalizer steps it would need; the chart-values route cannot render a policy at the pinned chart. The readiness predicates need no change under this placement; the resource reader already renders through the gate and gains a test covering the companion.

  • Derived fabrics are computed by a pure FabricOf function and never persisted, which is what keeps unchanged families byte-identical. FabricOf errors on any disagreement between a declared marker and the composition, at catalog load, again on the snapshot-filtered composition at resolution, and in the evidence verifier. Only selectedProfile.fabric is new on the wire, and only where a declaration carries the marker.

  • The manifest-to-fabric rows are permanent and outlive retired manifests, so older recipes and their evidence keep deriving the same fabric. The OCP policy is registered as no signal, since its RDMA plugin selects by vendor and driver and binds IB and RoCE alike. Every leaf with an NCCL NET check must derive a fabric, and the set of unset leaves is a committed golden list.

  • Manifest rows are keyed by path, which is what a recipe carries, so the evidence verifier recomputes FabricOf from the bundle's recipe bytes and the compiled table alone; digests are checked only at catalog load, and retired rows keep deriving by path. An append-only golden of the table enforces row permanence. External --data catalogs feed derivation nothing: an unknown path is not a signal, a same-path override keeps the embedded row's fabric (a fabric change ships a new path in a replacement overlay), and an external composition that derives unset loses only the NVCRE checks, which report not applicable; nothing fails at catalog load for it and its TrainJob checks run as today. One that inherits an embedded signal is held to that fabric's transport accept list like any embedded leaf, and a marker conflicting with an inherited signal fails load as it would anywhere.

  • The signed fabric claim ships in a new recipe-evidence/v4 predicate as a top-level field, bound to the component names, manifest paths and gate values the recipe carries; no evidence artifact binds manifest content, which is why a fabric change is always a new path. v1 through v3 statements carry no claim and verify under their original rules, so committed pointers stay verifiable. aicr upgrade-check flags a fabric change between two recipes as requiring a fresh install of the target value, since live fabric switches are a non-goal.

  • Validators receive the fabric through a new ValidationInput.Fabric field, as GPUAllocationPolicy is carried today; every Certification-creating NVCRE check (nccl-cre-all-reduce-bw and cre-training-goodput) reports not applicable when it is empty rather than letting NVCRE detect, creates the Certification with strict field validation against a pinned NVCRE that knows spec.fabric, and reads the field back before trusting a result. The qualification key gains a fabric dimension for both. The fabric vocabulary is enforced on every decode in ValidateProfileContract, beside advertiser, not only at catalog load.

  • The snapshot validates the selected value and never infers it: without --profile the declared default is selected and its distinguishing constraint evaluated, with the remediation naming the matching value; the adoption plan carries Remediation into the generation-path failure, which today reports only name, expected, and actual. The signals the ADR needs are not addressable today (linkType is a Context key the constraint catalog rejects); the adoption plan names that measurement work.

  • OKE's single gpuStack declaration on oke-ol.yaml covers IB, RoCE, network-less, and accelerator-less OKE compositions, so a fabric marker cannot be added there, and moving it per accelerator would drop the accelerator-less coordinates to aicr.run/v1 without selectedProfile. The ADR instead amends the ADR-015 uniqueness rule with one narrow case: a leaf declaration shadows an inherited one whole. The new OKE GB300 leaf declares its own marked gpuStack; every other OKE composition stays byte-identical.

  • Derivation reads a gated manifest's gate from the recipe's resolved component values, never from manifest content; an absent gate value is an error.

  • A family conversion moves the overlay from aicr.run/v1beta1 to aicr.run/v1beta2 and the resolved result from aicr.run/v1 to aicr.run/v1beta2, served on the existing /v1 endpoints. v1beta2 is decoded strictly, so the schema change ships at least one release before the first marked family. New evidence lands under the -gpustack-<value> coordinate while the pre-conversion pointers stay as the record of the old recipe, as the AKS conversion did; each conversion ships an upgrade test from a pre-conversion bundle and a fresh install of each value on every deployer.

  • The per-fabric transport assertion parses the full NCCL INFO Using network banner against an accept list on runtimes that log at INFO (AWS Libfabric, IB); TCPXO is guarded by the existing worker-pod watch because the GKE H100 runtime logs at WARN.

  • Reviewed against the Slack thread that produced the decision, ADR-015, ADR-025, and the current overlays, components, validators, collectors, server routes, and evidence verifier on main.
  • Testing

    make check-docs-filenames check-docs-yaml   # pass
    

    Doc-only change, so full make qualify was not run: tests, e2e, and Go lint cannot regress from a new Markdown file. The MDX and shell-placeholder docs gates could not run locally (npm cache permission) and are exercised by the docs-mdx merge-gate job, which passes on the branch. The one relative link in the ADR (015-recipe-configuration-profiles.md) resolves.

    Risk Assessment

  • Low — Isolated change, well-tested, easy to revert
  • Rollout notes: N/A

    Checklist

  • Tests pass locally (make test with -race)

  • Linter passes (make lint)

  • I did not skip/disable tests to make CI green

  • I added/updated tests for new functionality

  • I updated docs if user-facing behavior changed

  • Changes follow existing patterns in the codebase

  • Commits are signed off and cryptographically signed (git commit -s -S) — GPG signing info
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: yuanchen8911 Review duration: 1574m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3506"
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%
    Repository