fix: reject subscriptions referencing non-image catalogs #61
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 214 lines diff across 2 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.321
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #61"
general
weight: 0.35
nader-ziada
Summary
Reject migration when a Subscription references a missing CatalogSource or one that is not an image-backed grpc source. The check uses the Subscription reference, so an unrelated ClusterCatalog serving the same package cannot make the operator appear eligible. Also validate the effective CatalogSource selected by the InstallPlan.
PR59 compatibility
Rebased onto main after PR59. The check CLI now uses Migrator.Check and a shared text/JSONL presenter, so the CatalogSource refusal is included in the returned check data rather than an obsolete CLI-only code path. Tests assert that the failure appears in Checks, which both presenters consume. Gather test fixtures include the new COS CRD and system-namespace prerequisites.
Validation
Fixture E2E coverage for this refusal remains pending in the test plan.
Related: OPRUN-4715.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Migration checks now reject subscriptions that reference a missing or unsupported catalog source, even when another catalog offers the package.
* Dry runs and migrations stop before changing existing resources when catalog source validation fails.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->