Repository navigation
Description
Goal
Make "is this component version transition safe?" a machine-readable question with a machine-readable answer, attached to the artifact that encodes the version change.
ADR-021 Component Upgrade Safety (#2343, merged) decides the design. This epic tracks building it.
The motivating case is real and recent. #2333 moved nvsentinel from v1.9.0 to v1.20.0, skipping eleven minor versions, typed Build/CI/tooling with the breaking-change box unchecked. Nothing claimed the upgrade was safe, because nothing asks: a pin says what a new deployment gets, and UAT only ever provisions fresh clusters (provision → CUJ → teardown), so no lane has exercised an upgrade. The jump may well be fine. Nobody recorded an answer.
Acceptance bar: a transition record exists for every pinned component version, aicr upgrade-check reports a verdict for both artifact-to-artifact and cluster-to-artifact comparisons, the coverage gate fails a pin bump that does not touch its record, and a safe verdict cannot be authored without naming what verified it.
Current state
Verified against main at filing.
| Piece | State |
|---|---|
| ADR-021 | Merged (30ed651dd) |
tools/upgrade-matrix + docs/user/component-version-matrix.md |
Landed. Best effort, wired to no gate |
recipes/upgrades/ |
Does not exist. Zero records authored |
aicr upgrade-check |
Does not exist |
| Coverage gate | Does not exist. 34 components carry defaultVersion |
ownsCRDs |
Consumed by one deployer (pkg/bundler/deployer/flux/flux.go); CRDs stay at day-one schema on the other four |
Generated wrapper Chart.yaml |
Still hardcodes version: 0.1.0, so online mode cannot read a payload version |
| Helm SDK | Not vendored (vendor/helm.sh absent) |
What the matrix tool already measured: 19 transitions across the last 8 releases, 7 needing extra scrutiny (chart-identity change, backwards move, or ≥3 major/minor apart). Roughly a third of real transitions are not ordinary one-version bumps.
Phases
Phase 1 — prerequisites. Done (2 of 2). Independent of each other and of everything below; can run in parallel.
| # | Title | Why first | Status |
|---|---|---|---|
| #2525 | Honor ownsCRDs on all five deployers, not just Flux |
A safe verdict is false on any deployer that skips CRDs, which today is four of five |
Done |
| #2526 | Stamp AICR and payload versions into generated wrapper charts | Online mode cannot read a payload version while wrappers report 0.1.0 |
Done |
Phase 2 — the offline check. Done (3 of 3). This is the whole feature for CI and GitOps.
| # | Title | Depends on | Status |
|---|---|---|---|
| #2527 | Transition record schema, loader, and well-formedness rules | — | Done |
| #2528 | aicr upgrade-check: artifact-to-artifact comparison |
#2527 | Done |
| #2529 | Render transition records into the bundle README per deployer | #2527 | Done |
Phase 3 — cluster-aware. Done (2 of 2; #2532 closed until a record needs a hook).
| # | Title | Depends on | Status |
|---|---|---|---|
| #2530 | Vendor helm.sh/helm/v4 for release inventory reads |
— | Done |
| #2531 | upgrade-check --from cluster: read installed release inventory |
#2530, #2526 | Done |
| #2532 | Emit -premigrate release for records carrying hooks |
#2527 | Closed: not needed until a record carries hooks |
Phase 4 — keeping it honest. 2 of 3 done (#2533 closed).
| # | Title | Depends on | Status |
|---|---|---|---|
| #2533 | KWOK lane: upgrade and rollback against a synthetic fixture | #2528, #2531 | Closed: read-back shipped in #2840, upgrade leg in #3479 |
| #2534 | UAT lane: release-to-release upgrade through the AICR Operator | #2528 | Open, unowned. Re-scoped to run through the operator (ADR-027) |
| #2535 | Coverage gate: every pinned version needs a transition record | #2527 | Done |
| #2536 | Authoring workflow: pin-bump rule, checklist, admission criterion | #2527 | Done (#2760, #3142) |
Known gaps carried forward
Recorded in the ADR as limits of the design rather than oversights:
- Chart-identity changes break semver comparison. Two of the last 19 transitions changed chart repository or name (
nvidia-dra-driver-gpu→registry.k8s.ioin feat(recipes): migrate nvidia-dra-driver-gpu to registry.k8s.io v0.4.0 #1285;nodewright-operatorbetween v0.15.1 and v0.17.0), so the versions are not comparable and range matching reads them as downgrades. No field expresses this yet. - No pinning gate covers Kustomize.
bom-pinning-checkis Helm-only, so a mutable KustomizedefaultTagis unchecked. Probably an ADR-006 amendment.
Verification debts
Claims the ADR makes that nobody has checked. Each is cheap and worth closing early, because Decisions 1, 3 and 4 rest on the first one.
- Helm 3 ownership-adoption behaviour against nodewright's mirror controller.
- Helm v4's dependency tree against the licence allowlist (
go-licenses check). MPL-2.0 is cleared only via ten per-import-path ignores. - The Kustomize limb of Decision 4 is reasoned, not demonstrated: the registry has zero Kustomize components.
Activity
mchmarny commentedon Aug 28, 2026
Roadmap reconciliation: confirmed outside v1. Full machine-readable upgrade lifecycle safety remains a post-v1 priority, not a release exit gate.
11 remaining items