refactor: persist structured version profiles on fleet rollouts #7399
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.48) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 505 lines diff across 6 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.373
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7399"
general
weight: 0.35
deads2k
Why
Fleet rollout documents currently encode their minor version and channel group only in the resource name. Persisting that identity explicitly lets later consumers use structured fields without coupling their behavior changes to a storage migration.
This extracts the storage foundation from #7332, following the rollout implementation in #6577. No separate tracking ticket exists for this extraction; it isolates the schema and migration work for independent review.
Scope
ControlPlaneVersionRollout.Spec.Versionusing the existingcoreapi.VersionProfiletype.CosmosRolloutVersionMigrationcontroller using the existing rollout watcher, five workers, and five-minute resync/cooldown.Existing rollout consumers continue using channel names. There are no changes to selection, assignment, cluster validation, public APIs, discovery, catalog publication, retirement, generic controller abstractions, or the subscription migration controller. No pipeline, IAM, or physical-container changes.
Migration Contract
Verification
make lint-fixandmake lintpassed withGOFLAGS=-p=2to stay within local temporary-storage limits.git diff --checkpassed.Suggested reviewer: @deads2k for migration and rollout lifecycle.
Commit Guide
1.
b4ed12e35Structured profile, conversion, creation, and migration implementation, with focused boundary tests.2.
c44e1d7fcSeparate migration-controller tests. The commit explains the existing subscription-test precedent and the additional persistence, conflict, deletion, and per-key completion coverage.3.
d2c4601b2Separate current-writer/legacy-document test. The commit explains its limited cross-layer value and overlap with conversion and existing writer tests. It tests current binaries on old documents, not old binaries.The two additional test commits can be reviewed or dropped independently of the implementation.
Checklist